Adrià Vilanova Martínez | e877a00 | 2021-09-03 22:03:01 +0200 | [diff] [blame] | 1 | .PHONY: serve deploy build_js |
Adrià Vilanova Martínez | f7ee658 | 2021-09-02 21:53:28 +0200 | [diff] [blame] | 2 | |
| 3 | WEBPACK := ./node_modules/webpack-cli/bin/cli.js |
| 4 | |
| 5 | serve: |
| 6 | $(WEBPACK) serve --mode development |
Adrià Vilanova Martínez | e877a00 | 2021-09-03 22:03:01 +0200 | [diff] [blame] | 7 | |
| 8 | node_deps: |
| 9 | npm ci --no-save |
| 10 | |
| 11 | clean_deps: |
| 12 | rm -rf node_modules |
| 13 | |
| 14 | deps: node_deps |
| 15 | rm -rf dist |
| 16 | |
| 17 | build_js: |
| 18 | $(WEBPACK) --mode production |
| 19 | |
| 20 | deploy: deps build_js |
| 21 | firebase deploy --only hosting:twpt-dashboard |