-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create new CLI
init-windows
command (#12123)
* Create new CLI init-windows command ## Description This PR implements a new, named template-based `react-native init-windows` command as described by #11920. Note, this does not change or deprecate the existing `react-native-windows-init` / `generateWindows` infrastructure or templates. ### Type of Change - New feature (non-breaking change which adds functionality) ### Why This is part of restructuring how users can add RNW support to their RN projects. ### What 1. Creates a new `init-windows` RN CLI command that creates a new windows project based on a given template 2. The first CLI templates under `old/`, which are just wrappers which call the existing templating code in `generateWindows` Closes #12152 Closes #12151 Closes #12150 Closes #12149 Closes #12148 Closes #12147 ## Screenshots N/A ## Testing Ran existing tests, created base `initWindows` tests. ## Changelog Should this change be included in the release notes: yes Created a new `init-windows` command * fix generateWrapper * remove sample apps package.json * update yarn.lock * Rename old templates
- Loading branch information
1 parent
7c9768c
commit de07af9
Showing
22 changed files
with
659 additions
and
34 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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
7 changes: 7 additions & 0 deletions
7
change/@react-native-windows-cli-a63260e2-235e-4bff-89ed-3b03dd6a6c6d.json
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,7 @@ | ||
{ | ||
"type": "prerelease", | ||
"comment": "Create new CLI init-windows command", | ||
"packageName": "@react-native-windows/cli", | ||
"email": "jthysell@microsoft.com", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@react-native-windows-telemetry-fcb890af-66a4-4e17-99ab-3845d6675bd6.json
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,7 @@ | ||
{ | ||
"type": "prerelease", | ||
"comment": "Create new CLI init-windows command", | ||
"packageName": "@react-native-windows/telemetry", | ||
"email": "jthysell@microsoft.com", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/react-native-windows-97a9b3b1-baef-4331-b3d6-f805e8d2d323.json
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,7 @@ | ||
{ | ||
"type": "prerelease", | ||
"comment": "Create new CLI init-windows command", | ||
"packageName": "react-native-windows", | ||
"email": "jthysell@microsoft.com", | ||
"dependentChangeType": "patch" | ||
} |
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
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
Oops, something went wrong.