From ba6ef126c09e54941ba4a43f3ae631850dee25d3 Mon Sep 17 00:00:00 2001 From: Maxime Thirouin Date: Sat, 12 Mar 2016 07:52:52 +0100 Subject: [PATCH] Internal: add "npm run release" command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit —skip-test is used because of tesling (it does not like to be spawned or something like that)… --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 443be44..5b6f30c 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "coverify": "^1.0.6", "jscs": "^1.6.2", "jshint": "^2.5.6", + "npmpub": "^3.1.0", "serve": "1.4.0", "tape": "^3.0.0", "testling": "^1.6.1" @@ -37,7 +38,8 @@ "test--html": "testling --html > tests/scripts/index.html", "coverage": "browserify -t coverify tests/**/*.js | testling | coverify", "example": "echo '\n==> Open http://localhost:3000/example in your browser.'; serve .", - "prepublish": "npm run standalone" + "prepublish": "npm run standalone", + "release": "npm test && npmpub --skip-test" }, "testling": { "files": "tests/**/*.js",