78 lines
2.6 KiB
JSON
78 lines
2.6 KiB
JSON
{
|
|
"name": "Nx React",
|
|
"version": "0.1",
|
|
"extends": ["@nrwl/workspace"],
|
|
"schematics": {
|
|
"init": {
|
|
"factory": "./src/schematics/init/init",
|
|
"schema": "./src/schematics/init/schema.json",
|
|
"description": "Initialize the @nrwl/react plugin",
|
|
"aliases": ["ng-add"],
|
|
"hidden": true
|
|
},
|
|
|
|
"application": {
|
|
"factory": "./src/schematics/application/application",
|
|
"schema": "./src/schematics/application/schema.json",
|
|
"aliases": ["app"],
|
|
"description": "Create an application"
|
|
},
|
|
|
|
"library": {
|
|
"factory": "./src/schematics/library/library",
|
|
"schema": "./src/schematics/library/schema.json",
|
|
"aliases": ["lib"],
|
|
"description": "Create a library"
|
|
},
|
|
|
|
"component": {
|
|
"factory": "./src/schematics/component/component",
|
|
"schema": "./src/schematics/component/schema.json",
|
|
"description": "Create a component",
|
|
"aliases": "c"
|
|
},
|
|
|
|
"redux": {
|
|
"factory": "./src/schematics/redux/redux",
|
|
"schema": "./src/schematics/redux/schema.json",
|
|
"description": "Create a redux slice for a project",
|
|
"aliases": ["slice"]
|
|
},
|
|
|
|
"storybook-configuration": {
|
|
"factory": "./src/schematics/storybook-configuration/configuration",
|
|
"schema": "./src/schematics/storybook-configuration/schema.json",
|
|
"description": "Set up storybook for a react library",
|
|
"hidden": false
|
|
},
|
|
|
|
"storybook-migrate-defaults-5-to-6": {
|
|
"factory": "./src/schematics/storybook-migrate-defaults-5-to-6/migrate-defaults-5-to-6",
|
|
"schema": "./src/schematics/storybook-migrate-defaults-5-to-6/schema.json",
|
|
"description": "Generate default Storybook configuration files using Storybook version >=6.x specs, for projects that already have Storybook instances and configurations of versions <6.x.",
|
|
"hidden": false
|
|
},
|
|
|
|
"component-story": {
|
|
"factory": "./src/schematics/component-story/component-story",
|
|
"schema": "./src/schematics/component-story/schema.json",
|
|
"description": "Generate storybook story for a react component",
|
|
"hidden": false
|
|
},
|
|
|
|
"stories": {
|
|
"factory": "./src/schematics/stories/stories",
|
|
"schema": "./src/schematics/stories/schema.json",
|
|
"description": "Create stories/specs for all components declared in a library",
|
|
"hidden": false
|
|
},
|
|
|
|
"component-cypress-spec": {
|
|
"factory": "./src/schematics/component-cypress-spec/component-cypress-spec",
|
|
"schema": "./src/schematics/component-cypress-spec/schema.json",
|
|
"description": "Create a cypress spec for a ui component that has a story",
|
|
"hidden": false
|
|
}
|
|
}
|
|
}
|