You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324
  1. NPM = npm
  2. BROWSERIFY = browserify
  3. GLOBAL_FLAGS = -x jquery -e
  4. OUTPUT_DIR = .
  5. DEPLOY_DIR = libs
  6. all: compile deploy clean
  7. compile:FLAGS = $(GLOBAL_FLAGS)
  8. compile: app
  9. debug: compile-debug deploy clean
  10. compile-debug:FLAGS = -d $(GLOBAL_FLAGS)
  11. compile-debug: app
  12. app:
  13. $(NPM) update && $(BROWSERIFY) $(FLAGS) app.js -s APP -o $(OUTPUT_DIR)/app.bundle.js
  14. clean:
  15. @rm -f $(OUTPUT_DIR)/*.bundle.js
  16. deploy:
  17. @mkdir -p $(DEPLOY_DIR) && cp $(OUTPUT_DIR)/*.bundle.js $(DEPLOY_DIR) && ./bump-js-versions.sh