-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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(misc): add support for angular cli workspaces to nx init #13404
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
18df1e8
to
62a279d
Compare
|
||
if (!options.skipInstall) { | ||
return () => { | ||
installPackagesTask(tree); | ||
formatFilesTask(tree); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why change to using a task?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because prettier
only gets installed in the line above, in a task. Formatting doesn't work before that. It was wrong before, we can't guarantee prettier
was previously installed in the Angular CLI workspace. Angular CLI workspaces don't come with it by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see.. what if we don't add prettier
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding prettier
is an explicit requirement from @vsavkin for this feature, so the files generated/updated in the migration are formatted correctly, and any future generator runs are also formatted correctly. Without it, some generators would generate code where the format is messed up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay then. 🤔
Let's discuss this more after this PR lands.
62a279d
to
63566ef
Compare
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
The
nx init
command doesn't support Angular CLI workspaces.Expected Behavior
The
nx init
command supports Angular CLI workspaces.Related Issue(s)
Fixes #