@radhya/mach 2.1.10 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -6
- package/dist/chunk-6OEZPCKM.js +441 -0
- package/dist/{credentials-SVICEIL5.js → credentials-BMX37TIA.js} +1 -1
- package/dist/index.js +170 -124
- package/docs/frameworks/README.md +18 -0
- package/docs/frameworks/expo.md +25 -0
- package/docs/frameworks/react-native.md +27 -0
- package/package.json +1 -1
- package/dist/chunk-6S5J2ITE.js +0 -396
package/README.md
CHANGED
|
@@ -402,6 +402,7 @@ Create a `mach.config.json` in your project root:
|
|
|
402
402
|
{
|
|
403
403
|
"projectId": "your-project-id",
|
|
404
404
|
"framework": "react-native",
|
|
405
|
+
"appDirectory": ".",
|
|
405
406
|
"name": "MyApp",
|
|
406
407
|
"slug": "my-app",
|
|
407
408
|
"nodeVersion": "24",
|
|
@@ -442,12 +443,30 @@ Create a `mach.config.json` in your project root:
|
|
|
442
443
|
|
|
443
444
|
### Root Properties
|
|
444
445
|
|
|
445
|
-
| Property
|
|
446
|
-
|
|
|
447
|
-
| `projectId`
|
|
448
|
-
| `framework`
|
|
449
|
-
| `
|
|
450
|
-
| `
|
|
446
|
+
| Property | Description |
|
|
447
|
+
| -------------- | ------------------------------------------------------------------------------------------------------------------------------- |
|
|
448
|
+
| `projectId` | Auto-generated UUID linking to your Dashboard project |
|
|
449
|
+
| `framework` | Required build framework: `react-native`, `expo`, or `flutter`. Builds never infer this from `package.json` |
|
|
450
|
+
| `appDirectory` | Optional mobile app path relative to the repository root, for example `apps/mobile`. Defaults to `"."` for existing projects. |
|
|
451
|
+
| `name` | App display name |
|
|
452
|
+
| `nodeVersion` | Node.js version to use on the build machine (e.g. `"24"`, `"20.11.0"`). Switches via nvm before installing deps |
|
|
453
|
+
|
|
454
|
+
### Monorepo Layout
|
|
455
|
+
|
|
456
|
+
Keep `mach.config.json`, the package-manager lockfile, and workspace
|
|
457
|
+
configuration at the repository root. Set `appDirectory` only when the Expo or
|
|
458
|
+
bare React Native app lives below that root:
|
|
459
|
+
|
|
460
|
+
```json
|
|
461
|
+
{
|
|
462
|
+
"framework": "react-native",
|
|
463
|
+
"appDirectory": "apps/mobile"
|
|
464
|
+
}
|
|
465
|
+
```
|
|
466
|
+
|
|
467
|
+
Mach uploads and installs from the repository root, then runs Expo, Gradle,
|
|
468
|
+
CocoaPods, and Xcode from `appDirectory`. Root-level projects need no config
|
|
469
|
+
change and continue to use `"."`.
|
|
451
470
|
|
|
452
471
|
### Platform Properties
|
|
453
472
|
|