@abp/ng.schematics 10.5.0 → 10.6.0-rc.2
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/commands/ai-config/index.d.ts +3 -3
- package/commands/ai-config/index.js +88 -88
- package/commands/ai-config/index.js.map +1 -1
- package/commands/ai-config/model.d.ts +10 -10
- package/commands/ai-config/model.js +2 -2
- package/commands/api/files-service/proxy/__namespace@dir__/__name@kebab__.service.ts.template +6 -4
- package/commands/api/index.d.ts +2 -2
- package/commands/api/index.js +139 -138
- package/commands/api/index.js.map +1 -1
- package/commands/change-theme/index.d.ts +28 -28
- package/commands/change-theme/index.js +474 -473
- package/commands/change-theme/index.js.map +1 -1
- package/commands/change-theme/model.d.ts +5 -5
- package/commands/change-theme/model.js +2 -2
- package/commands/change-theme/style-map.d.ts +16 -16
- package/commands/change-theme/style-map.js +424 -424
- package/commands/change-theme/theme-options.enum.d.ts +6 -6
- package/commands/change-theme/theme-options.enum.js +11 -11
- package/commands/change-theme/theme-options.enum.js.map +1 -1
- package/commands/create-lib/index.d.ts +13 -13
- package/commands/create-lib/index.js +298 -298
- package/commands/create-lib/index.js.map +1 -1
- package/commands/create-lib/models/generate-lib-schema.d.ts +20 -20
- package/commands/create-lib/models/generate-lib-schema.js +8 -8
- package/commands/create-lib/models/generate-lib-schema.js.map +1 -1
- package/commands/create-lib/models/index.d.ts +1 -1
- package/commands/create-lib/models/index.js +4 -17
- package/commands/create-lib/models/index.js.map +1 -1
- package/commands/proxy-add/index.d.ts +2 -2
- package/commands/proxy-add/index.js +41 -41
- package/commands/proxy-add/index.js.map +1 -1
- package/commands/proxy-index/index.d.ts +5 -5
- package/commands/proxy-index/index.js +14 -14
- package/commands/proxy-index/index.js.map +1 -1
- package/commands/proxy-refresh/index.d.ts +3 -3
- package/commands/proxy-refresh/index.js +27 -27
- package/commands/proxy-refresh/index.js.map +1 -1
- package/commands/proxy-remove/index.d.ts +3 -3
- package/commands/proxy-remove/index.js +33 -33
- package/commands/proxy-remove/index.js.map +1 -1
- package/commands/ssr-add/index.d.ts +11 -11
- package/commands/ssr-add/index.js +360 -361
- package/commands/ssr-add/index.js.map +1 -1
- package/commands/ssr-add/server/index.d.ts +10 -10
- package/commands/ssr-add/server/index.js +209 -205
- package/commands/ssr-add/server/index.js.map +1 -1
- package/commands/ssr-add/server/index.ts +6 -2
- package/constants/api.d.ts +1 -1
- package/constants/api.js +4 -4
- package/constants/index.d.ts +4 -4
- package/constants/index.js +7 -20
- package/constants/index.js.map +1 -1
- package/constants/proxy.d.ts +4 -4
- package/constants/proxy.js +7 -7
- package/constants/symbols.d.ts +1 -1
- package/constants/symbols.js +4 -4
- package/constants/system-types.d.ts +1 -1
- package/constants/system-types.js +29 -29
- package/constants/volo.d.ts +5 -5
- package/constants/volo.js +34 -34
- package/enums/binding-source-id.d.ts +8 -7
- package/enums/binding-source-id.js +12 -11
- package/enums/binding-source-id.js.map +1 -1
- package/enums/exception.d.ts +17 -17
- package/enums/exception.js +2 -2
- package/enums/import-keyword.d.ts +4 -4
- package/enums/import-keyword.js +8 -8
- package/enums/import-keyword.js.map +1 -1
- package/enums/index.d.ts +5 -5
- package/enums/index.js +8 -21
- package/enums/index.js.map +1 -1
- package/enums/method-modifier.d.ts +6 -6
- package/enums/method-modifier.js +10 -10
- package/enums/method-modifier.js.map +1 -1
- package/enums/service-types.d.ts +6 -6
- package/enums/service-types.js +10 -10
- package/enums/service-types.js.map +1 -1
- package/index.d.ts +3 -3
- package/index.js +6 -19
- package/index.js.map +1 -1
- package/models/api-definition.d.ts +97 -93
- package/models/api-definition.js +2 -2
- package/models/generate-proxy-schema.d.ts +28 -28
- package/models/generate-proxy-schema.js +2 -2
- package/models/import.d.ts +11 -11
- package/models/import.js +13 -13
- package/models/index.d.ts +11 -11
- package/models/index.js +14 -27
- package/models/index.js.map +1 -1
- package/models/method.d.ts +36 -34
- package/models/method.js +73 -70
- package/models/method.js.map +1 -1
- package/models/model.d.ts +48 -48
- package/models/model.js +76 -76
- package/models/model.js.map +1 -1
- package/models/project.d.ts +5 -5
- package/models/project.js +2 -2
- package/models/proxy-config.d.ts +4 -4
- package/models/proxy-config.js +2 -2
- package/models/rule.d.ts +2 -2
- package/models/rule.js +2 -2
- package/models/service.d.ts +21 -21
- package/models/service.js +11 -11
- package/models/tree.d.ts +1 -1
- package/models/tree.js +2 -2
- package/models/util.d.ts +7 -7
- package/models/util.js +2 -2
- package/package.json +6 -6
- package/utils/angular/add-declaration-to-ng-module.d.ts +20 -20
- package/utils/angular/add-declaration-to-ng-module.js +45 -45
- package/utils/angular/add-declaration-to-ng-module.js.map +1 -1
- package/utils/angular/ast-utils.d.ts +106 -106
- package/utils/angular/ast-utils.js +518 -518
- package/utils/angular/ast-utils.js.map +1 -1
- package/utils/angular/change.d.ts +68 -68
- package/utils/angular/change.js +121 -121
- package/utils/angular/change.js.map +1 -1
- package/utils/angular/dependencies.d.ts +23 -23
- package/utils/angular/dependencies.js +56 -56
- package/utils/angular/dependencies.js.map +1 -1
- package/utils/angular/dependency.d.ts +96 -96
- package/utils/angular/dependency.js +123 -122
- package/utils/angular/dependency.js.map +1 -1
- package/utils/angular/eol.d.ts +8 -8
- package/utils/angular/eol.js +22 -23
- package/utils/angular/eol.js.map +1 -1
- package/utils/angular/find-module.d.ts +33 -33
- package/utils/angular/find-module.js +105 -105
- package/utils/angular/find-module.js.map +1 -1
- package/utils/angular/generate-from-files.d.ts +19 -19
- package/utils/angular/generate-from-files.js +48 -49
- package/utils/angular/generate-from-files.js.map +1 -1
- package/utils/angular/index.d.ts +15 -15
- package/utils/angular/index.js +18 -31
- package/utils/angular/index.js.map +1 -1
- package/utils/angular/json-file.d.ts +24 -24
- package/utils/angular/json-file.js +71 -71
- package/utils/angular/json-file.js.map +1 -1
- package/utils/angular/latest-versions/index.d.ts +28 -28
- package/utils/angular/latest-versions/index.js +31 -31
- package/utils/angular/ng-ast-utils.d.ts +12 -12
- package/utils/angular/ng-ast-utils.js +79 -79
- package/utils/angular/ng-ast-utils.js.map +1 -1
- package/utils/angular/parse-name.d.ts +13 -13
- package/utils/angular/parse-name.js +19 -20
- package/utils/angular/parse-name.js.map +1 -1
- package/utils/angular/paths.d.ts +8 -8
- package/utils/angular/paths.js +17 -18
- package/utils/angular/paths.js.map +1 -1
- package/utils/angular/project-targets.d.ts +11 -11
- package/utils/angular/project-targets.js +21 -22
- package/utils/angular/project-targets.js.map +1 -1
- package/utils/angular/standalone/app_component.d.ts +29 -29
- package/utils/angular/standalone/app_component.js +107 -107
- package/utils/angular/standalone/app_component.js.map +1 -1
- package/utils/angular/standalone/app_config.d.ts +23 -23
- package/utils/angular/standalone/app_config.js +89 -89
- package/utils/angular/standalone/app_config.js.map +1 -1
- package/utils/angular/standalone/code_block.d.ts +53 -53
- package/utils/angular/standalone/code_block.js +80 -79
- package/utils/angular/standalone/code_block.js.map +1 -1
- package/utils/angular/standalone/index.d.ts +9 -9
- package/utils/angular/standalone/index.js +13 -13
- package/utils/angular/standalone/rules.d.ts +45 -45
- package/utils/angular/standalone/rules.js +187 -188
- package/utils/angular/standalone/rules.js.map +1 -1
- package/utils/angular/standalone/util.d.ts +35 -35
- package/utils/angular/standalone/util.js +135 -135
- package/utils/angular/standalone/util.js.map +1 -1
- package/utils/angular/test/create-app-module.d.ts +9 -9
- package/utils/angular/test/create-app-module.js +14 -15
- package/utils/angular/test/create-app-module.js.map +1 -1
- package/utils/angular/test/get-file-content.d.ts +9 -9
- package/utils/angular/test/get-file-content.js +17 -18
- package/utils/angular/test/get-file-content.js.map +1 -1
- package/utils/angular/test/index.d.ts +9 -9
- package/utils/angular/test/index.js +12 -25
- package/utils/angular/test/index.js.map +1 -1
- package/utils/angular/validation.d.ts +10 -10
- package/utils/angular/validation.js +28 -28
- package/utils/angular/validation.js.map +1 -1
- package/utils/angular/workspace-models.d.ts +167 -167
- package/utils/angular/workspace-models.js +43 -43
- package/utils/angular/workspace-models.js.map +1 -1
- package/utils/angular/workspace.d.ts +65 -65
- package/utils/angular/workspace.js +135 -135
- package/utils/angular/workspace.js.map +1 -1
- package/utils/angular-schematic/generate-lib.d.ts +3 -3
- package/utils/angular-schematic/generate-lib.js +52 -53
- package/utils/angular-schematic/generate-lib.js.map +1 -1
- package/utils/angular-schematic/index.d.ts +1 -1
- package/utils/angular-schematic/index.js +4 -17
- package/utils/angular-schematic/index.js.map +1 -1
- package/utils/api.d.ts +2 -2
- package/utils/api.js +7 -8
- package/utils/api.js.map +1 -1
- package/utils/ast.d.ts +5 -5
- package/utils/ast.js +28 -28
- package/utils/ast.js.map +1 -1
- package/utils/barrel.d.ts +4 -4
- package/utils/barrel.js +86 -87
- package/utils/barrel.js.map +1 -1
- package/utils/common.d.ts +11 -11
- package/utils/common.js +78 -78
- package/utils/common.js.map +1 -1
- package/utils/enum.d.ts +18 -18
- package/utils/enum.js +39 -40
- package/utils/enum.js.map +1 -1
- package/utils/file.d.ts +2 -2
- package/utils/file.js +8 -9
- package/utils/file.js.map +1 -1
- package/utils/generics.d.ts +26 -26
- package/utils/generics.js +89 -89
- package/utils/generics.js.map +1 -1
- package/utils/import.d.ts +3 -3
- package/utils/import.js +10 -11
- package/utils/import.js.map +1 -1
- package/utils/index.d.ts +22 -22
- package/utils/index.js +25 -38
- package/utils/index.js.map +1 -1
- package/utils/methods.d.ts +4 -4
- package/utils/methods.js +31 -31
- package/utils/methods.js.map +1 -1
- package/utils/model.d.ts +14 -14
- package/utils/model.js +217 -211
- package/utils/model.js.map +1 -1
- package/utils/namespace.d.ts +1 -1
- package/utils/namespace.js +17 -18
- package/utils/namespace.js.map +1 -1
- package/utils/ng-module.d.ts +46 -46
- package/utils/ng-module.js +126 -125
- package/utils/ng-module.js.map +1 -1
- package/utils/path.d.ts +2 -2
- package/utils/path.js +35 -36
- package/utils/path.js.map +1 -1
- package/utils/rule.d.ts +4 -4
- package/utils/rule.js +32 -33
- package/utils/rule.js.map +1 -1
- package/utils/service.d.ts +8 -8
- package/utils/service.js +280 -171
- package/utils/service.js.map +1 -1
- package/utils/source.d.ts +13 -13
- package/utils/source.js +165 -165
- package/utils/source.js.map +1 -1
- package/utils/standalone.d.ts +59 -59
- package/utils/standalone.js +146 -145
- package/utils/standalone.js.map +1 -1
- package/utils/text.d.ts +10 -10
- package/utils/text.js +59 -59
- package/utils/text.js.map +1 -1
- package/utils/tree.d.ts +14 -14
- package/utils/tree.js +83 -83
- package/utils/tree.js.map +1 -1
- package/utils/type.d.ts +13 -13
- package/utils/type.js +112 -113
- package/utils/type.js.map +1 -1
- package/utils/workspace.d.ts +20 -20
- package/utils/workspace.js +113 -114
- package/utils/workspace.js.map +1 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
7
|
-
*/
|
|
8
|
-
import { JsonValue } from '@angular-devkit/core';
|
|
9
|
-
import { Tree } from '@angular-devkit/schematics';
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
/** @private */
|
|
13
|
-
export declare class JSONFile {
|
|
14
|
-
private readonly host;
|
|
15
|
-
private readonly path;
|
|
16
|
-
content: string;
|
|
17
|
-
private eol;
|
|
18
|
-
constructor(host: Tree, path: string);
|
|
19
|
-
private _jsonAst;
|
|
20
|
-
private get JsonAst();
|
|
21
|
-
get(jsonPath: JSONPath): unknown;
|
|
22
|
-
modify(jsonPath: JSONPath, value: JsonValue | undefined, insertInOrder?: InsertionIndex | false): void;
|
|
23
|
-
remove(jsonPath: JSONPath): void;
|
|
24
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
|
+
*/
|
|
8
|
+
import { JsonValue } from '@angular-devkit/core';
|
|
9
|
+
import { Tree } from '@angular-devkit/schematics';
|
|
10
|
+
export type InsertionIndex = (properties: string[]) => number;
|
|
11
|
+
export type JSONPath = (string | number)[];
|
|
12
|
+
/** @private */
|
|
13
|
+
export declare class JSONFile {
|
|
14
|
+
private readonly host;
|
|
15
|
+
private readonly path;
|
|
16
|
+
content: string;
|
|
17
|
+
private eol;
|
|
18
|
+
constructor(host: Tree, path: string);
|
|
19
|
+
private _jsonAst;
|
|
20
|
+
private get JsonAst();
|
|
21
|
+
get(jsonPath: JSONPath): unknown;
|
|
22
|
+
modify(jsonPath: JSONPath, value: JsonValue | undefined, insertInOrder?: InsertionIndex | false): void;
|
|
23
|
+
remove(jsonPath: JSONPath): void;
|
|
24
|
+
}
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright Google LLC All Rights Reserved.
|
|
5
|
-
*
|
|
6
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.JSONFile = void 0;
|
|
11
|
-
const jsonc_parser_1 = require("jsonc-parser");
|
|
12
|
-
const eol_1 = require("./eol");
|
|
13
|
-
/** @private */
|
|
14
|
-
class JSONFile {
|
|
15
|
-
constructor(host, path) {
|
|
16
|
-
this.host = host;
|
|
17
|
-
this.path = path;
|
|
18
|
-
this.content = this.host.readText(this.path);
|
|
19
|
-
this.eol = (0, eol_1.getEOL)(this.content);
|
|
20
|
-
}
|
|
21
|
-
get JsonAst() {
|
|
22
|
-
if (this._jsonAst) {
|
|
23
|
-
return this._jsonAst;
|
|
24
|
-
}
|
|
25
|
-
const errors = [];
|
|
26
|
-
this._jsonAst = (0, jsonc_parser_1.parseTree)(this.content, errors, { allowTrailingComma: true });
|
|
27
|
-
if (errors.length) {
|
|
28
|
-
const { error, offset } = errors[0];
|
|
29
|
-
throw new Error(`Failed to parse "${this.path}" as JSON AST Object. ${(0, jsonc_parser_1.printParseErrorCode)(error)} at location: ${offset}.`);
|
|
30
|
-
}
|
|
31
|
-
return this._jsonAst;
|
|
32
|
-
}
|
|
33
|
-
get(jsonPath) {
|
|
34
|
-
const jsonAstNode = this.JsonAst;
|
|
35
|
-
if (!jsonAstNode) {
|
|
36
|
-
return undefined;
|
|
37
|
-
}
|
|
38
|
-
if (jsonPath.length === 0) {
|
|
39
|
-
return (0, jsonc_parser_1.getNodeValue)(jsonAstNode);
|
|
40
|
-
}
|
|
41
|
-
const node = (0, jsonc_parser_1.findNodeAtLocation)(jsonAstNode, jsonPath);
|
|
42
|
-
return node === undefined ? undefined : (0, jsonc_parser_1.getNodeValue)(node);
|
|
43
|
-
}
|
|
44
|
-
modify(jsonPath, value, insertInOrder) {
|
|
45
|
-
let getInsertionIndex;
|
|
46
|
-
if (insertInOrder === undefined) {
|
|
47
|
-
const property = jsonPath.slice(-1)[0];
|
|
48
|
-
getInsertionIndex = properties => [...properties, property].sort().findIndex(p => p === property);
|
|
49
|
-
}
|
|
50
|
-
else if (insertInOrder !== false) {
|
|
51
|
-
getInsertionIndex = insertInOrder;
|
|
52
|
-
}
|
|
53
|
-
const edits = (0, jsonc_parser_1.modify)(this.content, jsonPath, value, {
|
|
54
|
-
getInsertionIndex,
|
|
55
|
-
formattingOptions: {
|
|
56
|
-
eol: this.eol,
|
|
57
|
-
insertSpaces: true,
|
|
58
|
-
tabSize: 2,
|
|
59
|
-
},
|
|
60
|
-
});
|
|
61
|
-
this.content = (0, jsonc_parser_1.applyEdits)(this.content, edits);
|
|
62
|
-
this.host.overwrite(this.path, this.content);
|
|
63
|
-
this._jsonAst = undefined;
|
|
64
|
-
}
|
|
65
|
-
remove(jsonPath) {
|
|
66
|
-
if (this.get(jsonPath) !== undefined) {
|
|
67
|
-
this.modify(jsonPath, undefined);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
exports.JSONFile = JSONFile;
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.JSONFile = void 0;
|
|
11
|
+
const jsonc_parser_1 = require("jsonc-parser");
|
|
12
|
+
const eol_1 = require("./eol");
|
|
13
|
+
/** @private */
|
|
14
|
+
class JSONFile {
|
|
15
|
+
constructor(host, path) {
|
|
16
|
+
this.host = host;
|
|
17
|
+
this.path = path;
|
|
18
|
+
this.content = this.host.readText(this.path);
|
|
19
|
+
this.eol = (0, eol_1.getEOL)(this.content);
|
|
20
|
+
}
|
|
21
|
+
get JsonAst() {
|
|
22
|
+
if (this._jsonAst) {
|
|
23
|
+
return this._jsonAst;
|
|
24
|
+
}
|
|
25
|
+
const errors = [];
|
|
26
|
+
this._jsonAst = (0, jsonc_parser_1.parseTree)(this.content, errors, { allowTrailingComma: true });
|
|
27
|
+
if (errors.length) {
|
|
28
|
+
const { error, offset } = errors[0];
|
|
29
|
+
throw new Error(`Failed to parse "${this.path}" as JSON AST Object. ${(0, jsonc_parser_1.printParseErrorCode)(error)} at location: ${offset}.`);
|
|
30
|
+
}
|
|
31
|
+
return this._jsonAst;
|
|
32
|
+
}
|
|
33
|
+
get(jsonPath) {
|
|
34
|
+
const jsonAstNode = this.JsonAst;
|
|
35
|
+
if (!jsonAstNode) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
if (jsonPath.length === 0) {
|
|
39
|
+
return (0, jsonc_parser_1.getNodeValue)(jsonAstNode);
|
|
40
|
+
}
|
|
41
|
+
const node = (0, jsonc_parser_1.findNodeAtLocation)(jsonAstNode, jsonPath);
|
|
42
|
+
return node === undefined ? undefined : (0, jsonc_parser_1.getNodeValue)(node);
|
|
43
|
+
}
|
|
44
|
+
modify(jsonPath, value, insertInOrder) {
|
|
45
|
+
let getInsertionIndex;
|
|
46
|
+
if (insertInOrder === undefined) {
|
|
47
|
+
const property = jsonPath.slice(-1)[0];
|
|
48
|
+
getInsertionIndex = properties => [...properties, property].sort().findIndex(p => p === property);
|
|
49
|
+
}
|
|
50
|
+
else if (insertInOrder !== false) {
|
|
51
|
+
getInsertionIndex = insertInOrder;
|
|
52
|
+
}
|
|
53
|
+
const edits = (0, jsonc_parser_1.modify)(this.content, jsonPath, value, {
|
|
54
|
+
getInsertionIndex,
|
|
55
|
+
formattingOptions: {
|
|
56
|
+
eol: this.eol,
|
|
57
|
+
insertSpaces: true,
|
|
58
|
+
tabSize: 2,
|
|
59
|
+
},
|
|
60
|
+
});
|
|
61
|
+
this.content = (0, jsonc_parser_1.applyEdits)(this.content, edits);
|
|
62
|
+
this.host.overwrite(this.path, this.content);
|
|
63
|
+
this._jsonAst = undefined;
|
|
64
|
+
}
|
|
65
|
+
remove(jsonPath) {
|
|
66
|
+
if (this.get(jsonPath) !== undefined) {
|
|
67
|
+
this.modify(jsonPath, undefined);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.JSONFile = JSONFile;
|
|
72
72
|
//# sourceMappingURL=json-file.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-file.js","sourceRoot":"","sources":["../../../../../packages/schematics/src/utils/angular/json-file.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAIH,+CASsB;AACtB,+BAA+B;AAK/B,eAAe;AACf,MAAa,QAAQ;IAInB,YACmB,IAAU,EACV,IAAY;QADZ,SAAI,GAAJ,IAAI,CAAM;QACV,SAAI,GAAJ,IAAI,CAAQ;QAE7B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAA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AK,CAAC,CAAC;QAC/C,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7C,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;IAC5B,CAAC;IAED,MAAM,CAAC,QAAkB;QACvB,IAAI,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,KAAK,SAAS,EAAE,CAAC;YACrC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;QACnC,CAAC;IACH,CAAC;CACF;AAjFD,4BAiFC"}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export declare const latestVersions: {
|
|
2
|
-
description: string;
|
|
3
|
-
comment: string;
|
|
4
|
-
private: boolean;
|
|
5
|
-
dependencies: {
|
|
6
|
-
'@types/express': string;
|
|
7
|
-
'@types/jasmine': string;
|
|
8
|
-
'@types/node': string;
|
|
9
|
-
'browser-sync': string;
|
|
10
|
-
express: string;
|
|
11
|
-
'jasmine-core': string;
|
|
12
|
-
'jasmine-spec-reporter': string;
|
|
13
|
-
'karma-chrome-launcher': string;
|
|
14
|
-
'karma-coverage': string;
|
|
15
|
-
'karma-jasmine-html-reporter': string;
|
|
16
|
-
'karma-jasmine': string;
|
|
17
|
-
karma: string;
|
|
18
|
-
less: string;
|
|
19
|
-
postcss: string;
|
|
20
|
-
protractor: string;
|
|
21
|
-
rxjs: string;
|
|
22
|
-
tslib: string;
|
|
23
|
-
'ts-node': string;
|
|
24
|
-
typescript: string;
|
|
25
|
-
'zone.js': string;
|
|
26
|
-
'openid-client': string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
1
|
+
export declare const latestVersions: {
|
|
2
|
+
description: string;
|
|
3
|
+
comment: string;
|
|
4
|
+
private: boolean;
|
|
5
|
+
dependencies: {
|
|
6
|
+
'@types/express': string;
|
|
7
|
+
'@types/jasmine': string;
|
|
8
|
+
'@types/node': string;
|
|
9
|
+
'browser-sync': string;
|
|
10
|
+
express: string;
|
|
11
|
+
'jasmine-core': string;
|
|
12
|
+
'jasmine-spec-reporter': string;
|
|
13
|
+
'karma-chrome-launcher': string;
|
|
14
|
+
'karma-coverage': string;
|
|
15
|
+
'karma-jasmine-html-reporter': string;
|
|
16
|
+
'karma-jasmine': string;
|
|
17
|
+
karma: string;
|
|
18
|
+
less: string;
|
|
19
|
+
postcss: string;
|
|
20
|
+
protractor: string;
|
|
21
|
+
rxjs: string;
|
|
22
|
+
tslib: string;
|
|
23
|
+
'ts-node': string;
|
|
24
|
+
typescript: string;
|
|
25
|
+
'zone.js': string;
|
|
26
|
+
'openid-client': string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.latestVersions = void 0;
|
|
4
|
-
exports.latestVersions = {
|
|
5
|
-
description: 'Package versions used by schematics in @schematics/angular.',
|
|
6
|
-
comment: 'This file is needed so that dependencies are synced by Renovate.',
|
|
7
|
-
private: true,
|
|
8
|
-
dependencies: {
|
|
9
|
-
'@types/express': '~5.0.0',
|
|
10
|
-
'@types/jasmine': '~5.1.0',
|
|
11
|
-
'@types/node': '~20.11.0',
|
|
12
|
-
'browser-sync': '^3.0.0',
|
|
13
|
-
express: '~5.1.0',
|
|
14
|
-
'jasmine-core': '~5.9.0',
|
|
15
|
-
'jasmine-spec-reporter': '~7.0.0',
|
|
16
|
-
'karma-chrome-launcher': '~3.2.0',
|
|
17
|
-
'karma-coverage': '~2.2.0',
|
|
18
|
-
'karma-jasmine-html-reporter': '~2.1.0',
|
|
19
|
-
'karma-jasmine': '~5.1.0',
|
|
20
|
-
karma: '~6.4.0',
|
|
21
|
-
less: '^4.2.0',
|
|
22
|
-
postcss: '^8.5.3',
|
|
23
|
-
protractor: '~7.0.0',
|
|
24
|
-
rxjs: '~7.8.0',
|
|
25
|
-
tslib: '^2.3.0',
|
|
26
|
-
'ts-node': '~10.9.0',
|
|
27
|
-
typescript: '~5.9.0',
|
|
28
|
-
'zone.js': '~0.15.0',
|
|
29
|
-
'openid-client': '^6.6.4',
|
|
30
|
-
},
|
|
31
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.latestVersions = void 0;
|
|
4
|
+
exports.latestVersions = {
|
|
5
|
+
description: 'Package versions used by schematics in @schematics/angular.',
|
|
6
|
+
comment: 'This file is needed so that dependencies are synced by Renovate.',
|
|
7
|
+
private: true,
|
|
8
|
+
dependencies: {
|
|
9
|
+
'@types/express': '~5.0.0',
|
|
10
|
+
'@types/jasmine': '~5.1.0',
|
|
11
|
+
'@types/node': '~20.11.0',
|
|
12
|
+
'browser-sync': '^3.0.0',
|
|
13
|
+
express: '~5.1.0',
|
|
14
|
+
'jasmine-core': '~5.9.0',
|
|
15
|
+
'jasmine-spec-reporter': '~7.0.0',
|
|
16
|
+
'karma-chrome-launcher': '~3.2.0',
|
|
17
|
+
'karma-coverage': '~2.2.0',
|
|
18
|
+
'karma-jasmine-html-reporter': '~2.1.0',
|
|
19
|
+
'karma-jasmine': '~5.1.0',
|
|
20
|
+
karma: '~6.4.0',
|
|
21
|
+
less: '^4.2.0',
|
|
22
|
+
postcss: '^8.5.3',
|
|
23
|
+
protractor: '~7.0.0',
|
|
24
|
+
rxjs: '~7.8.0',
|
|
25
|
+
tslib: '^2.3.0',
|
|
26
|
+
'ts-node': '~10.9.0',
|
|
27
|
+
typescript: '~5.9.0',
|
|
28
|
+
'zone.js': '~0.15.0',
|
|
29
|
+
'openid-client': '^6.6.4',
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
32
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
7
|
-
*/
|
|
8
|
-
import { Tree } from '@angular-devkit/schematics';
|
|
9
|
-
import * as ts from 'typescript';
|
|
10
|
-
export declare function findBootstrapModuleCall(host: Tree, mainPath: string): ts.CallExpression | null;
|
|
11
|
-
export declare function getAppModulePath(host: Tree, mainPath: string): string;
|
|
12
|
-
export declare function isStandaloneApp(host: Tree, mainPath: string): boolean;
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
|
+
*/
|
|
8
|
+
import { Tree } from '@angular-devkit/schematics';
|
|
9
|
+
import * as ts from 'typescript';
|
|
10
|
+
export declare function findBootstrapModuleCall(host: Tree, mainPath: string): ts.CallExpression | null;
|
|
11
|
+
export declare function getAppModulePath(host: Tree, mainPath: string): string;
|
|
12
|
+
export declare function isStandaloneApp(host: Tree, mainPath: string): boolean;
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright Google LLC All Rights Reserved.
|
|
5
|
-
*
|
|
6
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
bootstrapCallNode.parent
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.findBootstrapModuleCall = findBootstrapModuleCall;
|
|
11
|
+
exports.getAppModulePath = getAppModulePath;
|
|
12
|
+
exports.isStandaloneApp = isStandaloneApp;
|
|
13
|
+
const tslib_1 = require("tslib");
|
|
14
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
15
|
+
const posix_1 = require("node:path/posix");
|
|
16
|
+
const ts = tslib_1.__importStar(require("typescript"));
|
|
17
|
+
const ast_utils_1 = require("./ast-utils");
|
|
18
|
+
const util_1 = require("./standalone/util");
|
|
19
|
+
function findBootstrapModuleCall(host, mainPath) {
|
|
20
|
+
const mainText = host.readText(mainPath);
|
|
21
|
+
const source = ts.createSourceFile(mainPath, mainText, ts.ScriptTarget.Latest, true);
|
|
22
|
+
const allNodes = (0, ast_utils_1.getSourceNodes)(source);
|
|
23
|
+
let bootstrapCall = null;
|
|
24
|
+
for (const node of allNodes) {
|
|
25
|
+
let bootstrapCallNode = null;
|
|
26
|
+
bootstrapCallNode = (0, ast_utils_1.findNode)(node, ts.SyntaxKind.Identifier, 'bootstrapModule');
|
|
27
|
+
// Walk up the parent until CallExpression is found.
|
|
28
|
+
while (bootstrapCallNode &&
|
|
29
|
+
bootstrapCallNode.parent &&
|
|
30
|
+
bootstrapCallNode.parent.kind !== ts.SyntaxKind.CallExpression) {
|
|
31
|
+
bootstrapCallNode = bootstrapCallNode.parent;
|
|
32
|
+
}
|
|
33
|
+
if (bootstrapCallNode !== null &&
|
|
34
|
+
bootstrapCallNode.parent !== undefined &&
|
|
35
|
+
bootstrapCallNode.parent.kind === ts.SyntaxKind.CallExpression) {
|
|
36
|
+
bootstrapCall = bootstrapCallNode.parent;
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return bootstrapCall;
|
|
41
|
+
}
|
|
42
|
+
function findBootstrapModulePath(host, mainPath) {
|
|
43
|
+
const bootstrapCall = findBootstrapModuleCall(host, mainPath);
|
|
44
|
+
if (!bootstrapCall) {
|
|
45
|
+
throw new schematics_1.SchematicsException('Bootstrap call not found');
|
|
46
|
+
}
|
|
47
|
+
const bootstrapModule = bootstrapCall.arguments[0];
|
|
48
|
+
const mainText = host.readText(mainPath);
|
|
49
|
+
const source = ts.createSourceFile(mainPath, mainText, ts.ScriptTarget.Latest, true);
|
|
50
|
+
const allNodes = (0, ast_utils_1.getSourceNodes)(source);
|
|
51
|
+
const bootstrapModuleRelativePath = allNodes
|
|
52
|
+
.filter(ts.isImportDeclaration)
|
|
53
|
+
.filter(imp => {
|
|
54
|
+
return (0, ast_utils_1.findNode)(imp, ts.SyntaxKind.Identifier, bootstrapModule.getText());
|
|
55
|
+
})
|
|
56
|
+
.map(imp => {
|
|
57
|
+
const modulePathStringLiteral = imp.moduleSpecifier;
|
|
58
|
+
return modulePathStringLiteral.text;
|
|
59
|
+
})[0];
|
|
60
|
+
return bootstrapModuleRelativePath;
|
|
61
|
+
}
|
|
62
|
+
function getAppModulePath(host, mainPath) {
|
|
63
|
+
const moduleRelativePath = findBootstrapModulePath(host, mainPath);
|
|
64
|
+
const mainDir = (0, posix_1.dirname)(mainPath);
|
|
65
|
+
const modulePath = (0, posix_1.join)(mainDir, `${moduleRelativePath}.ts`);
|
|
66
|
+
return modulePath;
|
|
67
|
+
}
|
|
68
|
+
function isStandaloneApp(host, mainPath) {
|
|
69
|
+
try {
|
|
70
|
+
(0, util_1.findBootstrapApplicationCall)(host, mainPath);
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
catch (error) {
|
|
74
|
+
if (error instanceof schematics_1.SchematicsException) {
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
throw error;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
80
|
//# sourceMappingURL=ng-ast-utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-ast-utils.js","sourceRoot":"","sources":["../../../../../packages/schematics/src/utils/angular/ng-ast-utils.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG
|
|
1
|
+
{"version":3,"file":"ng-ast-utils.js","sourceRoot":"","sources":["../../../../../packages/schematics/src/utils/angular/ng-ast-utils.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAQH,0DAgCC;AA2BD,4CAMC;AAED,0CAYC;;AArFD,2DAAuE;AACvE,2CAAgD;AAChD,uDAAiC;AACjC,2CAAuD;AACvD,4CAAiE;AAEjE,SAAgB,uBAAuB,CAAC,IAAU,EAAE,QAAgB;IAClE,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACzC,MAAM,MAAM,GAAG,EAAE,CAAC,gBAAgB,CA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,CAAC;AACH,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
7
|
-
*/
|
|
8
|
-
import { Path } from '@angular-devkit/core';
|
|
9
|
-
export interface Location {
|
|
10
|
-
name: string;
|
|
11
|
-
path: Path;
|
|
12
|
-
}
|
|
13
|
-
export declare function parseName(path: string, name: string): Location;
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
|
+
*/
|
|
8
|
+
import { Path } from '@angular-devkit/core';
|
|
9
|
+
export interface Location {
|
|
10
|
+
name: string;
|
|
11
|
+
path: Path;
|
|
12
|
+
}
|
|
13
|
+
export declare function parseName(path: string, name: string): Location;
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright Google LLC All Rights Reserved.
|
|
5
|
-
*
|
|
6
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.parseName =
|
|
11
|
-
const core_1 = require("@angular-devkit/core");
|
|
12
|
-
function parseName(path, name) {
|
|
13
|
-
const nameWithoutPath = (0, core_1.basename)((0, core_1.normalize)(name));
|
|
14
|
-
const namePath = (0, core_1.dirname)((0, core_1.join)((0, core_1.normalize)(path), name));
|
|
15
|
-
return {
|
|
16
|
-
name: nameWithoutPath,
|
|
17
|
-
path: (0, core_1.normalize)('/' + namePath),
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
exports.parseName = parseName;
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.parseName = parseName;
|
|
11
|
+
const core_1 = require("@angular-devkit/core");
|
|
12
|
+
function parseName(path, name) {
|
|
13
|
+
const nameWithoutPath = (0, core_1.basename)((0, core_1.normalize)(name));
|
|
14
|
+
const namePath = (0, core_1.dirname)((0, core_1.join)((0, core_1.normalize)(path), name));
|
|
15
|
+
return {
|
|
16
|
+
name: nameWithoutPath,
|
|
17
|
+
path: (0, core_1.normalize)('/' + namePath),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
21
20
|
//# sourceMappingURL=parse-name.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-name.js","sourceRoot":"","sources":["../../../../../packages/schematics/src/utils/angular/parse-name.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG
|
|
1
|
+
{"version":3,"file":"parse-name.js","sourceRoot":"","sources":["../../../../../packages/schematics/src/utils/angular/parse-name.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AASH,8BAQC;AAfD,+CAAgF;AAOhF,SAAgB,SAAS,CAAC,IAAY,EAAE,IAAY;IAClD,MAAM,eAAe,GAAG,IAAA,eAAQ,EAAC,IAAA,gBAAS,EAAC,IAAI,CAAC,CAAC,CAAC;IAClD,MAAM,QAAQ,GAAG,IAAA,cAAO,EAAC,IAAA,WAAI,EAAC,IAAA,gBAAS,EAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IAEtD,OAAO;QACL,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,IAAA,gBAAS,EAAC,GAAG,GAAG,QAAQ,CAAC;KAChC,CAAC;AACJ,CAAC"}
|
package/utils/angular/paths.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
7
|
-
*/
|
|
8
|
-
export declare function relativePathToWorkspaceRoot(projectRoot: string | undefined): string;
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
|
+
*/
|
|
8
|
+
export declare function relativePathToWorkspaceRoot(projectRoot: string | undefined): string;
|