@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,191 +1,191 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "GeneratorAngularLibrary",
4
- "title": "Create a library",
5
- "description": "Creates an Angular library.",
6
- "type": "object",
7
- "cli": "nx",
8
- "properties": {
9
- "name": {
10
- "type": "string",
11
- "description": "The name of the library.",
12
- "x-priority": "important"
13
- },
14
- "directory": {
15
- "type": "string",
16
- "description": "A directory where the library is placed.",
17
- "$default": {
18
- "$source": "argv",
19
- "index": 0
20
- },
21
- "x-prompt": "Which directory do you want to create the library in?"
22
- },
23
- "publishable": {
24
- "type": "boolean",
25
- "default": false,
26
- "description": "Generate a publishable library.",
27
- "x-priority": "important"
28
- },
29
- "buildable": {
30
- "type": "boolean",
31
- "default": false,
32
- "description": "Generate a buildable library.",
33
- "x-priority": "important"
34
- },
35
- "prefix": {
36
- "type": "string",
37
- "format": "html-selector",
38
- "description": "The prefix to apply to generated selectors.",
39
- "alias": "p"
40
- },
41
- "skipFormat": {
42
- "description": "Skip formatting files.",
43
- "type": "boolean",
44
- "default": false,
45
- "x-priority": "internal"
46
- },
47
- "addModuleSpec": {
48
- "description": "Add a module spec file.",
49
- "type": "boolean",
50
- "default": false
51
- },
52
- "skipPackageJson": {
53
- "type": "boolean",
54
- "default": false,
55
- "description": "Do not add dependencies to `package.json`.",
56
- "x-priority": "internal"
57
- },
58
- "skipTsConfig": {
59
- "type": "boolean",
60
- "default": false,
61
- "description": "Do not update `tsconfig.json` for development experience."
62
- },
63
- "routing": {
64
- "type": "boolean",
65
- "default": false,
66
- "description": "Add router configuration. See `lazy` for more information.",
67
- "x-priority": "important"
68
- },
69
- "lazy": {
70
- "type": "boolean",
71
- "default": false,
72
- "description": "Add `RouterModule.forChild` when set to true, and a simple array of routes when set to false.",
73
- "x-priority": "important"
74
- },
75
- "parent": {
76
- "type": "string",
77
- "description": "Path to the parent route configuration using `loadChildren` or `children`, depending on what `lazy` is set to.",
78
- "x-priority": "important"
79
- },
80
- "tags": {
81
- "type": "string",
82
- "description": "Add tags to the library (used for linting)."
83
- },
84
- "unitTestRunner": {
85
- "type": "string",
86
- "enum": ["vitest-angular", "vitest-analog", "jest", "none"],
87
- "description": "Test runner to use for unit tests. `vitest-angular` uses the `@nx/angular:unit-test` executor (requires Angular v21+ and a buildable/publishable library). `vitest-analog` uses AnalogJS-based setup with `@nx/vitest`. It defaults to `vitest-angular` for buildable/publishable libraries on Angular >= 21.0.0, `vitest-analog` for non-buildable libraries on Angular >= 21.0.0, otherwise `jest`.",
88
- "x-prompt": "Which unit test runner would you like to use?"
89
- },
90
- "importPath": {
91
- "type": "string",
92
- "description": "The library name used to import it, like `@myorg/my-awesome-lib`. Must be a valid npm name."
93
- },
94
- "strict": {
95
- "type": "boolean",
96
- "description": "Create a library with stricter type checking and build optimization options.",
97
- "default": true
98
- },
99
- "linter": {
100
- "description": "The tool to use for running lint checks.",
101
- "type": "string",
102
- "enum": ["eslint", "none"],
103
- "default": "eslint"
104
- },
105
- "compilationMode": {
106
- "description": "Specifies the compilation mode to use. If not specified, it will default to `partial` for publishable libraries and to `full` for buildable libraries. The `full` value can not be used for publishable libraries.",
107
- "type": "string",
108
- "enum": ["full", "partial"]
109
- },
110
- "setParserOptionsProject": {
111
- "type": "boolean",
112
- "description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
113
- "default": false
114
- },
115
- "addTailwind": {
116
- "type": "boolean",
117
- "description": "Whether to configure Tailwind CSS for the application. It can only be used with buildable and publishable libraries. Non-buildable libraries will use the application's Tailwind configuration.",
118
- "default": false
119
- },
120
- "skipModule": {
121
- "type": "boolean",
122
- "description": "Whether to skip the creation of a default module when generating the library.",
123
- "default": false
124
- },
125
- "standalone": {
126
- "type": "boolean",
127
- "description": "Generate a library that uses a standalone component instead of a module as the entry point.",
128
- "default": true
129
- },
130
- "displayBlock": {
131
- "description": "Specifies if the component generated style will contain `:host { display: block; }`. Disclaimer: This option is only valid when `--standalone` is set to `true`.",
132
- "type": "boolean",
133
- "default": false,
134
- "alias": "b"
135
- },
136
- "inlineStyle": {
137
- "description": "Include styles inline in the component.ts file. Only CSS styles can be included inline. By default, an external styles file is created and referenced in the component.ts file. Disclaimer: This option is only valid when `--standalone` is set to `true`.",
138
- "type": "boolean",
139
- "default": false,
140
- "alias": "s"
141
- },
142
- "inlineTemplate": {
143
- "description": "Include template inline in the component.ts file. By default, an external template file is created and referenced in the component.ts file. Disclaimer: This option is only valid when `--standalone` is set to `true`.",
144
- "type": "boolean",
145
- "default": false,
146
- "alias": "t"
147
- },
148
- "viewEncapsulation": {
149
- "description": "The view encapsulation strategy to use in the new component. Disclaimer: This option is only valid when `--standalone` is set to `true`.",
150
- "enum": ["Emulated", "None", "ShadowDom"],
151
- "type": "string",
152
- "alias": "v"
153
- },
154
- "changeDetection": {
155
- "description": "The change detection strategy to use in the new component. Disclaimer: This option is only valid when `--standalone` is set to `true`.",
156
- "enum": ["Default", "OnPush"],
157
- "type": "string",
158
- "default": "Default",
159
- "alias": "c"
160
- },
161
- "style": {
162
- "description": "The file extension or preprocessor to use for style files, or `none` to skip generating the style file. Disclaimer: This option is only valid when `--standalone` is set to `true`.",
163
- "type": "string",
164
- "default": "css",
165
- "enum": ["css", "scss", "sass", "less", "none"]
166
- },
167
- "skipTests": {
168
- "type": "boolean",
169
- "description": "Do not create `spec.ts` test files for the new component. Disclaimer: This option is only valid when `--standalone` is set to `true`.",
170
- "default": false
171
- },
172
- "selector": {
173
- "type": "string",
174
- "format": "html-selector",
175
- "description": "The HTML selector to use for this component. Disclaimer: This option is only valid when `--standalone` is set to `true`."
176
- },
177
- "skipSelector": {
178
- "type": "boolean",
179
- "default": false,
180
- "description": "Specifies if the component should have a selector or not. Disclaimer: This option is only valid when `--standalone` is set to `true`."
181
- },
182
- "flat": {
183
- "type": "boolean",
184
- "default": false,
185
- "description": "Ensure the generated standalone component is not placed in a subdirectory. Disclaimer: This option is only valid when `--standalone` is set to `true`."
186
- }
187
- },
188
- "additionalProperties": false,
189
- "required": ["directory"],
190
- "examplesFile": "../../../docs/library-examples.md"
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "GeneratorAngularLibrary",
4
+ "title": "Create a library",
5
+ "description": "Creates an Angular library.",
6
+ "type": "object",
7
+ "cli": "nx",
8
+ "properties": {
9
+ "name": {
10
+ "type": "string",
11
+ "description": "The name of the library.",
12
+ "x-priority": "important"
13
+ },
14
+ "directory": {
15
+ "type": "string",
16
+ "description": "A directory where the library is placed.",
17
+ "$default": {
18
+ "$source": "argv",
19
+ "index": 0
20
+ },
21
+ "x-prompt": "Which directory do you want to create the library in?"
22
+ },
23
+ "publishable": {
24
+ "type": "boolean",
25
+ "default": false,
26
+ "description": "Generate a publishable library.",
27
+ "x-priority": "important"
28
+ },
29
+ "buildable": {
30
+ "type": "boolean",
31
+ "default": false,
32
+ "description": "Generate a buildable library.",
33
+ "x-priority": "important"
34
+ },
35
+ "prefix": {
36
+ "type": "string",
37
+ "format": "html-selector",
38
+ "description": "The prefix to apply to generated selectors.",
39
+ "alias": "p"
40
+ },
41
+ "skipFormat": {
42
+ "description": "Skip formatting files.",
43
+ "type": "boolean",
44
+ "default": false,
45
+ "x-priority": "internal"
46
+ },
47
+ "addModuleSpec": {
48
+ "description": "Add a module spec file.",
49
+ "type": "boolean",
50
+ "default": false
51
+ },
52
+ "skipPackageJson": {
53
+ "type": "boolean",
54
+ "default": false,
55
+ "description": "Do not add dependencies to `package.json`.",
56
+ "x-priority": "internal"
57
+ },
58
+ "skipTsConfig": {
59
+ "type": "boolean",
60
+ "default": false,
61
+ "description": "Do not update `tsconfig.json` for development experience."
62
+ },
63
+ "routing": {
64
+ "type": "boolean",
65
+ "default": false,
66
+ "description": "Add router configuration. See `lazy` for more information.",
67
+ "x-priority": "important"
68
+ },
69
+ "lazy": {
70
+ "type": "boolean",
71
+ "default": false,
72
+ "description": "Add `RouterModule.forChild` when set to true, and a simple array of routes when set to false.",
73
+ "x-priority": "important"
74
+ },
75
+ "parent": {
76
+ "type": "string",
77
+ "description": "Path to the parent route configuration using `loadChildren` or `children`, depending on what `lazy` is set to.",
78
+ "x-priority": "important"
79
+ },
80
+ "tags": {
81
+ "type": "string",
82
+ "description": "Add tags to the library (used for linting)."
83
+ },
84
+ "unitTestRunner": {
85
+ "type": "string",
86
+ "enum": ["vitest-angular", "vitest-analog", "jest", "none"],
87
+ "description": "Test runner to use for unit tests. `vitest-angular` uses the `@nx/angular:unit-test` executor (requires Angular v21+ and a buildable/publishable library). `vitest-analog` uses AnalogJS-based setup with `@nx/vitest`. It defaults to `vitest-angular` for buildable/publishable libraries on Angular >= 21.0.0, `vitest-analog` for non-buildable libraries on Angular >= 21.0.0, otherwise `jest`.",
88
+ "x-prompt": "Which unit test runner would you like to use?"
89
+ },
90
+ "importPath": {
91
+ "type": "string",
92
+ "description": "The library name used to import it, like `@myorg/my-awesome-lib`. Must be a valid npm name."
93
+ },
94
+ "strict": {
95
+ "type": "boolean",
96
+ "description": "Create a library with stricter type checking and build optimization options.",
97
+ "default": true
98
+ },
99
+ "linter": {
100
+ "description": "The tool to use for running lint checks.",
101
+ "type": "string",
102
+ "enum": ["eslint", "none"],
103
+ "default": "eslint"
104
+ },
105
+ "compilationMode": {
106
+ "description": "Specifies the compilation mode to use. If not specified, it will default to `partial` for publishable libraries and to `full` for buildable libraries. The `full` value can not be used for publishable libraries.",
107
+ "type": "string",
108
+ "enum": ["full", "partial"]
109
+ },
110
+ "setParserOptionsProject": {
111
+ "type": "boolean",
112
+ "description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
113
+ "default": false
114
+ },
115
+ "addTailwind": {
116
+ "type": "boolean",
117
+ "description": "Whether to configure Tailwind CSS for the application. It can only be used with buildable and publishable libraries. Non-buildable libraries will use the application's Tailwind configuration.",
118
+ "default": false
119
+ },
120
+ "skipModule": {
121
+ "type": "boolean",
122
+ "description": "Whether to skip the creation of a default module when generating the library.",
123
+ "default": false
124
+ },
125
+ "standalone": {
126
+ "type": "boolean",
127
+ "description": "Generate a library that uses a standalone component instead of a module as the entry point.",
128
+ "default": true
129
+ },
130
+ "displayBlock": {
131
+ "description": "Specifies if the component generated style will contain `:host { display: block; }`. Disclaimer: This option is only valid when `--standalone` is set to `true`.",
132
+ "type": "boolean",
133
+ "default": false,
134
+ "alias": "b"
135
+ },
136
+ "inlineStyle": {
137
+ "description": "Include styles inline in the component.ts file. Only CSS styles can be included inline. By default, an external styles file is created and referenced in the component.ts file. Disclaimer: This option is only valid when `--standalone` is set to `true`.",
138
+ "type": "boolean",
139
+ "default": false,
140
+ "alias": "s"
141
+ },
142
+ "inlineTemplate": {
143
+ "description": "Include template inline in the component.ts file. By default, an external template file is created and referenced in the component.ts file. Disclaimer: This option is only valid when `--standalone` is set to `true`.",
144
+ "type": "boolean",
145
+ "default": false,
146
+ "alias": "t"
147
+ },
148
+ "viewEncapsulation": {
149
+ "description": "The view encapsulation strategy to use in the new component. Disclaimer: This option is only valid when `--standalone` is set to `true`.",
150
+ "enum": ["Emulated", "None", "ShadowDom"],
151
+ "type": "string",
152
+ "alias": "v"
153
+ },
154
+ "changeDetection": {
155
+ "description": "The change detection strategy to use in the new component. Disclaimer: This option is only valid when `--standalone` is set to `true`.",
156
+ "enum": ["Default", "OnPush"],
157
+ "type": "string",
158
+ "default": "Default",
159
+ "alias": "c"
160
+ },
161
+ "style": {
162
+ "description": "The file extension or preprocessor to use for style files, or `none` to skip generating the style file. Disclaimer: This option is only valid when `--standalone` is set to `true`.",
163
+ "type": "string",
164
+ "default": "css",
165
+ "enum": ["css", "scss", "sass", "less", "none"]
166
+ },
167
+ "skipTests": {
168
+ "type": "boolean",
169
+ "description": "Do not create `spec.ts` test files for the new component. Disclaimer: This option is only valid when `--standalone` is set to `true`.",
170
+ "default": false
171
+ },
172
+ "selector": {
173
+ "type": "string",
174
+ "format": "html-selector",
175
+ "description": "The HTML selector to use for this component. Disclaimer: This option is only valid when `--standalone` is set to `true`."
176
+ },
177
+ "skipSelector": {
178
+ "type": "boolean",
179
+ "default": false,
180
+ "description": "Specifies if the component should have a selector or not. Disclaimer: This option is only valid when `--standalone` is set to `true`."
181
+ },
182
+ "flat": {
183
+ "type": "boolean",
184
+ "default": false,
185
+ "description": "Ensure the generated standalone component is not placed in a subdirectory. Disclaimer: This option is only valid when `--standalone` is set to `true`."
186
+ }
187
+ },
188
+ "additionalProperties": false,
189
+ "required": ["directory"],
190
+ "examplesFile": "../../../docs/library-examples.md"
191
191
  }
