This plugin is the Webstorm version
of Nx Console or at least in the process to
be. This plugin will only work for projects that use Nx dev tools. For this alpha release, this plugin
will support the Generate
functionality which will allow you to display and run/debug custom schematics, along with
default angular, ngrx, nestjs schematics.
This works with any Nx project. But this can also work with any regular Angular project that doesn't
use Nx, since the schematics are built-in the @schematics/angular
collection.
/tools/schematics
, but this can be configured within
the Plugin Settings, if your project is setup differently./tools/schematics
and this is the default for Nx Projects.@angular-devkit/schematics-cli
installed either local to your project or globally for this
to work with custom schematics.Nx
menu (either at the top menubar, or top right tab), you will have option to Generate
which
will popup a list of schematics to choose from.Run
, Dry Run
, or Debug
Dry Run
will open your IDE terminal and run the schematic with the filled out fields but without affecting your
local files. You will see the output of what files will be affected in your repo.Run
will do the same things as Dry Run
except it will actually affect your local files and add/update/delete
files depending on what the selected schematic is designed to do.Debug
button allows you to setup breakpoints in your schematic files and run the debug execution, so you can
easily and quickly debug your schematics right within Webstorm!path
property for the schematic, if it's left empty, it is
defaulted to the path of the executable (usually within node_modules). This causes the output files placed in the
incorrect place. To fix this, make sure you pass in the path
property correctly pointing to the module you would
like to run the schematic against. This is only an issue during debugging, and does not affect when you are doing
regular Dry Run
or Run
executions.Using IDE built-in plugin system:
Preferences > Plugins > Marketplace > Search for "nx-webstorm" > Install Plugin
Manually:
Download the latest release and install it manually using Preferences > Plugins > ⚙️ > Install plugin from disk...
Plugin based on the IntelliJ Platform Plugin Template v1.9.0.