Skip to content

Commit a0bf388

Browse files
authored
use .taprc and improve npm scripts (#115)
1 parent 6376362 commit a0bf388

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.taprc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
files:
2+
- test/**/*.test.js

package.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@
66
"types": "plugin.d.ts",
77
"scripts": {
88
"lint": "standard --verbose | snazzy",
9-
"lint:ci": "standard",
10-
"test": "npm run unit && npm run test:types",
11-
"test:types": "tsd",
12-
"unit": "tap -J \"test/*.test.js\"",
13-
"unit:report": "npm run unit -- --coverage-report=html",
14-
"unit:verbose": "npm run unit -- -Rspec"
9+
"test": "npm run test:unit && npm run test:typescript",
10+
"test:typescript": "tsd",
11+
"test:unit": "tap",
12+
"test:unit:report": "npm run test:unit -- --coverage-report=html",
13+
"test:unit:verbose": "npm run test:unit -- -Rspec"
1514
},
1615
"precommit": [
1716
"lint",
@@ -51,5 +50,9 @@
5150
},
5251
"publishConfig": {
5352
"access": "public"
54-
}
53+
},
54+
"pre-commit": [
55+
"lint",
56+
"test"
57+
]
5558
}

0 commit comments

Comments
 (0)