Skip to content
maidfile 1.03 KiB
Newer Older
theMackabu's avatar
theMackabu committed
JUST_PATH = "/Developer/rust/js_runtime"
theMackabu's avatar
theMackabu committed

[tasks._publish_macros]
info = "helper for publish"
path = "crates/macros"
script = "cargo publish --no-verify"

[tasks._publish_state]
info = "helper for publish"
path = "crates/state"
script = "cargo publish --no-verify"

theMackabu's avatar
theMackabu committed
[tasks._test_no-verify]
info = "helper for test-all"
path = "tests/new"
script = "{{HOME}}{{JUST_PATH}}/just arg:run arg:{{$1}} arg:-A"

theMackabu's avatar
theMackabu committed
[tasks]
clean = { info = "remove binary", path = "", script = "rm just" }
theMackabu's avatar
theMackabu committed
build = { info = "build just", path = "", script = ["cargo arg:build arg:--release", "mv arg:{{HOME}}{{JUST_PATH}}/target/release/just arg:{{HOME}}{{JUST_PATH}}"] }
publish = { info = "publish crates", path = "", script = ["maid arg:_publish_macros", "maid arg:_publish_state"] }
test = { info = "run js tests", path = "tests/new", script = ["maid arg:build", "{{HOME}}{{JUST_PATH}}/just arg:run arg:{{$1}} arg:-A"] }
test-all = { info = "run all js tests", path = "", script = ["bash arg:-c arg:for file in tests/new/*.js; do maid _test_no-verify ${file#*/*/} -vvv; done"] }