@nx/angular 22.7.0-pr.33655.2b96277 → 22.7.0-pr.33655.57246dd

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/executors.json +62 -62
  2. package/generators.json +185 -185
  3. package/migrations.json +2412 -2412
  4. package/package.json +9 -9
  5. package/src/builders/dev-server/schema.json +163 -163
  6. package/src/builders/webpack-browser/schema.json +567 -567
  7. package/src/builders/webpack-server/schema.json +303 -303
  8. package/src/executors/application/schema.json +732 -732
  9. package/src/executors/browser-esbuild/schema.json +548 -548
  10. package/src/executors/delegate-build/schema.json +31 -31
  11. package/src/executors/extract-i18n/schema.json +47 -47
  12. package/src/executors/module-federation-dev-server/schema.json +164 -164
  13. package/src/executors/module-federation-ssr-dev-server/schema.json +119 -119
  14. package/src/executors/ng-packagr-lite/schema.json +35 -35
  15. package/src/executors/package/schema.json +35 -35
  16. package/src/executors/unit-test/schema.json +305 -305
  17. package/src/generators/add-linting/schema.json +48 -48
  18. package/src/generators/application/schema.json +188 -188
  19. package/src/generators/component/schema.json +123 -123
  20. package/src/generators/component-story/schema.json +50 -50
  21. package/src/generators/component-test/schema.json +52 -52
  22. package/src/generators/convert-to-application-executor/schema.json +23 -23
  23. package/src/generators/convert-to-rspack/schema.json +27 -27
  24. package/src/generators/convert-to-with-mf/schema.json +30 -30
  25. package/src/generators/cypress-component-configuration/schema.json +43 -43
  26. package/src/generators/directive/schema.json +89 -89
  27. package/src/generators/federate-module/schema.json +80 -80
  28. package/src/generators/host/schema.json +189 -189
  29. package/src/generators/init/schema.json +31 -31
  30. package/src/generators/library/schema.json +189 -189
  31. package/src/generators/library-secondary-entry-point/lib/add-path-mapping.js +1 -1
  32. package/src/generators/library-secondary-entry-point/lib/update-tsconfig-included-files.d.ts.map +1 -1
  33. package/src/generators/library-secondary-entry-point/lib/update-tsconfig-included-files.js +15 -2
  34. package/src/generators/library-secondary-entry-point/schema.json +40 -40
  35. package/src/generators/move/schema.json +53 -53
  36. package/src/generators/ng-add/migrators/builders/angular-eslint-lint.migrator.d.ts.map +1 -1
  37. package/src/generators/ng-add/migrators/builders/angular-eslint-lint.migrator.js +0 -7
  38. package/src/generators/ng-add/schema.json +63 -62
  39. package/src/generators/ng-add/utilities/workspace.d.ts.map +1 -1
  40. package/src/generators/ng-add/utilities/workspace.js +0 -1
  41. package/src/generators/ngrx/schema.json +99 -99
  42. package/src/generators/ngrx-feature-store/schema.json +69 -69
  43. package/src/generators/ngrx-root-store/schema.json +68 -68
  44. package/src/generators/pipe/schema.json +75 -75
  45. package/src/generators/remote/schema.json +182 -182
  46. package/src/generators/scam/schema.json +120 -120
  47. package/src/generators/scam-directive/schema.json +82 -82
  48. package/src/generators/scam-pipe/schema.json +64 -64
  49. package/src/generators/scam-to-standalone/schema.json +29 -29
  50. package/src/generators/setup-mf/schema.json +90 -90
  51. package/src/generators/setup-ssr/schema.json +70 -70
  52. package/src/generators/setup-tailwind/schema.json +39 -39
  53. package/src/generators/stories/schema.json +53 -53
  54. package/src/generators/storybook-configuration/schema.json +80 -80
  55. package/src/generators/web-worker/schema.json +45 -45
  56. package/src/plugins/plugin.d.ts.map +1 -1
  57. package/src/plugins/plugin.js +5 -5
  58. package/assets.json +0 -23
  59. package/mf/ng-package.json +0 -6
  60. package/ng-package.json +0 -21
  61. package/project.json +0 -24
