Sfoglia il codice sorgente

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

j8
George Politis 10 anni fa
parent
commit
2852740e71
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2
    1
      Makefile

+ 2
- 1
Makefile Vedi File

@@ -1,3 +1,4 @@
1
+NPM = npm
1 2
 BROWSERIFY = browserify
2 3
 GLOBAL_FLAGS = -x jquery -e
3 4
 OUTPUT_DIR = .
@@ -14,7 +15,7 @@ compile-debug:FLAGS = -d $(GLOBAL_FLAGS)
14 15
 compile-debug: app
15 16
 
16 17
 app:
17
-	$(BROWSERIFY) $(FLAGS) app.js -s APP -o $(OUTPUT_DIR)/app.bundle.js
18
+	$(NPM) update && $(BROWSERIFY) $(FLAGS) app.js -s APP -o $(OUTPUT_DIR)/app.bundle.js
18 19
 
19 20
 clean:
20 21
 	@rm -f $(OUTPUT_DIR)/*.bundle.js

Loading…
Annulla
Salva