feat: actually link expo and nx

This commit is contained in:
castdrian
2024-01-14 21:24:49 +01:00
parent 8f673cc7f3
commit 9f37eaa006
38 changed files with 5678 additions and 1529 deletions

94
apps/mobile/project.json Normal file
View File

@@ -0,0 +1,94 @@
{
"name": "mobile",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/mobile/src",
"projectType": "application",
"targets": {
"start": {
"executor": "@nx/expo:start",
"dependsOn": ["ensure-symlink", "sync-deps"],
"options": {
"port": 8081
}
},
"serve": {
"executor": "nx:run-commands",
"options": {
"command": "nx start mobile"
}
},
"run-ios": {
"executor": "@nx/expo:run",
"dependsOn": ["ensure-symlink", "sync-deps"],
"options": {
"platform": "ios"
}
},
"run-android": {
"executor": "@nx/expo:run",
"dependsOn": ["ensure-symlink", "sync-deps"],
"options": {
"platform": "android"
}
},
"build": {
"executor": "@nx/expo:build",
"options": {}
},
"submit": {
"executor": "@nx/expo:submit",
"options": {}
},
"build-list": {
"executor": "@nx/expo:build-list",
"options": {}
},
"sync-deps": {
"executor": "@nx/expo:sync-deps",
"options": {}
},
"ensure-symlink": {
"executor": "@nx/expo:ensure-symlink",
"options": {}
},
"prebuild": {
"executor": "@nx/expo:prebuild",
"dependsOn": ["ensure-symlink", "sync-deps"],
"options": {}
},
"install": {
"executor": "@nx/expo:install",
"options": {}
},
"update": {
"executor": "@nx/expo:update",
"options": {}
},
"export": {
"executor": "@nx/expo:export",
"dependsOn": ["ensure-symlink", "sync-deps"],
"options": {
"platform": "all",
"outputDir": "../../dist/apps/mobile"
}
},
"export-web": {
"executor": "@nx/expo:export",
"options": {
"bundler": "metro"
}
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"]
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "apps/mobile/jest.config.ts"
}
}
},
"tags": []
}