Procházet zdrojové kódy

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

j8
George Politis před 10 roky
rodič
revize
2852740e71
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2
    1
      Makefile

+ 2
- 1
Makefile Zobrazit soubor

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

Načítá se…
Zrušit
Uložit