@o3r/workspace 9.4.0-alpha.26

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 (126) hide show
  1. package/LICENSE +26 -0
  2. package/README.md +42 -0
  3. package/builders.json +6 -0
  4. package/collection.json +35 -0
  5. package/migration.json +6 -0
  6. package/package.json +188 -0
  7. package/schematics/application/index.d.ts +8 -0
  8. package/schematics/application/index.d.ts.map +1 -0
  9. package/schematics/application/index.js +68 -0
  10. package/schematics/application/index.js.map +1 -0
  11. package/schematics/application/schema.d.ts +14 -0
  12. package/schematics/application/schema.d.ts.map +1 -0
  13. package/schematics/application/schema.js +3 -0
  14. package/schematics/application/schema.js.map +1 -0
  15. package/schematics/application/schema.json +38 -0
  16. package/schematics/application/templates/package.json.template +29 -0
  17. package/schematics/library/index.d.ts +8 -0
  18. package/schematics/library/index.d.ts.map +1 -0
  19. package/schematics/library/index.js +40 -0
  20. package/schematics/library/index.js.map +1 -0
  21. package/schematics/library/rules/rules.ng.d.ts +12 -0
  22. package/schematics/library/rules/rules.ng.d.ts.map +1 -0
  23. package/schematics/library/rules/rules.ng.js +123 -0
  24. package/schematics/library/rules/rules.ng.js.map +1 -0
  25. package/schematics/library/rules/rules.nx.d.ts +12 -0
  26. package/schematics/library/rules/rules.nx.d.ts.map +1 -0
  27. package/schematics/library/rules/rules.nx.js +127 -0
  28. package/schematics/library/rules/rules.nx.js.map +1 -0
  29. package/schematics/library/rules/shared.d.ts +19 -0
  30. package/schematics/library/rules/shared.d.ts.map +1 -0
  31. package/schematics/library/rules/shared.js +84 -0
  32. package/schematics/library/rules/shared.js.map +1 -0
  33. package/schematics/library/schema.d.ts +18 -0
  34. package/schematics/library/schema.d.ts.map +1 -0
  35. package/schematics/library/schema.js +3 -0
  36. package/schematics/library/schema.js.map +1 -0
  37. package/schematics/library/schema.json +42 -0
  38. package/schematics/library/templates/ng/.eslintrc.js.template +19 -0
  39. package/schematics/library/templates/ng/.gitignore.template +2 -0
  40. package/schematics/library/templates/ng/.npmignore.template +0 -0
  41. package/schematics/library/templates/ng/jest.config.js.template +37 -0
  42. package/schematics/library/templates/ng/testing/setup-jest.ts.template +2 -0
  43. package/schematics/library/templates/ng/tsconfig.builders.json.template +22 -0
  44. package/schematics/library/templates/ng/tsconfig.eslint.json.template +8 -0
  45. package/schematics/library/templates/ng/tsconfig.json.template +12 -0
  46. package/schematics/library/templates/ng/tsconfig.spec.json.template +17 -0
  47. package/schematics/library/templates/nx/.eslintrc.js.template +19 -0
  48. package/schematics/library/templates/nx/.gitignore.template +2 -0
  49. package/schematics/library/templates/nx/.npmignore.template +0 -0
  50. package/schematics/library/templates/nx/jest.config.js.template +37 -0
  51. package/schematics/library/templates/nx/project.json.template +66 -0
  52. package/schematics/library/templates/nx/testing/setup-jest.ts.template +2 -0
  53. package/schematics/library/templates/nx/tsconfig.eslint.json.template +8 -0
  54. package/schematics/ng-add/helpers/gitignore-update.d.ts +6 -0
  55. package/schematics/ng-add/helpers/gitignore-update.d.ts.map +1 -0
  56. package/schematics/ng-add/helpers/gitignore-update.js +29 -0
  57. package/schematics/ng-add/helpers/gitignore-update.js.map +1 -0
  58. package/schematics/ng-add/helpers/index.d.ts +6 -0
  59. package/schematics/ng-add/helpers/index.d.ts.map +1 -0
  60. package/schematics/ng-add/helpers/index.js +9 -0
  61. package/schematics/ng-add/helpers/index.js.map +1 -0
  62. package/schematics/ng-add/helpers/linter.d.ts +8 -0
  63. package/schematics/ng-add/helpers/linter.d.ts.map +1 -0
  64. package/schematics/ng-add/helpers/linter.js +27 -0
  65. package/schematics/ng-add/helpers/linter.js.map +1 -0
  66. package/schematics/ng-add/helpers/npm-workspace.d.ts +16 -0
  67. package/schematics/ng-add/helpers/npm-workspace.d.ts.map +1 -0
  68. package/schematics/ng-add/helpers/npm-workspace.js +65 -0
  69. package/schematics/ng-add/helpers/npm-workspace.js.map +1 -0
  70. package/schematics/ng-add/helpers/renovate/index.d.ts +8 -0
  71. package/schematics/ng-add/helpers/renovate/index.d.ts.map +1 -0
  72. package/schematics/ng-add/helpers/renovate/index.js +27 -0
  73. package/schematics/ng-add/helpers/renovate/index.js.map +1 -0
  74. package/schematics/ng-add/helpers/renovate/templates/__dot__renovaterc.json.template +61 -0
  75. package/schematics/ng-add/index.d.ts +8 -0
  76. package/schematics/ng-add/index.d.ts.map +1 -0
  77. package/schematics/ng-add/index.js +34 -0
  78. package/schematics/ng-add/index.js.map +1 -0
  79. package/schematics/ng-add/project-setup.d.ts +9 -0
  80. package/schematics/ng-add/project-setup.d.ts.map +1 -0
  81. package/schematics/ng-add/project-setup.js +59 -0
  82. package/schematics/ng-add/project-setup.js.map +1 -0
  83. package/schematics/ng-add/schema.d.ts +16 -0
  84. package/schematics/ng-add/schema.d.ts.map +1 -0
  85. package/schematics/ng-add/schema.js +3 -0
  86. package/schematics/ng-add/schema.js.map +1 -0
  87. package/schematics/ng-add/schema.json +53 -0
  88. package/schematics/ng-update/index.d.ts +2 -0
  89. package/schematics/ng-update/index.d.ts.map +1 -0
  90. package/schematics/ng-update/index.js +3 -0
  91. package/schematics/ng-update/index.js.map +1 -0
  92. package/schematics/package.json +3 -0
  93. package/schematics/sdk/index.d.ts +8 -0
  94. package/schematics/sdk/index.d.ts.map +1 -0
  95. package/schematics/sdk/index.js +64 -0
  96. package/schematics/sdk/index.js.map +1 -0
  97. package/schematics/sdk/rules/clean-standalone.rule.d.ts +7 -0
  98. package/schematics/sdk/rules/clean-standalone.rule.d.ts.map +1 -0
  99. package/schematics/sdk/rules/clean-standalone.rule.js +28 -0
  100. package/schematics/sdk/rules/clean-standalone.rule.js.map +1 -0
  101. package/schematics/sdk/rules/rules.ng.d.ts +10 -0
  102. package/schematics/sdk/rules/rules.ng.d.ts.map +1 -0
  103. package/schematics/sdk/rules/rules.ng.js +54 -0
  104. package/schematics/sdk/rules/rules.ng.js.map +1 -0
  105. package/schematics/sdk/rules/rules.nx.d.ts +11 -0
  106. package/schematics/sdk/rules/rules.nx.d.ts.map +1 -0
  107. package/schematics/sdk/rules/rules.nx.js +60 -0
  108. package/schematics/sdk/rules/rules.nx.js.map +1 -0
  109. package/schematics/sdk/rules/update-ts-paths.rule.d.ts +10 -0
  110. package/schematics/sdk/rules/update-ts-paths.rule.d.ts.map +1 -0
  111. package/schematics/sdk/rules/update-ts-paths.rule.js +41 -0
  112. package/schematics/sdk/rules/update-ts-paths.rule.js.map +1 -0
  113. package/schematics/sdk/schema.d.ts +16 -0
  114. package/schematics/sdk/schema.d.ts.map +1 -0
  115. package/schematics/sdk/schema.js +3 -0
  116. package/schematics/sdk/schema.js.map +1 -0
  117. package/schematics/sdk/schema.json +46 -0
  118. package/schematics/sdk/templates/jest.config.js.template +12 -0
  119. package/src/cli/set-version.cjs +59 -0
  120. package/src/cli/set-version.cjs.map +1 -0
  121. package/src/cli/set-version.d.cts +3 -0
  122. package/src/cli/set-version.d.cts.map +1 -0
  123. package/src/public_api.d.ts +2 -0
  124. package/src/public_api.d.ts.map +1 -0
  125. package/src/public_api.js +3 -0
  126. package/src/public_api.js.map +1 -0
