diff --git a/maidfile b/maidfile index a217e9fd07775bde81b9007d1724cd37ea66070c..3791e35d2d9b7f9bc0a92fc2aef4357c834efed5 100644 --- a/maidfile +++ b/maidfile @@ -1,4 +1,4 @@ -JUST_PATH = "{{HOME}}/Developer/rust/js_runtime" +JUST_PATH = "%{dir.home}/Developer/rust/js_runtime" [tasks._publish_macros] info = "helper for publish" @@ -13,12 +13,12 @@ script = "cargo publish --no-verify" [tasks._test_no-verify] info = "helper for test-all" path = "tests/new" -script = "{{JUST_PATH}}/just run {{$1}} -A" +script = "%{env.JUST_PATH}/just run %{arg.1} -A" [tasks] clean = { info = "remove binary", path = "", script = "rm just" } -build = { info = "build just", path = "", script = ["cargo build --release", "mv {{JUST_PATH}}/target/release/just {{JUST_PATH}}"] } +build = { info = "build just", path = "", script = ["cargo build --release", "mv %{env.JUST_PATH}/target/release/just %{env.JUST_PATH}"] } publish = { info = "publish crates", path = "", script = ["maid _publish_macros -q", "maid _publish_state -q"] } -test = { info = "run js tests", path = "tests/new", script = ["maid build", "{{JUST_PATH}}/just run {{$1}} -A"] } +test = { info = "run js tests", path = "tests/new", script = ["maid build", "%{env.JUST_PATH}/just run %{arg.1} -A"] } 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'"] } \ No newline at end of file