Skip to content

Commit

Permalink
setup code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed Feb 2, 2016
1 parent b59cb04 commit e2dc68b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: node_js
sudo: false
script: "npm run travis"
node_js:
- "0.12"
- "node"
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
"main": "./lib/index",
"scripts": {
"test": "jscs . && mocha --reporter dot",
"coverage": "istanbul cover _mocha -- -R dot",
"coveralls": "istanbul cover _mocha --report lcovonly -- -R dot && cat ./coverage/lcov.info | coveralls",
"travis": "npm run test && npm run coveralls",
"browserify": "browserify --standalone csso lib/index.js | uglifyjs --compress --mangle -o dist/csso-browser.js",
"gh-pages": "git clone -b gh-pages https://github.com/css/csso.git .gh-pages && npm run browserify && cp dist/csso-browser.js .gh-pages/ && cd .gh-pages && git commit -am \"update\" && git push && cd .. && rm -rf .gh-pages",
"prepublish": "npm run browserify"
Expand All @@ -31,6 +34,8 @@
},
"devDependencies": {
"browserify": "^13.0.0",
"coveralls": "^2.11.6",
"istanbul": "^0.4.2",
"jscs": "~2.9.0",
"mocha": "~2.4.2",
"uglify-js": "^2.6.1"
Expand Down

0 comments on commit e2dc68b

Please sign in to comment.