<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
47 lines
1.6 KiB
JSON
47 lines
1.6 KiB
JSON
{
|
|
"name": "preset",
|
|
"factory": "./src/generators/preset/generator#presetGeneratorInternal",
|
|
"schema": {
|
|
"$schema": "https://json-schema.org/schema",
|
|
"cli": "nx",
|
|
"$id": "NxPluginPreset",
|
|
"title": "Generator ran by create-nx-plugin",
|
|
"description": "Initializes a workspace with an nx-plugin inside of it. Use as: `create-nx-plugin` or `create-nx-workspace --preset @nx/nx-plugin`.",
|
|
"examples": [
|
|
{
|
|
"command": "npx create-nx-plugin",
|
|
"description": "Creates a new Nx workspace containing an Nx plugin."
|
|
},
|
|
{
|
|
"command": "npx create-nx-workspace --preset @nx/plugin",
|
|
"description": "Creates a new Nx workspace containing an Nx plugin."
|
|
}
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"pluginName": {
|
|
"type": "string",
|
|
"description": "Plugin name",
|
|
"aliases": ["name"]
|
|
},
|
|
"createPackageName": {
|
|
"type": "string",
|
|
"description": "Name of package which creates a workspace"
|
|
},
|
|
"useProjectJson": {
|
|
"type": "boolean",
|
|
"description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
|
|
}
|
|
},
|
|
"required": ["pluginName"],
|
|
"presets": []
|
|
},
|
|
"description": "Initializes a workspace with an nx-plugin inside of it. Use as: `create-nx-workspace --preset @nx/plugin`.",
|
|
"hidden": true,
|
|
"x-use-standalone-layout": true,
|
|
"implementation": "/packages/plugin/src/generators/preset/generator#presetGeneratorInternal.ts",
|
|
"aliases": [],
|
|
"path": "/packages/plugin/src/generators/preset/schema.json",
|
|
"type": "generator"
|
|
}
|