forked from ActivityWatch/aw-webui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (28 loc) · 662 Bytes
/
Makefile
File metadata and controls
39 lines (28 loc) · 662 Bytes
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
38
39
.PHONY: install build dev test clean
.FORCE: ;
# This is to disable check for new release in aw-webui for aw-android
ifdef ON_ANDROID
# The following flag will pass --android as a command line argument to vue-cli-service
# https://docs.npmjs.com/cli/run-script
androidflag := -- --os=android
else
androidflag :=
endif
build: install
npm run build ${androidflag}
install:
npm ci
uninstall:
rm -r node_modules/
dev:
npm run serve ${androidflag}
test:
npm test
test-e2e:
testcafe firefox test/e2e/
clean:
rm -rf node_modules dist
lint:
npx eslint --ext=js,ts,vue --max-warnings=0 src/ test/
lint-fix:
npx eslint --ext=js,ts,vue --fix src/ test/