build: sync some utility just instructions I had locally
This commit is contained in:
parent
6349095d19
commit
8b0dccd066
1 changed files with 17 additions and 1 deletions
18
justfile
18
justfile
|
|
@ -3,7 +3,7 @@ all: lint sync
|
|||
|
||||
# Lint source typescript
|
||||
lint:
|
||||
npm run lint -- --fix
|
||||
npm run lint-fix
|
||||
|
||||
# Sync generated files (javascript and PR checks)
|
||||
sync: build update-pr-checks
|
||||
|
|
@ -15,3 +15,19 @@ update-pr-checks:
|
|||
# Transpile typescript code into javascript
|
||||
build:
|
||||
npm run build
|
||||
|
||||
# Build then run all the tests
|
||||
test: build
|
||||
npm run test
|
||||
|
||||
# Run the tests for a single file
|
||||
test_file filename: build
|
||||
npx ava --verbose {{filename}}
|
||||
|
||||
# FOTIS: This shouldn't really be needed, as it's covered by `sync`,
|
||||
# however, I recall having messed my environment such that this was the
|
||||
# only solution, so keeping it here for convenience & docs.
|
||||
[doc("Refresh the lib directory (the .js build artefacts)")]
|
||||
[confirm]
|
||||
refresh-lib:
|
||||
rm -rf lib && npm run build
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue