@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,83 +1,83 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxAngularStorybookConfigurationGenerator",
4
- "title": "Adds Storybook configuration to a project.",
5
- "description": "Adds Storybook configuration to a project to be able to use and create stories.",
6
- "cli": "nx",
7
- "type": "object",
8
- "properties": {
9
- "project": {
10
- "type": "string",
11
- "aliases": ["name", "projectName"],
12
- "description": "Project for which to generate Storybook configuration.",
13
- "$default": {
14
- "$source": "argv",
15
- "index": 0
16
- },
17
- "x-prompt": "For which project do you want to generate Storybook configuration?",
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
- "alias": ["configureTestRunner"],
26
- "x-priority": "important",
27
- "default": true
28
- },
29
- "generateStories": {
30
- "type": "boolean",
31
- "description": "Specifies whether to automatically generate `*.stories.ts` files for components declared in this project or not.",
32
- "x-prompt": "Automatically generate *.stories.ts files for components declared in this project?",
33
- "default": true,
34
- "x-priority": "important"
35
- },
36
- "configureStaticServe": {
37
- "type": "boolean",
38
- "description": "Specifies whether to configure a static file server target for serving storybook. Helpful for speeding up CI build/test times.",
39
- "x-prompt": "Configure a static file server for the storybook instance?",
40
- "default": true,
41
- "x-priority": "important"
42
- },
43
- "linter": {
44
- "description": "The tool to use for running lint checks.",
45
- "type": "string",
46
- "enum": ["eslint", "none"],
47
- "default": "eslint"
48
- },
49
- "tsConfiguration": {
50
- "type": "boolean",
51
- "description": "Configure your project with TypeScript. Generate main.ts and preview.ts files, instead of main.js and preview.js.",
52
- "default": true,
53
- "x-priority": "important"
54
- },
55
- "skipFormat": {
56
- "description": "Skip formatting files.",
57
- "type": "boolean",
58
- "default": false,
59
- "x-priority": "internal"
60
- },
61
- "ignorePaths": {
62
- "type": "array",
63
- "description": "Paths to ignore when looking for components.",
64
- "items": {
65
- "type": "string",
66
- "description": "Path to ignore."
67
- },
68
- "default": [
69
- "*.stories.ts,*.stories.tsx,*.stories.js,*.stories.jsx,*.stories.mdx"
70
- ],
71
- "examples": [
72
- "apps/my-app/src/not-stories/**",
73
- "**/**/src/**/not-stories/**",
74
- "libs/my-lib/**/*.something.ts",
75
- "**/**/src/**/*.other.*",
76
- "libs/my-lib/src/not-stories/**,**/**/src/**/*.other.*,apps/my-app/**/*.something.ts"
77
- ]
78
- }
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxAngularStorybookConfigurationGenerator",
4
+ "title": "Adds Storybook configuration to a project.",
5
+ "description": "Adds Storybook configuration to a project to be able to use and create stories.",
6
+ "cli": "nx",
7
+ "type": "object",
8
+ "properties": {
9
+ "project": {
10
+ "type": "string",
11
+ "aliases": ["name", "projectName"],
12
+ "description": "Project for which to generate Storybook configuration.",
13
+ "$default": {
14
+ "$source": "argv",
15
+ "index": 0
16
+ },
17
+ "x-prompt": "For which project do you want to generate Storybook configuration?",
18
+ "x-dropdown": "projects",
19
+ "x-priority": "important"
79
20
  },
80
- "additionalProperties": false,
81
- "required": ["project"],
82
- "examplesFile": "../../../docs/storybook-configuration-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
+ "alias": ["configureTestRunner"],
26
+ "x-priority": "important",
27
+ "default": true
28
+ },
29
+ "generateStories": {
30
+ "type": "boolean",
31
+ "description": "Specifies whether to automatically generate `*.stories.ts` files for components declared in this project or not.",
32
+ "x-prompt": "Automatically generate *.stories.ts files for components declared in this project?",
33
+ "default": true,
34
+ "x-priority": "important"
35
+ },
36
+ "configureStaticServe": {
37
+ "type": "boolean",
38
+ "description": "Specifies whether to configure a static file server target for serving storybook. Helpful for speeding up CI build/test times.",
39
+ "x-prompt": "Configure a static file server for the storybook instance?",
40
+ "default": true,
41
+ "x-priority": "important"
42
+ },
43
+ "linter": {
44
+ "description": "The tool to use for running lint checks.",
45
+ "type": "string",
46
+ "enum": ["eslint", "none"],
47
+ "default": "eslint"
48
+ },
49
+ "tsConfiguration": {
50
+ "type": "boolean",
51
+ "description": "Configure your project with TypeScript. Generate main.ts and preview.ts files, instead of main.js and preview.js.",
52
+ "default": true,
53
+ "x-priority": "important"
54
+ },
55
+ "skipFormat": {
56
+ "description": "Skip formatting files.",
57
+ "type": "boolean",
58
+ "default": false,
59
+ "x-priority": "internal"
60
+ },
61
+ "ignorePaths": {
62
+ "type": "array",
63
+ "description": "Paths to ignore when looking for components.",
64
+ "items": {
65
+ "type": "string",
66
+ "description": "Path to ignore."
67
+ },
68
+ "default": [
69
+ "*.stories.ts,*.stories.tsx,*.stories.js,*.stories.jsx,*.stories.mdx"
70
+ ],
71
+ "examples": [
72
+ "apps/my-app/src/not-stories/**",
73
+ "**/**/src/**/not-stories/**",
74
+ "libs/my-lib/**/*.something.ts",
75
+ "**/**/src/**/*.other.*",
76
+ "libs/my-lib/src/not-stories/**,**/**/src/**/*.other.*,apps/my-app/**/*.something.ts"
77
+ ]
78
+ }
79
+ },
80
+ "additionalProperties": false,
81
+ "required": ["project"],
82
+ "examplesFile": "../../../docs/storybook-configuration-examples.md"
83
83
  }
