blob: b904f82e206ea9fc92f00f4d03819c991c33c913 [file] [log] [blame]
Adrià Vilanova Martíneze877a002021-09-03 22:03:01 +02001.PHONY: serve deploy build_js
Adrià Vilanova Martínezf7ee6582021-09-02 21:53:28 +02002
3WEBPACK := ./node_modules/webpack-cli/bin/cli.js
4
5serve:
6 $(WEBPACK) serve --mode development
Adrià Vilanova Martíneze877a002021-09-03 22:03:01 +02007
8node_deps:
9 npm ci --no-save
10
11clean_deps:
12 rm -rf node_modules
13
14deps: node_deps
15 rm -rf dist
16
17build_js:
18 $(WEBPACK) --mode production
19
20deploy: deps build_js
21 firebase deploy --only hosting:twpt-dashboard