build命令

This commit is contained in:
Zongmin Lei
2015-12-01 21:54:20 +08:00
parent 4ff066f0f6
commit 9da6aa00a8
3 changed files with 4 additions and 5 deletions

View File

View File

@@ -1,4 +0,0 @@
#!/usr/bin/env bash
./node_modules/mocha/bin/mocha --require blanket -R html-cov > coverage.html -t 5000
./node_modules/mocha/bin/mocha -t 5000

View File

@@ -34,7 +34,10 @@
"blanket": { "blanket": {
"pattern": "xss/lib" "pattern": "xss/lib"
}, },
"test": "./node_modules/mocha/bin/mocha -t 5000" "test": "./node_modules/mocha/bin/mocha -t 5000",
"blanket": "./node_modules/mocha/bin/mocha --require blanket -R html-cov > coverage.html -t 5000",
"build": "./bin/build",
"prepublish": "npm run test && npm run build"
}, },
"licenses": [ "licenses": [
{ {