Skip to content

Commit fef3891

Browse files
author
Ruben Bridgewater
committed
Coverage task and jshintignore file added
1 parent 5cbd5b8 commit fef3891

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.jshintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules/**
2+
coverage/**
3+
**.md
4+
**.log

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ node_js:
1313
- "0.12"
1414
- "4.0"
1515
- "iojs"
16-
after_success: npm run coverage
16+
after_success: npm run coveralls

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010
"license": "MIT",
1111
"main": "./index.js",
1212
"scripts": {
13-
"coverage": "nyc report --reporter=text-lcov | coveralls",
14-
"test": "./node_modules/.bin/jshint *.js **/*.js **/**/*.js --exclude=node_modules/**/* && nyc ./node_modules/.bin/_mocha ./test/*.js ./test/commands/*.js ./test/parser/*.js --timeout=8000",
15-
"jshint": "./node_modules/.bin/jshint *.js **/*.js **/**/*.js --exclude=node_modules/**/*"
13+
"coveralls": "nyc report --reporter=text-lcov | coveralls",
14+
"coverage": "nyc report --reporter=html",
15+
"test": "./node_modules/.bin/jshint * && nyc ./node_modules/.bin/_mocha ./test/*.js ./test/commands/*.js ./test/parser/*.js --timeout=8000",
16+
"jshint": "./node_modules/.bin/jshint *"
1617
},
1718
"devDependencies": {
1819
"async": "^1.3.0",

0 commit comments

Comments
 (0)