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:
Ullrich Schäfer 2026-04-14 23:44:06 +02:00
parent bdde95e69b
commit b2514f48be
No known key found for this signature in database
GPG key ID: A32FF691A0F752D9
6 changed files with 310 additions and 171 deletions

View file

@ -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",