Skip to content

Commit

Permalink
feat(misc): remove derived generator paths (#27714)
Browse files Browse the repository at this point in the history
<!-- 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 #

---------

Co-authored-by: Nicholas Cunningham <ndcunningham@gmail.com>
  • Loading branch information
leosvelperez and ndcunningham authored Sep 23, 2024
1 parent 5216f7a commit c92528f
Show file tree
Hide file tree
Showing 435 changed files with 1,609 additions and 8,545 deletions.
4 changes: 2 additions & 2 deletions docs/generated/packages/angular/generators/application.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "application",
"factory": "./src/generators/application/application#applicationGeneratorInternal",
"factory": "./src/generators/application/application",
"schema": {
"$schema": "https://json-schema.org/schema",
"$id": "GeneratorNxApp",
Expand Down Expand Up @@ -191,7 +191,7 @@
"aliases": ["app"],
"x-type": "application",
"description": "Creates an Angular application.",
"implementation": "/packages/angular/src/generators/application/application#applicationGeneratorInternal.ts",
"implementation": "/packages/angular/src/generators/application/application.ts",
"hidden": false,
"path": "/packages/angular/src/generators/application/schema.json",
"type": "generator"
Expand Down
17 changes: 2 additions & 15 deletions docs/generated/packages/angular/generators/component.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "component",
"factory": "./src/generators/component/component#componentGeneratorInternal",
"factory": "./src/generators/component/component",
"schema": {
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "SchematicsAngularComponent",
Expand All @@ -27,13 +27,6 @@
"type": "string",
"enum": ["as-provided", "derived"]
},
"project": {
"type": "string",
"description": "The name of the project.",
"$default": { "$source": "projectName" },
"x-dropdown": "projects",
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. The project will be determined from the directory provided. It will be removed in Nx v20."
},
"prefix": {
"type": "string",
"description": "The prefix to apply to the generated component selector.",
Expand Down Expand Up @@ -92,12 +85,6 @@
"description": "Do not create `spec.ts` test files for the new component.",
"default": false
},
"flat": {
"type": "boolean",
"description": "Create the new files at the top level of the current project.",
"default": false,
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20."
},
"skipImport": {
"type": "boolean",
"description": "Do not import this component into the owning NgModule.",
Expand Down Expand Up @@ -137,7 +124,7 @@
},
"aliases": ["c"],
"description": "Generate an Angular Component.",
"implementation": "/packages/angular/src/generators/component/component#componentGeneratorInternal.ts",
"implementation": "/packages/angular/src/generators/component/component.ts",
"hidden": false,
"path": "/packages/angular/src/generators/component/schema.json",
"type": "generator"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cypress-component-configuration",
"factory": "./src/generators/cypress-component-configuration/cypress-component-configuration#cypressComponentConfigurationInternal",
"factory": "./src/generators/cypress-component-configuration/cypress-component-configuration",
"schema": {
"$schema": "https://json-schema.org/schema",
"$id": "NxAngularCypressComponentConfigurationGenerator",
Expand Down Expand Up @@ -41,7 +41,7 @@
"presets": []
},
"description": "Setup Cypress component testing for a project.",
"implementation": "/packages/angular/src/generators/cypress-component-configuration/cypress-component-configuration#cypressComponentConfigurationInternal.ts",
"implementation": "/packages/angular/src/generators/cypress-component-configuration/cypress-component-configuration.ts",
"aliases": [],
"hidden": false,
"path": "/packages/angular/src/generators/cypress-component-configuration/schema.json",
Expand Down
13 changes: 0 additions & 13 deletions docs/generated/packages/angular/generators/directive.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@
"type": "string",
"enum": ["as-provided", "derived"]
},
"project": {
"type": "string",
"description": "The name of the project.",
"$default": { "$source": "projectName" },
"x-dropdown": "projects",
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. The project will be determined from the directory provided. It will be removed in Nx v20."
},
"prefix": {
"type": "string",
"description": "A prefix to apply to generated selectors.",
Expand Down Expand Up @@ -63,12 +56,6 @@
"type": "boolean",
"default": true
},
"flat": {
"type": "boolean",
"description": "When true (the default), creates the new files at the top level of the current project.",
"default": true,
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20."
},
"module": {
"type": "string",
"description": "The filename of the declaring NgModule.",
Expand Down
4 changes: 2 additions & 2 deletions docs/generated/packages/angular/generators/host.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "host",
"factory": "./src/generators/host/host#hostInternal",
"factory": "./src/generators/host/host",
"schema": {
"$schema": "https://json-schema.org/schema",
"$id": "NxMFHost",
Expand Down Expand Up @@ -183,7 +183,7 @@
},
"x-type": "application",
"description": "Generate a Host Angular Module Federation Application.",
"implementation": "/packages/angular/src/generators/host/host#hostInternal.ts",
"implementation": "/packages/angular/src/generators/host/host.ts",
"aliases": [],
"hidden": false,
"path": "/packages/angular/src/generators/host/schema.json",
Expand Down
4 changes: 2 additions & 2 deletions docs/generated/packages/angular/generators/library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "library",
"factory": "./src/generators/library/library#libraryGeneratorInternal",
"factory": "./src/generators/library/library",
"schema": {
"$schema": "https://json-schema.org/schema",
"$id": "GeneratorAngularLibrary",
Expand Down Expand Up @@ -210,7 +210,7 @@
"aliases": ["lib"],
"x-type": "library",
"description": "Creates an Angular library.",
"implementation": "/packages/angular/src/generators/library/library#libraryGeneratorInternal.ts",
"implementation": "/packages/angular/src/generators/library/library.ts",
"hidden": false,
"path": "/packages/angular/src/generators/library/schema.json",
"type": "generator"
Expand Down
4 changes: 2 additions & 2 deletions docs/generated/packages/angular/generators/move.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "move",
"factory": "./src/generators/move/move#angularMoveGeneratorInternal",
"factory": "./src/generators/move/move#angularMoveGenerator",
"schema": {
"$schema": "https://json-schema.org/schema",
"$id": "NxAngularMove",
Expand Down Expand Up @@ -63,7 +63,7 @@
"aliases": ["mv"],
"description": "Moves an Angular application or library to another folder within the workspace and updates the project configuration.",
"x-deprecated": "Use the `@nx/workspace:move` generator instead. This generator will be removed in Nx v19.",
"implementation": "/packages/angular/src/generators/move/move#angularMoveGeneratorInternal.ts",
"implementation": "/packages/angular/src/generators/move/move#angularMoveGenerator.ts",
"hidden": false,
"path": "/packages/angular/src/generators/move/schema.json",
"type": "generator"
Expand Down
6 changes: 0 additions & 6 deletions docs/generated/packages/angular/generators/pipe.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@
"x-dropdown": "projects",
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. The project will be determined from the directory provided. It will be removed in Nx v20."
},
"flat": {
"type": "boolean",
"default": true,
"description": "When true (the default) creates files at the top level of the project.",
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20."
},
"skipTests": {
"type": "boolean",
"description": "Do not create \"spec.ts\" test files for the new pipe.",
Expand Down
4 changes: 2 additions & 2 deletions docs/generated/packages/angular/generators/remote.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "remote",
"factory": "./src/generators/remote/remote#remoteInternal",
"factory": "./src/generators/remote/remote",
"schema": {
"$schema": "https://json-schema.org/schema",
"$id": "NxMFRemote",
Expand Down Expand Up @@ -176,7 +176,7 @@
},
"x-type": "application",
"description": "Generate a Remote Angular Module Federation Application.",
"implementation": "/packages/angular/src/generators/remote/remote#remoteInternal.ts",
"implementation": "/packages/angular/src/generators/remote/remote.ts",
"aliases": [],
"hidden": false,
"path": "/packages/angular/src/generators/remote/schema.json",
Expand Down
6 changes: 0 additions & 6 deletions docs/generated/packages/angular/generators/scam.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,6 @@
"default": true,
"x-priority": "important"
},
"flat": {
"type": "boolean",
"description": "Create the new files at the top level of the current project.",
"default": false,
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20."
},
"selector": {
"type": "string",
"format": "html-selector",
Expand Down
28 changes: 4 additions & 24 deletions docs/generated/packages/expo/generators/component.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "component",
"factory": "./src/generators/component/component#expoComponentGeneratorInternal",
"factory": "./src/generators/component/component",
"schema": {
"cli": "nx",
"$id": "NxExpoComponent",
Expand All @@ -9,22 +9,15 @@
"type": "object",
"examples": [
{
"command": "g @nx/expo:component my-component --project=mylib",
"command": "g @nx/expo:component my-component --directory=mylib/my-component",
"description": "Generate a component in the mylib library"
},
{
"command": "g @nx/expo:component my-component --project=mylib --classComponent",
"command": "g @nx/expo:component my-component --directory=mylib/my-component --classComponent",
"description": "Generate a class component in the mylib library"
}
],
"properties": {
"project": {
"type": "string",
"description": "The name of the project.",
"alias": "p",
"$default": { "$source": "projectName" },
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. The project will be determined from the directory provided. It will be removed in Nx v20."
},
"name": {
"type": "string",
"description": "The name of the component.",
Expand Down Expand Up @@ -57,26 +50,13 @@
"type": "string",
"enum": ["as-provided", "derived"]
},
"flat": {
"type": "boolean",
"description": "Create component at the source root rather than its own directory.",
"default": false,
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. This option will be removed in Nx v19."
},
"export": {
"type": "boolean",
"description": "When true, the component is exported from the project index.ts (if it exists).",
"alias": "e",
"default": false,
"x-prompt": "Should this component be exported in the project?"
},
"pascalCaseFiles": {
"type": "boolean",
"description": "Use pascal case component file name (e.g. App.tsx).",
"alias": "P",
"default": false,
"x-deprecated": "Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v19."
},
"classComponent": {
"type": "boolean",
"alias": "C",
Expand All @@ -89,7 +69,7 @@
},
"description": "Create a component",
"aliases": ["c"],
"implementation": "/packages/expo/src/generators/component/component#expoComponentGeneratorInternal.ts",
"implementation": "/packages/expo/src/generators/component/component.ts",
"hidden": false,
"path": "/packages/expo/src/generators/component/schema.json",
"type": "generator"
Expand Down
6 changes: 0 additions & 6 deletions docs/generated/packages/expo/generators/library.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@
"description": "Do not update tsconfig.json for development experience.",
"x-priority": "internal"
},
"pascalCaseFiles": {
"type": "boolean",
"description": "Use pascal case component file name (e.g. App.tsx).",
"alias": "P",
"default": false
},
"publishable": {
"type": "boolean",
"description": "Create a publishable library."
Expand Down
6 changes: 0 additions & 6 deletions docs/generated/packages/express/generators/application.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@
"default": false,
"x-deprecated": "Use --swcJest instead for faster compilation"
},
"pascalCaseFiles": {
"type": "boolean",
"description": "Use pascal case file names.",
"alias": "P",
"default": false
},
"js": {
"type": "boolean",
"description": "Generate JavaScript files rather than TypeScript files.",
Expand Down
6 changes: 0 additions & 6 deletions docs/generated/packages/js/generators/library.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,6 @@
"description": "The test environment to use if unitTestRunner is set to jest or vitest.",
"default": "node"
},
"pascalCaseFiles": {
"type": "boolean",
"description": "Use pascal case file names.",
"alias": "P",
"default": false
},
"js": {
"type": "boolean",
"description": "Generate JavaScript files rather than TypeScript files.",
Expand Down
4 changes: 2 additions & 2 deletions docs/generated/packages/nest/generators/class.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "class",
"factory": "./src/generators/class/class#classGeneratorInternal",
"factory": "./src/generators/class/class",
"schema": {
"$schema": "https://json-schema.org/schema",
"$id": "NxNestClassGenerator",
Expand Down Expand Up @@ -61,7 +61,7 @@
"presets": []
},
"description": "Run the `class` NestJS generator with Nx project support.",
"implementation": "/packages/nest/src/generators/class/class#classGeneratorInternal.ts",
"implementation": "/packages/nest/src/generators/class/class.ts",
"aliases": [],
"hidden": false,
"path": "/packages/nest/src/generators/class/schema.json",
Expand Down
17 changes: 2 additions & 15 deletions docs/generated/packages/nest/generators/controller.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "controller",
"factory": "./src/generators/controller/controller#controllerGeneratorInternal",
"factory": "./src/generators/controller/controller",
"schema": {
"$schema": "https://json-schema.org/schema",
"$id": "NxNestControllerGenerator",
Expand All @@ -15,13 +15,6 @@
"$default": { "$source": "argv", "index": 0 },
"x-prompt": "What name would you like to use?"
},
"project": {
"description": "The Nest project to target.",
"type": "string",
"$default": { "$source": "projectName" },
"alias": "p",
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. It will be removed in Nx v20."
},
"nameAndDirectoryFormat": {
"description": "Whether to generate the component in the directory as provided, relative to the current working directory and ignoring the project (`as-provided`) or generate it using the project and directory relative to the workspace root (`derived`).",
"type": "string",
Expand All @@ -44,12 +37,6 @@
"enum": ["jest", "none"],
"default": "jest"
},
"flat": {
"description": "Flag to indicate if a directory is created.",
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.",
"type": "boolean",
"default": false
},
"language": {
"description": "Nest controller language.",
"type": "string",
Expand All @@ -70,7 +57,7 @@
"presets": []
},
"description": "Run the `controller` NestJS generator with Nx project support.",
"implementation": "/packages/nest/src/generators/controller/controller#controllerGeneratorInternal.ts",
"implementation": "/packages/nest/src/generators/controller/controller.ts",
"aliases": [],
"hidden": false,
"path": "/packages/nest/src/generators/controller/schema.json",
Expand Down
Loading

0 comments on commit c92528f

Please sign in to comment.