Closed dimitrilw closed 1 year ago
Made a justfile
. Assuming the just
program is installed, then typing just
at prompt gives list of scripts. And just SCRIPT
executes it. Pic shows just test-js tier_0
, which expands to:
WASM_BINDGEN_TEST_TIMEOUT=60 wasm-pack test --node -- --test tier_0
Pic has arrows to commands I entered into terminal.
Thoughts...?
Adjusted recipe test-js
to use param name TEST
instead of TESTS
and have default value of ALL
instead of an empty string -- more clear.
Looks way nicer than make files. As long as it's not the only alternative I'm all for it 👍
Awesome! I'll put in a PR so others can use my justfile
, too.
PR #24 closes this issue.
For reference, the just.systems docs (also ref'd in readme) are excellent. This cheat-sheet is solid, too.
And sorry for ping, but want to ensure you see this note, @avacore1337 . ...should you ever choose to use just
in your other efforts (work/personal), then these are solid refs.
Oh, and I'm not using this feature in the OneLife justfile (yet), but the ability to hold something like this:
hello-world:
#!/usr/bin/env python3
print('Hello from python!')
....game changer.
Another item that I do not know if you will like or not: adding a justfile.
I always liked the idea of npm-scripts, but the actual behavior is quirky. Granted: there are not (yet) any npm-scripts inside
package.json
that contain any characters or behaviors that will trigger weird behaviors & artifacts, but it's a thing. So I moved from old-schoolMakefile
(no fun) tojustfile
(very intuitive & powerful). I've also usedpyinvoke
,Taskfile
,Magefile
, and others that I'm forgetting; but I have personal preference forjustfile
-- it's just sooooo clean & easy. 😄Thoughts...?