Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup(misc): clean up init generators #21088

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 0 additions & 53 deletions docs/generated/packages/angular/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,7 @@
"title": "Init Angular Plugin",
"description": "Initializes the `@nx/angular` plugin. NOTE: Does not work in the `--dry-run` mode.",
"type": "object",
"examples": [
{
"command": "nx g @nx/angular:init --style=scss",
"description": "Installs angular dependencies and initializes the `@nx/angular` plugin with the `scss` stylesheet format."
}
],
"properties": {
"unitTestRunner": {
"type": "string",
"enum": ["jest", "none"],
"description": "Test runner to use for unit tests.",
"default": "jest",
"x-priority": "important"
},
"e2eTestRunner": {
"type": "string",
"enum": ["cypress", "playwright", "none"],
"x-prompt": "Which E2E test runner would you like to use?",
"description": "Test runner to use for end to end (e2e) tests.",
"default": "cypress",
"x-priority": "important"
},
"skipInstall": {
"type": "boolean",
"description": "Skip installing after adding `@nx/workspace`.",
Expand All @@ -42,38 +21,6 @@
"default": false,
"x-priority": "internal"
},
"linter": {
"description": "The tool to use for running lint checks.",
"type": "string",
"enum": ["eslint", "none"],
"default": "eslint",
"x-priority": "important"
},
"style": {
"description": "The file extension to be used for style files.",
"type": "string",
"default": "css",
"enum": ["css", "scss", "sass", "less"],
"x-prompt": {
"message": "Which stylesheet format would you like to use?",
"type": "list",
"items": [
{ "value": "css", "label": "CSS" },
{
"value": "scss",
"label": "SASS(.scss) [ http://sass-lang.com ]"
},
{
"value": "sass",
"label": "SASS(.sass) [ http://sass-lang.com ]"
},
{
"value": "less",
"label": "LESS [ http://lesscss.org ]"
}
]
}
},
"skipPackageJson": {
"type": "boolean",
"default": false,
Expand Down
6 changes: 6 additions & 0 deletions docs/generated/packages/cypress/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"description": "Add Cypress Configuration to the workspace.",
"type": "object",
"properties": {
"skipFormat": {
"description": "Skip formatting files.",
"type": "boolean",
"default": false,
"x-priority": "internal"
},
"skipPackageJson": {
"type": "boolean",
"default": false,
Expand Down
6 changes: 0 additions & 6 deletions docs/generated/packages/detox/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@
"default": false,
"description": "Do not add dependencies to `package.json`.",
"x-priority": "internal"
},
"framework": {
"type": "string",
"description": "App framework to test",
"enum": ["react-native", "expo"],
"default": "react-native"
}
},
"required": [],
Expand Down
11 changes: 5 additions & 6 deletions docs/generated/packages/esbuild/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,15 @@
"description": "Init Webpack Plugin.",
"type": "object",
"properties": {
"compiler": {
"type": "string",
"enum": ["babel", "swc", "tsc"],
"description": "The compiler to initialize for.",
"default": "babel"
},
"skipFormat": {
"description": "Skip formatting files.",
"type": "boolean",
"default": false
},
"skipPackageJson": {
"description": "Do not add dependencies to `package.json`.",
"type": "boolean",
"default": false
}
},
"required": [],
Expand Down
17 changes: 0 additions & 17 deletions docs/generated/packages/expo/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,16 @@
"description": "Add Nx Expo Schematics.",
"type": "object",
"properties": {
"unitTestRunner": {
"description": "Adds the specified unit test runner",
"type": "string",
"enum": ["jest", "none"],
"default": "jest"
},
"skipFormat": {
"description": "Skip formatting files",
"type": "boolean",
"default": false,
"x-priority": "internal"
},
"e2eTestRunner": {
"description": "Adds the specified e2e test runner",
"type": "string",
"enum": ["detox", "none"],
"default": "detox"
},
"skipPackageJson": {
"type": "boolean",
"default": false,
"description": "Do not add dependencies to `package.json`."
},
"js": {
"type": "boolean",
"default": false,
"description": "Use JavaScript instead of TypeScript"
}
},
"required": [],
Expand Down
11 changes: 5 additions & 6 deletions docs/generated/packages/express/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,15 @@
"description": "Init Express Plugin.",
"type": "object",
"properties": {
"unitTestRunner": {
"description": "Adds the specified unit test runner.",
"type": "string",
"enum": ["jest", "none"],
"default": "jest"
},
"skipFormat": {
"description": "Skip formatting files.",
"type": "boolean",
"default": false
},
"skipPackageJson": {
"type": "boolean",
"default": false,
"description": "Do not add dependencies to `package.json`."
}
},
"required": [],
Expand Down
27 changes: 4 additions & 23 deletions docs/generated/packages/jest/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,16 @@
"description": "Add Jest Configuration to a workspace.",
"type": "object",
"properties": {
"babelJest": {
"type": "boolean",
"alias": "babel-jest",
"description": "Use `babel-jest` instead of `ts-jest`.",
"default": false
},
"skipPackageJson": {
"skipFormat": {
"description": "Skip formatting files.",
"type": "boolean",
"default": false,
"description": "Do not add dependencies to `package.json`.",
"x-priority": "internal"
},
"testEnvironment": {
"type": "string",
"enum": ["jsdom", "node", "none"],
"description": "The test environment for jest. This controls which jest-environment-* package is installed",
"default": "jsdom",
"x-priority": "important"
},
"js": {
"type": "boolean",
"default": false,
"description": "Use JavaScript instead of TypeScript for config files"
},
"rootProject": {
"description": "initialize Jest for an application at the root of the workspace",
"skipPackageJson": {
"type": "boolean",
"default": false,
"hidden": true,
"description": "Do not add dependencies to `package.json`.",
"x-priority": "internal"
}
},
Expand Down
6 changes: 0 additions & 6 deletions docs/generated/packages/nest/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
"cli": "nx",
"type": "object",
"properties": {
"unitTestRunner": {
"description": "Adds the specified unit test runner.",
"type": "string",
"enum": ["jest", "none"],
"default": "jest"
},
"skipFormat": {
"description": "Skip formatting files.",
"type": "boolean",
Expand Down
24 changes: 0 additions & 24 deletions docs/generated/packages/next/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,40 +9,16 @@
"description": "Init Next Plugin.",
"type": "object",
"properties": {
"unitTestRunner": {
"description": "Adds the specified unit test runner.",
"type": "string",
"enum": ["jest", "none"],
"default": "jest"
},
"e2eTestRunner": {
"description": "Adds the specified e2e test runner.",
"type": "string",
"enum": ["cypress", "none"],
"default": "cypress"
},
"skipFormat": {
"description": "Skip formatting files.",
"type": "boolean",
"default": false
},
"js": {
"type": "boolean",
"default": false,
"description": "Use JavaScript instead of TypeScript"
},
"skipPackageJson": {
"type": "boolean",
"default": false,
"description": "Do not add dependencies to `package.json`.",
"x-priority": "internal"
},
"rootProject": {
"description": "Create an application at the root of the workspace.",
"type": "boolean",
"default": false,
"hidden": true,
"x-priority": "internal"
}
},
"required": [],
Expand Down
12 changes: 3 additions & 9 deletions docs/generated/packages/node/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,15 @@
"description": "Init Node Plugin.",
"type": "object",
"properties": {
"unitTestRunner": {
"description": "Adds the specified unit test runner.",
"type": "string",
"enum": ["jest", "none"],
"default": "jest"
},
"skipFormat": {
"description": "Skip formatting files.",
"type": "boolean",
"default": false
},
"js": {
"skipPackageJson": {
"description": "Do not add dependencies to `package.json`.",
"type": "boolean",
"default": false,
"description": "Use JavaScript instead of TypeScript"
"default": false
}
},
"required": [],
Expand Down
10 changes: 0 additions & 10 deletions docs/generated/packages/nuxt/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,10 @@
"type": "boolean",
"default": false
},
"rootProject": {
"description": "Create a project at the root of the workspace",
"type": "boolean",
"default": false
},
"skipPackageJson": {
"description": "Do not add dependencies to `package.json`.",
"type": "boolean",
"default": false
},
"style": {
"description": "The file extension to be used for style files.",
"type": "string",
"default": "css"
}
},
"required": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@
"default": false,
"hidden": true,
"x-priority": "internal"
},
"skipInstall": {
"type": "boolean",
"description": "Skip running `playwright install`. This is to ensure that playwright browsers are installed.",
"default": false
}
},
"required": ["project"],
Expand Down
5 changes: 0 additions & 5 deletions docs/generated/packages/playwright/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@
"default": false,
"description": "Do not add dependencies to `package.json`.",
"x-priority": "internal"
},
"skipInstall": {
"type": "boolean",
"description": "Skip running `playwright install`. This is to ensure that playwright browsers are installed.",
"default": false
}
},
"required": [],
Expand Down
17 changes: 0 additions & 17 deletions docs/generated/packages/react-native/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,12 @@
"description": "Add Nx React native schematics.",
"type": "object",
"properties": {
"unitTestRunner": {
"description": "Adds the specified unit test runner.",
"type": "string",
"enum": ["jest", "none"],
"default": "jest"
},
"skipFormat": {
"description": "Skip formatting files.",
"type": "boolean",
"default": false,
"x-priority": "internal"
},
"e2eTestRunner": {
"description": "Adds the specified E2E test runner.",
"type": "string",
"enum": ["detox", "none"],
"default": "detox"
},
"js": {
"type": "boolean",
"default": false,
"description": "Use JavaScript instead of TypeScript"
},
"skipPackageJson": {
"description": "Do not add dependencies to `package.json`.",
"type": "boolean",
Expand Down
Loading