File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ all: lint sync
3
3
4
4
# Lint source typescript
5
5
lint :
6
- npm run lint -- - -fix
6
+ npm run lint-fix
7
7
8
8
# Sync generated files (javascript and PR checks)
9
9
sync : build update-pr-checks
@@ -15,3 +15,19 @@ update-pr-checks:
15
15
# Transpile typescript code into javascript
16
16
build :
17
17
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
You can’t perform that action at this time.
0 commit comments