Updates the Makefile. It calls npm update before building the project.
This commit is contained in:
parent
5322ba086b
commit
2852740e71
3
Makefile
3
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
|
||||
|
|
Loading…
Reference in New Issue