You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey! I think it's a good idea and a valid reqest.
Right now this is not a priority so I won't be working on it anytime soon.
If you're interested in contributing this, I'd love to help out!
I love that you're willing to contribute @santoshyadavdev !
Here's a rough guide to adding a Common Nx Commands Panel to JetBrains:
Take the VSCode implementation as a guideline, you'll find it here: libs/vscode/nx-commands-view/src/lib/nx-commands-provider.ts. You can see that there are different sources of commands: Some are hardcoded, some are the available targets and some are user-provided from the settings. The setting-based one is optional for now and targets are already available in the sidebar in JetBrains. So you can focus on just a list of common nx commands for now.
You'll have to modify the nx toolwindow in intellij, you'll find it here: apps/intellij/src/main/kotlin/dev/nx/console/nx_toolwindow/NxToolWindowPanel.kt. Create another tree (like in the tree package in that folder) called CommonNxCommandsTree or something. You need to create child nodes like the project tree does, though it will be way simpler because it's just one level deep. Then hook it into the rendering flow in NxToolWindowPanel.kt.
For the Generate tree item, you can just call the generate action we already have. For others, you might need to create a new action. Feel free to ping me with any questions you have, I can talk about it in more detail depending on where you need help.
Description
Add
Common Nx Commands
panel to Intellij (especiallyrun-many
andAdd Dev Dependency
).Motivation
run-many
andAdd Dev Dependency
actions (cause sometimes it is easier to click than type commands)Suggested Implementation
Alternate Implementations
The text was updated successfully, but these errors were encountered: