@ng-doc/add 22.0.0-beta.1 → 22.0.0

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 (63) hide show
  1. package/README.md +19 -29
  2. package/package.json +23 -21
  3. package/schematics/collection.json +14 -14
  4. package/schematics/ng-add/constants/modules.d.ts +22 -0
  5. package/schematics/ng-add/constants/modules.js +25 -11
  6. package/schematics/ng-add/constants/modules.js.map +1 -1
  7. package/schematics/ng-add/constants/styles.d.ts +4 -0
  8. package/schematics/ng-add/constants/styles.js +8 -1
  9. package/schematics/ng-add/constants/styles.js.map +1 -1
  10. package/schematics/ng-add/index.d.ts +5 -2
  11. package/schematics/ng-add/index.js +43 -14
  12. package/schematics/ng-add/index.js.map +1 -1
  13. package/schematics/ng-add/schema.d.ts +8 -0
  14. package/schematics/ng-add/schema.json +19 -14
  15. package/schematics/ng-add/steps/add-assets.d.ts +2 -3
  16. package/schematics/ng-add/steps/add-assets.js +9 -4
  17. package/schematics/ng-add/steps/add-assets.js.map +1 -1
  18. package/schematics/ng-add/steps/add-git-ignore.d.ts +1 -3
  19. package/schematics/ng-add/steps/add-git-ignore.js +9 -4
  20. package/schematics/ng-add/steps/add-git-ignore.js.map +1 -1
  21. package/schematics/ng-add/steps/add-layout.d.ts +2 -2
  22. package/schematics/ng-add/steps/add-layout.js +8 -2
  23. package/schematics/ng-add/steps/add-layout.js.map +1 -1
  24. package/schematics/ng-add/steps/add-ng-doc-app-config.d.ts +5 -1
  25. package/schematics/ng-add/steps/add-ng-doc-app-config.js +200 -54
  26. package/schematics/ng-add/steps/add-ng-doc-app-config.js.map +1 -1
  27. package/schematics/ng-add/steps/add-tsconfig-paths.js +2 -1
  28. package/schematics/ng-add/steps/add-tsconfig-paths.js.map +1 -1
  29. package/schematics/ng-add/steps/post-install.d.ts +4 -2
  30. package/schematics/ng-add/steps/post-install.js +4 -3
  31. package/schematics/ng-add/steps/post-install.js.map +1 -1
  32. package/schematics/ng-add/steps/raise-initial-budget.d.ts +22 -0
  33. package/schematics/ng-add/steps/raise-initial-budget.js +70 -0
  34. package/schematics/ng-add/steps/raise-initial-budget.js.map +1 -0
  35. package/schematics/ng-add/steps/replace-builders.d.ts +2 -2
  36. package/schematics/ng-add/steps/replace-builders.js +12 -4
  37. package/schematics/ng-add/steps/replace-builders.js.map +1 -1
  38. package/schematics/ng-add/steps/update-app-ts-config.js +2 -1
  39. package/schematics/ng-add/steps/update-app-ts-config.js.map +1 -1
  40. package/schematics/ng-add/utils/add-array-entry.d.ts +56 -0
  41. package/schematics/ng-add/utils/add-array-entry.js +325 -0
  42. package/schematics/ng-add/utils/add-array-entry.js.map +1 -0
  43. package/schematics/ng-add/utils/add-unique-import.d.ts +7 -3
  44. package/schematics/ng-add/utils/add-unique-import.js +21 -16
  45. package/schematics/ng-add/utils/add-unique-import.js.map +1 -1
  46. package/schematics/ng-add/utils/get-app-component.d.ts +4 -3
  47. package/schematics/ng-add/utils/get-app-component.js +7 -5
  48. package/schematics/ng-add/utils/get-app-component.js.map +1 -1
  49. package/schematics/ng-add/utils/get-app-template-path.d.ts +4 -8
  50. package/schematics/ng-add/utils/get-app-template-path.js +4 -4
  51. package/schematics/ng-add/utils/get-app-template-path.js.map +1 -1
  52. package/schematics/ng-add/utils/get-build-options-target.d.ts +17 -0
  53. package/schematics/ng-add/utils/get-build-options-target.js +27 -0
  54. package/schematics/ng-add/utils/get-build-options-target.js.map +1 -0
  55. package/schematics/ng-add/utils/get-main-path.d.ts +2 -2
  56. package/schematics/ng-add/utils/get-main-path.js +4 -3
  57. package/schematics/ng-add/utils/get-main-path.js.map +1 -1
  58. package/schematics/ng-add/utils/get-root-module.d.ts +14 -0
  59. package/schematics/ng-add/utils/get-root-module.js +31 -0
  60. package/schematics/ng-add/utils/get-root-module.js.map +1 -0
  61. package/schematics/ng-add/utils/select-engine.d.ts +38 -0
  62. package/schematics/ng-add/utils/select-engine.js +97 -0
  63. package/schematics/ng-add/utils/select-engine.js.map +1 -0