@@ -1,93 +1,93 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "GeneratorAngularMFSetup",
4
- "cli": "nx",
5
- "title": "Generate Module Federation Setup for Angular App",
6
- "description": "Create Module Federation configuration files for given Angular Application.",
7
- "type": "object",
8
- "properties": {
9
- "appName": {
10
- "type": "string",
11
- "description": "The name of the application to generate the Module Federation configuration for.",
12
- "$default": {
13
- "$source": "argv",
14
- "index": 0
15
- },
16
- "x-prompt": "What app would you like to generate a Module Federation configuration for?",
17
- "x-dropdown": "projects"
18
- },
19
- "mfType": {
20
- "type": "string",
21
- "enum": ["host", "remote"],
22
- "description": "Type of application to generate the Module Federation configuration for.",
23
- "default": "remote"
24
- },
25
- "federationType": {
26
- "type": "string",
27
- "enum": ["static", "dynamic"],
28
- "description": "Use either Static or Dynamic Module Federation pattern for the application.",
29
- "default": "static"
30
- },
31
- "port": {
32
- "type": "number",
33
- "description": "The port at which the remote application should be served."
34
- },
35
- "remotes": {
36
- "type": "array",
37
- "description": "A list of remote application names that the Consumer (host) application should consume.",
38
- "alias": "producers"
39
- },
40
- "host": {
41
- "type": "string",
42
- "description": "The name of the host application that the remote application will be consumed by.",
43
- "alias": "consumer"
44
- },
45
- "routing": {
46
- "type": "boolean",
47
- "description": "Generate a routing setup to allow a Consumer (host) application to route to the Producer (remote) application.",
48
- "x-priority": "important"
49
- },
50
- "skipFormat": {
51
- "type": "boolean",
52
- "description": "Skip formatting the workspace after the generator completes.",
53
- "x-priority": "internal"
54
- },
55
- "skipPackageJson": {
56
- "type": "boolean",
57
- "default": false,
58
- "description": "Do not add dependencies to `package.json`.",
59
- "x-priority": "internal"
60
- },
61
- "skipE2E": {
62
- "type": "boolean",
63
- "default": false,
64
- "description": "Do not set up E2E related config."
65
- },
66
- "e2eProjectName": {
67
- "type": "string",
68
- "description": "The project name of the associated E2E project for the application. This is only required for Cypress E2E projects that do not follow the naming convention `<appName>-e2e`."
69
- },
70
- "prefix": {
71
- "type": "string",
72
- "description": "The prefix to use for any generated component."
73
- },
74
- "standalone": {
75
- "type": "boolean",
76
- "description": "Whether the application is a standalone application.",
77
- "default": true
78
- },
79
- "typescriptConfiguration": {
80
- "type": "boolean",
81
- "description": "Whether the module federation configuration and webpack configuration files should use TS.",
82
- "default": true
83
- },
84
- "setParserOptionsProject": {
85
- "type": "boolean",
86
- "description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
87
- "default": false
88
- }
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "GeneratorAngularMFSetup",
4
+ "cli": "nx",
5
+ "title": "Generate Module Federation Setup for Angular App",
6
+ "description": "Create Module Federation configuration files for given Angular Application.",
7
+ "type": "object",
8
+ "properties": {
9
+ "appName": {
10
+ "type": "string",
11
+ "description": "The name of the application to generate the Module Federation configuration for.",
12
+ "$default": {
13
+ "$source": "argv",
14
+ "index": 0
15
+ },
16
+ "x-prompt": "What app would you like to generate a Module Federation configuration for?",
17
+ "x-dropdown": "projects"
89
18
  },
90
- "required": ["appName", "mfType"],
91
- "additionalProperties": false,
92
- "examplesFile": "../../../docs/setup-mf-examples.md"
19
+ "mfType": {
20
+ "type": "string",
21
+ "enum": ["host", "remote"],
22
+ "description": "Type of application to generate the Module Federation configuration for.",
23
+ "default": "remote"
24
+ },
25
+ "federationType": {
26
+ "type": "string",
27
+ "enum": ["static", "dynamic"],
28
+ "description": "Use either Static or Dynamic Module Federation pattern for the application.",
29
+ "default": "static"
30
+ },
31
+ "port": {
32
+ "type": "number",
33
+ "description": "The port at which the remote application should be served."
34
+ },
35
+ "remotes": {
36
+ "type": "array",
37
+ "description": "A list of remote application names that the Consumer (host) application should consume.",
38
+ "alias": "producers"
39
+ },
40
+ "host": {
41
+ "type": "string",
42
+ "description": "The name of the host application that the remote application will be consumed by.",
43
+ "alias": "consumer"
44
+ },
45
+ "routing": {
46
+ "type": "boolean",
47
+ "description": "Generate a routing setup to allow a Consumer (host) application to route to the Producer (remote) application.",
48
+ "x-priority": "important"
49
+ },
50
+ "skipFormat": {
51
+ "type": "boolean",
52
+ "description": "Skip formatting the workspace after the generator completes.",
53
+ "x-priority": "internal"
54
+ },
55
+ "skipPackageJson": {
56
+ "type": "boolean",
57
+ "default": false,
58
+ "description": "Do not add dependencies to `package.json`.",
59
+ "x-priority": "internal"
60
+ },
61
+ "skipE2E": {
62
+ "type": "boolean",
63
+ "default": false,
64
+ "description": "Do not set up E2E related config."
65
+ },
66
+ "e2eProjectName": {
67
+ "type": "string",
68
+ "description": "The project name of the associated E2E project for the application. This is only required for Cypress E2E projects that do not follow the naming convention `<appName>-e2e`."
69
+ },
70
+ "prefix": {
71
+ "type": "string",
72
+ "description": "The prefix to use for any generated component."
73
+ },
74
+ "standalone": {
75
+ "type": "boolean",
76
+ "description": "Whether the application is a standalone application.",
77
+ "default": true
78
+ },
79
+ "typescriptConfiguration": {
80
+ "type": "boolean",
81
+ "description": "Whether the module federation configuration and webpack configuration files should use TS.",
82
+ "default": true
83
+ },
84
+ "setParserOptionsProject": {
85
+ "type": "boolean",
86
+ "description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
87
+ "default": false
88
+ }
89
+ },
90
+ "required": ["appName", "mfType"],
91
+ "additionalProperties": false,
92
+ "examplesFile": "../../../docs/setup-mf-examples.md"
93
93
  }
