Skip to content

Commit

Permalink
Split coverage to two scripts: coverge & coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
piecioshka committed May 17, 2019
1 parent 4650045 commit 0ddaa76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ node_js:
- "9"
- "8"
after_script:
- npm run coverage
- npm run coveralls
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"clear:all": "rm -rf node_modules/ && npm run clear",
"test": "npm run test:unit",
"test:unit": "jasmine JASMINE_CONFIG_PATH=test/unit/jasmine.json",
"coverage": "nyc npm run test && nyc report --reporter=text-lcov | coveralls -v",
"coverage": "nyc npm run test && nyc report --reporter=html",
"coveralls": "nyc npm run test && nyc report --reporter=text-lcov | coveralls -v",
"count": "find . -name '*.js' -not -path './node_modules/*' -not -path './coverage/*' | xargs wc -l | sort -r",
"lint": "eslint src/ demo/",
"deploy": "gh-pages -d ."
Expand Down

0 comments on commit 0ddaa76

Please sign in to comment.