@@ -1,48 +1,48 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "$id": "NxAngularWebWorkerGenerator",
4
- "title": "Angular Web Worker Options Schema",
5
- "description": "Creates a new, generic web worker definition in the given or default project.",
6
- "cli": "nx",
7
- "type": "object",
8
- "properties": {
9
- "path": {
10
- "type": "string",
11
- "format": "path",
12
- "description": "The path at which to create the worker file, relative to the current workspace."
13
- },
14
- "project": {
15
- "type": "string",
16
- "description": "The name of the project.",
17
- "$default": {
18
- "$source": "projectName"
19
- },
20
- "x-dropdown": "projects",
21
- "x-priority": "important"
22
- },
23
- "name": {
24
- "type": "string",
25
- "description": "The name of the worker.",
26
- "$default": {
27
- "$source": "argv",
28
- "index": 0
29
- },
30
- "x-prompt": "What name would you like to use for the worker?",
31
- "x-priority": "important"
32
- },
33
- "snippet": {
34
- "type": "boolean",
35
- "default": true,
36
- "description": "Add a worker creation snippet in a sibling file of the same name."
37
- },
38
- "skipFormat": {
39
- "description": "Skip formatting files.",
40
- "type": "boolean",
41
- "default": false,
42
- "x-priority": "internal"
43
- }
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "NxAngularWebWorkerGenerator",
4
+ "title": "Angular Web Worker Options Schema",
5
+ "description": "Creates a new, generic web worker definition in the given or default project.",
6
+ "cli": "nx",
7
+ "type": "object",
8
+ "properties": {
9
+ "path": {
10
+ "type": "string",
11
+ "format": "path",
12
+ "description": "The path at which to create the worker file, relative to the current workspace."
44
13
  },
45
- "additionalProperties": false,
46
- "required": ["name", "project"],
47
- "examplesFile": "../../../docs/web-worker-examples.md"
14
+ "project": {
15
+ "type": "string",
16
+ "description": "The name of the project.",
17
+ "$default": {
18
+ "$source": "projectName"
19
+ },
20
+ "x-dropdown": "projects",
21
+ "x-priority": "important"
22
+ },
23
+ "name": {
24
+ "type": "string",
25
+ "description": "The name of the worker.",
26
+ "$default": {
27
+ "$source": "argv",
28
+ "index": 0
29
+ },
30
+ "x-prompt": "What name would you like to use for the worker?",
31
+ "x-priority": "important"
32
+ },
33
+ "snippet": {
34
+ "type": "boolean",
35
+ "default": true,
36
+ "description": "Add a worker creation snippet in a sibling file of the same name."
37
+ },
38
+ "skipFormat": {
39
+ "description": "Skip formatting files.",
40
+ "type": "boolean",
41
+ "default": false,
42
+ "x-priority": "internal"
43
+ }
44
+ },
45
+ "additionalProperties": false,
46
+ "required": ["name", "project"],
47
+ "examplesFile": "../../../docs/web-worker-examples.md"
48
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/angular/src/plugins/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,aAAa,EAQnB,MAAM,YAAY,CAAC;AAYpB,MAAM,WAAW,oBAAoB;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAOD,KAAK,0BAA0B,GAAG;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG;IACxC,WAAW,EAAE,aAAa,GAAG,SAAS,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC;IACvD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC;CACtD,CAAC;AAkDF,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,oBAAoB,CAqB7D,CAAC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/angular/src/plugins/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,aAAa,EAQnB,MAAM,YAAY,CAAC;AAYpB,MAAM,WAAW,oBAAoB;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAOD,KAAK,0BAA0B,GAAG;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG;IACxC,WAAW,EAAE,aAAa,GAAG,SAAS,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC;IACvD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC;CACtD,CAAC;AAgDF,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,oBAAoB,CAwB7D,CAAC"}
@@ -46,7 +46,6 @@ const knownExecutors = {
46
46
  '@angular/build:unit-test',
47
47
  ]),
