Skip to content

Commit 8b0dccd

Browse files
committed
build: sync some utility just instructions I had locally
1 parent 6349095 commit 8b0dccd

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

Diff for: justfile

+17-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ all: lint sync
33

44
# Lint source typescript
55
lint:
6-
npm run lint -- --fix
6+
npm run lint-fix
77

88
# Sync generated files (javascript and PR checks)
99
sync: build update-pr-checks
@@ -15,3 +15,19 @@ update-pr-checks:
1515
# Transpile typescript code into javascript
1616
build:
1717
npm run build
18+
19+
# Build then run all the tests
20+
test: build
21+
npm run test
22+
23+
# Run the tests for a single file
24+
test_file filename: build
25+
npx ava --verbose {{filename}}
26+
27+
# FOTIS: This shouldn't really be needed, as it's covered by `sync`,
28+
# however, I recall having messed my environment such that this was the
29+
# only solution, so keeping it here for convenience & docs.
30+
[doc("Refresh the lib directory (the .js build artefacts)")]
31+
[confirm]
32+
refresh-lib:
33+
rm -rf lib && npm run build

0 commit comments

Comments
 (0)