Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new CLI init-windows command #12123

Merged
merged 7 commits into from
Sep 21, 2023
Merged

Conversation

jonthysell
Copy link
Contributor

@jonthysell jonthysell commented Sep 8, 2023

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

Microsoft Reviewers: Open in CodeFlow

@jonthysell jonthysell force-pushed the initWindows branch 3 times, most recently from 97cb7c5 to 584426c Compare September 18, 2023 16:36
## Description

This PR implements a new, named template-based `react-native
init-windows` command as described by microsoft#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 microsoft#12152
Closes microsoft#12151
Closes microsoft#12150
Closes microsoft#12149
Closes microsoft#12148
Closes microsoft#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
@jonthysell jonthysell marked this pull request as ready for review September 18, 2023 19:41
@jonthysell jonthysell requested review from a team as code owners September 18, 2023 19:42
@jonthysell jonthysell changed the title [WIP] Create new CLI init-windows command Create new CLI init-windows command Sep 18, 2023
@jonthysell jonthysell assigned jonthysell and unassigned jonthysell Sep 19, 2023
@jonthysell jonthysell merged commit de07af9 into microsoft:main Sep 21, 2023
42 checks passed
@jonthysell jonthysell deleted the initWindows branch September 21, 2023 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment