Skip to content

Commit

Permalink
scripts for publish
Browse files Browse the repository at this point in the history
  • Loading branch information
bddap committed Apr 23, 2021
1 parent cfb572e commit e23a00f
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,35 @@ js-test:
clean:
cargo clean
cd benches; cargo clean
rm -r bindings/js_wasm/pkg || true
rm -rf bindings/js_wasm/pkg
just clean-js

# remove artifacts from js bindings tests
clean-js:
rm -r bindings/js_wasm/binding_tests/dist || true
rm -r bindings/js_wasm/binding_tests/node_modules || true
rm -rf bindings/js_wasm/binding_tests/dist
rm -rf bindings/js_wasm/binding_tests/node_modules

bench:
#!/usr/bin/env bash
cd benches
cargo bench
checkall-buildall:
just clean
cargo test
cargo clippy -- -D warnings
just bench
just js-test

assert-clean-workdir:
! test -n "$(git status --porcelain)" # please commit before publish

publish-js:
just checkall-buildall
just assert-clean-workdir
cd bindings/js_wasm/pkg && npm publish

publish-rs:
just checkall-buildall
just assert-clean-workdir
cargo publish

0 comments on commit e23a00f

Please sign in to comment.