mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-08 16:28:49 +00:00
replace package.json scripts with just.
This commit is contained in:
19
justfile
Normal file
19
justfile
Normal 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}}
|
||||
Reference in New Issue
Block a user