@@ -1,73 +1,73 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "GeneratorAngularUniversalSetup",
4
- "cli": "nx",
5
- "title": "Generate Angular Universal (SSR) setup for an Angular App",
6
- "description": "Create the additional configuration required to enable SSR via Angular Universal for an Angular application.",
7
- "type": "object",
8
- "properties": {
9
- "project": {
10
- "type": "string",
11
- "description": "The name of the application to generate the Angular Universal configuration for.",
12
- "$default": {
13
- "$source": "argv",
14
- "index": 0
15
- },
16
- "x-prompt": "What app would you like to generate an Angular Universal configuration for?",
17
- "x-dropdown": "projects"
18
- },
19
- "main": {
20
- "type": "string",
21
- "format": "path",
22
- "description": "The name of the main entry-point file.",
23
- "default": "main.server.ts"
24
- },
25
- "serverFileName": {
26
- "type": "string",
27
- "default": "server.ts",
28
- "description": "The name of the Express server file."
29
- },
30
- "serverPort": {
31
- "type": "number",
32
- "default": 4000,
33
- "description": "The port for the Express server."
34
- },
35
- "rootModuleFileName": {
36
- "type": "string",
37
- "format": "path",
38
- "description": "The name of the root module file",
39
- "default": "app.server.module.ts"
40
- },
41
- "rootModuleClassName": {
42
- "type": "string",
43
- "description": "The name of the root module class.",
44
- "default": "AppServerModule"
45
- },
46
- "standalone": {
47
- "type": "boolean",
48
- "description": "Use Standalone Components to bootstrap SSR."
49
- },
50
- "hydration": {
51
- "type": "boolean",
52
- "description": "Set up Hydration for the SSR application.",
53
- "default": true
54
- },
55
- "serverRouting": {
56
- "description": "Creates a server application using the Server Routing and App Engine APIs for application using the `application` builder (Developer Preview). _Note: this is only supported in Angular versions 19.x.x_. From Angular 20 onwards, SSR will always enable server routing when using the `application` builder.",
57
- "type": "boolean"
58
- },
59
- "skipFormat": {
60
- "type": "boolean",
61
- "description": "Skip formatting the workspace after the generator completes.",
62
- "x-priority": "internal"
63
- },
64
- "skipPackageJson": {
65
- "type": "boolean",
66
- "default": false,
67
- "description": "Do not add dependencies to `package.json`.",
68
- "x-priority": "internal"
69
- }
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "GeneratorAngularUniversalSetup",
4
+ "cli": "nx",
5
+ "title": "Generate Angular Universal (SSR) setup for an Angular App",
6
+ "description": "Create the additional configuration required to enable SSR via Angular Universal for an Angular application.",
7
+ "type": "object",
8
+ "properties": {
9
+ "project": {
10
+ "type": "string",
11
+ "description": "The name of the application to generate the Angular Universal configuration for.",
12
+ "$default": {
13
+ "$source": "argv",
14
+ "index": 0
15
+ },
16
+ "x-prompt": "What app would you like to generate an Angular Universal configuration for?",
17
+ "x-dropdown": "projects"
70
18
  },
71
- "required": ["project"],
72
- "additionalProperties": false
19
+ "main": {
20
+ "type": "string",
21
+ "format": "path",
22
+ "description": "The name of the main entry-point file.",
23
+ "default": "main.server.ts"
24
+ },
25
+ "serverFileName": {
26
+ "type": "string",
27
+ "default": "server.ts",
28
+ "description": "The name of the Express server file."
29
+ },
30
+ "serverPort": {
31
+ "type": "number",
32
+ "default": 4000,
33
+ "description": "The port for the Express server."
34
+ },
35
+ "rootModuleFileName": {
36
+ "type": "string",
37
+ "format": "path",
38
+ "description": "The name of the root module file",
39
+ "default": "app.server.module.ts"
40
+ },
41
+ "rootModuleClassName": {
42
+ "type": "string",
43
+ "description": "The name of the root module class.",
44
+ "default": "AppServerModule"
45
+ },
46
+ "standalone": {
47
+ "type": "boolean",
48
+ "description": "Use Standalone Components to bootstrap SSR."
49
+ },
50
+ "hydration": {
51
+ "type": "boolean",
52
+ "description": "Set up Hydration for the SSR application.",
53
+ "default": true
54
+ },
55
+ "serverRouting": {
56
+ "description": "Creates a server application using the Server Routing and App Engine APIs for application using the `application` builder (Developer Preview). _Note: this is only supported in Angular versions 19.x.x_. From Angular 20 onwards, SSR will always enable server routing when using the `application` builder.",
57
+ "type": "boolean"
58
+ },
59
+ "skipFormat": {
60
+ "type": "boolean",
61
+ "description": "Skip formatting the workspace after the generator completes.",
62
+ "x-priority": "internal"
63
+ },
64
+ "skipPackageJson": {
65
+ "type": "boolean",
66
+ "default": false,
67
+ "description": "Do not add dependencies to `package.json`.",
68
+ "x-priority": "internal"
69
+ }
70
+ },
71
+ "required": ["project"],
72
+ "additionalProperties": false
73
73
  }
