diff --git a/build b/bin/build similarity index 100% rename from build rename to bin/build diff --git a/full_test b/full_test deleted file mode 100755 index 9ea505a..0000000 --- a/full_test +++ /dev/null @@ -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 diff --git a/package.json b/package.json index 2cb2206..7e8cd61 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,10 @@ "blanket": { "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": [ {