Skip to content

Commit

Permalink
Run jco types too
Browse files Browse the repository at this point in the history
  • Loading branch information
sd2k committed Oct 15, 2024
1 parent 26f1c22 commit 66ab4ed
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions components/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,30 @@ inspect: build
wasm-tools component wit cpp/prophet-wasmstan/prophet-wasmstan-component.wasm

transpile: build
jco transpile --name prophet-wasmstan -O -o js/prophet-wasmstan cpp/prophet-wasmstan/prophet-wasmstan-component.wasm
jco transpile \
--name prophet-wasmstan \
--optimize \
--out-dir js/prophet-wasmstan \
cpp/prophet-wasmstan/prophet-wasmstan-component.wasm
jco types \
--name prophet-wasmstan \
--out-dir js/prophet-wasmstan \
cpp/prophet-wasmstan/wit/prophet-wasmstan.wit

transpile-min: build
jco transpile \
--name prophet-wasmstan \
--minify \
--optimize \
--out-dir js/prophet-wasmstan \
cpp/prophet-wasmstan/prophet-wasmstan-component.wasm
jco types \
--name prophet-wasmstan \
--out-dir js/prophet-wasmstan \
cpp/prophet-wasmstan/wit/prophet-wasmstan.wit

test: transpile
cd js/prophet-wasmstan && npm ci && npm run test:ci

publish:
publish: transpile-min
cd js/prophet-wasmstan && npm ci && npm publish --access public

0 comments on commit 66ab4ed

Please sign in to comment.