-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (42 loc) · 920 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
.DEFAULT_GOAL := start
PROJECT_NAME = $(shell node -p "require('./package.json').name")
# ---- Command ---- #
.PHONY : start ios web npm pod clean fclean re test
start:
npm start
ios:
npm run ios
ios-cc:
npm run ios -- reset-cache
web:
npm run start-react
web-cc:
npm run start-react --reset-cache
web-build:
npm run build
web-analyze:
npm run analyze
npm:
sudo npm install
pod:
cd ios && pod install --repo-update
repod:
cd ios && pod deintegrate && pod cache clean --all && pod install
ios-open:
open ios/$(PROJECT_NAME).xcworkspace
asset:
npx react-native-asset
cc:
npx react-native start --reset-cache
clean-web:
sudo rm -rf node_modules && rm -rf dist
clean-ios:
sudo rm -rf ./ios/Pods
sudo rm -rf ./ios/Podfile.lock
sudo rm -rf ./ios/build
clean-android:
cd android && ./gradlew clean
fclean-ios: clean-ios
sudo rm -rf node_modules
re: fclean all
re-web: clean-web npm web