Skip to content

Commit 7dec42b

Browse files
committed
Add support for JSHint and JSCS
1 parent d67684e commit 7dec42b

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
"README.md"
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",
16+
"coverage": "npm test && open ./coverage/lcov-report/index.html",
1317
"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"
18+
"coveralls": "cat ./coverage/lcov.info | coveralls",
19+
"preversion": "npm run test"
1620
},
1721
"engines": {
1822
"node": ">=0.10"
@@ -48,6 +52,8 @@
4852
"event-stream": "^3.3.2",
4953
"gulp": "^3.9.1",
5054
"istanbul": "^0.4.2",
55+
"jscs": "^2.9.0",
56+
"jshint": "^2.9.1",
5157
"mocha": "^2.4.5",
5258
"rimraf": "^2.5.1",
5359
"sinon": "^1.17.3",

0 commit comments

Comments
 (0)