Skip to content

Commit 745cd0f

Browse files
authored
add lint and lint:fix npm scripts and also split up npm script test (#212)
1 parent 330f3fa commit 745cd0f

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ jobs:
1919
test:
2020
uses: fastify/workflows/.github/workflows/plugins-ci.yml@v3
2121
with:
22+
lint: true
2223
license-check: true

.taprc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ ts: false
22
jsx: false
33
flow: false
44
check-coverage: false
5+
6+
files:
7+
- test/**/*test.js

package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@
44
"description": "Asynchronous bootstrapping of Node applications",
55
"main": "boot.js",
66
"scripts": {
7-
"test": "standard && tap -J test/*test.js && npm run typescript",
8-
"typescript": "tsc --project ./test/types/tsconfig.json"
7+
"lint": "standard",
8+
"lint:fix": "standard --fix",
9+
"test": "npm run test:unit && npm run test:typescript",
10+
"test:unit": "tap",
11+
"test:typescript": "tsc --project ./test/types/tsconfig.json"
912
},
10-
"precommit": "test",
13+
"precommit": [
14+
"lint",
15+
"test"
16+
],
1117
"repository": {
1218
"type": "git",
1319
"url": "git+https://github.com/fastify/avvio.git"

0 commit comments

Comments
 (0)