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

This commit is contained in:
Boris Grozev 2015-08-03 13:16:00 -05:00
parent 6ca1e131af
commit deaff6af5b
2 changed files with 6 additions and 2 deletions

1
.gitignore vendored
View File

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

View File

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