Add make target to deploy to Firebase
The configuration file has been split into 2: one for development mode
and another one for production mode.
Change-Id: I12917cd79c95642adc30004be5bc1a927bca389b
diff --git a/frontend/Makefile b/frontend/Makefile
index fc3d69e..b904f82 100644
--- a/frontend/Makefile
+++ b/frontend/Makefile
@@ -1,6 +1,21 @@
-.PHONY: serve
+.PHONY: serve deploy build_js
WEBPACK := ./node_modules/webpack-cli/bin/cli.js
serve:
$(WEBPACK) serve --mode development
+
+node_deps:
+ npm ci --no-save
+
+clean_deps:
+ rm -rf node_modules
+
+deps: node_deps
+ rm -rf dist
+
+build_js:
+ $(WEBPACK) --mode production
+
+deploy: deps build_js
+ firebase deploy --only hosting:twpt-dashboard