Skip to content

Commit c50c157

Browse files
authored
Merge pull request #2813 from github/NlightNFotis/enhance_justfile
build: sync some utility just instructions I had locally
2 parents df9f80e + c74c378 commit c50c157

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Diff for: justfile

+14-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,16 @@ 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+
[doc("Refresh the .js build artefacts in the lib directory")]
28+
[confirm]
29+
refresh-lib:
30+
rm -rf lib && npm run build

0 commit comments

Comments
 (0)