Skip to content

Commit

Permalink
Add generate script
Browse files Browse the repository at this point in the history
  • Loading branch information
timostamm committed Sep 25, 2023
1 parent 1cfd8fe commit 2ed69d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ $(BUILD)/protoplugin-test: $(BUILD)/protoplugin $(GEN)/protoplugin-test node_mod

$(BUILD)/protoplugin-example: $(BUILD)/protoc-gen-es packages/protoplugin-example/buf.gen.yaml node_modules tsconfig.base.json packages/protoplugin-example/tsconfig.json $(shell find packages/protoplugin-example/src -name '*.ts')
npm run -w packages/protoplugin-example clean
npx -w packages/protoplugin-example buf generate buf.build/connectrpc/eliza
npm run -w packages/protoplugin-example generate
npm run -w packages/protoplugin-example build
@mkdir -p $(@D)
@touch $(@)
Expand Down
3 changes: 2 additions & 1 deletion packages/protoplugin-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"clean": "rm -rf src/gen",
"build": "../../node_modules/typescript/bin/tsc --noEmit",
"start": "npx esbuild src/index.ts --serve=localhost:3000 --servedir=www --outdir=www --bundle --global-name=eliza",
"test": "node --loader tsx --test test/*.ts"
"test": "node --loader tsx --test test/*.ts",
"generate": "buf generate buf.build/connectrpc/eliza"
},
"license": "Apache-2.0",
"dependencies": {
Expand Down

0 comments on commit 2ed69d2

Please sign in to comment.