Skip to content
maidfile.toml 1.17 KiB
Newer Older
[env]
theMackabu's avatar
theMackabu committed
JUST_PATH = "%{dir.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 --allow-dirty"
theMackabu's avatar
theMackabu committed

[tasks._publish_state]
info = "helper for publish"
path = "crates/state"
script = "cargo publish --no-verify --allow-dirty"
theMackabu's avatar
theMackabu committed

theMackabu's avatar
theMackabu committed
[tasks._test_no-verify]
info = "helper for test-all"
path = "tests/new"
theMackabu's avatar
theMackabu committed
script = "%{env.JUST_PATH}/just run %{arg.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 %{env.JUST_PATH}/target/release/just %{env.JUST_PATH}"] }
theMackabu's avatar
theMackabu committed
publish = { info = "publish crates", path = "", script = ["maid _publish_macros -q", "maid _publish_state -q"] }
theMackabu's avatar
theMackabu committed
test = { info = "run js tests", path = "tests/new", script = ["maid build", "%{env.JUST_PATH}/just run %{arg.1} -A"] }
theMackabu's avatar
theMackabu committed
test-all = { info = "run all js tests", path = "", script = "bash -c 'for file in tests/new/*.js; do maid _test_no-verify ${file#*/*/} -q; done'" }
test-all-build = { info = "run all js tests", path = "", script = ["maid build", "bash -c 'for file in tests/new/*.js; do maid _test_no-verify ${file#*/*/} -q; done'"] }