@@ -1,42 +1,42 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxAngularTailwindSetupGenerator",
4
- "cli": "nx",
5
- "title": "Configures Tailwind CSS for an application or a buildable/publishable library.",
6
- "description": "Adds the Tailwind CSS configuration files for a given Angular project and installs, if needed, the packages required for Tailwind CSS to work.",
7
- "type": "object",
8
- "properties": {
9
- "project": {
10
- "type": "string",
11
- "description": "The name of the project to add the Tailwind CSS setup for.",
12
- "$default": {
13
- "$source": "argv",
14
- "index": 0
15
- },
16
- "x-prompt": "What project would you like to add the Tailwind CSS setup?"
17
- },
18
- "buildTarget": {
19
- "type": "string",
20
- "description": "The name of the target used to build the project. This option only applies to buildable/publishable libraries.",
21
- "default": "build"
22
- },
23
- "skipFormat": {
24
- "type": "boolean",
25
- "description": "Skips formatting the workspace after the generator completes.",
26
- "x-priority": "internal"
27
- },
28
- "stylesEntryPoint": {
29
- "type": "string",
30
- "description": "Path to the styles entry point relative to the workspace root. If not provided the generator will do its best to find it and it will error if it can't. This option only applies to applications."
31
- },
32
- "skipPackageJson": {
33
- "type": "boolean",
34
- "default": false,
35
- "description": "Do not add dependencies to `package.json`.",
36
- "x-priority": "internal"
37
- }
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxAngularTailwindSetupGenerator",
4
+ "cli": "nx",
5
+ "title": "Configures Tailwind CSS for an application or a buildable/publishable library.",
6
+ "description": "Adds the Tailwind CSS configuration files for a given Angular project and installs, if needed, the packages required for Tailwind CSS to work.",
7
+ "type": "object",
8
+ "properties": {
9
+ "project": {
10
+ "type": "string",
11
+ "description": "The name of the project to add the Tailwind CSS setup for.",
12
+ "$default": {
13
+ "$source": "argv",
14
+ "index": 0
15
+ },
16
+ "x-prompt": "What project would you like to add the Tailwind CSS setup?"
38
17
  },
39
- "additionalProperties": false,
40
- "required": ["project"],
41
- "examplesFile": "../../../docs/setup-tailwind-examples.md"
18
+ "buildTarget": {
19
+ "type": "string",
20
+ "description": "The name of the target used to build the project. This option only applies to buildable/publishable libraries.",
21
+ "default": "build"
22
+ },
23
+ "skipFormat": {
24
+ "type": "boolean",
25
+ "description": "Skips formatting the workspace after the generator completes.",
26
+ "x-priority": "internal"
27
+ },
28
+ "stylesEntryPoint": {
29
+ "type": "string",
30
+ "description": "Path to the styles entry point relative to the workspace root. If not provided the generator will do its best to find it and it will error if it can't. This option only applies to applications."
31
+ },
32
+ "skipPackageJson": {
33
+ "type": "boolean",
34
+ "default": false,
35
+ "description": "Do not add dependencies to `package.json`.",
36
+ "x-priority": "internal"
37
+ }
38
+ },
39
+ "additionalProperties": false,
40
+ "required": ["project"],
41
+ "examplesFile": "../../../docs/setup-tailwind-examples.md"
42
42
  }
