@o3r/schematics 9.5.0-alpha.2 → 9.5.0-alpha.20
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/schematics",
|
|
3
|
-
"version": "9.5.0-alpha.
|
|
3
|
+
"version": "9.5.0-alpha.20",
|
|
4
4
|
"description": "Schematics module of the Otter framework",
|
|
5
5
|
"main": "./src/public_api.js",
|
|
6
6
|
"typings": "./src/public_api.d.ts",
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
"@nx/jest": "~16.10.0",
|
|
64
64
|
"@nx/js": "~16.10.0",
|
|
65
65
|
"@nx/linter": "~16.10.0",
|
|
66
|
-
"@o3r/build-helpers": "^9.5.0-alpha.
|
|
67
|
-
"@o3r/dev-tools": "^9.5.0-alpha.
|
|
68
|
-
"@o3r/eslint-plugin": "^9.5.0-alpha.
|
|
66
|
+
"@o3r/build-helpers": "^9.5.0-alpha.20",
|
|
67
|
+
"@o3r/dev-tools": "^9.5.0-alpha.20",
|
|
68
|
+
"@o3r/eslint-plugin": "^9.5.0-alpha.20",
|
|
69
69
|
"@schematics/angular": "~16.2.0",
|
|
70
70
|
"@types/jest": "~29.5.2",
|
|
71
71
|
"@types/node": "^18.0.0",
|
|
@@ -158,5 +158,6 @@
|
|
|
158
158
|
],
|
|
159
159
|
"bugs": "https://github.com/AmadeusITGroup/otter/issues",
|
|
160
160
|
"repository": "https://github.com/AmadeusITGroup/otter",
|
|
161
|
-
"license": "BSD-3-Clause"
|
|
161
|
+
"license": "BSD-3-Clause",
|
|
162
|
+
"homepage": "https://amadeusitgroup.github.io/otter/"
|
|
162
163
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAA0B,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAM/E;;GAEG;AACH,wBAAgB,KAAK,IAAI,IAAI,CA0B5B"}
|
|
@@ -4,13 +4,14 @@ exports.ngAdd = void 0;
|
|
|
4
4
|
const fs = require("node:fs");
|
|
5
5
|
const path = require("node:path");
|
|
6
6
|
const rxjs_1 = require("rxjs");
|
|
7
|
-
const schematics_1 = require("@o3r/schematics");
|
|
8
7
|
/**
|
|
9
8
|
* Add Otter schematics to an Angular Project
|
|
10
9
|
*/
|
|
11
10
|
function ngAdd() {
|
|
12
11
|
const schematicsDependencies = ['@angular-devkit/architect', '@angular-devkit/schematics', '@angular-devkit/core', '@schematics/angular', 'globby'];
|
|
13
12
|
return async (tree, context) => {
|
|
13
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
14
|
+
const { AddDevInstall } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
14
15
|
context.logger.info('Running ng add for schematics');
|
|
15
16
|
const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
|
|
16
17
|
const treePackageJson = tree.readJson('./package.json');
|
|
@@ -23,7 +24,7 @@ function ngAdd() {
|
|
|
23
24
|
treePackageJson.devDependencies = { ...treePackageJson.devDependencies, [dependency]: version };
|
|
24
25
|
packageName = `${packageName} ${dependency}${version ? '@' + version : ''}`;
|
|
25
26
|
}
|
|
26
|
-
context.addTask(new
|
|
27
|
+
context.addTask(new AddDevInstall({
|
|
27
28
|
hideOutput: false,
|
|
28
29
|
packageName,
|
|
29
30
|
quiet: false
|