Devin Shoemaker d385030b4b
feat(nx-plugin): add "schematic" schematic (#2708)
This change adds a new schematic that generates a schematic for an Nx plugin.
2020-04-16 15:08:45 -04:00

56 lines
720 B
Markdown

# schematic
Create a schematic for an Nx Plugin
## Usage
```bash
nx generate schematic ...
```
By default, Nx will search for `schematic` in the default collection provisioned in `angular.json`.
You can specify the collection explicitly as follows:
```bash
nx g @nrwl/nx-plugin:schematic ...
```
Show what will be generated without writing to disk:
```bash
nx g schematic ... --dry-run
```
### Examples
Generate libs/my-plugin/src/schematics/my-schematic:
```bash
nx g schematic my-schematic --project=my-plugin
```
## Options
### description
Alias(es): d
Type: `string`
Schematic description
### name
Type: `string`
Schematic name
### project
Alias(es): p
Type: `string`
The name of the project.