Skip to content

Commit 8032aab

Browse files
committed
Add support for jshint and jscs
1 parent 7846b3d commit 8032aab

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@
99
"LICENSE.txt"
1010
],
1111
"scripts": {
12-
"test": "mocha",
12+
"test": "npm run jshint && npm run jscs && npm run mocha",
13+
"jshint": "jshint . --exclude-path .gitignore",
14+
"jscs": "jscs .",
15+
"mocha": "istanbul cover _mocha",
1316
"clean": "rm -rf ./node_modules ./coverage",
14-
"coverage": "istanbul cover _mocha && open ./coverage/lcov-report/index.html",
15-
"coveralls": "istanbul cover _mocha && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"
17+
"coverage": "npm test && open ./coverage/lcov-report/index.html",
18+
"coveralls": "cat ./coverage/lcov.info | coveralls",
19+
"preversion": "npm run test:all"
1620
},
1721
"engines": {
1822
"node": ">=0.10"
@@ -49,6 +53,8 @@
4953
"coveralls": "^2.11.6",
5054
"file-loader": "^0.8.5",
5155
"istanbul": "^0.4.2",
56+
"jscs": "^2.9.0",
57+
"jshint": "^2.9.1",
5258
"mocha": "^2.4.5",
5359
"rimraf": "^2.5.1",
5460
"webpack": "^1.12.13"

0 commit comments

Comments
 (0)