48
48
  };
49
- const pmc = (0, devkit_1.getPackageManagerCommand)();
50
49
  function readProjectsCache(cachePath) {
51
50
  return (0, node_fs_1.existsSync)(cachePath) ? (0, devkit_1.readJsonFile)(cachePath) : {};
52
51
  }
@@ -59,15 +58,16 @@ exports.createNodesV2 = [
59
58
  const optionsHash = (0, devkit_internals_1.hashObject)(options);
60
59
  const cachePath = (0, node_path_1.join)(cache_directory_1.workspaceDataDirectory, `angular-${optionsHash}.hash`);
61
60
  const projectsCache = readProjectsCache(cachePath);
61
+ const pmc = (0, devkit_1.getPackageManagerCommand)((0, devkit_1.detectPackageManager)(context.workspaceRoot));
62
62
  try {
63
- return await (0, devkit_1.createNodesFromFiles)((configFile, options, context) => createNodesInternal(configFile, options, context, projectsCache), configFiles, options, context);
63
+ return await (0, devkit_1.createNodesFromFiles)((configFile, options, context) => createNodesInternal(configFile, options, context, projectsCache, pmc), configFiles, options, context);
64
64
  }
65
65
  finally {
66
66
  writeProjectsToCache(cachePath, projectsCache);
67
67
  }
68
68
  },
69
69
  ];
