From e69f61bfd5f47593e82af7b6d1e90cbb1be6fa85 Mon Sep 17 00:00:00 2001 From: Zongmin Lei Date: Thu, 5 May 2016 21:55:11 +0800 Subject: [PATCH] fixed coveralls --- .coveralls.yml | 2 ++ package.json | 18 ++++-------------- 2 files changed, 6 insertions(+), 14 deletions(-) create mode 100644 .coveralls.yml diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..9e78350 --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1,2 @@ +service_name: travis-pro +repo_token: 9WQeMOiEjFQQAG2FdKJYZdKuYKLszsjEA diff --git a/package.json b/package.json index 7f65c07..a6d0773 100644 --- a/package.json +++ b/package.json @@ -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",