forked from microsoft/react-native-macos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Implement local-cli using '@react-native-community/cli-platform…
…-apple'
- Loading branch information
Showing
4 changed files
with
100 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
const { | ||
createBuild, | ||
createLog, | ||
createRun, | ||
getRunOptions, | ||
getLogOptions, | ||
getBuildOptions, | ||
} = require('@react-native-community/cli-platform-apple'); | ||
|
||
const platformName = 'macos'; | ||
|
||
const run = { | ||
name: 'run-macos', | ||
description: 'builds your app and starts it on visionOS simulator', | ||
func: createRun({platformName}), | ||
examples: [ | ||
{ | ||
desc: 'Run on a specific simulator', | ||
cmd: 'npx react-native-macos run-macos', | ||
}, | ||
], | ||
options: getRunOptions({platformName}), | ||
}; | ||
|
||
const log = { | ||
name: 'log-macos', | ||
description: 'starts macOS syslog tail', | ||
func: createLog({platformName: 'macos'}), | ||
options: getLogOptions({platformName}), | ||
}; | ||
|
||
const build = { | ||
name: 'build-macos', | ||
description: 'builds your app for visionOS platform', | ||
func: createBuild({platformName}), | ||
examples: [ | ||
{ | ||
desc: 'Build the app for all visionOS devices in Release mode', | ||
cmd: 'npx react-native-macos build-macos --mode "Release"', | ||
}, | ||
], | ||
options: getBuildOptions({platformName}), | ||
}; | ||
|
||
module.exports = [run, log, build]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters