This PR enables the ability to migrate project(s) from using nextjs executors to inferred targets. --------- Co-authored-by: Jack Hsu <jack.hsu@gmail.com>
53 lines
2.1 KiB
JSON
53 lines
2.1 KiB
JSON
{
|
|
"name": "nx/next",
|
|
"version": "0.1",
|
|
"extends": ["@nx/react"],
|
|
"generators": {
|
|
"init": {
|
|
"factory": "./src/generators/init/init#nextInitGeneratorInternal",
|
|
"schema": "./src/generators/init/schema.json",
|
|
"description": "Initialize the `@nx/next` plugin.",
|
|
"hidden": true
|
|
},
|
|
"application": {
|
|
"factory": "./src/generators/application/application#applicationGeneratorInternal",
|
|
"schema": "./src/generators/application/schema.json",
|
|
"aliases": ["app"],
|
|
"x-type": "application",
|
|
"description": "Create an application."
|
|
},
|
|
"page": {
|
|
"factory": "./src/generators/page/page#pageGeneratorInternal",
|
|
"schema": "./src/generators/page/schema.json",
|
|
"description": "Create a page."
|
|
},
|
|
"component": {
|
|
"factory": "./src/generators/component/component#componentGeneratorInternal",
|
|
"schema": "./src/generators/component/schema.json",
|
|
"description": "Create a component."
|
|
},
|
|
"library": {
|
|
"factory": "./src/generators/library/library#libraryGeneratorInternal",
|
|
"schema": "./src/generators/library/schema.json",
|
|
"aliases": ["lib"],
|
|
"x-type": "library",
|
|
"description": "Create a library."
|
|
},
|
|
"custom-server": {
|
|
"factory": "./src/generators/custom-server/custom-server#customServerGenerator",
|
|
"schema": "./src/generators/custom-server/schema.json",
|
|
"description": "Set up a custom server."
|
|
},
|
|
"cypress-component-configuration": {
|
|
"factory": "./src/generators/cypress-component-configuration/cypress-component-configuration#cypressComponentConfigurationInternal",
|
|
"schema": "./src/generators/cypress-component-configuration/schema.json",
|
|
"description": "cypress-component-configuration generator"
|
|
},
|
|
"convert-to-inferred": {
|
|
"factory": "./src/generators/convert-to-inferred/convert-to-inferred",
|
|
"schema": "./src/generators/convert-to-inferred/schema.json",
|
|
"description": "Convert an existing Next.js project(s) using `@nx/next:build` to use `@nx/next/plugin`. Defaults to migrating all projects. Pass '--project' to migrate a single project."
|
|
}
|
|
}
|
|
}
|