-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (44 loc) · 1.06 KB
/
Makefile
File metadata and controls
59 lines (44 loc) · 1.06 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.PHONY: serve build capsync lint test e2e check clean install pwa android ios ios-live android-live
default:
@echo "Call a specific subcommand:"
@echo
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null\
| awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}'\
| sort\
| egrep -v -e '^[^[:alnum:]]' -e '^$@$$'
@echo
@exit 1
install:
npm install
serve:
@echo "Starting server in development mode..."
npx ionic serve --configuration=development
build:
npx ng build
capsync:
npm run capsync
lint:
npm run lint
test:
npm run test
e2e:
npm run e2e
check: test lint
# Deployment targets
pwa:
npx ionic build --prod
android:
npx ionic cap run android --prod
ios:
npx ionic cap run ios --prod
# Live reload development on devices
ios-live:
@echo "Make sure you have Xcode installed!"
npx ionic cap run ios --livereload --external
android-live:
@echo "Make sure you have Android Studio installed!"
npx ionic cap run android --livereload --external
clean:
rm -rf www/
rm -rf .angular/
rm -rf node_modules/