Skip to content

Commit bea8ff1

Browse files
committed
Improve package.json scripts
* Run lint after tests as often code style is broken intentionally during refactoring * Reduce duplication of mocha watch
1 parent 77780fd commit bea8ff1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@
4545
"sinon-chai": "^2.8.0"
4646
},
4747
"scripts": {
48-
"test": "npm run lint && mocha --reporter spec --slow 400 --timeout 8000",
48+
"test": "npm run mocha && npm run lint",
49+
"mocha": "mocha --reporter spec --slow 400 --timeout 8000",
4950
"lint": "eslint lib/index.js test/test.js bin/suitcss",
50-
"watch": "mocha --watch --reporter spec --slow 400"
51+
"watch": "npm run mocha -- --watch"
5152
},
5253
"keywords": [
5354
"css",

0 commit comments

Comments
 (0)