ソースを参照

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)

読み込み中…
キャンセル
保存