選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

Makefile 453B

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