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

feat(@angular/create): add support for yarn create and npm init #23492

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alan-agius4
Copy link
Collaborator

@alan-agius4 alan-agius4 commented Jul 4, 2022

With this change we add support to scaffold an Angular workspace using yarn create @angular and npm init @angular. These shortcuts support all of the ng-new options.

Closes #10339 and closes #14292

@alan-agius4 alan-agius4 added the need: further discussion label Jul 4, 2022
@alan-agius4
Copy link
Collaborator Author

@alan-agius4 alan-agius4 commented Jul 4, 2022

Points to discuss:

  1. should we have a snapshot build for the new package?
  2. should it be yarn create angular or yarn create @angular? We do own create-angular.

@alan-agius4 alan-agius4 force-pushed the angular-create branch 3 times, most recently from 85d6c91 to fc506e0 Compare Jul 4, 2022
@alan-agius4 alan-agius4 added the target: minor label Jul 4, 2022
@alan-agius4 alan-agius4 marked this pull request as ready for review Jul 4, 2022
@alan-agius4 alan-agius4 requested a review from dgp1130 Jul 4, 2022
With this change we add support to scaffold  an Angular workspace using `yarn create @angular` and `npm init @angular`. These shortcuts support all of the `ng-new` options.

Closes angular#10339 and closes angular#14292
@eneajaho
Copy link

@eneajaho eneajaho commented Jul 6, 2022

yarn create angular looks cleaner and is easier to remember than using @angular.

@brandonroberts
Copy link

@brandonroberts brandonroberts commented Jul 6, 2022

Seconded for yarn create angular

@chihab
Copy link

@chihab chihab commented Jul 6, 2022

Would the result be the same as doing npx @angular/cli new ...?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need: further discussion target: minor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants