瀏覽代碼

Executes a local (git-ignored) script on "make deploy".

j8
Boris Grozev 10 年之前
父節點
當前提交
deaff6af5b
共有 2 個文件被更改,包括 6 次插入2 次删除
  1. 1
    0
      .gitignore
  2. 5
    2
      Makefile

+ 1
- 0
.gitignore 查看文件

@@ -3,3 +3,4 @@ node_modules
3 3
 .idea/
4 4
 *.iml
5 5
 .*.tmp
6
+deploy-local.sh

+ 5
- 2
Makefile 查看文件

@@ -18,7 +18,10 @@ app:
18 18
 	$(NPM) update && $(BROWSERIFY) $(FLAGS) app.js -s APP -o $(OUTPUT_DIR)/app.bundle.js
19 19
 
20 20
 clean:
21
-	@rm -f $(OUTPUT_DIR)/*.bundle.js
21
+	rm -f $(OUTPUT_DIR)/*.bundle.js
22 22
 
23 23
 deploy:
24
-	@mkdir -p $(DEPLOY_DIR) && cp $(OUTPUT_DIR)/*.bundle.js $(DEPLOY_DIR) && ./bump-js-versions.sh
24
+	mkdir -p $(DEPLOY_DIR) && \
25
+	cp $(OUTPUT_DIR)/*.bundle.js $(DEPLOY_DIR) && \
26
+	./bump-js-versions.sh && \
27
+	([ ! -x deploy-local.sh ] || ./deploy-local.sh)

Loading…
取消
儲存