70
- async function createNodesInternal(configFilePath, options, context, projectsCache) {
70
+ async function createNodesInternal(configFilePath, options, context, projectsCache, pmc) {
71
71
  const angularWorkspaceRoot = (0, node_path_1.dirname)(configFilePath);
72
72
  // Do not create a project if package.json isn't there
73
73
  const siblingFiles = (0, node_fs_1.readdirSync)((0, node_path_1.join)(context.workspaceRoot, angularWorkspaceRoot));
@@ -75,10 +75,10 @@ async function createNodesInternal(configFilePath, options, context, projectsCac
75
75
  return {};
76
76
  }
77
77
  const hash = await (0, calculate_hash_for_create_nodes_1.calculateHashForCreateNodes)(angularWorkspaceRoot, options, context, [(0, js_1.getLockFileName)((0, devkit_1.detectPackageManager)(context.workspaceRoot))]);
78
- projectsCache[hash] ??= await buildAngularProjects(configFilePath, options, angularWorkspaceRoot, context);
78
+ projectsCache[hash] ??= await buildAngularProjects(configFilePath, options, angularWorkspaceRoot, context, pmc);
79
79
  return { projects: projectsCache[hash] };
80
80
  }
81
- async function buildAngularProjects(configFilePath, options, angularWorkspaceRoot, context) {
81
+ async function buildAngularProjects(configFilePath, options, angularWorkspaceRoot, context, pmc) {
82
82
  const projects = {};
83
83
  const absoluteConfigFilePath = (0, node_path_1.join)(context.workspaceRoot, configFilePath);
84
84
  const angularJson = (0, devkit_1.readJsonFile)(absoluteConfigFilePath);
package/assets.json DELETED
@@ -1,23 +0,0 @@
1
- {
2
- "outDir": "dist/packages/angular",
3
- "assets": [
4
- {
5
- "glob": "**/files/**"
6
- },
7
- {
8
- "glob": "**/files/**/.gitkeep"
9
- },
10
- {
11
- "glob": "**/*.json",
12
- "ignore": ["tsconfig*.json", "project.json", ".eslintrc.json"]
13
- },
14
- {
15
- "glob": "**/*.js",
16
- "ignore": ["**/jest.config.js"]
17
- },
18
- {
19
- "glob": "**/*.d.ts"
20
- },
21
- "LICENSE"
22
- ]
23
- }
@@ -1,6 +0,0 @@
1
- {
2
- "$schema": "../../../node_modules/ng-packagr/ng-package.schema.json",
3
- "lib": {
4
- "entryFile": "index.ts"
5
- }
6
- }
package/ng-package.json DELETED
@@ -1,21 +0,0 @@
1
- {
2
- "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
- "lib": {
4
- "entryFile": "index.ts"
5
- },
6
- "dest": "../../dist/packages/angular",
7
- "deleteDestPath": false,
8
- "allowedNonPeerDependencies": [
9
- "nx",
10
- "@nx/",
11
- "@phenomnomnominal/tsquery",
12
- "@typescript-eslint/",
13
- "enquirer",
14
- "magic-string",
15
- "picocolors",
16
- "picomatch",
17
- "semver",
18
- "webpack-merge"
19
- ],
20
- "keepLifecycleScripts": true
21
- }
package/project.json DELETED
@@ -1,24 +0,0 @@
1
- {
2
- "name": "angular",
3
- "$schema": "../../node_modules/nx/schemas/project-schema.json",
4
- "sourceRoot": "packages/angular",
5
- "projectType": "library",
6
- "targets": {
7
- "build-ng": {
8
- "dependsOn": ["build-base", "typecheck"],
9
- "executor": "@nx/angular:package",
10
- "options": {
11
- "project": "packages/angular/ng-package.json",
12
- "tsConfig": "packages/angular/tsconfig.lib.runtime.json"
13
- },
14
- "outputs": ["{workspaceRoot}/dist/packages/angular"]
15
- },
16
- "build": {
17
- "dependsOn": ["^build", "build-ng", "typecheck", "build-base"],
18
- "outputs": ["{workspaceRoot}/dist/packages/angular/README.md"],
19
- "command": "node ./scripts/copy-readme.js angular",
20
- "inputs": ["copyReadme"]
21
- }
22
- },
23
- "implicitDependencies": ["vite"]
24
- }