@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,57 +1,57 @@
|
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
NodeDependencyType["
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
NodeDependencyType
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
NodeDependencyType.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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.NodeDependencyType = void 0;
|
|
11
|
+
exports.addPackageJsonDependency = addPackageJsonDependency;
|
|
12
|
+
exports.removePackageJsonDependency = removePackageJsonDependency;
|
|
13
|
+
exports.getPackageJsonDependency = getPackageJsonDependency;
|
|
14
|
+
const json_file_1 = require("./json-file");
|
|
15
|
+
const PKG_JSON_PATH = '/package.json';
|
|
16
|
+
var NodeDependencyType;
|
|
17
|
+
(function (NodeDependencyType) {
|
|
18
|
+
NodeDependencyType["Default"] = "dependencies";
|
|
19
|
+
NodeDependencyType["Dev"] = "devDependencies";
|
|
20
|
+
NodeDependencyType["Peer"] = "peerDependencies";
|
|
21
|
+
NodeDependencyType["Optional"] = "optionalDependencies";
|
|
22
|
+
})(NodeDependencyType || (exports.NodeDependencyType = NodeDependencyType = {}));
|
|
23
|
+
const ALL_DEPENDENCY_TYPE = [
|
|
24
|
+
NodeDependencyType.Default,
|
|
25
|
+
NodeDependencyType.Dev,
|
|
26
|
+
NodeDependencyType.Optional,
|
|
27
|
+
NodeDependencyType.Peer,
|
|
28
|
+
];
|
|
29
|
+
function addPackageJsonDependency(tree, dependency, pkgJsonPath = PKG_JSON_PATH) {
|
|
30
|
+
const json = new json_file_1.JSONFile(tree, pkgJsonPath);
|
|
31
|
+
const { overwrite, type, name, version } = dependency;
|
|
32
|
+
const path = [type, name];
|
|
33
|
+
if (overwrite || !json.get(path)) {
|
|
34
|
+
json.modify(path, version);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function removePackageJsonDependency(tree, name, pkgJsonPath = PKG_JSON_PATH) {
|
|
38
|
+
const json = new json_file_1.JSONFile(tree, pkgJsonPath);
|
|
39
|
+
for (const depType of ALL_DEPENDENCY_TYPE) {
|
|
40
|
+
json.remove([depType, name]);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function getPackageJsonDependency(tree, name, pkgJsonPath = PKG_JSON_PATH) {
|
|
44
|
+
const json = new json_file_1.JSONFile(tree, pkgJsonPath);
|
|
45
|
+
for (const depType of ALL_DEPENDENCY_TYPE) {
|
|
46
|
+
const version = json.get([depType, name]);
|
|
47
|
+
if (typeof version === 'string') {
|
|
48
|
+
return {
|
|
49
|
+
type: depType,
|
|
50
|
+
name: name,
|
|
51
|
+
version,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
57
|
//# sourceMappingURL=dependencies.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependencies.js","sourceRoot":"","sources":["../../../../../packages/schematics/src/utils/angular/dependencies.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;
|
|
1
|
+
{"version":3,"file":"dependencies.js","sourceRoot":"","sources":["../../../../../packages/schematics/src/utils/angular/dependencies.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AA2BH,4DAYC;AAED,kEAUC;AAED,4DAoBC;AAtED,2CAAuC;AAEvC,MAAM,aAAa,GAAG,eAAe,CAAC;AACtC,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,8CAAwB,CAAA;IACxB,6CAAuB,CAAA;IACvB,+CAAyB,CAAA;IACzB,uDAAiC,CAAA;AACnC,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AASD,MAAM,mBAAmB,GAAG;IAC1B,kBAAkB,CAAC,OAAO;IAC1B,kBAAkB,CAAC,GAAG;IACtB,kBAAkB,CAAC,QAAQ;IAC3B,kBAAkB,CAAC,IAAI;CACxB,CAAC;AAEF,SAAgB,wBAAwB,CACtC,IAAU,EACV,UAA0B,EAC1B,WAAW,GAAG,aAAa;IAE3B,MAAM,IAAI,GAAG,IAAI,oBAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;IAE7C,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC;IACtD,MAAM,IAAI,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC1B,IAAI,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;QACjC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC7B,CAAC;AACH,CAAC;AAED,SAAgB,2BAA2B,CACzC,IAAU,EACV,IAAY,EACZ,WAAW,GAAG,aAAa;IAE3B,MAAM,IAAI,GAAG,IAAI,oBAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;IAE7C,KAAK,MAAM,OAAO,IAAI,mBAAmB,EAAE,CAAC;QAC1C,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;IAC/B,CAAC;AACH,CAAC;AAED,SAAgB,wBAAwB,CACtC,IAAU,EACV,IAAY,EACZ,WAAW,GAAG,aAAa;IAE3B,MAAM,IAAI,GAAG,IAAI,oBAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;IAE7C,KAAK,MAAM,OAAO,IAAI,mBAAmB,EAAE,CAAC;QAC1C,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;QAE1C,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;YAChC,OAAO;gBACL,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,IAAI;gBACV,OAAO;aACR,CAAC;QACJ,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -1,96 +1,96 @@
|
|
|
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 { Rule } from '@angular-devkit/schematics';
|
|
9
|
-
/**
|
|
10
|
-
* An enum used to specify the type of a dependency found within a package manifest
|
|
11
|
-
* file (`package.json`).
|
|
12
|
-
*/
|
|
13
|
-
export declare enum DependencyType {
|
|
14
|
-
Default = "dependencies",
|
|
15
|
-
Dev = "devDependencies",
|
|
16
|
-
Peer = "peerDependencies"
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* An enum used to specify the dependency installation behavior for the {@link addDependency}
|
|
20
|
-
* schematics rule. The installation behavior affects if and when {@link NodePackageInstallTask}
|
|
21
|
-
* will be scheduled when using the rule.
|
|
22
|
-
*/
|
|
23
|
-
export declare enum InstallBehavior {
|
|
24
|
-
/**
|
|
25
|
-
* No installation will occur as a result of the rule when specified.
|
|
26
|
-
*
|
|
27
|
-
* NOTE: This does not prevent other rules from scheduling a {@link NodePackageInstallTask}
|
|
28
|
-
* which may install the dependency.
|
|
29
|
-
*/
|
|
30
|
-
None = 0,
|
|
31
|
-
/**
|
|
32
|
-
* Automatically determine the need to schedule a {@link NodePackageInstallTask} based on
|
|
33
|
-
* previous usage of the {@link addDependency} within the schematic.
|
|
34
|
-
*/
|
|
35
|
-
Auto = 1,
|
|
36
|
-
/**
|
|
37
|
-
* Always schedule a {@link NodePackageInstallTask} when the rule is executed.
|
|
38
|
-
*/
|
|
39
|
-
Always = 2
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* An enum used to specify the existing dependency behavior for the {@link addDependency}
|
|
43
|
-
* schematics rule. The existing behavior affects whether the named dependency will be added
|
|
44
|
-
* to the `package.json` when the dependency is already present with a differing specifier.
|
|
45
|
-
*/
|
|
46
|
-
export declare enum ExistingBehavior {
|
|
47
|
-
/**
|
|
48
|
-
* The dependency will not be added or otherwise changed if it already exists.
|
|
49
|
-
*/
|
|
50
|
-
Skip = 0,
|
|
51
|
-
/**
|
|
52
|
-
* The dependency's existing specifier will be replaced with the specifier provided in the
|
|
53
|
-
* {@link addDependency} call. A warning will also be shown during schematic execution to
|
|
54
|
-
* notify the user of the replacement.
|
|
55
|
-
*/
|
|
56
|
-
Replace = 1
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Adds a package as a dependency to a `package.json`. By default the `package.json` located
|
|
60
|
-
* at the schematic's root will be used. The `manifestPath` option can be used to explicitly specify
|
|
61
|
-
* a `package.json` in different location. The type of the dependency can also be specified instead
|
|
62
|
-
* of the default of the `dependencies` section by using the `type` option for either `devDependencies`
|
|
63
|
-
* or `peerDependencies`.
|
|
64
|
-
*
|
|
65
|
-
* When using this rule, {@link NodePackageInstallTask} does not need to be included directly by
|
|
66
|
-
* a schematic. A package manager install task will be automatically scheduled as needed.
|
|
67
|
-
*
|
|
68
|
-
* @param name The name of the package to add.
|
|
69
|
-
* @param specifier The package specifier for the package to add. Typically a SemVer range.
|
|
70
|
-
* @param options An optional object that can contain the `type` of the dependency
|
|
71
|
-
* and/or a path (`packageJsonPath`) of a manifest file (`package.json`) to modify.
|
|
72
|
-
* @returns A Schematics {@link Rule}
|
|
73
|
-
*/
|
|
74
|
-
export declare function addDependency(name: string, specifier: string, options?: {
|
|
75
|
-
/**
|
|
76
|
-
* The type of the dependency determines the section of the `package.json` to which the
|
|
77
|
-
* dependency will be added. Defaults to {@link DependencyType.Default} (`dependencies`).
|
|
78
|
-
*/
|
|
79
|
-
type?: DependencyType;
|
|
80
|
-
/**
|
|
81
|
-
* The path of the package manifest file (`package.json`) that will be modified.
|
|
82
|
-
* Defaults to `/package.json`.
|
|
83
|
-
*/
|
|
84
|
-
packageJsonPath?: string;
|
|
85
|
-
/**
|
|
86
|
-
* The dependency installation behavior to use to determine whether a
|
|
87
|
-
* {@link NodePackageInstallTask} should be scheduled after adding the dependency.
|
|
88
|
-
* Defaults to {@link InstallBehavior.Auto}.
|
|
89
|
-
*/
|
|
90
|
-
install?: InstallBehavior;
|
|
91
|
-
/**
|
|
92
|
-
* The behavior to use when the dependency already exists within the `package.json`.
|
|
93
|
-
* Defaults to {@link ExistingBehavior.Replace}.
|
|
94
|
-
*/
|
|
95
|
-
existing?: ExistingBehavior;
|
|
96
|
-
}): Rule;
|
|
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 { Rule } from '@angular-devkit/schematics';
|
|
9
|
+
/**
|
|
10
|
+
* An enum used to specify the type of a dependency found within a package manifest
|
|
11
|
+
* file (`package.json`).
|
|
12
|
+
*/
|
|
13
|
+
export declare enum DependencyType {
|
|
14
|
+
Default = "dependencies",
|
|
15
|
+
Dev = "devDependencies",
|
|
16
|
+
Peer = "peerDependencies"
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* An enum used to specify the dependency installation behavior for the {@link addDependency}
|
|
20
|
+
* schematics rule. The installation behavior affects if and when {@link NodePackageInstallTask}
|
|
21
|
+
* will be scheduled when using the rule.
|
|
22
|
+
*/
|
|
23
|
+
export declare enum InstallBehavior {
|
|
24
|
+
/**
|
|
25
|
+
* No installation will occur as a result of the rule when specified.
|
|
26
|
+
*
|
|
27
|
+
* NOTE: This does not prevent other rules from scheduling a {@link NodePackageInstallTask}
|
|
28
|
+
* which may install the dependency.
|
|
29
|
+
*/
|
|
30
|
+
None = 0,
|
|
31
|
+
/**
|
|
32
|
+
* Automatically determine the need to schedule a {@link NodePackageInstallTask} based on
|
|
33
|
+
* previous usage of the {@link addDependency} within the schematic.
|
|
34
|
+
*/
|
|
35
|
+
Auto = 1,
|
|
36
|
+
/**
|
|
37
|
+
* Always schedule a {@link NodePackageInstallTask} when the rule is executed.
|
|
38
|
+
*/
|
|
39
|
+
Always = 2
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* An enum used to specify the existing dependency behavior for the {@link addDependency}
|
|
43
|
+
* schematics rule. The existing behavior affects whether the named dependency will be added
|
|
44
|
+
* to the `package.json` when the dependency is already present with a differing specifier.
|
|
45
|
+
*/
|
|
46
|
+
export declare enum ExistingBehavior {
|
|
47
|
+
/**
|
|
48
|
+
* The dependency will not be added or otherwise changed if it already exists.
|
|
49
|
+
*/
|
|
50
|
+
Skip = 0,
|
|
51
|
+
/**
|
|
52
|
+
* The dependency's existing specifier will be replaced with the specifier provided in the
|
|
53
|
+
* {@link addDependency} call. A warning will also be shown during schematic execution to
|
|
54
|
+
* notify the user of the replacement.
|
|
55
|
+
*/
|
|
56
|
+
Replace = 1
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Adds a package as a dependency to a `package.json`. By default the `package.json` located
|
|
60
|
+
* at the schematic's root will be used. The `manifestPath` option can be used to explicitly specify
|
|
61
|
+
* a `package.json` in different location. The type of the dependency can also be specified instead
|
|
62
|
+
* of the default of the `dependencies` section by using the `type` option for either `devDependencies`
|
|
63
|
+
* or `peerDependencies`.
|
|
64
|
+
*
|
|
65
|
+
* When using this rule, {@link NodePackageInstallTask} does not need to be included directly by
|
|
66
|
+
* a schematic. A package manager install task will be automatically scheduled as needed.
|
|
67
|
+
*
|
|
68
|
+
* @param name The name of the package to add.
|
|
69
|
+
* @param specifier The package specifier for the package to add. Typically a SemVer range.
|
|
70
|
+
* @param options An optional object that can contain the `type` of the dependency
|
|
71
|
+
* and/or a path (`packageJsonPath`) of a manifest file (`package.json`) to modify.
|
|
72
|
+
* @returns A Schematics {@link Rule}
|
|
73
|
+
*/
|
|
74
|
+
export declare function addDependency(name: string, specifier: string, options?: {
|
|
75
|
+
/**
|
|
76
|
+
* The type of the dependency determines the section of the `package.json` to which the
|
|
77
|
+
* dependency will be added. Defaults to {@link DependencyType.Default} (`dependencies`).
|
|
78
|
+
*/
|
|
79
|
+
type?: DependencyType;
|
|
80
|
+
/**
|
|
81
|
+
* The path of the package manifest file (`package.json`) that will be modified.
|
|
82
|
+
* Defaults to `/package.json`.
|
|
83
|
+
*/
|
|
84
|
+
packageJsonPath?: string;
|
|
85
|
+
/**
|
|
86
|
+
* The dependency installation behavior to use to determine whether a
|
|
87
|
+
* {@link NodePackageInstallTask} should be scheduled after adding the dependency.
|
|
88
|
+
* Defaults to {@link InstallBehavior.Auto}.
|
|
89
|
+
*/
|
|
90
|
+
install?: InstallBehavior;
|
|
91
|
+
/**
|
|
92
|
+
* The behavior to use when the dependency already exists within the `package.json`.
|
|
93
|
+
* Defaults to {@link ExistingBehavior.Replace}.
|
|
94
|
+
*/
|
|
95
|
+
existing?: ExistingBehavior;
|
|
96
|
+
}): Rule;
|
|
@@ -1,123 +1,124 @@
|
|
|
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
|
-
const
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
DependencyType["
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
*
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
*
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
*
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
* a
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
* @param
|
|
79
|
-
*
|
|
80
|
-
* @
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
entries
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
installPaths.
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
|
|
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.ExistingBehavior = exports.InstallBehavior = exports.DependencyType = void 0;
|
|
11
|
+
exports.addDependency = addDependency;
|
|
12
|
+
const tslib_1 = require("tslib");
|
|
13
|
+
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
14
|
+
const path = tslib_1.__importStar(require("node:path"));
|
|
15
|
+
const installTasks = new WeakMap();
|
|
16
|
+
/**
|
|
17
|
+
* An enum used to specify the type of a dependency found within a package manifest
|
|
18
|
+
* file (`package.json`).
|
|
19
|
+
*/
|
|
20
|
+
var DependencyType;
|
|
21
|
+
(function (DependencyType) {
|
|
22
|
+
DependencyType["Default"] = "dependencies";
|
|
23
|
+
DependencyType["Dev"] = "devDependencies";
|
|
24
|
+
DependencyType["Peer"] = "peerDependencies";
|
|
25
|
+
})(DependencyType || (exports.DependencyType = DependencyType = {}));
|
|
26
|
+
/**
|
|
27
|
+
* An enum used to specify the dependency installation behavior for the {@link addDependency}
|
|
28
|
+
* schematics rule. The installation behavior affects if and when {@link NodePackageInstallTask}
|
|
29
|
+
* will be scheduled when using the rule.
|
|
30
|
+
*/
|
|
31
|
+
var InstallBehavior;
|
|
32
|
+
(function (InstallBehavior) {
|
|
33
|
+
/**
|
|
34
|
+
* No installation will occur as a result of the rule when specified.
|
|
35
|
+
*
|
|
36
|
+
* NOTE: This does not prevent other rules from scheduling a {@link NodePackageInstallTask}
|
|
37
|
+
* which may install the dependency.
|
|
38
|
+
*/
|
|
39
|
+
InstallBehavior[InstallBehavior["None"] = 0] = "None";
|
|
40
|
+
/**
|
|
41
|
+
* Automatically determine the need to schedule a {@link NodePackageInstallTask} based on
|
|
42
|
+
* previous usage of the {@link addDependency} within the schematic.
|
|
43
|
+
*/
|
|
44
|
+
InstallBehavior[InstallBehavior["Auto"] = 1] = "Auto";
|
|
45
|
+
/**
|
|
46
|
+
* Always schedule a {@link NodePackageInstallTask} when the rule is executed.
|
|
47
|
+
*/
|
|
48
|
+
InstallBehavior[InstallBehavior["Always"] = 2] = "Always";
|
|
49
|
+
})(InstallBehavior || (exports.InstallBehavior = InstallBehavior = {}));
|
|
50
|
+
/**
|
|
51
|
+
* An enum used to specify the existing dependency behavior for the {@link addDependency}
|
|
52
|
+
* schematics rule. The existing behavior affects whether the named dependency will be added
|
|
53
|
+
* to the `package.json` when the dependency is already present with a differing specifier.
|
|
54
|
+
*/
|
|
55
|
+
var ExistingBehavior;
|
|
56
|
+
(function (ExistingBehavior) {
|
|
57
|
+
/**
|
|
58
|
+
* The dependency will not be added or otherwise changed if it already exists.
|
|
59
|
+
*/
|
|
60
|
+
ExistingBehavior[ExistingBehavior["Skip"] = 0] = "Skip";
|
|
61
|
+
/**
|
|
62
|
+
* The dependency's existing specifier will be replaced with the specifier provided in the
|
|
63
|
+
* {@link addDependency} call. A warning will also be shown during schematic execution to
|
|
64
|
+
* notify the user of the replacement.
|
|
65
|
+
*/
|
|
66
|
+
ExistingBehavior[ExistingBehavior["Replace"] = 1] = "Replace";
|
|
67
|
+
})(ExistingBehavior || (exports.ExistingBehavior = ExistingBehavior = {}));
|
|
68
|
+
/**
|
|
69
|
+
* Adds a package as a dependency to a `package.json`. By default the `package.json` located
|
|
70
|
+
* at the schematic's root will be used. The `manifestPath` option can be used to explicitly specify
|
|
71
|
+
* a `package.json` in different location. The type of the dependency can also be specified instead
|
|
72
|
+
* of the default of the `dependencies` section by using the `type` option for either `devDependencies`
|
|
73
|
+
* or `peerDependencies`.
|
|
74
|
+
*
|
|
75
|
+
* When using this rule, {@link NodePackageInstallTask} does not need to be included directly by
|
|
76
|
+
* a schematic. A package manager install task will be automatically scheduled as needed.
|
|
77
|
+
*
|
|
78
|
+
* @param name The name of the package to add.
|
|
79
|
+
* @param specifier The package specifier for the package to add. Typically a SemVer range.
|
|
80
|
+
* @param options An optional object that can contain the `type` of the dependency
|
|
81
|
+
* and/or a path (`packageJsonPath`) of a manifest file (`package.json`) to modify.
|
|
82
|
+
* @returns A Schematics {@link Rule}
|
|
83
|
+
*/
|
|
84
|
+
function addDependency(name, specifier, options = {}) {
|
|
85
|
+
const { type = DependencyType.Default, packageJsonPath = '/package.json', install = InstallBehavior.Auto, existing = ExistingBehavior.Replace, } = options;
|
|
86
|
+
return (tree, context) => {
|
|
87
|
+
const manifest = tree.readJson(packageJsonPath);
|
|
88
|
+
const dependencySection = manifest[type];
|
|
89
|
+
if (!dependencySection) {
|
|
90
|
+
// Section is not present. The dependency can be added to a new object literal for the section.
|
|
91
|
+
manifest[type] = { [name]: specifier };
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
const existingSpecifier = dependencySection[name];
|
|
95
|
+
if (existingSpecifier === specifier) {
|
|
96
|
+
// Already present with same specifier
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
if (existingSpecifier) {
|
|
100
|
+
// Already present but different specifier
|
|
101
|
+
if (existing === ExistingBehavior.Skip) {
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
// ExistingBehavior.Replace is the only other behavior currently
|
|
105
|
+
context.logger.warn(`Package dependency "${name}" already exists with a different specifier. ` +
|
|
106
|
+
`"${existingSpecifier}" will be replaced with "${specifier}".`);
|
|
107
|
+
}
|
|
108
|
+
// Add new dependency in alphabetical order
|
|
109
|
+
const entries = Object.entries(dependencySection);
|
|
110
|
+
entries.push([name, specifier]);
|
|
111
|
+
entries.sort((a, b) => a[0].localeCompare(b[0]));
|
|
112
|
+
manifest[type] = Object.fromEntries(entries);
|
|
113
|
+
}
|
|
114
|
+
tree.overwrite(packageJsonPath, JSON.stringify(manifest, null, 2));
|
|
115
|
+
const installPaths = installTasks.get(context) ?? new Set();
|
|
116
|
+
if (install === InstallBehavior.Always ||
|
|
117
|
+
(install === InstallBehavior.Auto && !installPaths.has(packageJsonPath))) {
|
|
118
|
+
context.addTask(new tasks_1.NodePackageInstallTask({ workingDirectory: path.dirname(packageJsonPath) }));
|
|
119
|
+
installPaths.add(packageJsonPath);
|
|
120
|
+
installTasks.set(context, installPaths);
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
}
|
|
123
124
|
//# sourceMappingURL=dependency.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependency.js","sourceRoot":"","sources":["../../../../../packages/schematics/src/utils/angular/dependency.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;
|
|
1
|
+
{"version":3,"file":"dependency.js","sourceRoot":"","sources":["../../../../../packages/schematics/src/utils/angular/dependency.ts"],"names":[],"mappings":"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"}
|
package/utils/angular/eol.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 getEOL(content: string): 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 getEOL(content: string): string;
|