-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (49 loc) · 1.05 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.PHONY: android
android: web.build
yarn cap run android --target Pixel_3_API_31
.PHONY: android.device
android.device: web.build
DEVICE_ID=$(shell adb devices | awk 'NR==2 {print $$1}');\
yarn cap run android --source-map --target $$DEVICE_ID
.PHONY: android.build
android.build: web.build
echo 'Android Build Not Implemented'
.PHONY: ios
ios: web.build
yarn cap run ios
.PHONY: ios.build
ios.build: web.build
echo 'iOS Build Not Implemented'
.PHONY: desktop
desktop: web.build
cd electron; \
yarn electron .;
.PHONY: desktop.build
desktop.build: web.build
echo 'todo desktop build... @see electron-forge'
.PHONY: web
web:
cd client; \
yarn start;
.PHONY: web.build
web.build:
cd client; \
yarn build;
.PHONY: web.clean.build
web.clean.build: clean web.build
.PHONY: clean
clean:
rm -rf dist
rm -rf client/dist
rm -rf client/.parcel-cache
.PHONY: git.stage-case-changes
git.stage-case-changes:
git rm -r --cached .; \
git add --all .;
.PHONY: install
install:
yarn install; \
cd client; \
yarn install; \
cd ../electron; \
yarn install;