@o3r/schematics 9.3.0-alpha.9 → 10.0.0-next.7

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/schematics",
3
- "version": "9.3.0-alpha.9",
3
+ "version": "10.0.0-next.7",
4
4
  "description": "Schematics module of the Otter framework",
5
5
  "main": "./src/public_api.js",
6
6
  "keywords": [
@@ -55,12 +55,12 @@
55
55
  "@babel/core": "~7.22.0",
56
56
  "@babel/preset-typescript": "~7.22.0",
57
57
  "@compodoc/compodoc": "^1.1.19",
58
- "@nx/jest": "~16.7.0",
59
- "@nx/js": "~16.7.0",
60
- "@nx/linter": "~16.7.0",
61
- "@o3r/build-helpers": "^9.3.0-alpha.9",
62
- "@o3r/dev-tools": "^9.3.0-alpha.9",
63
- "@o3r/eslint-plugin": "^9.3.0-alpha.9",
58
+ "@nx/jest": "~16.8.0",
59
+ "@nx/js": "~16.8.0",
60
+ "@nx/linter": "~16.8.0",
61
+ "@o3r/build-helpers": "^10.0.0-next.7",
62
+ "@o3r/dev-tools": "^10.0.0-next.7",
63
+ "@o3r/eslint-plugin": "^10.0.0-next.7",
64
64
  "@schematics/angular": "~16.2.0",
65
65
  "@types/jest": "~29.5.2",
66
66
  "@types/node": "^18.0.0",
@@ -71,13 +71,13 @@
71
71
  "eslint": "^8.42.0",
72
72
  "eslint-import-resolver-node": "^0.3.4",
73
73
  "eslint-plugin-jest": "~27.2.3",
74
- "eslint-plugin-jsdoc": "~46.5.0",
74
+ "eslint-plugin-jsdoc": "~46.8.0",
75
75
  "eslint-plugin-prefer-arrow": "~1.2.3",
76
76
  "eslint-plugin-unicorn": "^47.0.0",
77
- "jest": "~29.6.2",
77
+ "jest": "~29.7.0",
78
78
  "jest-junit": "~16.0.0",
79
79
  "jsonschema": "~1.4.1",
80
- "nx": "~16.7.0",
80
+ "nx": "~16.8.0",
81
81
  "rxjs": "^7.8.1",
82
82
  "ts-jest": "~29.1.1",
83
83
  "type-fest": "^3.12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;YAC9F,WAAW,GAAG,GAAG,WAAW,IAAI,UAAU,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;SAC7E;QACD,OAAO,CAAC,OAAO,CAAC,IAAI,0BAAa,CAAC;YAChC,UAAU,EAAE,KAAK;YACjB,WAAW;YACX,KAAK,EAAE,KAAK;SACN,CAAC,CAAC,CAAC;QACX,MAAM,IAAA,oBAAa,EAAC,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,CAAC,CAAC;QACvD,IAAI,CAAC,SAAS,CAAC,gBAAgB,EAAE,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC;QAClE,OAAO,GAAG,EAAE,CAAC,IAAI,CAAC;IACpB,CAAC,CAAC;AACJ,CAAC;AAxBD,sBAwBC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -11,7 +11,7 @@ import type { NgAddPackageOptions } from '../../tasks/index';
11
11
  * @param packageJsonPath path of the package json of the project where they will be installed
12
12
  */
13
13
  export declare function ngAddPackages(packages: string[], options?: Omit<NgAddPackageOptions, 'version'> & {
14
- version?: string | string[];
14
+ version?: string | (string | undefined)[];
15
15
  }, packageJsonPath?: string): Rule;
16
16
  /**
17
17
  * Look for the peer dependencies and run ng add on the package requested version
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,IAAI,EAAqC,MAAM,4BAA4B,CAAC;AAGrH,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAE9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,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AAC,OAAO,CAAC,uBAAuB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,aAAa,EAAE,aAAa,CAAC,EAAE,EAAE;YACjF,SAAS,CAAC,UAAW,CAAC,aAAa,CAAC,GAAG;gBACrC,GAAG,SAAS,CAAC,UAAW,CAAC,aAAa,CAAC;gBACvC,GAAG,aAAa;aACjB,CAAC;QACJ,CAAC,CAAC,CAAC;QACH,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YACpD,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,aAAa,EAAE,aAAa,CAAC,EAAE,EAAE;gBACjF,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC,aAAa,CAAC,EAAE;oBACvC,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,GAAG;wBAClC,GAAG,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC;wBACpC,GAAG,aAAa;qBACjB,CAAC;iBACH;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QACH,OAAO,IAAA,wBAAgB,EAAC,IAAI,EAAE,SAAS,EAAE,eAAe,CAAC,CAAC;IAC5D,CAAC,CAAC;AACJ,CAAC;AAtBD,oEAsBC"}
@@ -15,6 +15,12 @@ export declare function findConfigFileRelativePath(tree: Tree, files: string[],
15
15
  * @param tree
16
16
  */
17
17
  export declare function isNxContext(tree: Tree): boolean;
18
+ /**
19
+ * Determine if a repository is standalone (not part of a monorepo)
20
+ *
21
+ * @param tree
22
+ */
23
+ export declare function isStandaloneRepository(tree: Tree): boolean | null;
18
24
  /**
19
25
  * Determine if we are in a project with multi packages
20
26
  *
@@ -1 +1 @@
1
- {"version":3,"file":"monorepo.d.ts","sourceRoot":"","sources":["../../../src/utility/monorepo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,4B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GAIG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,IAAI,kBAGhD;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,IAAI,WAEhD;AAED,mFAAmF;AACnF,eAAO,MAAM,qBAAqB,SAAS,CAAC;AAC5C,sFAAsF;AACtF,eAAO,MAAM,wBAAwB,SAAS,CAAC;AAE/C,oEAAoE;AACpE,eAAO,MAAM,oBAAoB,EAAE,eAGlC,CAAC;AAEF,uDAAuD;AACvD,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,gBAAgB,CAAC,aAAa,CAAC,EAAE,MAAM,eAAe,CAGhG,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,eAAe,EAAE,WAAW,CAAC,EAAE,gBAAgB,CAAC,aAAa,CAAC,OAQtJ"}
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getPackagesBaseRootFolder = exports.BASE_ROOT_FOLDERS_MAP = exports.DEFAULT_ROOT_FOLDERS = exports.APPLICATIONS_FOLDER_NAME = exports.LIBRARIES_FOLDER_NAME = exports.isMultipackagesContext = exports.isNxContext = exports.findConfigFileRelativePath = void 0;
3
+ exports.getPackagesBaseRootFolder = exports.BASE_ROOT_FOLDERS_MAP = exports.DEFAULT_ROOT_FOLDERS = exports.APPLICATIONS_FOLDER_NAME = exports.LIBRARIES_FOLDER_NAME = exports.isMultipackagesContext = exports.isStandaloneRepository = exports.isNxContext = exports.findConfigFileRelativePath = void 0;
4
4
  const path = require("node:path");
5
5
  const collection_1 = require("./collection");
6
+ const loaders_1 = require("./loaders");
6
7
  /**
7
8
  * Find the relative path to a configuration file at the monorepo root
8
9
  *
@@ -28,6 +29,16 @@ function isNxContext(tree) {
28
29
  return tree.exists('/nx.json');
29
30
  }
30
31
  exports.isNxContext = isNxContext;
32
+ /**
33
+ * Determine if a repository is standalone (not part of a monorepo)
34
+ *
35
+ * @param tree
36
+ */
37
+ function isStandaloneRepository(tree) {
38
+ const workspaceConfig = (0, loaders_1.getWorkspaceConfig)(tree);
39
+ return workspaceConfig && Object.keys(workspaceConfig.projects || {}).length === 1 && Object.values(workspaceConfig.projects)[0].root === '';
40
+ }
41
+ exports.isStandaloneRepository = isStandaloneRepository;
31
42
  /**
32
43
  * Determine if we are in a project with multi packages
33
44
  *
@@ -1 +1 @@
1
- {"version":3,"file":"monorepo.js","sourceRoot":"","sources":["../../../src/utility/monorepo.ts"],"names":[],"mappings":";;;AACA,kCAAkC;AAElC,6CAAmD;AAGnD;;;;;;;GAOG;AACH,SAAgB,0BAA0B,CAAC,IAAU,EAAE,KAAe,EAAE,UAAkB;IACxF,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC;IAChE,IAAI,SAAS,KAAK,SAAS,EAAE;QAC3B,OAAO,EAAE,CAAC;KACX;IAED,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,EAAE,IAAI,SAAS,EAAE,CAAC,CAAC;AAC1D,CAAC;AAPD,gEAOC;AAED;;;;GAIG;AACH,SAAgB,WAAW,CAAC,IAAU;IACpC,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;AACjC,CAAC;AAFD,kCAEC;AAED;;;;GAIG;AACH,SAAgB,sBAAsB,CAAC,IAAU;IAC/C,OAAO,CAAC,CAAE,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAiB,CAAC,SAAS,CAAC;AACrE,CAAC;AAFD,wDAEC;AAED,mFAAmF;AACtE,QAAA,qBAAqB,GAAG,MAAM,CAAC;AAC5C,sFAAsF;AACzE,QAAA,wBAAwB,GAAG,MAAM,CAAC;AAE/C,oEAAoE;AACvD,QAAA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