Skip to content

Revert "Add 'winapp new' command for creating WinUI 3 projects and items"#415

Merged
nmetulev merged 1 commit into
mainfrom
revert-411-feature/winapp-new-command
Apr 8, 2026
Merged

Revert "Add 'winapp new' command for creating WinUI 3 projects and items"#415
nmetulev merged 1 commit into
mainfrom
revert-411-feature/winapp-new-command

Conversation

@nmetulev
Copy link
Copy Markdown
Member

@nmetulev nmetulev commented Apr 8, 2026

Reverts #411

Copilot AI review requested due to automatic review settings April 8, 2026 18:22
@nmetulev nmetulev merged commit f72f657 into main Apr 8, 2026
@nmetulev nmetulev deleted the revert-411-feature/winapp-new-command branch April 8, 2026 18:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Reverts the previously added winapp new scaffolding feature (#411), removing the command implementation, template-provider infrastructure, npm wrapper surface, tests, and related documentation/schema updates.

Changes:

  • Removes the winapp new command (CLI + npm wrapper) and associated DI wiring.
  • Deletes template discovery/creation infrastructure (ITemplateProvider, ITemplateService, DotNetTemplateProvider, template models).
  • Updates docs and generated artifacts to remove new command references (usage docs, CLI schema, skill docs).

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/winapp-npm/src/winapp-commands.ts Removes the newCommand wrapper and NewOptions types from the npm API surface.
src/winapp-CLI/WinApp.Cli/Services/TemplateService.cs Deletes the composite template service used by winapp new.
src/winapp-CLI/WinApp.Cli/Services/ITemplateService.cs Deletes the template service abstraction.
src/winapp-CLI/WinApp.Cli/Services/ITemplateProvider.cs Deletes the template provider abstraction.
src/winapp-CLI/WinApp.Cli/Services/DotNetTemplateProvider.cs Deletes the .NET template provider implementation.
src/winapp-CLI/WinApp.Cli/Models/TemplateInfo.cs Deletes template metadata models and JSON source-gen context used for template.json parsing.
src/winapp-CLI/WinApp.Cli/Helpers/HostBuilderExtensions.cs Removes DI registrations and command handler wiring for new and template services.
src/winapp-CLI/WinApp.Cli/Commands/WinAppRootCommand.cs Removes new from root subcommands and help categorization.
src/winapp-CLI/WinApp.Cli/Commands/NewCommand.cs Deletes the winapp new command implementation.
src/winapp-CLI/WinApp.Cli.Tests/NewCommandTests.cs Deletes tests covering the new command and template infrastructure.
README.md Removes new from the “Setup Commands” list.
docs/usage.md Removes the new command documentation section.
docs/npm-usage.md Removes npm API docs for newCommand() and NewOptions.
docs/guides/dotnet.md Removes the winapp new WinUI 3 project creation path from the guide.
docs/fragments/skills/winapp-cli/setup.md Updates setup skill docs to remove new workflow.
docs/cli-schema.json Removes the new command entry from the CLI schema output.
.github/plugin/skills/winapp-cli/setup/SKILL.md Updates the GitHub skill markdown to remove new workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

```

### Initialize an existing project with Windows support
### Initialize a new winapp project
Copy link

Copilot AI Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The heading "Initialize a new winapp project" conflicts with the preceding statement that winapp init does not create new projects. Consider renaming the heading to clarify that init initializes/sets up Windows support within an existing project (e.g., "Initialize an existing project" or "Initialize winapp in an existing project").

Suggested change
### Initialize a new winapp project
### Initialize winapp in an existing project

Copilot uses AI. Check for mistakes.
```

### Initialize an existing project with Windows support
### Initialize a new winapp project
Copy link

Copilot AI Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The heading "Initialize a new winapp project" is inconsistent with the earlier note that winapp init does not create new projects. Please adjust the wording to avoid implying project scaffolding (e.g., indicate initializing Windows support in an existing project).

Suggested change
### Initialize a new winapp project
### Initialize winapp in an existing project

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 8, 2026

Build Metrics Report

Binary Sizes

Artifact Baseline Current Delta
CLI (ARM64) 28.46 MB 28.46 MB ✅ 0.0 KB (0.00%)
CLI (x64) 28.92 MB 28.92 MB ✅ 0.0 KB (0.00%)
MSIX (ARM64) 12.05 MB 12.05 MB 📉 -0.0 KB (-0.00%)
MSIX (x64) 12.81 MB 12.81 MB 📈 +0.1 KB (+0.00%)
NPM Package 25.07 MB 25.07 MB 📈 +0.6 KB (+0.00%)
NuGet Package 25.16 MB 25.16 MB 📈 +0.5 KB (+0.00%)

Test Results

662 passed out of 662 tests in 396.7s (+2.7s vs. baseline)

Test Coverage

31% line coverage, 42.6% branch coverage · ✅ no change vs. baseline

CLI Startup Time

45ms median (x64, winapp --version) · ✅ +6ms vs. baseline


Updated 2026-04-08 18:35:02 UTC · commit dbd5737 · workflow run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants