Skip to content
maidfile 1.12 KiB
Newer Older
theMackabu's avatar
theMackabu committed
JUST_PATH = "{{HOME}}/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"
theMackabu's avatar
theMackabu committed
script = "{{JUST_PATH}}/just run {{$1}} -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 build --release", "mv {{JUST_PATH}}/target/release/just {{JUST_PATH}}"] }
publish = { info = "publish crates", path = "", script = ["maid _publish_macros", "maid _publish_state"] }
test = { info = "run js tests", path = "tests/new", script = ["maid build", "{{JUST_PATH}}/just run {{$1}} -A"] }
theMackabu's avatar
theMackabu committed
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#*/*/} -q; done" }
theMackabu's avatar
theMackabu committed
test-all-build = { info = "run all js tests", path = "", script = ["maid build", "bash arg:-c arg:for file in tests/new/*.js; do maid _test_no-verify ${file#*/*/} -q; done"] }