-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevbox.json
More file actions
111 lines (111 loc) · 3.6 KB
/
devbox.json
File metadata and controls
111 lines (111 loc) · 3.6 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"include": ["github:segment-integrations/mobile-devtools?dir=plugins/react-native&ref=main"],
"packages": [
"nodejs@20",
"watchman@latest",
"jdk17@latest",
"gradle@latest"
],
"env": {
"IOS_APP_SCHEME": "ReactNativeExample",
"IOS_APP_ARTIFACT": "${IOS_DERIVED_DATA_PATH}/Build/Products/${IOS_BUILD_CONFIG}-iphonesimulator/${IOS_APP_SCHEME}.app",
"IOS_APP_BUNDLE_ID": "org.reactjs.native.example.ReactNativeExample",
"ANDROID_APP_ID": "com.reactnativeexample",
"ANDROID_APP_APK": "android/app/build/outputs/apk/debug/app-debug.apk",
"ANDROID_MAX_API": "35",
"ANDROID_SDK_REQUIRED": "0"
},
"shell": {
"scripts": {
"install": [
"npm install"
],
"build:node": [
"npm install"
],
"build:android": [
"devbox run install",
"cd android && ./gradlew assembleDebug"
],
"build:android:release": [
"devbox run install",
"cd android && ./gradlew assembleRelease"
],
"build:ios": [
"devbox run install",
"cd ios && pod install --repo-update",
"ios.sh xcodebuild -workspace ReactNativeExample.xcworkspace -scheme ReactNativeExample -configuration Debug -destination 'generic/platform=iOS Simulator' build"
],
"build:ios:release": [
"devbox run install",
"cd ios && pod install --repo-update",
"ios.sh xcodebuild -workspace ReactNativeExample.xcworkspace -scheme ReactNativeExample -configuration Release build"
],
"build:web": [
"devbox run install",
"node -e \"const path = 'web/build'; require('fs').mkdirSync(path, { recursive: true });\""
],
"build": [
"devbox run build:android",
"devbox run build:ios",
"devbox run build:web"
],
"build:debug": [
"devbox run build:android",
"devbox run build:ios"
],
"build:release": [
"devbox run build:android:release",
"devbox run build:ios:release"
],
"start:android": [
"process-compose -f tests/dev-android.yaml --tui=${DEVBOX_TUI:-false}"
],
"start:android:release": [
"ANDROID_BUILD_CONFIG=Release process-compose -f tests/dev-android.yaml --tui=${DEVBOX_TUI:-false}"
],
"start:ios": [
"process-compose -f tests/dev-ios.yaml --tui=${DEVBOX_TUI:-false}"
],
"start:ios:release": [
"IOS_BUILD_CONFIG=Release process-compose -f tests/dev-ios.yaml --tui=${DEVBOX_TUI:-false}"
],
"start:web": [
"process-compose -f tests/dev-web.yaml --tui=${DEVBOX_TUI:-false}"
],
"start:metro": [
"metro.sh start ${1:-default}"
],
"stop:metro": [
"metro.sh stop ${1:-default}"
],
"start:sim": [
"ios.sh simulator start ${1:-${IOS_DEFAULT_DEVICE:-max}}"
],
"stop:sim": [
"ios.sh simulator stop"
],
"start:emu": [
"android.sh emulator start ${1:-${ANDROID_DEFAULT_DEVICE:-max}}"
],
"stop:emu": [
"android.sh emulator stop"
],
"test": [
"npm test"
],
"test:e2e:android": [
"process-compose -f tests/test-suite-android-e2e.yaml --no-server --tui=${TEST_TUI:-false}"
],
"test:e2e:ios": [
"process-compose -f tests/test-suite-ios-e2e.yaml --no-server --tui=${TEST_TUI:-false}"
],
"test:e2e:web": [
"process-compose -f tests/test-suite-web-e2e.yaml --no-server --tui=${TEST_TUI:-false}"
],
"test:e2e:all": [
"process-compose -f tests/test-suite-all-e2e.yaml --no-server --tui=${TEST_TUI:-false}"
]
}
}
}