@@ -8,7 +8,7 @@ function addPathMapping(tree, options) {
8
8
  const c = json.compilerOptions;
9
9
  c.paths = c.paths || {};
10
10
  c.paths[options.secondaryEntryPoint] = [
11
- `${options.libraryProject.root}/${options.name}/src/index.ts`,
11
+ `./${options.libraryProject.root}/${options.name}/src/index.ts`,
12
12
  ];
13
13
  return json;
14
14
  });
@@ -1 +1 @@
1
- {"version":3,"file":"update-tsconfig-included-files.d.ts","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/library-secondary-entry-point/lib/update-tsconfig-included-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AACtE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AAE5D,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,0BAA0B,GAClC,IAAI,CA8BN"}
1
+ {"version":3,"file":"update-tsconfig-included-files.d.ts","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/library-secondary-entry-point/lib/update-tsconfig-included-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AACtE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AAE5D,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,0BAA0B,GAClC,IAAI,CAwCN"}
@@ -13,12 +13,25 @@ function updateTsConfigIncludedFiles(tree, options) {
13
13
  // ignore if the library has a custom tsconfig setup
14
14
  return;
15
15
  }
16
+ const entryPointPrefix = `${options.name}/`;
16
17
  (0, devkit_1.updateJson)(tree, tsConfigPath, (json) => {
17
18
  if (json.include?.length) {
18
- json.include = json.include.map((path) => path.replace(/^(?:\.\/)?src\//, ''));
19
+ const newIncludes = [];
20
+ for (const pattern of json.include) {
21
+ if (pattern.includes('*')) {
22
+ newIncludes.push(`${entryPointPrefix}${pattern}`);
23
+ }
24
+ }
25
+ json.include = [...json.include, ...newIncludes];
19
26
  }
20
27
  if (json.exclude?.length) {
21
- json.exclude = json.exclude.map((path) => path.replace(/^(?:\.\/)?src\//, ''));
28
+ const newExcludes = [];
29
+ for (const pattern of json.exclude) {
30
+ if (pattern.includes('*')) {
31
+ newExcludes.push(`${entryPointPrefix}${pattern}`);
32
+ }
33
+ }
34
+ json.exclude = [...json.exclude, ...newExcludes];
22
35
  }
23
36
  return json;
24
37
  });
@@ -1,43 +1,43 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxAngularLibrarySecondaryEntryPoint",
4
- "title": "Creates a secondary entry point for a library",
5
- "description": "Creates a secondary entry point for an Angular publishable library.",
6
- "type": "object",
7
- "cli": "nx",
8
- "properties": {
9
- "name": {
10
- "type": "string",
11
- "description": "The name of the secondary entry point.",
12
- "$default": {
13
- "$source": "argv",
14
- "index": 0
15
- },
16
- "x-prompt": "What name would you like to use for the secondary entry point?",
17
- "pattern": "(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*(?:\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*)+|^[a-zA-Z][^:]*)$",
18
- "x-priority": "important"
19
- },
20
- "library": {
21
- "type": "string",
22
- "description": "The name of the library to create the secondary entry point for.",
23
- "x-prompt": "What library would you like to create the secondary entry point for?",
24
- "pattern": "(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*|^[a-zA-Z][^:]*)$",
25
- "x-dropdown": "projects",
26
- "x-priority": "important"
27
- },
28
- "skipModule": {
29
- "type": "boolean",
30
- "description": "Skip generating a module for the secondary entry point.",
31
- "default": false
32
- },
33
- "skipFormat": {
34
- "description": "Skip formatting files.",
35
- "type": "boolean",
36
- "default": false,
37
- "x-priority": "internal"
38
- }
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxAngularLibrarySecondaryEntryPoint",
4
+ "title": "Creates a secondary entry point for a library",
5
+ "description": "Creates a secondary entry point for an Angular publishable library.",
6
+ "type": "object",
7
+ "cli": "nx",
8
+ "properties": {
9
+ "name": {
10
+ "type": "string",
11
+ "description": "The name of the secondary entry point.",
12
+ "$default": {
13
+ "$source": "argv",
14
+ "index": 0
15
+ },
16
+ "x-prompt": "What name would you like to use for the secondary entry point?",
17
+ "pattern": "(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*(?:\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*)+|^[a-zA-Z][^:]*)$",
18
+ "x-priority": "important"
39
19
  },
40
- "additionalProperties": false,
41
- "required": ["name", "library"],
42
- "examplesFile": "../../../docs/library-secondary-entry-point-examples.md"
20
+ "library": {
21
+ "type": "string",
22
+ "description": "The name of the library to create the secondary entry point for.",
23
+ "x-prompt": "What library would you like to create the secondary entry point for?",
24
+ "pattern": "(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*|^[a-zA-Z][^:]*)$",
25
+ "x-dropdown": "projects",
26
+ "x-priority": "important"
27
+ },
28
+ "skipModule": {
29
+ "type": "boolean",
30
+ "description": "Skip generating a module for the secondary entry point.",
31
+ "default": false
32
+ },
33
+ "skipFormat": {
34
+ "description": "Skip formatting files.",
35
+ "type": "boolean",
36
+ "default": false,
37
+ "x-priority": "internal"
38
+ }
39
+ },
40
+ "additionalProperties": false,
41
+ "required": ["name", "library"],
42
+ "examplesFile": "../../../docs/library-secondary-entry-point-examples.md"
43
43
  }
@@ -1,56 +1,56 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxAngularMove",
4
- "cli": "nx",
5
- "title": "Nx Angular Move",
6
- "description": "Move an Angular project to another folder in the workspace.",
7
- "type": "object",
8
- "examples": [
9
- {
10
- "command": "nx g @nx/angular:move --project my-feature-lib --destination shared/my-feature-lib",
11
- "description": "Move libs/my-feature-lib to libs/shared/my-feature-lib."
12
- }
13
- ],
14
- "properties": {
15
- "projectName": {
16
- "type": "string",
17
- "alias": "project",
18
- "description": "The name of the Angular project to move.",
19
- "x-dropdown": "projects",
20
- "x-priority": "important"
21
- },
22
- "newProjectName": {
23
- "type": "string",
24
- "alias": "project",
25
- "description": "The new name of the project after the move.",
26
- "pattern": "(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*|^[a-zA-Z][^:]*)$",
27
- "x-priority": "important"
28
- },
29
- "destination": {
30
- "type": "string",
31
- "description": "The folder to move the Angular project into.",
32
- "$default": {
33
- "$source": "argv",
34
- "index": 0
35
- },
36
- "x-priority": "important"
37
- },
38
- "importPath": {
39
- "type": "string",
40
- "description": "The new import path to use in the `tsconfig.base.json`."
41
- },
42
- "updateImportPath": {
43
- "type": "boolean",
44
- "description": "Update the import path to reflect the new location.",
45
- "default": true
46
- },
47
- "skipFormat": {
48
- "type": "boolean",
49
- "aliases": ["skip-format"],
50
- "description": "Skip formatting files.",
51
- "default": false,
52
- "x-priority": "internal"
53
- }
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxAngularMove",
4
+ "cli": "nx",
5
+ "title": "Nx Angular Move",
6
+ "description": "Move an Angular project to another folder in the workspace.",
7
+ "type": "object",
8
+ "examples": [
9
+ {
10
+ "command": "nx g @nx/angular:move --project my-feature-lib --destination shared/my-feature-lib",
11
+ "description": "Move libs/my-feature-lib to libs/shared/my-feature-lib."
12
+ }
13
+ ],
14
+ "properties": {
15
+ "projectName": {
16
+ "type": "string",
17
+ "alias": "project",
18
+ "description": "The name of the Angular project to move.",
19
+ "x-dropdown": "projects",
20
+ "x-priority": "important"
54
21
  },
55
- "required": ["projectName", "destination"]
22
+ "newProjectName": {
23
+ "type": "string",
24
+ "alias": "project",
25
+ "description": "The new name of the project after the move.",
26
+ "pattern": "(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*|^[a-zA-Z][^:]*)$",
27
+ "x-priority": "important"
28
+ },
29
+ "destination": {
30
+ "type": "string",
31
+ "description": "The folder to move the Angular project into.",
32
+ "$default": {
33
+ "$source": "argv",
34
+ "index": 0
35
+ },
36
+ "x-priority": "important"
37
+ },
38
+ "importPath": {
39
+ "type": "string",
40
+ "description": "The new import path to use in the `tsconfig.base.json`."
41
+ },
42
+ "updateImportPath": {
43
+ "type": "boolean",
44
+ "description": "Update the import path to reflect the new location.",
45
+ "default": true
46
+ },
47
+ "skipFormat": {
48
+ "type": "boolean",
49
+ "aliases": ["skip-format"],
50
+ "description": "Skip formatting files.",
51
+ "default": false,
52
+ "x-priority": "internal"
53
+ }
54
+ },
55
+ "required": ["projectName", "destination"]
56
56
  }
@@ -1 +1 @@
1
- {"version":3,"file":"angular-eslint-lint.migrator.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/generators/ng-add/migrators/builders/angular-eslint-lint.migrator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EAEpB,IAAI,EACL,MAAM,YAAY,CAAC;AAUpB,OAAO,KAAK,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBAAa,yBAA0B,SAAQ,eAAe;IAC5D,OAAO,CAAC,mBAAmB,CAAS;IACpC,OAAO,CAAC,mBAAmB,CAAS;gBAGlC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,oBAAoB,EAC7B,aAAa,EAAE,oBAAoB,EACnC,MAAM,EAAE,MAAM;IAYP,OAAO,IAAI,IAAI;YA8BV,yBAAyB;IA8DvC,OAAO,CAAC,kBAAkB;IA2C1B,OAAO,CAAC,kCAAkC;CAiB3C"}
1
+ {"version":3,"file":"angular-eslint-lint.migrator.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/generators/ng-add/migrators/builders/angular-eslint-lint.migrator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EAEpB,IAAI,EACL,MAAM,YAAY,CAAC;AAQpB,OAAO,KAAK,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBAAa,yBAA0B,SAAQ,eAAe;IAC5D,OAAO,CAAC,mBAAmB,CAAS;IACpC,OAAO,CAAC,mBAAmB,CAAS;gBAGlC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,oBAAoB,EAC7B,aAAa,EAAE,oBAAoB,EACnC,MAAM,EAAE,MAAM;IAYP,OAAO,IAAI,IAAI;YA8BV,yBAAyB;IAuDvC,OAAO,CAAC,kBAAkB;IA2C1B,OAAO,CAAC,kCAAkC;CAiB3C"}