Skip to content

Commit 07cf351

Browse files
committed
Merge pull request webpack#1007 from SimenB/linting
Cleanup npm scripts
2 parents 765a7f1 + 7038d9c commit 07cf351

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

‎.travis.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ language: node_js
33
node_js:
44
- "0.10"
55
- "0.12"
6+
# - "iojs"
67
script: npm run travis
78
env:
89
- NO_WATCH_TESTS=1
10+
11+
before_install:
12+
npm install -g npm
13+
14+
after_success: cat ./coverage/lcov.info | node_modules/.bin/coveralls --verbose && rm -rf ./coverage

‎package.json‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,12 @@
7373
"web_modules/"
7474
],
7575
"scripts": {
76-
"test": "eslint lib && mocha --reporter spec",
77-
"travis": "istanbul cover -x HotModuleReplacementPlugin.js -x JsonpMainTemplatePlugin.js -x NodeMainTemplatePlugin.js ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage",
76+
"pretest": "npm run lint",
77+
"test": "mocha",
78+
"travis": "npm run cover -- --report lcovonly",
7879
"lint": "eslint lib",
79-
"cover": "istanbul cover -x HotModuleReplacementPlugin.js -x JsonpMainTemplatePlugin.js -x NodeMainTemplatePlugin.js node_modules/mocha/bin/_mocha -- -R spec",
80+
"precover": "npm run lint",
81+
"cover": "istanbul cover -x HotModuleReplacementPlugin.js -x JsonpMainTemplatePlugin.js -x NodeMainTemplatePlugin.js _mocha",
8082
"publish-patch": "mocha && npm version patch && git push && git push --tags && npm publish"
8183
}
8284
}

0 commit comments

Comments
 (0)