forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathlocalCommands.js
More file actions
45 lines (40 loc) · 1.12 KB
/
localCommands.js
File metadata and controls
45 lines (40 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
const {
createBuild,
createLog,
createRun,
getRunOptions,
getLogOptions,
getBuildOptions,
} = require('@react-native-community/cli-platform-apple');
const platformName = 'visionos';
const run = {
name: 'run-visionos',
description: 'builds your app and starts it on visionOS simulator',
func: createRun({platformName}),
examples: [
{
desc: 'Run on a specific simulator',
cmd: 'npx @callstack/react-native-visionos run-visionos --simulator "Apple Vision Pro"',
},
],
options: getRunOptions({platformName}),
};
const log = {
name: 'log-visionos',
description: 'starts visionOS device syslog tail',
func: createLog({platformName: 'visionos'}),
options: getLogOptions({platformName}),
};
const build = {
name: 'build-visionos',
description: 'builds your app for visionOS platform',
func: createBuild({platformName}),
examples: [
{
desc: 'Build the app for all visionOS devices in Release mode',
cmd: 'npx @callstack/react-native-visionos build-visionos --mode "Release"',
},
],
options: getBuildOptions({platformName}),
};
module.exports = [run, log, build];