From 2852740e7123e838c006bdb47398e9aec37b117e Mon Sep 17 00:00:00 2001 From: George Politis Date: Mon, 9 Mar 2015 17:41:17 +0100 Subject: [PATCH] Updates the Makefile. It calls npm update before building the project. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 796f4d4c3..6dfb69f72 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ +NPM = npm BROWSERIFY = browserify GLOBAL_FLAGS = -x jquery -e OUTPUT_DIR = . @@ -14,7 +15,7 @@ compile-debug:FLAGS = -d $(GLOBAL_FLAGS) compile-debug: app app: - $(BROWSERIFY) $(FLAGS) app.js -s APP -o $(OUTPUT_DIR)/app.bundle.js + $(NPM) update && $(BROWSERIFY) $(FLAGS) app.js -s APP -o $(OUTPUT_DIR)/app.bundle.js clean: @rm -f $(OUTPUT_DIR)/*.bundle.js