avacore1337 / OneLife

My Vue/WASM/Rust idle game
https://avacore1337.github.io/OneLife/
MIT License
1 stars 2 forks source link

improve justfile #25

Open dimitrilw opened 1 year ago

dimitrilw commented 1 year ago

just init

Right now, this just-recipe does not really init the repo. I'd like to work on making this into a more complete init, but maintaining OS-independence is more than I really seek. Odds are high I'll just do some sanity checks & output as user task list, something like:

just init
# just checks for npm, then runs npm install
# just also checks for other reqs & outputs a user task-list:

WARNING: Repo is not yet fully initialized. 
         User must complete the following tasks as appropriate for OS & configs.

TASKS:
- install Node v16.13.2 -- recommend using `nvm` or `n` to manage node versions
- install Rust toolchain
- install wasm-pack
- install python v3.8 or newer

# ...etc

just lint-js

I should replace the eslint script (just taken from package.json) with running prettier, per the readme's guidance.

dimitrilw commented 1 year ago

I believe I am done with this issue. Here is an updated example of just init where I switched my node version (nvm use stable) just to trigger the WARNING output:

image

And here I've switched the version back & receive no final output from just init:

image

The just init command checks for:

If any of those checks fail, then it will output the WARNING message with the task list.

dimitrilw commented 1 year ago

Waiting to make PR until I noodle through other improvements.

dimitrilw commented 1 year ago

...and until PR #22 is approved, so there isn't "stacked PR merge conflicts" issues.