Skip to content

Commit

Permalink
#212 Add npm prepublish as part of travis before_script instead of ru…
Browse files Browse the repository at this point in the history
…nning repeatedly with test scripts
  • Loading branch information
addityasingh committed Jan 20, 2017
1 parent b7dea58 commit ee41d2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ cache:

before_script:
- npm run lint
- npm run prepublish

script:
- npm run test
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"main": "index.js",
"scripts": {
"prepublish": "rm -rf lib/ && babel src/ --out-dir lib/",
"system-test": "npm run prepublish && mocha --compilers js:babel-register \"system-test/**/*Test.js\"",
"system-test": "mocha --compilers js:babel-register \"system-test/**/*Test.js\"",
"check-coverage": "npm run cover && nyc check-coverage --statements 80 --branches 80 --functions 80",
"report-coverage": "nyc report --reporter=lcov",
"cover": "nyc npm t",
"codecov": "cat coverage/*/lcov.info | codecov",
"lint": "eslint src/ test/ bin/ *.js",
"test": "npm run prepublish && mocha --compilers js:babel-register \"test/**/*Test.js\"",
"test": "mocha --compilers js:babel-register \"test/**/*Test.js\"",
"watch": "mocha --watch --compilers js:babel-register \"test/transform/**/*Test.js\"",
"travis": "npm run lint && npm run test"
},
Expand Down

0 comments on commit ee41d2a

Please sign in to comment.