feat: configure EAS Build and add mobile scripts

This commit is contained in:
Antoni Nuñez Romeu
2026-07-06 11:25:20 +02:00
parent c02abe077a
commit b4c572ce17
3 changed files with 54 additions and 20 deletions
+20 -19
View File
@@ -1,22 +1,17 @@
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
# dependencies
node_modules/
# Expo
.expo/
dist/
web-build/
expo-env.d.ts
# Native
.kotlin/
*.orig.*
ios/
android/
*.jks
*.p8
*.p12
*.key
*.mobileprovision
*.orig.*
# Metro
.metro-health-check*
@@ -26,16 +21,22 @@ npm-debug.*
yarn-debug.*
yarn-error.*
# macOS
# env files
.env
.env.local
.env.production
# EAS
eas-cli.json
# Dependencies
node_modules/
# OS
.DS_Store
*.pem
Thumbs.db
# local env files
.env*.local
# typescript
*.tsbuildinfo
# generated native folders
/ios
/android
# Build artifacts
*.apk
*.aab
*.ipa
+27
View File
@@ -0,0 +1,27 @@
{
"cli": {
"version": ">= 12.0.0"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal"
},
"production": {}
},
"submit": {
"production": {
"ios": {
"appleId": "",
"ascAppId": "",
"appleTeamId": ""
},
"android": {
"serviceAccountKeyPath": "./google-service-account.json"
}
}
}
}
+7 -1
View File
@@ -7,11 +7,17 @@
"dev": "npm-run-all --parallel dev:backend dev:frontend",
"dev:backend": "npm run dev --prefix backend",
"dev:frontend": "npm run dev --prefix frontend",
"dev:mobile": "cd frontend-mobile && npx expo start",
"dev:mobile:android": "cd frontend-mobile && npx expo start --android",
"dev:mobile:ios": "cd frontend-mobile && npx expo start --ios",
"start": "npm-run-all --parallel start:backend start:frontend",
"start:backend": "npm start --prefix backend",
"start:frontend": "npm run preview --prefix frontend",
"install:all": "npm install && npm install --prefix backend && npm install --prefix frontend",
"install:all": "npm install && npm install --prefix backend && npm install --prefix frontend && npm install --prefix frontend-mobile",
"build:web": "npm run build --prefix frontend",
"build:mobile": "cd frontend-mobile && eas build",
"submit:android": "cd frontend-mobile && eas submit --platform android",
"submit:ios": "cd frontend-mobile && eas submit --platform ios",
"cap:sync": "npm run build:web && cap sync",
"cap:copy": "npm run build:web && cap copy",
"cap:open:android": "cap open android",