Add local build scripts via Expo CNG/prebuild
- prebuild: generate native ios/ and android/ projects - prebuild:clean: regenerate from scratch - run:ios / run:android: build and run locally with Xcode/Gradle - Add ios/ and android/ to .gitignore (CNG-generated) Allows building locally without EAS credits: pnpm --filter @trails-cool/mobile prebuild pnpm --filter @trails-cool/mobile run:ios Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
bdde95e69b
commit
b2514f48be
6 changed files with 310 additions and 171 deletions
4
apps/mobile/.gitignore
vendored
4
apps/mobile/.gitignore
vendored
|
|
@ -9,6 +9,10 @@ dist/
|
|||
web-build/
|
||||
expo-env.d.ts
|
||||
|
||||
# CNG (Continuous Native Generation)
|
||||
ios/
|
||||
android/
|
||||
|
||||
# Native
|
||||
.kotlin/
|
||||
*.orig.*
|
||||
|
|
|
|||
|
|
@ -44,7 +44,6 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
|
|||
project: "mobile",
|
||||
}],
|
||||
"expo-sqlite",
|
||||
"react-native-reanimated",
|
||||
],
|
||||
extra: {
|
||||
eas: {
|
||||
|
|
|
|||
|
|
@ -11,15 +11,16 @@
|
|||
}
|
||||
},
|
||||
"scripts": {
|
||||
"start": "expo start",
|
||||
"android": "expo start --android",
|
||||
"ios": "expo start --ios",
|
||||
"web": "expo start --web",
|
||||
"start": "expo start --dev-client",
|
||||
"prebuild": "expo prebuild",
|
||||
"prebuild:clean": "expo prebuild --clean",
|
||||
"ios": "expo run:ios",
|
||||
"android": "expo run:android",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"test": "jest",
|
||||
"lint": "eslint .",
|
||||
"build:dev": "npx eas-cli build:dev --platform ios",
|
||||
"build:preview": "npx eas-cli build --profile preview --platform all"
|
||||
"eas:dev": "npx eas-cli build:dev --platform ios",
|
||||
"eas:preview": "npx eas-cli build --profile preview --platform all"
|
||||
},
|
||||
"jest": {
|
||||
"preset": "jest-expo",
|
||||
|
|
@ -28,6 +29,7 @@
|
|||
]
|
||||
},
|
||||
"dependencies": {
|
||||
"@expo/metro-runtime": "^55.0.9",
|
||||
"@gorhom/bottom-sheet": "^5.2.9",
|
||||
"@maplibre/maplibre-react-native": "^10.4.2",
|
||||
"@sentry/cli": "^3.3.5",
|
||||
|
|
@ -37,17 +39,24 @@
|
|||
"@trails-cool/i18n": "workspace:*",
|
||||
"@trails-cool/map-core": "workspace:*",
|
||||
"@trails-cool/types": "workspace:*",
|
||||
"expo": "~55.0.14",
|
||||
"expo-constants": "~55.0.13",
|
||||
"expo": "~55.0.15",
|
||||
"expo-constants": "~55.0.14",
|
||||
"expo-crypto": "~55.0.14",
|
||||
"expo-dev-client": "~55.0.27",
|
||||
"expo-linking": "~55.0.12",
|
||||
"expo-dev-menu": "^55.0.23",
|
||||
"expo-device": "~55.0.15",
|
||||
"expo-file-system": "~55.0.16",
|
||||
"expo-linking": "~55.0.13",
|
||||
"expo-localization": "~55.0.13",
|
||||
"expo-location": "~55.1.8",
|
||||
"expo-notifications": "~55.0.18",
|
||||
"expo-navigation-bar": "~55.0.12",
|
||||
"expo-notifications": "~55.0.19",
|
||||
"expo-router": "~55.0.12",
|
||||
"expo-secure-store": "~55.0.13",
|
||||
"expo-splash-screen": "~55.0.18",
|
||||
"expo-sqlite": "~55.0.15",
|
||||
"expo-status-bar": "~55.0.5",
|
||||
"expo-system-ui": "^55.0.15",
|
||||
"expo-web-browser": "~55.0.14",
|
||||
"react": "catalog:",
|
||||
"react-native": "0.83.4",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue