From e3adafa44e4f33fe963248d2e05be490a2a03664 Mon Sep 17 00:00:00 2001 From: George Politis Date: Tue, 15 Sep 2015 20:24:31 -0500 Subject: [PATCH 1/3] Makes browserify a dev dependency. --- Makefile | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f67b70ecb..e3c7794c9 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -BROWSERIFY = browserify +BROWSERIFY = ./node_modules/.bin/browserify DEPLOY_DIR = libs GLOBAL_FLAGS = -x jquery -e NPM = npm diff --git a/package.json b/package.json index 00a7cfc44..fd6432326 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,8 @@ }, "devDependencies": { "precommit-hook": "3.0.0", - "uglify-js": "2.4.24" + "uglify-js": "2.4.24", + "browserify": "11.1.x" }, "license": "Apache-2.0", "scripts": { From 1bb6e7285528ecdee40b26fad41c496f41d86471 Mon Sep 17 00:00:00 2001 From: George Politis Date: Tue, 15 Sep 2015 20:25:10 -0500 Subject: [PATCH 2/3] Adds jshint as a dev dependency and uses the local installtion. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index fd6432326..5375a5427 100644 --- a/package.json +++ b/package.json @@ -29,12 +29,13 @@ }, "devDependencies": { "precommit-hook": "3.0.0", + "jshint": "2.8.0", "uglify-js": "2.4.24", "browserify": "11.1.x" }, "license": "Apache-2.0", "scripts": { - "lint": "jshint ." + "lint": "./node_modules/.bin/jshint ." }, "pre-commit": ["lint"] } From 5e363b515b3ec3ac11b2515d35779d8af511b6c6 Mon Sep 17 00:00:00 2001 From: George Politis Date: Tue, 15 Sep 2015 20:26:23 -0500 Subject: [PATCH 3/3] Uses uglifyjs from the local installation. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e3c7794c9..c8d0f5168 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ DEPLOY_DIR = libs GLOBAL_FLAGS = -x jquery -e NPM = npm OUTPUT_DIR = . -UGLIFYJS = uglifyjs +UGLIFYJS = ./node_modules/.bin/uglifyjs all: compile deploy clean uglify