-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (29 loc) · 697 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
KARMA=node_modules/.bin/karma
NCU=node_modules/.bin/ncu
WEBPACK=node_modules/.bin/webpack
WEBPACK_DEV_SERVER=node_modules/.bin/webpack-dev-server
.PHONY: build
build: node_modules
$(WEBPACK) -p
rm dist/styles.*.js
.PHONY: test
test: node_modules
$(KARMA) start --browsers ChromeHeadless,FirefoxHeadless --single-run
.PHONY: watch
watch: node_modules
DEVELOPMENT=true $(WEBPACK_DEV_SERVER) -d --host 0.0.0.0
.PHONY: watch-test
watch-test: node_modules
$(KARMA) start
.PHONY: clean
clean:
rm --recursive --force dist junit
.PHONY: clean-deps
clean-deps:
rm --recursive --force node_modules
.PHONY: upgrade
upgrade:
$(NCU) --upgrade
node_modules: package.json
npm install
touch $@