-
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(core): add the "add" cli command #20976
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit ed5d5b7. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 6 targets
Sent with 💌 from NxCloud. |
758bdd4
to
001df68
Compare
001df68
to
b342a10
Compare
b342a10
to
143a99c
Compare
143a99c
to
62e43eb
Compare
48de65f
to
092ab5e
Compare
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.
Docs look good. Is it possible to have nx add @nx/react
install the version that matches nx
? Instead of whatever the latest version of the plugin is?
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.
Looks good, 2 small changes
…nx version by default
092ab5e
to
6e8fd47
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. |
Adds a new command for installing and initializing a package:
add
.Initialization is done by invoking the
<package>:init
generator. If the@nx/angular
plugin is installed, it will also look for anng-add
generator if theinit
generator is not found.Examples usage:
Install the
@nx/react
package matching the currently installednx
version (for non-core nx plugins, it will install their latest version) and run its@nx/react:init
generator:Install the version
17.0.0
of the@nx/react
package and run its@nx/react:init
generator:If the package being added doesn't contain an
init
generator (orng-add
in Angular workspaces), it will safely handle it by only installing the package and logging a message stating there's nothing to initialize.Docs: https://nx-dev-git-fork-leosvelperez-core-add-command-nrwl.vercel.app/nx-api/nx/documents/add
Current Behavior
Expected Behavior
Related Issue(s)
Fixes #