From 5ba287babef73841f070746f60be36233c3d23cb Mon Sep 17 00:00:00 2001 From: Gunther Brunner Date: Thu, 30 Jul 2015 15:02:08 +0900 Subject: [PATCH] Getting the behaviour we really want from NPM with **in-publish**. * `npm install` now does: `bower install` * `npm publish` now does: `bower install` `gulp build` --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index fad9cbbc..4df83a2c 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,8 @@ "stf": "./bin/stf" }, "scripts": { - "test": "gulp test" + "test": "gulp test", + "prepublish": "bower install && not-in-install && gulp build || in-install" }, "dependencies": { "adbkit": "^2.3.1", @@ -46,6 +47,7 @@ "gm": "^1.17.0", "hipchatter": "^0.2.0", "http-proxy": "^1.9.0", + "in-publish": "^2.0.0", "jade": "^1.9.2", "jws": "^3.1.0", "ldapjs": "git+https://github.com/mcavage/node-ldapjs.git#acc1ca8f4314fd9d67561feabc8ce4c235076a5e",