fixed coveralls

This commit is contained in:
Zongmin Lei
2016-05-05 21:55:11 +08:00
parent 7acdccd303
commit e69f61bfd5
2 changed files with 6 additions and 14 deletions

2
.coveralls.yml Normal file
View File

@@ -0,0 +1,2 @@
service_name: travis-pro
repo_token: 9WQeMOiEjFQQAG2FdKJYZdKuYKLszsjEA

View File

@@ -22,9 +22,10 @@
"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"
},
@@ -32,22 +33,11 @@
"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",