Updates the Makefile. It calls npm update before building the project.

This commit is contained in:
George Politis 2015-03-09 17:41:17 +01:00
parent 5322ba086b
commit 2852740e71
1 changed files with 2 additions and 1 deletions

View File

@ -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