@@ -2,12 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getMainPath = getMainPath;
4
4
  const schematics_1 = require("@angular/cdk/schematics");
5
+ const get_build_options_target_1 = require("./get-build-options-target");
5
6
  /**
6
- *
7
- * @param project
7
+ * Returns the browser entry of the application (`browser`, or `main` of older builders).
8
+ * @param project - The application project.
8
9
  */
9
10
  function getMainPath(project) {
10
- const buildOptions = (0, schematics_1.getProjectTargetOptions)(project, 'build');
11
+ const buildOptions = (0, schematics_1.getProjectTargetOptions)(project, (0, get_build_options_target_1.getBuildOptionsTarget)(project));
11
12
  return (buildOptions['main'] ?? buildOptions['browser']);
12
13
  }
13
14
  //# sourceMappingURL=get-main-path.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-main-path.js","sourceRoot":"","sources":["../../../../../../libs/add/schematics/ng-add/utils/get-main-path.ts"],"names":[],"mappings":";;AAQA,kCAOC;AAfD,wDAAkE;AAIlE;;;GAGG;AACH,SAAgB,WAAW,CAAC,OAA0B;IACrD,MAAM,YAAY,GAA0C,IAAA,oCAAuB,EAClF,OAAO,EACP,OAAO,CACP,CAAC;IAEF,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,YAAY,CAAC,SAAS,CAAC,CAAW,CAAC;AACpE,CAAC"}
