@o3r/core 13.0.0-prerelease.2 → 13.0.0-prerelease.4
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/core",
|
|
3
|
-
"version": "13.0.0-prerelease.
|
|
3
|
+
"version": "13.0.0-prerelease.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@ngrx/entity": "^20.0.0",
|
|
39
39
|
"@ngrx/store": "^20.0.0",
|
|
40
40
|
"@nx/angular": "~21.3.11",
|
|
41
|
-
"@o3r/telemetry": "^13.0.0-prerelease.
|
|
41
|
+
"@o3r/telemetry": "^13.0.0-prerelease.4",
|
|
42
42
|
"@schematics/angular": "^20.0.0",
|
|
43
43
|
"chokidar": "^4.0.3",
|
|
44
44
|
"globby": "^11.1.0",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@o3r/schematics": "^13.0.0-prerelease.
|
|
80
|
+
"@o3r/schematics": "^13.0.0-prerelease.4",
|
|
81
81
|
"tslib": "^2.6.2",
|
|
82
82
|
"uuid": "^11.0.5"
|
|
83
83
|
},
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"@ngrx/store": "~20.0.0",
|
|
90
90
|
"@ngrx/store-devtools": "~20.0.0",
|
|
91
91
|
"@nx/eslint-plugin": "~21.3.11",
|
|
92
|
-
"@o3r/store-sync": "^13.0.0-prerelease.
|
|
92
|
+
"@o3r/store-sync": "^13.0.0-prerelease.4",
|
|
93
93
|
"@stylistic/eslint-plugin": "~5.2.0",
|
|
94
94
|
"@types/jest": "~29.5.2",
|
|
95
95
|
"@typescript-eslint/eslint-plugin": "~8.41.0",
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import type { SchematicOptionObject } from '@o3r/schematics';
|
|
1
|
+
import type { NgAddOptions, SchematicOptionObject } from '@o3r/schematics';
|
|
2
2
|
export type PresetNames = 'basic' | 'recommended' | 'cms' | 'all';
|
|
3
|
-
export interface NgAddSchematicsSchema extends SchematicOptionObject {
|
|
3
|
+
export interface NgAddSchematicsSchema extends NgAddOptions, SchematicOptionObject {
|
|
4
4
|
/** Preset of module list to automatically install */
|
|
5
5
|
preset: PresetNames;
|
|
6
6
|
/** Preset of non-official module list to automatically install */
|
|
7
7
|
externalPresets?: string | undefined;
|
|
8
|
-
/** Project name */
|
|
9
|
-
projectName?: string | undefined;
|
|
10
8
|
/** Skip the linter process which includes the run of EsLint and EditorConfig rules */
|
|
11
9
|
skipLinter: boolean;
|
|
12
|
-
/** Skip the install process */
|
|
13
|
-
skipInstall: boolean;
|
|
14
10
|
/** Initial git repository commit information. */
|
|
15
11
|
commit: boolean | {
|
|
16
12
|
name: string;
|
|
@@ -22,7 +18,5 @@ export interface NgAddSchematicsSchema extends SchematicOptionObject {
|
|
|
22
18
|
withDevtool: boolean;
|
|
23
19
|
/** Force package installation (in case of unmet peer dependencies) */
|
|
24
20
|
forceInstall: boolean;
|
|
25
|
-
/** Use a pinned version for otter packages */
|
|
26
|
-
exactO3rVersion?: boolean;
|
|
27
21
|
}
|
|
28
22
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,aAAa,GAAG,KAAK,GAAG,KAAK,CAAC;AAElE,MAAM,WAAW,qBAAsB,SAAQ,qBAAqB;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,aAAa,GAAG,KAAK,GAAG,KAAK,CAAC;AAElE,MAAM,WAAW,qBAAsB,SAAQ,YAAY,EAAE,qBAAqB;IAChF,qDAAqD;IACrD,MAAM,EAAE,WAAW,CAAC;IAEpB,kEAAkE;IAClE,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAErC,sFAAsF;IACtF,UAAU,EAAE,OAAO,CAAC;IAEpB,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;IAEjB,8DAA8D;IAC9D,WAAW,EAAE,OAAO,CAAC;IAErB,sEAAsE;IACtE,YAAY,EAAE,OAAO,CAAC;CACvB"}
|
|
@@ -4,16 +4,13 @@ import * as fs from 'node:fs';
|
|
|
4
4
|
import * as path from 'node:path';
|
|
5
5
|
import {
|
|
6
6
|
createOtterSchematic,
|
|
7
|
-
getProjectNewDependenciesTypes,
|
|
8
|
-
getPackageInstallConfig,
|
|
9
7
|
applyEsLintFix,
|
|
10
|
-
|
|
11
|
-
setupDependencies,
|
|
8
|
+
ngAddDependenciesRule
|
|
12
9
|
} from '@o3r/schematics';
|
|
13
10
|
|
|
14
11
|
const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
|
|
15
12
|
|
|
16
|
-
const doCustomAction: Rule
|
|
13
|
+
const doCustomAction = (options: NgAddSchematicsSchema): Rule => (tree) => {
|
|
17
14
|
// your custom code here
|
|
18
15
|
return tree;
|
|
19
16
|
};
|
|
@@ -22,8 +19,8 @@ const dependenciesToInstall: string[] = [
|
|
|
22
19
|
// Add the dependencies to install here
|
|
23
20
|
];
|
|
24
21
|
|
|
25
|
-
const
|
|
26
|
-
// Add the
|
|
22
|
+
const devDependenciesToInstall: string[] = [
|
|
23
|
+
// Add the devDependencies to install here
|
|
27
24
|
];
|
|
28
25
|
|
|
29
26
|
/**
|
|
@@ -32,31 +29,12 @@ const dependenciesToNgAdd: string[] = [
|
|
|
32
29
|
* @param options
|
|
33
30
|
*/
|
|
34
31
|
function ngAddFn(options: NgAddSchematicsSchema): Rule {
|
|
35
|
-
return
|
|
36
|
-
//
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
inManifest: [{
|
|
42
|
-
range: `~${version}`,
|
|
43
|
-
types: getProjectNewDependenciesTypes(workspaceProject)
|
|
44
|
-
}]
|
|
45
|
-
};
|
|
46
|
-
return acc;
|
|
47
|
-
}, getPackageInstallConfig(packageJsonPath, tree, options.projectName));
|
|
48
|
-
return chain([
|
|
49
|
-
// optional custom action dedicated to this module
|
|
50
|
-
doCustomAction,
|
|
51
|
-
options.skipLinter ? noop() : applyEsLintFix(),
|
|
52
|
-
setupDependencies({
|
|
53
|
-
projectName: options.projectName,
|
|
54
|
-
dependencies,
|
|
55
|
-
ngAddToRun: dependenciesToNgAdd,
|
|
56
|
-
skipInstall: options.skipInstall
|
|
57
|
-
})
|
|
58
|
-
]);
|
|
59
|
-
};
|
|
32
|
+
return chain([
|
|
33
|
+
// optional custom action dedicated to this module
|
|
34
|
+
doCustomAction(options),
|
|
35
|
+
options.skipLinter ? noop() : applyEsLintFix(),
|
|
36
|
+
ngAddDependenciesRule(options, packageJsonPath, { dependenciesToInstall, devDependenciesToInstall })
|
|
37
|
+
]);
|
|
60
38
|
}
|
|
61
39
|
|
|
62
40
|
/**
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
projectName: string | undefined;
|
|
1
|
+
import type {
|
|
2
|
+
NgAddOptions,
|
|
3
|
+
SchematicOptionObject,
|
|
4
|
+
} from '@o3r/schematics';
|
|
6
5
|
|
|
6
|
+
export interface NgAddSchematicsSchema extends NgAddOptions, SchematicOptionObject {
|
|
7
7
|
/** Skip the linter process which includes the run of EsLint and EditorConfig rules */
|
|
8
8
|
skipLinter: boolean;
|
|
9
|
-
|
|
10
|
-
/** Skip the install process */
|
|
11
|
-
skipInstall: boolean;
|
|
12
9
|
}
|