From 95f829a14f275df8fc262aff9b8d520e23885433 Mon Sep 17 00:00:00 2001 From: theMackabu Date: Mon, 13 Mar 2023 18:36:01 -0700 Subject: [PATCH] update maidfile --- maidfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/maidfile b/maidfile index a217e9f..3791e35 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 -- GitLab