Permalink
Browse files

fixed coveralls

  • Loading branch information...
1 parent 7acdccd commit e69f61bfd5f47593e82af7b6d1e90cbb1be6fa85 @leizongmin committed May 5, 2016
Showing with 6 additions and 14 deletions.
  1. +2 −0 .coveralls.yml
  2. +4 −14 package.json
View
@@ -0,0 +1,2 @@
+service_name: travis-pro
+repo_token: 9WQeMOiEjFQQAG2FdKJYZdKuYKLszsjEA
View
@@ -22,32 +22,22 @@
"cssfilter": "0.0.7"
},
"devDependencies": {
- "blanket": "^1.2.1",
"browserify": "^12.0.1",
+ "coveralls": "^2.11.9",
"debug": "^2.2.0",
+ "istanbul": "^0.4.3",
"mocha": "^2.3.4",
"uglify-js": "^2.6.1"
},
"bin": {
"xss": "./bin/xss"
},
"scripts": {
- "coverage": "./node_modules/mocha/bin/mocha --require blanket -R html-cov > coverage.html -t 5000 && open coverage.html",
- "test": "export DEBUG=xss:* && ./node_modules/mocha/bin/mocha -t 5000",
+ "test": "export DEBUG=xss:* && mocha -t 5000",
+ "test-cov": "export DEBUG=xss:* && istanbul cover _mocha --report lcovonly -- -t 5000 -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
"build": "./bin/build",
"prepublish": "npm run test && npm run build"
},
- "config": {
- "blanket": {
- "pattern": [
- ""
- ],
- "data-cover-never": [
- "node_modules",
- "test"
- ]
- }
- },
"licenses": [
{
"type": "MIT",

0 comments on commit e69f61b

Please sign in to comment.