Skip to content

Commit b3acd74

Browse files
docs: setup documentation with Rspress (#208)
* docs: init * add confguration, getting started and remote cache * update getting-started * add intro * show name instead of logo for now * update PackageManagerTabs and fix workspace * small tweaks * use proper arrow * add docs for commands * update cli and configuration * use PackageManagerTabs * fix image * deploy config * fix: update package managers * fix: update package manager in root too * fix: build command * fix: add `outDir` * feat: add analytics * update docs * set pnpm version in action --------- Co-authored-by: szymonrybczak <[email protected]>
1 parent eaad9b0 commit b3acd74

37 files changed

+4246
-241
lines changed

.github/actions/setup-node/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ runs:
66
steps:
77
- uses: pnpm/action-setup@v4
88
with:
9-
version: 10.2.1+sha256.f988f0d93b87e1da2d8cdf6ac7f45a01c6f843ae3606b4ca0f2ffd713b85f975
9+
version: 10.2.1
1010

1111
# Cache node_modules
1212
- uses: actions/setup-node@v4

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@
5959
"nx": {
6060
"includedScripts": []
6161
},
62-
"packageManager": "[email protected]+sha256.f988f0d93b87e1da2d8cdf6ac7f45a01c6f843ae3606b4ca0f2ffd713b85f975"
62+
"packageManager": "[email protected]"
6363
}

packages/platform-apple-helpers/src/lib/commands/build/buildOptions.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ export type BuildFlags = {
1010
extraParams?: string[];
1111
exportExtraParams?: string[];
1212
exportOptionsPlist?: string;
13-
device?: string;
14-
catalyst?: boolean;
1513
buildFolder?: string;
1614
destination?: string;
1715
destinations?: string[];
@@ -58,15 +56,6 @@ export const getBuildOptions = ({ platformName }: BuilderCommand) => {
5856
name: '--export-options-plist <string>',
5957
description: 'Name of the export options file for archiving. Defaults to: ExportOptions.plist',
6058
},
61-
{
62-
name: '--device <string>',
63-
description:
64-
'Explicitly set the device or simulator to use by name or by UDID.',
65-
},
66-
{
67-
name: '--catalyst',
68-
description: 'Run on Mac Catalyst.',
69-
},
7059
{
7160
name: '--build-folder <string>',
7261
description: `Location for ${readableName} build artifacts. Corresponds to Xcode's "-derivedDataPath".`,

packages/platform-apple-helpers/src/lib/commands/build/buildProject.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export const buildProject = async ({
106106
}
107107
}
108108

109-
if (args.device) {
109+
if ('device' in args && args.device) {
110110
// Check if the device argument looks like a UDID (assuming UDIDs are alphanumeric and have specific length)
111111
const isUDID = /^[A-Fa-f0-9-]{25,}$/.test(args.device);
112112
if (isUDID) {
@@ -117,7 +117,7 @@ export const buildProject = async ({
117117
}
118118
}
119119

120-
if (args.catalyst) {
120+
if ('catalyst' in args && args.catalyst) {
121121
return ['platform=macOS,variant=Mac Catalyst'];
122122
}
123123

packages/platform-apple-helpers/src/lib/commands/run/runOptions.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ export interface RunFlags extends BuildFlags {
66
binaryPath?: string;
77
port: string;
88
remoteCache?: boolean;
9+
device?: string;
10+
catalyst?: boolean;
911
}
1012

1113
export const getRunOptions = ({ platformName }: BuilderCommand) => {
@@ -23,6 +25,15 @@ export const getRunOptions = ({ platformName }: BuilderCommand) => {
2325
name: '--no-remote-cache',
2426
description: 'Do not use remote build caching.',
2527
},
28+
{
29+
name: '--device <string>',
30+
description:
31+
'Explicitly set the device or simulator to use by name or by UDID.',
32+
},
33+
{
34+
name: '--catalyst',
35+
description: 'Run on Mac Catalyst.',
36+
},
2637
...getBuildOptions({ platformName }),
2738
];
2839
};

0 commit comments

Comments
 (0)