@o3r/schematics 11.0.0-prerelease.3 → 11.0.0-prerelease.30
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +8 -5
- package/src/rule-factories/add-imports/index.d.ts +1 -1
- package/src/rule-factories/add-imports/index.d.ts.map +1 -1
- package/src/rule-factories/check-packages-peers/index.d.ts +1 -1
- package/src/rule-factories/check-packages-peers/index.d.ts.map +1 -1
- package/src/rule-factories/eslint-fix/index.d.ts +1 -1
- package/src/rule-factories/eslint-fix/index.d.ts.map +1 -1
- package/src/rule-factories/eslint-fix/index.js.map +1 -1
- package/src/utility/component.d.ts.map +1 -1
- package/src/utility/component.js +1 -2
- package/src/utility/component.js.map +1 -1
- package/src/utility/generation.js +4 -4
- package/src/utility/modules.js +1 -1
- package/src/utility/modules.js.map +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@o3r/schematics",
|
3
|
-
"version": "11.0.0-prerelease.
|
3
|
+
"version": "11.0.0-prerelease.30",
|
4
4
|
"publishConfig": {
|
5
5
|
"access": "public"
|
6
6
|
},
|
@@ -30,7 +30,7 @@
|
|
30
30
|
"@angular-devkit/core": "~17.3.0",
|
31
31
|
"@angular-devkit/schematics": "~17.3.0",
|
32
32
|
"@angular/cli": "~17.3.0",
|
33
|
-
"@o3r/telemetry": "^11.0.0-prerelease.
|
33
|
+
"@o3r/telemetry": "^11.0.0-prerelease.30",
|
34
34
|
"@schematics/angular": "~17.3.0",
|
35
35
|
"eslint": "^8.42.0",
|
36
36
|
"rxjs": "^7.8.1",
|
@@ -44,6 +44,9 @@
|
|
44
44
|
"@angular-devkit/core": {
|
45
45
|
"optional": true
|
46
46
|
},
|
47
|
+
"@angular/cli": {
|
48
|
+
"optional": true
|
49
|
+
},
|
47
50
|
"@o3r/telemetry": {
|
48
51
|
"optional": true
|
49
52
|
},
|
@@ -82,9 +85,9 @@
|
|
82
85
|
"@nx/eslint-plugin": "~18.3.0",
|
83
86
|
"@nx/jest": "~18.3.0",
|
84
87
|
"@nx/js": "~18.3.0",
|
85
|
-
"@o3r/build-helpers": "^11.0.0-prerelease.
|
86
|
-
"@o3r/eslint-plugin": "^11.0.0-prerelease.
|
87
|
-
"@o3r/telemetry": "^11.0.0-prerelease.
|
88
|
+
"@o3r/build-helpers": "^11.0.0-prerelease.30",
|
89
|
+
"@o3r/eslint-plugin": "^11.0.0-prerelease.30",
|
90
|
+
"@o3r/telemetry": "^11.0.0-prerelease.30",
|
88
91
|
"@schematics/angular": "~17.3.0",
|
89
92
|
"@stylistic/eslint-plugin-ts": "^1.5.4",
|
90
93
|
"@types/inquirer": "~8.2.10",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/add-imports/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/add-imports/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAKvD;;;;GAIG;AACH,eAAO,MAAM,cAAc,aACf,MAAM,WACP;IACP,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,EAAE,KACF,IAkBF,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { SchematicContext, Tree } from '@angular-devkit/schematics';
|
1
|
+
import type { SchematicContext, Tree } from '@angular-devkit/schematics';
|
2
2
|
/**
|
3
3
|
* List peer deps packages of the given package, display a warning if version mismatch, error if peer dep is missing
|
4
4
|
* @param packageName The package to check peer deps for
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/check-packages-peers/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/check-packages-peers/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AA4FzE;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,UACrC,IAAI,6FAKnB"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Rule, type TaskId } from '@angular-devkit/schematics';
|
1
|
+
import { type Rule, type TaskId } from '@angular-devkit/schematics';
|
2
2
|
import { LinterOptions } from '../../tasks/index';
|
3
3
|
interface ApplyEslintFixOption extends LinterOptions {
|
4
4
|
/** List of task to wait to run the linter */
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/eslint-fix/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,IAAI,EAAoB,KAAK,MAAM,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/eslint-fix/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,IAAI,EAAoB,KAAK,MAAM,EAAa,MAAM,4BAA4B,CAAC;AAEjH,OAAO,EAAiB,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEjE,UAAU,oBAAqB,SAAQ,aAAa;IAClD,6CAA6C;IAC7C,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,UAAU,SAAM,EAAE,SAAS,GAAE,MAAM,EAAW,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAqEnH"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rule-factories/eslint-fix/index.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rule-factories/eslint-fix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C"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/utility/component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/utility/component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAA6D,MAAM,OAAO,CAAC;AAGpG;;;GAGG;AACH,eAAO,MAAM,kBAAkB,SAAU,OAAO,6BAEsB,CAAC;AAEvE;;;GAGG;AACH,eAAO,MAAM,mBAAmB,SAAU,OAAO,6BAEwB,CAAC;AAE1E;;;GAGG;AACH,eAAO,MAAM,kBAAkB,qBAAsB,GAAG,gBAAgB,YAAwE,CAAC;AAEjJ;;;GAGG;AACH,eAAO,MAAM,mBAAmB,qBAAsB,GAAG,gBAAgB,YAEA,CAAC;AAE1E,eAAO,MAAM,iCAAiC,wBACyG,CAAC;AAExJ,qBAAa,gBAAiB,SAAQ,KAAK;gBAC7B,aAAa,EAAE,MAAM;CAOlC;AAED;;;;GAIG;AACH,eAAO,MAAM,oCAAoC,SAAU,IAAI,iBAAiB,MAAM;;;;;CA4DrF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kDAAkD,YACpD,MAAM,EAAE,KAChB,GAAG,kBAAkB,CAAC,OAAO,CA4B/B,CAAC"}
|
package/src/utility/component.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.addImportsIntoComponentDecoratorTransformerFactory = exports.getO3rComponentInfoOrThrowIfNotFound = exports.NoOtterComponent = exports.askConfirmationToConvertComponent = exports.isO3rClassComponent = exports.isNgClassComponent = exports.isO3rClassDecorator = exports.isNgClassDecorator = void 0;
|
4
|
-
const prompt_1 = require("@angular/cli/src/utilities/prompt");
|
5
4
|
const ts = require("typescript");
|
6
5
|
const ast_1 = require("./ast");
|
7
6
|
const error_1 = require("./error");
|
@@ -32,7 +31,7 @@ exports.isNgClassComponent = isNgClassComponent;
|
|
32
31
|
const isO3rClassComponent = (classDeclaration) => (0, exports.isNgClassComponent)(classDeclaration)
|
33
32
|
&& (ts.getDecorators(classDeclaration) || []).some(exports.isO3rClassDecorator);
|
34
33
|
exports.isO3rClassComponent = isO3rClassComponent;
|
35
|
-
const askConfirmationToConvertComponent = () => (
|
34
|
+
const askConfirmationToConvertComponent = async () => (await Promise.resolve().then(() => require('@angular/cli/src/utilities/prompt'))).askConfirmation('Component found is not an Otter component. Would you like to convert it?', true);
|
36
35
|
exports.askConfirmationToConvertComponent = askConfirmationToConvertComponent;
|
37
36
|
class NoOtterComponent extends Error {
|
38
37
|
constructor(componentPath) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../src/utility/component.ts"],"names":[],"mappings":";;;AACA,
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../src/utility/component.ts"],"names":[],"mappings":";;;AACA,iCAAiC;AACjC,+BAAoG;AACpG,mCAAsC;AAEtC;;;GAGG;AACI,MAAM,kBAAkB,GAAG,CAAC,IAAa,EAA4B,EAAE,CAC5E,IAAA,wBAAkB,EAAC,IAAI,CAAC;OACrB,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,WAAW,CAAC,QAAQ,EAAE,KAAK,WAAW,CAAC;AAF1D,QAAA,kBAAkB,sBAEwC;AAEvE;;;GAGG;AACI,MAAM,mBAAmB,GAAG,CAAC,IAAa,EAA4B,EAAE,CAC7E,IAAA,wBAAkB,EAAC,IAAI,CAAC;OACrB,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,WAAW,CAAC,QAAQ,EAAE,KAAK,cAAc,CAAC;AAF7D,QAAA,mBAA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B,CAAC,SAAS,EAAE,OAAO,CAAC,4BAA4B,CAC9E,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,CAAC,EACrF,IAAI,CACL,CAAC;iBACH,EAAE,IAAI,CAAC;aACT,CACF,CACF,CAAC;QACJ,CAAC;QACD,OAAO,EAAE,CAAC,cAAc,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;IAC7C,CAAC,CAAC;IACF,OAAO,EAAE,CAAC,SAAS,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;AACvC,CAAC,CAAC;AA9BW,QAAA,kDAAkD,sDA8B7D"}
|
@@ -17,15 +17,15 @@ exports.OTTER_ITEM_TYPES = [
|
|
17
17
|
/** List of the default destination paths for each generated entity */
|
18
18
|
exports.TYPES_DEFAULT_FOLDER = {
|
19
19
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
20
|
-
'@o3r/core:component': { app: 'src/components', lib: 'components
|
20
|
+
'@o3r/core:component': { app: 'src/components', lib: 'src/components' },
|
21
21
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
22
22
|
'@o3r/core:page': { app: 'src/app' },
|
23
23
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
24
|
-
'@o3r/core:service': { app: 'src/services', lib: 'services
|
24
|
+
'@o3r/core:service': { app: 'src/services', lib: 'src/services' },
|
25
25
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
26
|
-
'@o3r/core:store': { app: 'src/store', lib: 'store
|
26
|
+
'@o3r/core:store': { app: 'src/store', lib: 'src/store' },
|
27
27
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
28
|
-
'@o3r/core:schematics-update': { app: 'src/schematics', lib: 'schematics
|
28
|
+
'@o3r/core:schematics-update': { app: 'src/schematics', lib: 'src/schematics' },
|
29
29
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
30
30
|
'@o3r/testing:playwright-scenario': { app: 'e2e-playwright/scenarios' },
|
31
31
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
package/src/utility/modules.js
CHANGED
@@ -20,7 +20,7 @@ const loaders_1 = require("./loaders");
|
|
20
20
|
function getAppModuleFilePath(tree, context, projectName) {
|
21
21
|
const workspaceProject = projectName ? (0, loaders_1.getWorkspaceConfig)(tree)?.projects[projectName] : undefined;
|
22
22
|
// exit if not an application
|
23
|
-
if (!workspaceProject) {
|
23
|
+
if (!workspaceProject || workspaceProject.projectType !== 'application') {
|
24
24
|
context.logger.debug('Aborted. App module file path will be searched only in application project.');
|
25
25
|
return undefined;
|
26
26
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"modules.js","sourceRoot":"","sources":["../../../src/utility/modules.ts"],"names":[],"mappings":";;;AAAA,2DAAuG;AACvG,iCAAiC;AACjC,qEAK+C;AAC/C,+DAAgE;AAChE,8BAA8B;AAC9B,mCAA0C;AAC1C,kCAAkC;AAClC,+BAAiD;AACjD,uCAA+C;AAG/C;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAU,EAAE,OAAyB,EAAE,WAA2B;IACrG,MAAM,gBAAgB,GAAG,WAAW,CAAC,CAAC,CAAC,IAAA,4BAAkB,EAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACnG,6BAA6B;IAC7B,IAAI,CAAC,gBAAgB,EAAE,CAAC;
|
1
|
+
{"version":3,"file":"modules.js","sourceRoot":"","sources":["../../../src/utility/modules.ts"],"names":[],"mappings":";;;AAAA,2DAAuG;AACvG,iCAAiC;AACjC,qEAK+C;AAC/C,+DAAgE;AAChE,8BAA8B;AAC9B,mCAA0C;AAC1C,kCAAkC;AAClC,+BAAiD;AACjD,uCAA+C;AAG/C;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAU,EAAE,OAAyB,EAAE,WAA2B;IACrG,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