@@ -1,56 +1,56 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxAngularStorybookStoriesGenerator",
4
- "title": "Create Storybook stories/specs",
5
- "description": "Creates Storybook stories/specs for all Angular components declared in a project.",
6
- "cli": "nx",
7
- "type": "object",
8
- "properties": {
9
- "name": {
10
- "type": "string",
11
- "aliases": ["project", "projectName"],
12
- "description": "Project for which to generate stories.",
13
- "$default": {
14
- "$source": "argv",
15
- "index": 0
16
- },
17
- "x-prompt": "What's the name of the project for which you want to generate stories?",
18
- "x-dropdown": "projects",
19
- "x-priority": "important"
20
- },
21
- "interactionTests": {
22
- "type": "boolean",
23
- "description": "Set up Storybook interaction tests.",
24
- "x-prompt": "Do you want to set up Storybook interaction tests?",
25
- "x-priority": "important",
26
- "default": true
27
- },
28
- "skipFormat": {
29
- "description": "Skip formatting files.",
30
- "type": "boolean",
31
- "default": false,
32
- "x-priority": "internal"
33
- },
34
- "ignorePaths": {
35
- "type": "array",
36
- "description": "Paths to ignore when looking for components.",
37
- "items": {
38
- "type": "string",
39
- "description": "Path to ignore."
40
- },
41
- "default": [
42
- "*.stories.ts,*.stories.tsx,*.stories.js,*.stories.jsx,*.stories.mdx"
43
- ],
44
- "examples": [
45
- "apps/my-app/src/not-stories/**",
46
- "**/**/src/**/not-stories/**",
47
- "libs/my-lib/**/*.something.ts",
48
- "**/**/src/**/*.other.*",
49
- "libs/my-lib/src/not-stories/**,**/**/src/**/*.other.*,apps/my-app/**/*.something.ts"
50
- ]
51
- }
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxAngularStorybookStoriesGenerator",
4
+ "title": "Create Storybook stories/specs",
5
+ "description": "Creates Storybook stories/specs for all Angular components declared in a project.",
6
+ "cli": "nx",
7
+ "type": "object",
8
+ "properties": {
9
+ "name": {
10
+ "type": "string",
11
+ "aliases": ["project", "projectName"],
12
+ "description": "Project for which to generate stories.",
13
+ "$default": {
14
+ "$source": "argv",
15
+ "index": 0
16
+ },
17
+ "x-prompt": "What's the name of the project for which you want to generate stories?",
18
+ "x-dropdown": "projects",
19
+ "x-priority": "important"
52
20
  },
53
- "additionalProperties": false,
54
- "required": ["name"],
55
- "examplesFile": "../../../docs/stories-examples.md"
21
+ "interactionTests": {
22
+ "type": "boolean",
23
+ "description": "Set up Storybook interaction tests.",
24
+ "x-prompt": "Do you want to set up Storybook interaction tests?",
25
+ "x-priority": "important",
26
+ "default": true
27
+ },
28
+ "skipFormat": {
29
+ "description": "Skip formatting files.",
30
+ "type": "boolean",
31
+ "default": false,
32
+ "x-priority": "internal"
33
+ },
34
+ "ignorePaths": {
35
+ "type": "array",
36
+ "description": "Paths to ignore when looking for components.",
37
+ "items": {
38
+ "type": "string",
39
+ "description": "Path to ignore."
40
+ },
41
+ "default": [
42
+ "*.stories.ts,*.stories.tsx,*.stories.js,*.stories.jsx,*.stories.mdx"
43
+ ],
44
+ "examples": [
45
+ "apps/my-app/src/not-stories/**",
46
+ "**/**/src/**/not-stories/**",
47
+ "libs/my-lib/**/*.something.ts",
48
+ "**/**/src/**/*.other.*",
49
+ "libs/my-lib/src/not-stories/**,**/**/src/**/*.other.*,apps/my-app/**/*.something.ts"
50
+ ]
51
+ }
52
+ },
53
+ "additionalProperties": false,
54
+ "required": ["name"],
55
+ "examplesFile": "../../../docs/stories-examples.md"
56
56
  }