replace package.json scripts with just.

This commit is contained in:
fiatjaf
2023-02-08 09:46:26 -03:00
parent da59e3ce90
commit 3710866430
4 changed files with 25 additions and 11 deletions

19
justfile Normal file
View File

@@ -0,0 +1,19 @@
export PATH := "./node_modules/.bin:" + env_var('PATH')
install-dependencies:
yarn --ignore-engines
deps-installed := `ls node_modules`
install-and-build:
if deps-installed != "node_modules" { install-dependencies }
build
build:
node build.js
test: build
jest
testOnly file: build
jest {{file}}