浏览代码

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

master
Boris Grozev 10 年前
父节点
当前提交
deaff6af5b
共有 2 个文件被更改,包括 6 次插入2 次删除
  1. 1
    0
      .gitignore
  2. 5
    2
      Makefile

+ 1
- 0
.gitignore 查看文件

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

+ 5
- 2
Makefile 查看文件

18
 	$(NPM) update && $(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
19
 
19
 
20
 clean:
20
 clean:
21
-	@rm -f $(OUTPUT_DIR)/*.bundle.js
21
+	rm -f $(OUTPUT_DIR)/*.bundle.js
22
 
22
 
23
 deploy:
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)

正在加载...
取消
保存