diff --git a/.gitignore b/.gitignore index 92772c563..c0dc2e1c2 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ node_modules .idea/ *.iml .*.tmp +deploy-local.sh diff --git a/Makefile b/Makefile index e37134814..1dca402b0 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,10 @@ app: $(NPM) update && $(BROWSERIFY) $(FLAGS) app.js -s APP -o $(OUTPUT_DIR)/app.bundle.js clean: - @rm -f $(OUTPUT_DIR)/*.bundle.js + rm -f $(OUTPUT_DIR)/*.bundle.js 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)