@@ -0,0 +1,37 @@
1
+ const { getJestModuleNameMapper } = require('@o3r/dev-tools');
2
+
3
+ globalThis.ngJest = {
4
+ skipNgcc: true
5
+ };
6
+
7
+ /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
8
+ module.exports = {
9
+ displayName: require('./package.json').name,
10
+ preset: 'jest-preset-angular',
11
+ setupFilesAfterEnv: ['<rootDir>/testing/setup-jest.ts'],
12
+ rootDir: '.',
13
+ moduleNameMapper: getJestModuleNameMapper(__dirname),
14
+ testPathIgnorePatterns: [
15
+ '<rootDir>/dist',
16
+ ],
17
+ reporters: [
18
+ 'default',
19
+ 'github-actions'
20
+ ],
21
+ globalSetup: 'jest-preset-angular/global-setup',
22
+ transform: {
23
+ // eslint-disable-next-line @typescript-eslint/naming-convention
24
+ '^.+\\.tsx?$': [
25
+ 'jest-preset-angular',
26
+ {
27
+ tsconfig: '<rootDir>/tsconfig.spec.json',
28
+ stringifyContentPathRegex: '\\.html$'
29
+ }
30
+ ]
31
+ },
32
+ snapshotSerializers: [
33
+ 'jest-preset-angular/build/serializers/no-ng-attributes',
34
+ 'jest-preset-angular/build/serializers/ng-snapshot',
35
+ 'jest-preset-angular/build/serializers/html-comment',
36
+ ]
37
+ };
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "<%= projectName %>",
3
+ "$schema": "https://raw.githubusercontent.com/nrwl/nx/master/packages/nx/schemas/project-schema.json",
4
+ "projectType": "library",
5
+ "sourceRoot": "<%= projectRoot %>/src",
6
+ "targets": {
7
+ "build": {
8
+ "executor": "nx:noop",
9
+ "dependsOn": [
10
+ "build-builders",
11
+ "compile"
12
+ ]
13
+ },
14
+ "compile": {
15
+ "executor": "@angular-devkit/build-angular:ng-packagr",
16
+ "options": {
17
+ "project": "<%= projectRoot %>/ng-package.json",
18
+ "tsConfig": "<%= projectRoot %>/tsconfig.build.json"
19
+ },
20
+ "dependsOn": [
21
+ "^build"
22
+ ]
23
+ },
24
+ "prepare-build-builders": {
25
+ "executor": "nx:run-script",
26
+ "options": {
27
+ "script": "prepare:build:builders"
28
+ }
29
+ },
30
+ "build-builders": {
31
+ "executor": "nx:run-script",
32
+ "options": {
33
+ "script": "build:builders"
34
+ }
35
+ },
36
+ "lint": {
37
+ "executor": "@nrwl/linter:eslint",
38
+ "configurations": {
39
+ "ci": {
40
+ "quiet": true,
41
+ "cacheLocation": ".cache/eslint"
42
+ }
43
+ },
44
+ "options": {
45
+ "eslintConfig": "<%= projectRoot %>/.eslintrc.js",
46
+ "lintFilePatterns": [
47
+ "<%= projectRoot %>/src/**/*.ts"
48
+ ]
49
+ }
50
+ },
51
+ "test": {
52
+ "executor": "@nrwl/jest:jest",
53
+ "options": {
54
+ "jestConfig": "<%= projectRoot %>/jest.config.js",
55
+ "silent": true
56
+ }
57
+ },
58
+ "publish": {
59
+ "executor": "nx:run-commands",
60
+ "options": {
61
+ "command": "npm publish <%= projectRoot %>/dist"
62
+ }
63
+ }
64
+ },
65
+ "tags": []
66
+ }
@@ -0,0 +1,2 @@
1
+ import 'jest-preset-angular/setup-jest';
2
+
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig.lib",
3
+ "include": [
4
+ ".eslintrc.js",
5
+ "jest.config.js",
6
+ "testing/*"
7
+ ]
8
+ }
@@ -0,0 +1,6 @@
1
+ import type { Rule } from '@angular-devkit/schematics';
2
+ /**
3
+ * Update git ignore of the repository
4
+ */
5
+ export declare function updateGitIgnore(): Rule;
6
+ //# sourceMappingURL=gitignore-update.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gitignore-update.d.ts","sourceRoot":"","sources":["../../../../schematics/ng-add/helpers/gitignore-update.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAE/E;;GAEG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAsBtC"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateGitIgnore = void 0;
4
+ /**
5
+ * Update git ignore of the repository
6
+ */
7
+ function updateGitIgnore() {
8
+ return (tree, _context) => {
9
+ // update gitignore
10
+ if (tree.exists('/.gitignore')) {
11
+ let gitignore = tree.readText('/.gitignore');
12
+ const foldersToExclude = ['node_modules', 'dist'];
13
+ const foldersToExcludeRegExp = new RegExp(`(\r\n|\n)/(${foldersToExclude.join('|')})(\r\n|\n)`, 'gm');
14
+ gitignore = gitignore.replaceAll(foldersToExcludeRegExp, '$1$2$3');
15
+ foldersToExclude.forEach(folderToExclude => {
16
+ if (!gitignore.includes(folderToExclude)) {
17
+ gitignore +=
18
+ `
19
+ ${folderToExclude}
20
+ `;
21
+ }
22
+ });
23
+ tree.overwrite('/.gitignore', gitignore);
24
+ }
25
+ return tree;
26
+ };
27
+ }
28
+ exports.updateGitIgnore = updateGitIgnore;
29
+ //# sourceMappingURL=gitignore-update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gitignore-update.js","sourceRoot":"","sources":["../../../../schematics/ng-add/helpers/gitignore-update.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,SAAgB,eAAe;IAE7B,OAAO,CAAC,IAAU,EAAE,QAA0B,EAAE,EAAE;QAChD,mBAAmB;QACnB,IAAI,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE;YAC9B,IAAI,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;YAC7C,MAAM,gBAAgB,GAAG,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;YAClD,MAAM,sBAAsB,GAAG,IAAI,MAAM,CAAC,cAAc,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;YACtG,SAAS,GAAG,SAAS,CAAC,UAAU,CAAC,sBAAsB,EAAE,QAAQ,CAAC,CAAC;YACnE,gBAAgB,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE;gBACzC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE;oBACxC,SAAS;wBACP;EACV,eAAe;SACR,CAAC;iBACD;YACH,CAAC,CAAC,CAAC;YACH,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;SAC1C;QACD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AAEJ,CAAC;AAtBD,0CAsBC"}
@@ -0,0 +1,6 @@
1
+ export * from './renovate/index';
2
+ export * from './linter';
3
+ export * from './npm-workspace';
4
+ export * from './npm-workspace';
5
+ export * from './gitignore-update';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/ng-add/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./renovate/index"), exports);
5
+ tslib_1.__exportStar(require("./linter"), exports);
6
+ tslib_1.__exportStar(require("./npm-workspace"), exports);
7
+ tslib_1.__exportStar(require("./npm-workspace"), exports);
8
+ tslib_1.__exportStar(require("./gitignore-update"), exports);
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../schematics/ng-add/helpers/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC;AACjC,mDAAyB;AACzB,0DAAgC;AAChC,0DAAgC;AAChC,6DAAmC"}
@@ -0,0 +1,8 @@
1
+ import { SchematicContext } from '@angular-devkit/schematics';
2
+ /**
3
+ * Checks if `eslint` package is installed. If so, ask the user for otter linter rules install.
4
+ * Otherwise displays a message to inform the user that otter linter rules can be added later.
5
+ * @param context Schematics context
6
+ */
7
+ export declare const shouldOtterLinterBeInstalled: (context: SchematicContext) => Promise<boolean>;
8
+ //# sourceMappingURL=linter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linter.d.ts","sourceRoot":"","sources":["../../../../schematics/ng-add/helpers/linter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAG9D;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,iCAAsC,QAAQ,OAAO,CAe7F,CAAC"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.shouldOtterLinterBeInstalled = void 0;
4
+ const prompt_1 = require("@angular/cli/src/utilities/prompt");
5
+ /**
6
+ * Checks if `eslint` package is installed. If so, ask the user for otter linter rules install.
7
+ * Otherwise displays a message to inform the user that otter linter rules can be added later.
8
+ * @param context Schematics context
9
+ */
10
+ const shouldOtterLinterBeInstalled = async (context) => {
11
+ const linterPackageName = 'eslint';
12
+ let useOtterLinter = false;
13
+ try {
14
+ require.resolve(`${linterPackageName}/package.json`);
15
+ if (context.interactive) {
16
+ useOtterLinter = await (0, prompt_1.askConfirmation)(`You already have eslint installed. Would you like to add otter config rules for eslint?
17
+ Otherwise, you can add them later via this command: ng add @o3r/eslint-config-otter`, true);
18
+ }
19
+ }
20
+ catch {
21
+ context.logger.info(`eslint package not installed. Skipping otter linter phase!
22
+ You can add otter linter config rules later to the project via this command: ng add @o3r/eslint-config-otter`);
23
+ }
24
+ return useOtterLinter;
25
+ };
26
+ exports.shouldOtterLinterBeInstalled = shouldOtterLinterBeInstalled;
27
+ //# sourceMappingURL=linter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linter.js","sourceRoot":"","sources":["../../../../schematics/ng-add/helpers/linter.ts"],"names":[],"mappings":";;;AACA,8DAAoE;AAEpE;;;;GAIG;AACI,MAAM,4BAA4B,GAAG,KAAK,EAAE,OAAyB,EAAoB,EAAE;IAChG,MAAM,iBAAiB,GAAG,QAAQ,CAAC;IACnC,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,IAAI;QACF,OAAO,CAAC,OAAO,CAAC,GAAG,iBAAiB,eAAe,CAAC,CAAC;QACrD,IAAI,OAAO,CAAC,WAAW,EAAE;YACvB,cAAc,GAAG,MAAM,IAAA,wBAAe,EAAC;oFACuC,EAAE,IAAI,CAAC,CAAC;SACvF;KACF;IAAC,MAAM;QACN,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;6GACqF,CAAC,CAAC;KAC5G;IAED,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AAfW,QAAA,4BAA4B,gCAevC"}
@@ -0,0 +1,16 @@
1
+ import type { Rule, SchematicContext, Tree } from '@angular-devkit/schematics';
2
+ import { WorkspaceLayout } from '@o3r/schematics';
3
+ /**
4
+ * Update root package.json to include workspaces
5
+ * if ng context Update angular.json to include the workspaces definitions into schematics default params
6
+ * if nx context update nx.json workspacelayout
7
+ * @param directories workspaces directories to include in package.json
8
+ */
9
+ export declare function addWorkspacesToProject(directories?: WorkspaceLayout): Rule;
10
+ /**
11
+ * Remove wrongly generated scripts by ng new for root package.json in case of monorepo
12
+ * @param tree
13
+ * @param _context
14
+ */
15
+ export declare function filterPackageJsonScripts(tree: Tree, _context: SchematicContext): import("@angular-devkit/schematics/src/tree/interface").Tree;
16
+ //# sourceMappingURL=npm-workspace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"npm-workspace.d.ts","sourceRoot":"","sources":["../../../../schematics/ng-add/helpers/npm-workspace.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAG/E,OAAO,EAAmE,eAAe,EAAuB,MAAM,iBAAiB,CAAC;AAExI;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,GAAE,eAAsC,GAAG,IAAI,CAqChG;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,gBAAgB,gEAoB9E"}
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.filterPackageJsonScripts = exports.addWorkspacesToProject = void 0;
4
+ const schematics_1 = require("@angular-devkit/schematics");
5
+ const schematics_2 = require("@angular-devkit/schematics");
6
+ const schematics_3 = require("@o3r/schematics");
7
+ /**
8
+ * Update root package.json to include workspaces
9
+ * if ng context Update angular.json to include the workspaces definitions into schematics default params
10
+ * if nx context update nx.json workspacelayout
11
+ * @param directories workspaces directories to include in package.json
12
+ */
13
+ function addWorkspacesToProject(directories = schematics_3.DEFAULT_ROOT_FOLDERS) {
14
+ const updatePackageJson = (tree, _context) => {
15
+ const rootPackageJsonPath = '/package.json';
16
+ if (!tree.exists(rootPackageJsonPath)) {
17
+ throw new schematics_2.SchematicsException('Root package.json does not exist');
18
+ }
19
+ const rootPackageJsonObject = tree.readJson(rootPackageJsonPath);
20
+ // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
21
+ rootPackageJsonObject.workspaces = [...new Set(Object.values(directories).map(d => `${d}/*`).concat(rootPackageJsonObject.workspaces || []))];
22
+ tree.overwrite(rootPackageJsonPath, JSON.stringify(rootPackageJsonObject, null, 2));
23
+ return tree;
24
+ };
25
+ // eslint-disable-next-line @typescript-eslint/naming-convention
26
+ const updateAngularJson = (0, schematics_3.setupSchematicsDefaultParams)({ '*:*': directories });
27
+ const updateNxWorkspaceLayout = (tree, _context) => {
28
+ const nxJson = tree.readJson('/nx.json');
29
+ nxJson.workspaceLayout ||= {};
30
+ nxJson.workspaceLayout.libsDir = directories.libsDir;
31
+ nxJson.workspaceLayout.appsDir = directories.appsDir;
32
+ tree.overwrite('/nx.json', JSON.stringify(nxJson, null, 2));
33
+ return tree;
34
+ };
35
+ return (tree, _context) => {
36
+ return (0, schematics_1.chain)([
37
+ updatePackageJson,
38
+ (0, schematics_3.isNxContext)(tree) ? updateNxWorkspaceLayout : updateAngularJson
39
+ ]);
40
+ };
41
+ }
42
+ exports.addWorkspacesToProject = addWorkspacesToProject;
43
+ /**
44
+ * Remove wrongly generated scripts by ng new for root package.json in case of monorepo
45
+ * @param tree
46
+ * @param _context
47
+ */
48
+ function filterPackageJsonScripts(tree, _context) {
49
+ const rootPackageJsonPath = '/package.json';
50
+ if (!tree.exists(rootPackageJsonPath)) {
51
+ throw new schematics_2.SchematicsException('Root package.json does not exist');
52
+ }
53
+ const defaultScriptToRemove = {
54
+ build: 'ng build',
55
+ test: 'ng test',
56
+ start: 'ng serve',
57
+ watch: 'ng build --watch --configuration development'
58
+ };
59
+ const rootPackageJsonObject = tree.readJson(rootPackageJsonPath);
60
+ rootPackageJsonObject.scripts = Object.fromEntries(Object.entries(rootPackageJsonObject.scripts || {}).filter(([scriptName, scriptValue]) => scriptValue !== defaultScriptToRemove[scriptName]));
61
+ tree.overwrite(rootPackageJsonPath, JSON.stringify(rootPackageJsonObject, null, 2));
62
+ return tree;
63
+ }
64
+ exports.filterPackageJsonScripts = filterPackageJsonScripts;
65
+ //# sourceMappingURL=npm-workspace.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"npm-workspace.js","sourceRoot":"","sources":["../../../../schematics/ng-add/helpers/npm-workspace.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,8 @@
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ /**
3
+ * Add renovate configuration to Otter application
4
+ *
5
+ * @param rootPath @see RuleFactory.rootPath
6
+ */
7
+ export declare function generateRenovateConfig(rootPath: string): Rule;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../schematics/ng-add/helpers/renovate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwD,IAAI,EAAyC,MAAM,4BAA4B,CAAC;AAG/I;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAe7D"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.generateRenovateConfig = void 0;
4
+ const schematics_1 = require("@angular-devkit/schematics");
5
+ const schematics_2 = require("@o3r/schematics");
6
+ /**
7
+ * Add renovate configuration to Otter application
8
+ *
9
+ * @param rootPath @see RuleFactory.rootPath
10
+ */
11
+ function generateRenovateConfig(rootPath) {
12
+ return (tree, context) => {
13
+ if (tree.exists('.renovaterc.json')) {
14
+ return tree;
15
+ }
16
+ const templateSource = (0, schematics_1.apply)((0, schematics_1.url)((0, schematics_2.getTemplateFolder)(rootPath, __dirname)), [
17
+ (0, schematics_1.template)({
18
+ dot: '.'
19
+ }),
20
+ (0, schematics_1.renameTemplateFiles)()
21
+ ]);
22
+ const rule = (0, schematics_1.mergeWith)(templateSource, schematics_1.MergeStrategy.Overwrite);
23
+ return rule(tree, context);
24
+ };
25
+ }
26
+ exports.generateRenovateConfig = generateRenovateConfig;
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../schematics/ng-add/helpers/renovate/index.ts"],"names":[],"mappings":";;;AAAA,2DAA+I;AAC/I,gDAAoD;AAEpD;;;;GAIG;AACH,SAAgB,sBAAsB,CAAC,QAAgB;IACrD,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,IAAI,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,EAAE;YACnC,OAAO,IAAI,CAAC;SACb;QACD,MAAM,cAAc,GAAG,IAAA,kBAAK,EAAC,IAAA,gBAAG,EAAC,IAAA,8BAAiB,EAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,EAAE;YACxE,IAAA,qBAAQ,EAAC;gBACP,GAAG,EAAE,GAAG;aACT,CAAC;YACF,IAAA,gCAAmB,GAAE;SACtB,CAAC,CAAC;QAEH,MAAM,IAAI,GAAG,IAAA,sBAAS,EAAC,cAAc,EAAE,0BAAa,CAAC,SAAS,CAAC,CAAC;QAChE,OAAO,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC7B,CAAC,CAAC;AACJ,CAAC;AAfD,wDAeC"}
@@ -0,0 +1,61 @@
1
+ {
2
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
+ "extends": [
4
+ "config:base",
5
+ "group:allNonMajor",
6
+ "group:monorepos",
7
+ "group:recommended",
8
+ "group:test"
9
+ ],
10
+ "prConcurrentLimit": 0,
11
+ "prHourlyLimit": 0,
12
+ "baseBranches": [
13
+ "master"
14
+ ],
15
+ "platform": "azure",
16
+ "enabledManagers": [
17
+ "npm"
18
+ ],
19
+ "npm": {
20
+ "stabilityDays": 0
21
+ },
22
+ "labels": [
23
+ "upgrade"
24
+ ],
25
+ "updateInternalDeps": true,
26
+ "automerge": true,
27
+ "platformAutomerge": true,
28
+ "packageRules": [
29
+ {
30
+ "matchPackageNames": [
31
+ "@o3r/core"
32
+ ],
33
+ "postUpgradeTasks": {
34
+ "commands": [
35
+ "npm install",
36
+ "npm run ng update {{{depName}}} --from={{{currentVersion}}} --to={{{newVersion}}} --migrate-only --allow-dirty --force"
37
+ ],
38
+ "fileFilters": [
39
+ "**"
40
+ ],
41
+ "executionMode": "branch"
42
+ }
43
+ },
44
+ {
45
+ "matchPackagePrefixes": [
46
+ "@otter",
47
+ "@o3r",
48
+ "@ama-sdk",
49
+ "@ama-terasu"
50
+ ],
51
+ "groupName": "Otter dependencies",
52
+ "groupSlug": "otter-dependencies"
53
+ },
54
+ {
55
+ "matchPackagePatterns": [
56
+ "*"
57
+ ],
58
+ "rangeStrategy": "replace"
59
+ }
60
+ ]
61
+ }
@@ -0,0 +1,8 @@
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ import { NgAddSchematicsSchema } from './schema';
3
+ /**
4
+ * Add Otter library to an Angular Project
5
+ * @param options
6
+ */
7
+ export declare function ngAdd(options: NgAddSchematicsSchema): Rule;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAKjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAIjD;;;GAGG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI,CAqB1D"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ngAdd = void 0;
4
+ const schematics_1 = require("@angular-devkit/schematics");
5
+ const fs = require("node:fs");
6
+ const path = require("node:path");
7
+ const schematics_2 = require("@o3r/schematics");
8
+ const tasks_1 = require("@angular-devkit/schematics/tasks");
9
+ const project_setup_1 = require("./project-setup");
10
+ /**
11
+ * Add Otter library to an Angular Project
12
+ * @param options
13
+ */
14
+ function ngAdd(options) {
15
+ return (tree, context) => {
16
+ const ownPackageJsonContent = JSON.parse(fs.readFileSync(path.resolve(__dirname, '..', '..', 'package.json'), { encoding: 'utf-8' }));
17
+ return () => (0, schematics_1.chain)([
18
+ // Register the module in angular.json
19
+ (0, schematics_2.registerPackageCollectionSchematics)(ownPackageJsonContent),
20
+ // Prepare mono repo for Otter
21
+ (0, project_setup_1.prepareProject)(options),
22
+ // Commit Otter setup
23
+ (_, c) => {
24
+ if (!options.projectName && !options.skipGit && options.commit) {
25
+ const commit = typeof options.commit == 'object' ? options.commit : {};
26
+ commit.message = 'Setup of Otter Framework';
27
+ c.addTask(new tasks_1.RepositoryInitializerTask(undefined, commit));
28
+ }
29
+ }
30
+ ])(tree, context);
31
+ };
32
+ }
33
+ exports.ngAdd = ngAdd;
34
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiF;AACjF,8BAA8B;AAC9B,kCAAkC;AAElC,gDAAsE;AAEtE,4DAA6E;AAC7E,mDAAiD;AAEjD;;;GAGG;AACH,SAAgB,KAAK,CAAC,OAA8B;IAClD,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,MAAM,qBAAqB,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,EAAE,EAAC,QAAQ,EAAE,OAAO,EAAC,CAAC,CAAgB,CAAC;QAEnJ,OAAO,GAAG,EAAE,CAAC,IAAA,kBAAK,EAAC;YACjB,sCAAsC;YACtC,IAAA,gDAAmC,EAAC,qBAAqB,CAAC;YAE1D,8BAA8B;YAC9B,IAAA,8BAAc,EAAC,OAAO,CAAC;YAEvB,qBAAqB;YACrB,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;gBACP,IAAI,CAAC,OAAO,CAAC,WAAW,IAAI,CAAC,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,EAAE;oBAC9D,MAAM,MAAM,GAAsD,OAAO,OAAO,CAAC,MAAM,IAAI,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;oBAC1H,MAAM,CAAC,OAAO,GAAG,0BAA0B,CAAC;oBAC5C,CAAC,CAAC,OAAO,CAAC,IAAI,iCAAyB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;iBAC7D;YACH,CAAC;SACF,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACpB,CAAC,CAAC;AACJ,CAAC;AArBD,sBAqBC"}
@@ -0,0 +1,9 @@
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ import { NgAddSchematicsSchema } from './schema';
3
+ /**
4
+ * Enable all the otter features requested by the user
5
+ * Install all the related dependencies and import the features inside the application
6
+ * @param options installation options to pass to the all the other packages' installation
7
+ */
8
+ export declare const prepareProject: (options: NgAddSchematicsSchema) => Rule;
9
+ //# sourceMappingURL=project-setup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-setup.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/project-setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAO/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAIjD;;;;GAIG;AACH,eAAO,MAAM,cAAc,YAAa,qBAAqB,KAAG,IA0C/D,CAAC"}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.prepareProject = void 0;
4
+ const schematics_1 = require("@angular-devkit/schematics");
5
+ const schematics_2 = require("@o3r/schematics");
6
+ const dependencies_1 = require("@schematics/angular/utility/dependencies");
7
+ const fs = require("node:fs");
8
+ const path = require("node:path");
9
+ const npm_workspace_1 = require("./helpers/npm-workspace");
10
+ const renovate_1 = require("./helpers/renovate");
11
+ const linter_1 = require("./helpers/linter");
12
+ const gitignore_update_1 = require("./helpers/gitignore-update");
13
+ /**
14
+ * Enable all the otter features requested by the user
15
+ * Install all the related dependencies and import the features inside the application
16
+ * @param options installation options to pass to the all the other packages' installation
17
+ */
18
+ const prepareProject = (options) => {
19
+ const vsCodeExtensions = [
20
+ 'AmadeusITGroup.otter-devtools',
21
+ 'EditorConfig.EditorConfig',
22
+ 'angular.ng-template'
23
+ ];
24
+ const ownSchematicsFolder = path.resolve(__dirname, '..');
25
+ const ownPackageJsonPath = path.resolve(ownSchematicsFolder, '..', 'package.json');
26
+ const depsInfo = (0, schematics_2.getO3rPeerDeps)(ownPackageJsonPath);
27
+ const ownPackageJsonContent = JSON.parse(fs.readFileSync(ownPackageJsonPath, { encoding: 'utf-8' }));
28
+ return async (tree, context) => {
29
+ if (!ownPackageJsonContent) {
30
+ context.logger.error('Could not find @o3r/workspace package. Are you sure it is installed?');
31
+ }
32
+ const o3rCoreVersion = ownPackageJsonContent.version;
33
+ const installOtterLinter = await (0, linter_1.shouldOtterLinterBeInstalled)(context);
34
+ const internalPackagesToInstallWithNgAdd = Array.from(new Set([
35
+ ...(installOtterLinter ? ['@o3r/eslint-config-otter'] : []),
36
+ ...depsInfo.o3rPeerDeps
37
+ ]));
38
+ if (installOtterLinter) {
39
+ vsCodeExtensions.push('dbaeumer.vscode-eslint');
40
+ }
41
+ return () => (0, schematics_1.chain)([
42
+ (0, renovate_1.generateRenovateConfig)(ownSchematicsFolder),
43
+ (0, schematics_2.addVsCodeRecommendations)(vsCodeExtensions),
44
+ (0, gitignore_update_1.updateGitIgnore)(),
45
+ (0, npm_workspace_1.addWorkspacesToProject)(),
46
+ npm_workspace_1.filterPackageJsonScripts,
47
+ (0, schematics_2.ngAddPackages)(internalPackagesToInstallWithNgAdd, {
48
+ skipConfirmation: true,
49
+ version: o3rCoreVersion,
50
+ parentPackageInfo: '@o3r/workspace - setup',
51
+ dependencyType: dependencies_1.NodeDependencyType.Peer
52
+ }),
53
+ !options.skipLinter && installOtterLinter ? (0, schematics_2.applyEsLintFix)() : (0, schematics_1.noop)(),
54
+ options.skipInstall ? (0, schematics_1.noop)() : schematics_2.install
55
+ ])(tree, context);
56
+ };
57
+ };
58
+ exports.prepareProject = prepareProject;
59
+ //# sourceMappingURL=project-setup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-setup.js","sourceRoot":"","sources":["../../../schematics/ng-add/project-setup.ts"],"names":[],"mappings":";;;AAAA,2DAA+D;AAC/D,gDAAmH;AACnH,2EAA8E;AAC9E,8BAA8B;AAC9B,kCAAkC;AAClC,2DAA2F;AAC3F,iDAA4D;AAE5D,6CAAgE;AAChE,iEAA6D;AAE7D;;;;GAIG;AACI,MAAM,cAAc,GAAG,CAAC,OAA8B,EAAQ,EAAE;IACrE,MAAM,gBAAgB,GAAG;QACvB,+BAA+B;QAC/B,2BAA2B;QAC3B,qBAAqB;KACtB,CAAC;IACF,MAAM,mBAAmB,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IAC1D,MAAM,kBAAkB,GAAG,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;IACnF,MAAM,QAAQ,GAAG,IAAA,2BAAc,EAAC,kBAAkB,CAAC,CAAC;IACpD,MAAM,qBAAqB,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,kBAAkB,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;IAErG,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;QAC7B,IAAI,CAAC,qBAAqB,EAAE;YAC1B,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,sEAAsE,CAAC,CAAC;SAC9F;QACD,MAAM,cAAc,GAAG,qBAAqB,CAAC,OAAO,CAAC;QACrD,MAAM,kBAAkB,GAAG,MAAM,IAAA,qCAA4B,EAAC,OAAO,CAAC,CAAC;QACvE,MAAM,kCAAkC,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC;YAC5D,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YAC3D,GAAG,QAAQ,CAAC,WAAW;SACxB,CAAC,CAAC,CAAC;QAEJ,IAAI,kBAAkB,EAAE;YACtB,gBAAgB,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;SACjD;QAED,OAAO,GAAG,EAAE,CAAC,IAAA,kBAAK,EAAC;YACjB,IAAA,iCAAsB,EAAC,mBAAmB,CAAC;YAC3C,IAAA,qCAAwB,EAAC,gBAAgB,CAAC;YAC1C,IAAA,kCAAe,GAAE;YACjB,IAAA,sCAAsB,GAAE;YACxB,wCAAwB;YACxB,IAAA,0BAAa,EAAC,kCAAkC,EAAE;gBAChD,gBAAgB,EAAE,IAAI;gBACtB,OAAO,EAAE,cAAc;gBACvB,iBAAiB,EAAE,wBAAwB;gBAC3C,cAAc,EAAE,iCAAkB,CAAC,IAAI;aACxC,CAAC;YACF,CAAC,OAAO,CAAC,UAAU,IAAI,kBAAkB,CAAC,CAAC,CAAC,IAAA,2BAAc,GAAE,CAAC,CAAC,CAAC,IAAA,iBAAI,GAAE;YACrE,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,IAAA,iBAAI,GAAE,CAAC,CAAC,CAAC,oBAAO;SACvC,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AA1CW,QAAA,cAAc,kBA0CzB"}
@@ -0,0 +1,16 @@
1
+ import type { SchematicOptionObject } from '@o3r/schematics';
2
+ export type PresetNames = 'basic' | 'cms';
3
+ export interface NgAddSchematicsSchema extends SchematicOptionObject {
4
+ /** Skip the linter process */
5
+ skipLinter: boolean;
6
+ /** Skip the install process */
7
+ skipInstall: boolean;
8
+ /** Initial git repository commit information. */
9
+ commit: boolean | {
10
+ name: string;
11
+ email: string;
12
+ };
13
+ /** Do not initialize a git repository. */
14
+ skipGit: boolean;
15
+ }
16
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,KAAK,CAAC;AAE1C,MAAM,WAAW,qBAAsB,SAAQ,qBAAqB;IAClE,8BAA8B;IAC9B,UAAU,EAAE,OAAO,CAAC;IAEpB,+BAA+B;IAC/B,WAAW,EAAE,OAAO,CAAC;IAErB,iDAAiD;IACjD,MAAM,EAAE,OAAO,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAElD,0CAA0C;IAC1C,OAAO,EAAE,OAAO,CAAC;CAClB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":""}