1
+ {"version":3,"file":"get-main-path.js","sourceRoot":"","sources":["../../../../../../libs/add/schematics/ng-add/utils/get-main-path.ts"],"names":[],"mappings":";;AAUA,kCAOC;AAjBD,wDAAkE;AAIlE,yEAAmE;AAEnE;;;GAGG;AACH,SAAgB,WAAW,CAAC,OAA0B;IACpD,MAAM,YAAY,GAA0C,IAAA,oCAAuB,EACjF,OAAO,EACP,IAAA,gDAAqB,EAAC,OAAO,CAAC,CAC/B,CAAC;IAEF,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,YAAY,CAAC,SAAS,CAAC,CAAW,CAAC;AACrE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { CallExpression, ClassDeclaration } from 'ng-morph';
2
+ /**
3
+ * Finds the `bootstrapModule(...)` call of an NgModule application.
4
+ *
5
+ * The platform is not checked: Angular 22 applications call `platformBrowser().bootstrapModule`,
6
+ * older ones `platformBrowserDynamic().bootstrapModule`, and both must be found.
7
+ * @param mainPath - Path of the application's main file.
8
+ */
9
+ export declare function getBootstrapModuleFn(mainPath: string): CallExpression | undefined;
10
+ /**
11
+ * Returns the class of the module passed to `bootstrapModule`.
12
+ * @param mainPath - Path of the application's main file.
13
+ */
14
+ export declare function getRootModule(mainPath: string): ClassDeclaration | undefined;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getBootstrapModuleFn = getBootstrapModuleFn;
4
+ exports.getRootModule = getRootModule;
5
+ const ng_morph_1 = require("ng-morph");
6
+ /**
7
+ * Finds the `bootstrapModule(...)` call of an NgModule application.
8
+ *
9
+ * The platform is not checked: Angular 22 applications call `platformBrowser().bootstrapModule`,
10
+ * older ones `platformBrowserDynamic().bootstrapModule`, and both must be found.
11
+ * @param mainPath - Path of the application's main file.
12
+ */
13
+ function getBootstrapModuleFn(mainPath) {
14
+ const [sourceFile] = (0, ng_morph_1.getSourceFiles)(mainPath);
15
+ return sourceFile
16
+ ?.getDescendantsOfKind(ng_morph_1.SyntaxKind.CallExpression)
17
+ .find((call) => {
18
+ const expression = call.getExpression();
19
+ return (ng_morph_1.Node.isPropertyAccessExpression(expression) && expression.getName() === 'bootstrapModule');
20
+ });
21
+ }
22
+ /**
23
+ * Returns the class of the module passed to `bootstrapModule`.
24
+ * @param mainPath - Path of the application's main file.
25
+ */
26
+ function getRootModule(mainPath) {
27
+ const [module] = getBootstrapModuleFn(mainPath)?.getArguments() ?? [];
28
+ const [definition] = ng_morph_1.Node.isIdentifier(module) ? module.getDefinitionNodes() : [];
29
+ return ng_morph_1.Node.isClassDeclaration(definition) ? definition : undefined;
30
+ }
31
+ //# sourceMappingURL=get-root-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-root-module.js","sourceRoot":"","sources":["../../../../../../libs/add/schematics/ng-add/utils/get-root-module.ts"],"names":[],"mappings":";;AAgBA,oDAYC;AAMD,sCAKC;AAvCD,uCAOkB;AAElB;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,QAAgB;IACnD,MAAM,CAAC,UAAU,CAAC,GAAiB,IAAA,yBAAc,EAAC,QAAQ,CAAC,CAAC;IAE5D,OAAO,UAAU;QACf,EAAE,oBAAoB,CAAC,qBAAU,CAAC,cAAc,CAAC;SAChD,IAAI,CAAC,CAAC,IAAoB,EAAE,EAAE;QAC7B,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;QAExC,OAAO,CACL,eAAI,CAAC,0BAA0B,CAAC,UAAU,CAAC,IAAI,UAAU,CAAC,OAAO,EAAE,KAAK,iBAAiB,CAC1F,CAAC;IACJ,CAAC,CAAC,CAAC;AACP,CAAC;AAED;;;GAGG;AACH,SAAgB,aAAa,CAAC,QAAgB;IAC5C,MAAM,CAAC,MAAM,CAAC,GAAG,oBAAoB,CAAC,QAAQ,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;IACtE,MAAM,CAAC,UAAU,CAAC,GAAG,eAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAElF,OAAO,eAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;AACtE,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { logging } from '@angular-devkit/core';
2
+ import { ProjectDefinition } from '@angular-devkit/core/src/workspace';
3
+ import { Tree } from '@angular-devkit/schematics';
4
+ import { NgDocEngine } from '../schema';
5
+ /** The command that moves a project from the legacy builders to the Vite engine. */
6
+ export declare const MIGRATE_TO_VITE = "ng g @ng-doc/builder:migrate-to-vite";
7
+ /** The engine `ng add` sets up, and whether the project already had it. */
8
+ export interface EngineChoice {
9
+ engine: NgDocEngine;
10
+ /** The project already builds with NgDoc: its builders are kept as they are. */
11
+ existing: boolean;
12
+ /**
13
+ * Whether the legacy setup sets its builders on `build` and `serve`. An existing project whose
14
+ * NgDoc builder is on another target keeps `build` and `serve` as they are.
15
+ */
16
+ replaceBuilders: boolean;
17
+ }
18
+ /** Angular's application builders, whose options the Vite setup reads. */
19
+ export declare const ANGULAR_APPLICATION_BUILDERS: string[];
20
+ /**
21
+ * Whether the application bootstraps an NgModule (`bootstrapModule`) instead of a standalone
22
+ * component.
23
+ * @param tree - The workspace tree.
24
+ * @param project - The application project.
25
+ */
26
+ export declare function isNgModuleApp(tree: Tree, project: ProjectDefinition): boolean;
27
+ /**
28
+ * Chooses the engine to set up. A project that already builds with NgDoc keeps its engine: `ng add`
29
+ * never switches it (the legacy builders move to the Vite engine with `migrate-to-vite`). A new
30
+ * standalone application gets the Vite engine unless `--engine legacy` is passed; an NgModule
31
+ * application, or one whose `build` target does not use Angular's application builder, gets the
32
+ * legacy builders; `--engine vite` is refused for an NgModule application.
33
+ * @param tree - The workspace tree.
34
+ * @param project - The application project.
35
+ * @param requested - The `--engine` option, if any.
36
+ * @param logger - Where the choice is explained.
37
+ */
38
+ export declare function selectEngine(tree: Tree, project: ProjectDefinition, requested: NgDocEngine | undefined, logger: logging.LoggerApi): EngineChoice;
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ANGULAR_APPLICATION_BUILDERS = exports.MIGRATE_TO_VITE = void 0;
4
+ exports.isNgModuleApp = isNgModuleApp;
5
+ exports.selectEngine = selectEngine;
6
+ const schematics_1 = require("@angular-devkit/schematics");
7
+ const ng_morph_1 = require("ng-morph");
8
+ const get_build_options_target_1 = require("./get-build-options-target");
9
+ const get_main_path_1 = require("./get-main-path");
10
+ const get_root_module_1 = require("./get-root-module");
11
+ /** The command that moves a project from the legacy builders to the Vite engine. */
12
+ exports.MIGRATE_TO_VITE = 'ng g @ng-doc/builder:migrate-to-vite';
13
+ /** Angular's application builders, whose options the Vite setup reads. */
14
+ exports.ANGULAR_APPLICATION_BUILDERS = [
15
+ '@angular/build:application',
16
+ '@angular-devkit/build-angular:application',
17
+ ];
18
+ const NG_DOC_BUILDER_PREFIX = '@ng-doc/builder:';
19
+ /**
20
+ * Whether the application bootstraps an NgModule (`bootstrapModule`) instead of a standalone
21
+ * component.
22
+ * @param tree - The workspace tree.
23
+ * @param project - The application project.
24
+ */
25
+ function isNgModuleApp(tree, project) {
26
+ // Without a build target there is no entry to look at; the setup reports the missing target.
27
+ const mainPath = project.targets.has('build')
28
+ ? (0, get_main_path_1.getMainPath)(project)
29
+ : undefined;
30
+ if (!mainPath || !tree.exists(mainPath)) {
31
+ return false;
32
+ }
33
+ try {
34
+ (0, ng_morph_1.setActiveProject)((0, ng_morph_1.createProject)(tree, '/', [mainPath]));
35
+ return !!(0, get_root_module_1.getBootstrapModuleFn)(mainPath);
36
+ }
37
+ finally {
38
+ (0, ng_morph_1.resetActiveProject)();
39
+ }
40
+ }
41
+ /**
42
+ * Chooses the engine to set up. A project that already builds with NgDoc keeps its engine: `ng add`
43
+ * never switches it (the legacy builders move to the Vite engine with `migrate-to-vite`). A new
44
+ * standalone application gets the Vite engine unless `--engine legacy` is passed; an NgModule
45
+ * application, or one whose `build` target does not use Angular's application builder, gets the
46
+ * legacy builders; `--engine vite` is refused for an NgModule application.
47
+ * @param tree - The workspace tree.
48
+ * @param project - The application project.
49
+ * @param requested - The `--engine` option, if any.
50
+ * @param logger - Where the choice is explained.
51
+ */
52
+ function selectEngine(tree, project, requested, logger) {
53
+ const build = project.targets.get('build')?.builder;
54
+ const serve = project.targets.get('serve')?.builder;
55
+ if (build === get_build_options_target_1.VITE_APPLICATION_BUILDER) {
56
+ if (requested === 'legacy') {
57
+ logger.warn(`⚠️ The project already builds with the Vite engine (${get_build_options_target_1.VITE_APPLICATION_BUILDER}); "--engine legacy" was ignored and the builders were kept.`);
58
+ }
59
+ return { engine: 'vite', existing: true, replaceBuilders: false };
60
+ }
61
+ // Any NgDoc builder, not only on `build` and `serve`, means the project already uses NgDoc.
62
+ const ngDocTarget = [...project.targets.entries()]
63
+ .map(([name, target]) => [name, target.builder ?? ''])
64
+ .find(([, builder]) => builder.startsWith(NG_DOC_BUILDER_PREFIX));
65
+ if (ngDocTarget) {
66
+ const message = `The project already uses the NgDoc builders ("${ngDocTarget[0]}" runs ${ngDocTarget[1]}); they were kept. To move it to the Vite engine, run "${exports.MIGRATE_TO_VITE}".`;
67
+ if (requested === 'vite') {
68
+ logger.warn(`⚠️ "--engine vite" was ignored. ${message}`);
69
+ }
70
+ else {
71
+ logger.info(`ℹ️ ${message}`);
72
+ }
73
+ return {
74
+ engine: 'legacy',
75
+ existing: true,
76
+ replaceBuilders: !!build?.startsWith(NG_DOC_BUILDER_PREFIX) || !!serve?.startsWith(NG_DOC_BUILDER_PREFIX),
77
+ };
78
+ }
79
+ if (isNgModuleApp(tree, project)) {
80
+ if (requested === 'vite') {
81
+ throw new schematics_1.SchematicsException(`[NGDOC_ADD_ENGINE] "ng add" sets up the Vite engine for standalone applications (bootstrapApplication), and this application bootstraps an NgModule. Run "ng add @ng-doc/add --engine legacy", then "${exports.MIGRATE_TO_VITE}" if you want the Vite engine.`);
82
+ }
83
+ if (requested === undefined) {
84
+ logger.info(`ℹ️ The application bootstraps an NgModule, so NgDoc uses the legacy builders. "${exports.MIGRATE_TO_VITE}" moves it to the Vite engine later.`);
85
+ }
86
+ return { engine: 'legacy', existing: false, replaceBuilders: true };
87
+ }
88
+ // The Vite setup reads the options of Angular's application builder. Without `--engine`, another
89
+ // builder (a browser builder, an Nx or custom executor) gets the legacy builders, as before; an
90
+ // explicit `--engine vite` goes on to the Vite setup, which refuses it and says why.
91
+ if (requested === undefined && !exports.ANGULAR_APPLICATION_BUILDERS.includes(build ?? '')) {
92
+ logger.info(`ℹ️ The "build" target uses ${build ? `"${build}"` : 'no builder'}, not Angular's application builder, so NgDoc uses the legacy builders.`);
93
+ return { engine: 'legacy', existing: false, replaceBuilders: true };
94
+ }
95
+ return { engine: requested ?? 'vite', existing: false, replaceBuilders: true };
96
+ }
97
+ //# sourceMappingURL=select-engine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-engine.js","sourceRoot":"","sources":["../../../../../../libs/add/schematics/ng-add/utils/select-engine.ts"],"names":[],"mappings":";;;AAuCA,sCAiBC;AAaD,oCAqEC;AAxID,2DAAuE;AACvE,uCAA+E;AAG/E,yEAAsE;AACtE,mDAA8C;AAC9C,uDAAyD;AAEzD,oFAAoF;AACvE,QAAA,eAAe,GAAG,sCAAsC,CAAC;AActE,0EAA0E;AAC7D,QAAA,4BAA4B,GAAa;IACpD,4BAA4B;IAC5B,2CAA2C;CAC5C,CAAC;AAEF,MAAM,qBAAqB,GAAG,kBAAkB,CAAC;AAEjD;;;;;GAKG;AACH,SAAgB,aAAa,CAAC,IAAU,EAAE,OAA0B;IAClE,6FAA6F;IAC7F,MAAM,QAAQ,GAAuB,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC;QAC/D,CAAC,CAAC,IAAA,2BAAW,EAAC,OAAO,CAAC;QACtB,CAAC,CAAC,SAAS,CAAC;IAEd,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;QACxC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,CAAC;QACH,IAAA,2BAAgB,EAAC,IAAA,wBAAa,EAAC,IAAI,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;QAEvD,OAAO,CAAC,CAAC,IAAA,sCAAoB,EAAC,QAAQ,CAAC,CAAC;IAC1C,CAAC;YAAS,CAAC;QACT,IAAA,6BAAkB,GAAE,CAAC;IACvB,CAAC;AACH,CAAC;AAED;;;;;;;;;;GAUG;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