@o3r/schematics 11.1.0-prerelease.5 → 11.1.0-prerelease.51
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +34 -34
- package/src/modules/modules.display.rule.js +1 -2
- package/src/modules/modules.display.rule.js.map +1 -1
- package/src/modules/modules.helpers.d.ts +2 -2
- package/src/modules/modules.helpers.d.ts.map +1 -1
- package/src/modules/modules.helpers.js +4 -4
- package/src/modules/modules.helpers.js.map +1 -1
- package/src/rule-factories/check-packages-peers/index.d.ts.map +1 -1
- package/src/rule-factories/check-packages-peers/index.js +1 -2
- package/src/rule-factories/check-packages-peers/index.js.map +1 -1
- package/src/rule-factories/eslint-fix/index.js +1 -2
- package/src/rule-factories/eslint-fix/index.js.map +1 -1
- package/src/rule-factories/get-test-frameworks/index.js +1 -2
- package/src/rule-factories/get-test-frameworks/index.js.map +1 -1
- package/src/rule-factories/ng-add/dependencies.d.ts.map +1 -1
- package/src/rule-factories/ng-add/dependencies.js.map +1 -1
- package/src/rule-factories/ng-add/ng-add.helpers.js +1 -2
- package/src/rule-factories/ng-add/ng-add.helpers.js.map +1 -1
- package/src/rule-factories/ng-add/schematics-register.js +3 -4
- package/src/rule-factories/ng-add/schematics-register.js.map +1 -1
- package/src/rule-factories/remove-packages/index.d.ts.map +1 -1
- package/src/rule-factories/remove-packages/index.js +1 -2
- package/src/rule-factories/remove-packages/index.js.map +1 -1
- package/src/rule-factories/update-imports/update-imports-with-scope.js +1 -2
- package/src/rule-factories/update-imports/update-imports-with-scope.js.map +1 -1
- package/src/rule-factories/update-imports/update-ts-imports.js +1 -2
- package/src/rule-factories/update-imports/update-ts-imports.js.map +1 -1
- package/src/rules/install.js +1 -2
- package/src/rules/install.js.map +1 -1
- package/src/tasks/eslint/index.d.ts.map +1 -1
- package/src/tasks/link/index.d.ts.map +1 -1
- package/src/tasks/package-manager/add-dev-dependency.d.ts +6 -6
- package/src/tasks/package-manager/npm-exec.d.ts.map +1 -1
- package/src/tasks/package-manager/npm-install.d.ts +5 -5
- package/src/tasks/package-manager/npm-run.d.ts.map +1 -1
- package/src/utility/ast.d.ts +1 -1
- package/src/utility/ast.d.ts.map +1 -1
- package/src/utility/ast.js +5 -5
- package/src/utility/ast.js.map +1 -1
- package/src/utility/builder.js +1 -2
- package/src/utility/builder.js.map +1 -1
- package/src/utility/collection.js +3 -4
- package/src/utility/collection.js.map +1 -1
- package/src/utility/component.d.ts.map +1 -1
- package/src/utility/dependencies.js +2 -3
- package/src/utility/dependencies.js.map +1 -1
- package/src/utility/environment.d.ts +0 -1
- package/src/utility/environment.d.ts.map +1 -1
- package/src/utility/file-info.js +2 -3
- package/src/utility/file-info.js.map +1 -1
- package/src/utility/generation.js +2 -2
- package/src/utility/generation.js.map +1 -1
- package/src/utility/gitignore.d.ts.map +1 -1
- package/src/utility/gitignore.js +18 -15
- package/src/utility/gitignore.js.map +1 -1
- package/src/utility/loaders.d.ts.map +1 -1
- package/src/utility/loaders.js +14 -15
- package/src/utility/loaders.js.map +1 -1
- package/src/utility/logo.d.ts +1 -1
- package/src/utility/matching-peers.js +3 -4
- package/src/utility/matching-peers.js.map +1 -1
- package/src/utility/migration/migration.js +1 -2
- package/src/utility/migration/migration.js.map +1 -1
- package/src/utility/modules.js +7 -8
- package/src/utility/modules.js.map +1 -1
- package/src/utility/monorepo.js +6 -6
- package/src/utility/monorepo.js.map +1 -1
- package/src/utility/package-manager-runner.js +7 -8
- package/src/utility/package-manager-runner.js.map +1 -1
- package/src/utility/package-version.js +2 -2
- package/src/utility/package-version.js.map +1 -1
- package/src/utility/question.d.ts.map +1 -1
- package/src/utility/routes.js +3 -4
- package/src/utility/routes.js.map +1 -1
- package/src/utility/sub-entry.js +2 -3
- package/src/utility/sub-entry.js.map +1 -1
- package/src/utility/template-property.helper.js +15 -16
- package/src/utility/template-property.helper.js.map +1 -1
- package/src/utility/update-imports.js +1 -2
- package/src/utility/update-imports.js.map +1 -1
- package/src/utility/update-pipes.js.map +1 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getMigrationRuleRunner =
|
3
|
+
exports.getMigrationRuleRunner = getMigrationRuleRunner;
|
4
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
5
5
|
const semver_1 = require("semver");
|
6
6
|
/**
|
@@ -31,5 +31,4 @@ function getMigrationRuleRunner(rulesMapping, options) {
|
|
31
31
|
.map(([_, rules]) => (0, schematics_1.chain)(rules)));
|
32
32
|
};
|
33
33
|
}
|
34
|
-
exports.getMigrationRuleRunner = getMigrationRuleRunner;
|
35
34
|
//# sourceMappingURL=migration.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"migration.js","sourceRoot":"","sources":["../../../../src/utility/migration/migration.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"migration.js","sourceRoot":"","sources":["../../../../src/utility/migration/migration.ts"],"names":[],"mappings":";;AAmCA,wDAwBC;AA1DD,2DAA8D;AAC9D,mCAAuD;AA4BvD;;;;GAIG;AACH,SAAgB,sBAAsB,CAAC,YAA+B,EAAE,OAAoC;IAC1G,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC;SAC9C,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE,EAAE;QAC7B,MAAM,YAAY,GAAG,IAAA,mBAAU,EAAC,KAAK,CAAC,CAAC;QACvC,IAAI,CAAC,YAAY,EAAE,CAAC;YAClB,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,cAAc,KAAK,wDAAwD,CAAC,CAAC;QACrG,CAAC;aAAM,CAAC;YACN,GAAG,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAChE,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAwB,CAAC,CAAC;IAE/B;;;OAGG;IACH,OAAO,CAAC,MAAgC,EAAQ,EAAE;QAChD,MAAM,WAAW,GAAG,IAAI,cAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,IAAI,MAAM,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;QAChG,OAAO,IAAA,kBAAK,EACV,YAAY;aACT,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,IAAA,mBAAU,EAAC,KAAK,EAAE,WAAW,CAAC,CAAC;aACnD,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,IAAA,kBAAK,EAAC,KAAK,CAAC,CAAC,CACrC,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
|
package/src/utility/modules.js
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.getAppModuleFilePath = getAppModuleFilePath;
|
4
|
+
exports.getMainFilePath = getMainFilePath;
|
5
|
+
exports.isApplicationThatUsesRouterModule = isApplicationThatUsesRouterModule;
|
6
|
+
exports.addImportToModuleFile = addImportToModuleFile;
|
7
|
+
exports.insertImportToModuleFile = insertImportToModuleFile;
|
8
|
+
exports.addProviderToModuleFile = addProviderToModuleFile;
|
9
|
+
exports.insertBeforeModule = insertBeforeModule;
|
4
10
|
const schematics_1 = require("@angular-devkit/schematics");
|
5
11
|
const ts = require("typescript");
|
6
12
|
const ast_utils_1 = require("@schematics/angular/utility/ast-utils");
|
@@ -63,7 +69,6 @@ function getAppModuleFilePath(tree, context, projectName) {
|
|
63
69
|
}
|
64
70
|
throw new schematics_1.SchematicsException(`Could not find ${bootstrapModule} source file`);
|
65
71
|
}
|
66
|
-
exports.getAppModuleFilePath = getAppModuleFilePath;
|
67
72
|
/**
|
68
73
|
* Get the path to the main.ts
|
69
74
|
* @param tree File tree
|
@@ -80,7 +85,6 @@ function getMainFilePath(tree, context, projectName) {
|
|
80
85
|
const mainFilePath = workspaceProject.architect.build.options.main ?? workspaceProject.architect.build.options.browser;
|
81
86
|
return mainFilePath;
|
82
87
|
}
|
83
|
-
exports.getMainFilePath = getMainFilePath;
|
84
88
|
/**
|
85
89
|
* Returns true if the project is an application and contains a TS file that imports the angular RouterModule in
|
86
90
|
* one of its modules.
|
@@ -106,7 +110,6 @@ function isApplicationThatUsesRouterModule(tree, options) {
|
|
106
110
|
return false;
|
107
111
|
});
|
108
112
|
}
|
109
|
-
exports.isApplicationThatUsesRouterModule = isApplicationThatUsesRouterModule;
|
110
113
|
/**
|
111
114
|
* Add import to the main module
|
112
115
|
* @param name
|
@@ -144,7 +147,6 @@ function addImportToModuleFile(name, file, sourceFile, sourceFileContent, contex
|
|
144
147
|
}
|
145
148
|
return recorder;
|
146
149
|
}
|
147
|
-
exports.addImportToModuleFile = addImportToModuleFile;
|
148
150
|
/**
|
149
151
|
* Insert import on top of the main module file
|
150
152
|
* @param name
|
@@ -161,7 +163,6 @@ function insertImportToModuleFile(name, file, sourceFile, recorder, moduleFilePa
|
|
161
163
|
}
|
162
164
|
return recorder;
|
163
165
|
}
|
164
|
-
exports.insertImportToModuleFile = insertImportToModuleFile;
|
165
166
|
/**
|
166
167
|
* Add providers to the main module
|
167
168
|
* @param name
|
@@ -187,7 +188,6 @@ function addProviderToModuleFile(name, file, sourceFile, sourceFileContent, cont
|
|
187
188
|
});
|
188
189
|
return recorder;
|
189
190
|
}
|
190
|
-
exports.addProviderToModuleFile = addProviderToModuleFile;
|
191
191
|
/**
|
192
192
|
* Add custom code before the module definition
|
193
193
|
* @param line
|
@@ -201,5 +201,4 @@ function insertBeforeModule(line, file, recorder, moduleIndex) {
|
|
201
201
|
}
|
202
202
|
return recorder;
|
203
203
|
}
|
204
|
-
exports.insertBeforeModule = insertBeforeModule;
|
205
204
|
//# sourceMappingURL=modules.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"modules.js","sourceRoot":"","sources":["../../../src/utility/modules.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"modules.js","sourceRoot":"","sources":["../../../src/utility/modules.ts"],"names":[],"mappings":";;AAuBA,oDA0DC;AAQD,0CAUC;AASD,8EAgBC;AAeD,sDAqBC;AAWD,4DAMC;AAeD,0DAaC;AASD,gDAKC;AA3ND,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,IAAI,gBAAgB,CAAC,WAAW,KAAK,aAAa,EAAE,CAAC;QACxE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,6EAA6E,CAAC,CAAC;QACpG,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,YAAY,GAAW,gBAAgB,CAAC,SAAU,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,IAAI,gBAAgB,CAAC,SAAU,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;IACjI,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,CAAE,CAAC,QAAQ,EAAE,CAAC;IAErD,MAAM,2BAA2B,GAAG,QAAQ,CAAC,KAAK,CAAC,0EAA0E,CAAC,CAAC;IAC/H,IAAI,CAAC,2BAA2B,IAAI,CAAC,2BAA2B,CAAC,CAAC,CAAC,EAAE,CAAC;QACpE,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rJ,CAAC;IACH,CAAC,CAAC,CAAC;IACL,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,kBAAkB,CAAC,IAAY,EAAE,IAAY,EAAE,QAAwB,EAAE,WAAmB;IAC1G,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;QACvD,OAAO,QAAQ,CAAC,UAAU,CAAC,WAAW,GAAG,CAAC,EAAE,GAAG,IAAI,MAAM,CAAC,CAAC;IAC7D,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
package/src/utility/monorepo.js
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.BASE_ROOT_FOLDERS_MAP = exports.DEFAULT_ROOT_FOLDERS = exports.APPLICATIONS_FOLDER_NAME = exports.LIBRARIES_FOLDER_NAME = void 0;
|
4
|
+
exports.findConfigFileRelativePath = findConfigFileRelativePath;
|
5
|
+
exports.isNxContext = isNxContext;
|
6
|
+
exports.isStandaloneRepository = isStandaloneRepository;
|
7
|
+
exports.isMultipackagesContext = isMultipackagesContext;
|
8
|
+
exports.getPackagesBaseRootFolder = getPackagesBaseRootFolder;
|
4
9
|
const path = require("node:path");
|
5
10
|
const collection_1 = require("./collection");
|
6
11
|
const loaders_1 = require("./loaders");
|
@@ -18,7 +23,6 @@ function findConfigFileRelativePath(tree, files, originPath) {
|
|
18
23
|
}
|
19
24
|
return path.posix.relative(originPath, `/${foundFile}`);
|
20
25
|
}
|
21
|
-
exports.findConfigFileRelativePath = findConfigFileRelativePath;
|
22
26
|
/**
|
23
27
|
* Determine if we are in an Nx Monorepo context
|
24
28
|
* @param tree
|
@@ -26,7 +30,6 @@ exports.findConfigFileRelativePath = findConfigFileRelativePath;
|
|
26
30
|
function isNxContext(tree) {
|
27
31
|
return tree.exists('/nx.json');
|
28
32
|
}
|
29
|
-
exports.isNxContext = isNxContext;
|
30
33
|
/**
|
31
34
|
* Determine if a repository is standalone (not part of a monorepo)
|
32
35
|
* @deprecated no longer in use. Will be removed in V12
|
@@ -36,7 +39,6 @@ function isStandaloneRepository(tree) {
|
|
36
39
|
const workspaceConfig = (0, loaders_1.getWorkspaceConfig)(tree);
|
37
40
|
return workspaceConfig && Object.keys(workspaceConfig.projects || {}).length === 1 && Object.values(workspaceConfig.projects)[0].root === '';
|
38
41
|
}
|
39
|
-
exports.isStandaloneRepository = isStandaloneRepository;
|
40
42
|
/**
|
41
43
|
* Determine if we are in a project with multi packages
|
42
44
|
* @param tree
|
@@ -44,7 +46,6 @@ exports.isStandaloneRepository = isStandaloneRepository;
|
|
44
46
|
function isMultipackagesContext(tree) {
|
45
47
|
return !!tree.readJson('/package.json').workspaces;
|
46
48
|
}
|
47
|
-
exports.isMultipackagesContext = isMultipackagesContext;
|
48
49
|
/** Default name of the folder where libraries will be generated inside monorepo */
|
49
50
|
exports.LIBRARIES_FOLDER_NAME = 'libs';
|
50
51
|
/** Default name of the folder where applications will be generated inside monorepo */
|
@@ -75,5 +76,4 @@ function getPackagesBaseRootFolder(tree, context, config, projectType) {
|
|
75
76
|
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
|
76
77
|
return schematicConfigDir || nxExplicitDir || ((projectType && configName) ? exports.DEFAULT_ROOT_FOLDERS[configName] : '.');
|
77
78
|
}
|
78
|
-
exports.getPackagesBaseRootFolder = getPackagesBaseRootFolder;
|
79
79
|
//# sourceMappingURL=monorepo.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"monorepo.js","sourceRoot":"","sources":["../../../src/utility/monorepo.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"monorepo.js","sourceRoot":"","sources":["../../../src/utility/monorepo.ts"],"names":[],"mappings":";;;AAcA,gEAOC;AAMD,kCAEC;AAOD,wDAG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qB;IAC9B,OAAO,EAAE,gCAAwB;CAClC,CAAC;AAEF,uDAAuD;AAC1C,QAAA,qBAAqB,GAAmE;IACnG,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,SAAS;CACvB,CAAC;AAEF;;;;;;;;GAQG;AACH,SAAgB,yBAAyB,CAAC,IAAU,EAAE,OAAyB,EAAE,MAAuB,EAAE,WAA6C;IACrJ,MAAM,UAAU,GAAG,WAAW,IAAI,6BAAqB,CAAC,WAAW,CAAC,CAAC;IACrE,MAAM,aAAa,GAAG,UAAU,IAAI,WAAW,CAAC,IAAI,CAAC,IAAK,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAS,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC;IAEzH,MAAM,kBAAkB,GAAG,UAAU,IAAI,IAAA,gCAAmB,EAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;IAE5F,qEAAqE;IACrE,OAAO,kBAAkB,IAAI,aAAa,IAAI,CAAC,CAAC,WAAW,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,4BAAoB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AACvH,CAAC"}
|
@@ -1,6 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.isSupportedPackageManager = isSupportedPackageManager;
|
4
|
+
exports.getPackageManager = getPackageManager;
|
5
|
+
exports.getPackageManagerRunner = getPackageManagerRunner;
|
6
|
+
exports.getPackageManagerExecutor = getPackageManagerExecutor;
|
7
|
+
exports.isPackageInstalled = isPackageInstalled;
|
8
|
+
exports.getPackageManagerVersion = getPackageManagerVersion;
|
9
|
+
exports.getPackageManagerInfo = getPackageManagerInfo;
|
4
10
|
const node_path_1 = require("node:path");
|
5
11
|
const node_child_process_1 = require("node:child_process");
|
6
12
|
const PACKAGE_MANAGER_WORKSPACE_MAPPING = {
|
@@ -14,7 +20,6 @@ const PACKAGE_MANAGER_WORKSPACE_MAPPING = {
|
|
14
20
|
function isSupportedPackageManager(name) {
|
15
21
|
return name === 'yarn' || name === 'npm';
|
16
22
|
}
|
17
|
-
exports.isSupportedPackageManager = isSupportedPackageManager;
|
18
23
|
/**
|
19
24
|
* Get the Package Manager
|
20
25
|
* @param enforcedNpmManager package manager to enforce
|
@@ -41,7 +46,6 @@ function getPackageManager(options) {
|
|
41
46
|
const workspaceNpmManager = isSupportedPackageManager(packageManagerFromWorkspace) ? packageManagerFromWorkspace : undefined;
|
42
47
|
return getPackageManagerName(enforcedNpmManager || workspaceNpmManager);
|
43
48
|
}
|
44
|
-
exports.getPackageManager = getPackageManager;
|
45
49
|
/**
|
46
50
|
* Get command to run scripts with your package manager
|
47
51
|
* @param workspaceConfig Workspace configuration
|
@@ -54,7 +58,6 @@ function getPackageManagerRunner(workspaceConfig, packageName) {
|
|
54
58
|
}
|
55
59
|
return `${pckManager} ${PACKAGE_MANAGER_WORKSPACE_MAPPING[pckManager]} ${packageName} run`;
|
56
60
|
}
|
57
|
-
exports.getPackageManagerRunner = getPackageManagerRunner;
|
58
61
|
/**
|
59
62
|
* Get command to execute bin command with your package manager
|
60
63
|
* @param workspaceConfig Workspace configuration
|
@@ -67,7 +70,6 @@ function getPackageManagerExecutor(workspaceConfig, packageName) {
|
|
67
70
|
}
|
68
71
|
return `${pckManager} ${PACKAGE_MANAGER_WORKSPACE_MAPPING[pckManager]} ${packageName} exec`;
|
69
72
|
}
|
70
|
-
exports.getPackageManagerExecutor = getPackageManagerExecutor;
|
71
73
|
/**
|
72
74
|
* Determine if the given package is installed
|
73
75
|
* @param packageName name of the package to check
|
@@ -81,7 +83,6 @@ function isPackageInstalled(packageName) {
|
|
81
83
|
return false;
|
82
84
|
}
|
83
85
|
}
|
84
|
-
exports.isPackageInstalled = isPackageInstalled;
|
85
86
|
/**
|
86
87
|
* Get package manager version
|
87
88
|
* @param options Option to determine the final package manager
|
@@ -105,7 +106,6 @@ function getPackageManagerVersion(options) {
|
|
105
106
|
return undefined;
|
106
107
|
}
|
107
108
|
}
|
108
|
-
exports.getPackageManagerVersion = getPackageManagerVersion;
|
109
109
|
/**
|
110
110
|
* Get package manager information
|
111
111
|
* @param options Option to determine the final package manager
|
@@ -116,5 +116,4 @@ function getPackageManagerInfo(options) {
|
|
116
116
|
version: getPackageManagerVersion(options)
|
117
117
|
};
|
118
118
|
}
|
119
|
-
exports.getPackageManagerInfo = getPackageManagerInfo;
|
120
119
|
//# sourceMappingURL=package-manager-runner.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"package-manager-runner.js","sourceRoot":"","sources":["../../../src/utility/package-manager-runner.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"package-manager-runner.js","sourceRoot":"","sources":["../../../src/utility/package-manager-runner.ts"],"names":[],"mappings":";;AAmCA,8DAEC;AAiBD,8CAWC;AAOD,0DAMC;AAOD,8DAMC;AAOD,gDAMC;AAMD,4DAiBC;AAMD,sDAKC;AA1ID,yCAAkC;AAElC,2DAA8C;AAY9C,MAAM,iCAAiC,GAA6C;IAClF,GAAG,EAAE,aAAa;IAClB,IAAI,EAAE,WAAW;CAClB,CAAC;AAcF;;;GAGG;AACH,SAAgB,yBAAyB,CAAC,IAAU;IAClD,OAAO,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,KAAK,CAAC;AAC3C,CAAC;AAED;;;GAGG;AACH,SAAS,qBAAqB,CAAC,kBAA6C;IAC1E,MAAM,uBAAuB,GAAG,yBAAyB,CAAC,OAAO,CAAC,GAAG,EAAE,wBAAwB,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;IACzI,MAAM,qBAAqB,GAAG,OAAO,CAAC,GAAG,EAAE,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC;IACpF,OAAO,kBAAkB,IAAI,uBAAuB,IAAI,qBAAqB,IAAI,KAAK,CAAC;AACzF,CAAC;A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D,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,OAAO,GAAG,UAAU,OAA2C,CAAC;IAClE,CAAC;IACD,OAAO,GAAG,UAAU,IAAI,iCAAiC,CAAC,UAAU,CAAC,IAAI,WAAW,OAAO,CAAC;AAC9F,CAAC;AAED;;;;GAIG;AACH,SAAgB,kBAAkB,CAAC,WAAmB;IACpD,IAAI,CAAC;QACH,OAAO,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,iBAAK,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC,CAAC;IACpE,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,SAAgB,wBAAwB,CAAC,OAA+B;IACtE,IAAI,CAAC;QACH,OAAO,IAAA,6BAAQ,EAAC,GAAG,iBAAiB,CAAC,OAAO,CAAC,YAAY,EAAE;YACzD,QAAQ,EAAE,MAAM;YAChB,KAAK,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC;YACnC,GAAG,EAAE;gBACH,GAAG,OAAO,CAAC,GAAG;gBACd,uGAAuG;gBACvG,gEAAgE;gBAChE,kBAAkB,EAAE,GAAG;gBACvB,gEAAgE;gBAChE,0BAA0B,EAAE,OAAO;aACpC;SACF,CAAC,CAAC,IAAI,EAAE,CAAC;IACZ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,SAAgB,qBAAqB,CAAC,OAA+B;IACnE,OAAO;QACL,IAAI,EAAE,iBAAiB,CAAC,OAAO,CAAC;QAChC,OAAO,EAAE,wBAAwB,CAAC,OAAO,CAAC;KAC3C,CAAC;AACJ,CAAC"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.findClosestPackageJson =
|
3
|
+
exports.findClosestPackageJson = void 0;
|
4
|
+
exports.getPackageVersion = getPackageVersion;
|
4
5
|
const fs = require("node:fs");
|
5
6
|
const node_fs_1 = require("node:fs");
|
6
7
|
const node_path_1 = require("node:path");
|
@@ -12,7 +13,6 @@ function getPackageVersion(packageJsonPath) {
|
|
12
13
|
const packageJsonContent = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: 'utf-8' }));
|
13
14
|
return packageJsonContent.version;
|
14
15
|
}
|
15
|
-
exports.getPackageVersion = getPackageVersion;
|
16
16
|
/**
|
17
17
|
* Find the closest package.json file in parent folders
|
18
18
|
* Note: It is using file system if no tree provided
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"package-version.js","sourceRoot":"","sources":["../../../src/utility/package-version.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"package-version.js","sourceRoot":"","sources":["../../../src/utility/package-version.ts"],"names":[],"mappings":";;;AAUA,8CAGC;AAZD,8BAA8B;AAC9B,qCAAqC;AACrC,yCAAiD;AAGjD;;;GAGG;AACH,SAAgB,iBAAiB,CAAC,eAAuB;IACvD,MAAM,kBAAkB,GAAgB,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,eAAe,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;IAC5G,OAAO,kBAAkB,CAAC,OAAO,CAAC;AACpC,CAAC;AAED;;;;;;GAMG;AACI,MAAM,sBAAsB,GAAG,CAAC,WAAmB,EAAE,IAAW,EAAsB,EAAE;IAC7F,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,iBAAK,CAAC,OAAO,CAAC,CAAC,CAAC,mBAAO,CAAC,CAAC,WAAW,CAAC,CAAC;IAC1D,IAAI,GAAG,KAAK,WAAW,IAAI,WAAW,KAAK,GAAG,EAAE,CAAC;QAC/C,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,eAAe,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,iBAAK,CAAC,IAAI,CAAC,CAAC,CAAC,gBAAI,CAAC,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC;IACxE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,oBAAU,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,IAAA,8BAAsB,EAAC,GAAG,EAAE,IAAI,CAAC,CAAC;AAClH,CAAC,CAAC;AARW,QAAA,sBAAsB,0BAQjC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../src/utility/question.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,YAAY,aAAoB,MAAM,KAAG,
|
1
|
+
{"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../src/utility/question.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,YAAY,aAAoB,MAAM,KAAG,OAAO,CAAC,MAAM,CAYnE,CAAC"}
|
package/src/utility/routes.js
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.getRoutesDeclaration = getRoutesDeclaration;
|
4
|
+
exports.getRoutesNodeArray = getRoutesNodeArray;
|
5
|
+
exports.insertRoute = insertRoute;
|
4
6
|
const ts = require("typescript");
|
5
7
|
/**
|
6
8
|
* Indicates if the given Route expression has the given path.
|
@@ -46,7 +48,6 @@ function getRoutesDeclaration(tree, context, appRoutingModulePath) {
|
|
46
48
|
.map((declarations) => declarations.filter(isRoutesDeclaration))
|
47
49
|
.reduce((declaration, declarations) => declarations.length > 0 ? declarations[0] : declaration, null);
|
48
50
|
}
|
49
|
-
exports.getRoutesDeclaration = getRoutesDeclaration;
|
50
51
|
/**
|
51
52
|
* Gets the Routes Node array of the App Routing Module of the given path.
|
52
53
|
* @param tree File tree
|
@@ -72,7 +73,6 @@ function getRoutesNodeArray(tree, context, appRoutingModulePath) {
|
|
72
73
|
}
|
73
74
|
return rootElements;
|
74
75
|
}
|
75
|
-
exports.getRoutesNodeArray = getRoutesNodeArray;
|
76
76
|
/**
|
77
77
|
* Inserts a route in the App Routing Module of the given path.
|
78
78
|
* @param tree File tree
|
@@ -94,5 +94,4 @@ function insertRoute(tree, context, appRoutingModulePath, route, standalone = fa
|
|
94
94
|
}
|
95
95
|
return tree;
|
96
96
|
}
|
97
|
-
exports.insertRoute = insertRoute;
|
98
97
|
//# sourceMappingURL=routes.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../../../src/utility/routes.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../../../src/utility/routes.ts"],"names":[],"mappings":";;AAsDA,oDAuBC;AAQD,gDAuBC;AAUD,kCAeC;AApID,iCAAiC;AAgBjC;;;;GAIG;AACH,SAAS,YAAY,CAAC,KAAiC,EAAE,IAAY;IACnE,OAAO,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CACxC,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,kBAAkB;QACjD,QAAQ,CAAC,IAAsB,CAAC,IAAI,KAAK,MAAM;QAC/C,QAAQ,CAAC,WAA6B,CAAC,IAAI,KAAK,IAAI,CACtD,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAS,mBAAmB,CAAC,WAAmC;IAC9D,IAAI,WAAW,CAAC,IAAI,EAAE,CAAC;QACrB,IAAI,WAAW,CAAC,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,aAAa,EAAE,CAAC;YAC1D,OAAQ,WAAW,CAAC,IAA6B,CAAC,QAAQ,CAAC,OAAO,EAAE,KAAK,QAAQ,CAAC;QACpF,CAAC;QAED,IAAI,WAAW,CAAC,IAAI,CAAC,IAAI,KAAK,EAA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C,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;QAClE,MAAM,KAAK,GAAG,YAAY,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;QAChG,MAAM,WAAW,GAAG,WAAW,KAAK,CAAC,IAAI,UAAU,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,mBAAmB,KAAK,CAAC,MAAM,oBAAoB,KAAK,CAAC,MAAM,IAAI,CAAC;QAC5J,MAAM,OAAO,GAAG,YAAY,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,WAAW,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC;QAE7E,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;QACxD,QAAQ,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QACpC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAC9B,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/src/utility/sub-entry.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.moduleHasSubEntryPoints = moduleHasSubEntryPoints;
|
4
|
+
exports.writeSubEntryPointPackageJson = writeSubEntryPointPackageJson;
|
4
5
|
const path = require("node:path");
|
5
6
|
/**
|
6
7
|
* If ng-package.json is found under the /src/ folder of the module, it means sub entry points mechanism is implemented
|
@@ -10,7 +11,6 @@ const path = require("node:path");
|
|
10
11
|
function moduleHasSubEntryPoints(tree, destination) {
|
11
12
|
return tree.exists(path.join(destination, 'ng-package.json'));
|
12
13
|
}
|
13
|
-
exports.moduleHasSubEntryPoints = moduleHasSubEntryPoints;
|
14
14
|
/**
|
15
15
|
* Checks if exists and returns the 'store' project from angular.json.
|
16
16
|
* Otherwise, it returns the default project if exists, if not it returns the first project
|
@@ -45,5 +45,4 @@ function writeSubEntryPointPackageJson(tree, destination, entityName) {
|
|
45
45
|
tree.create(path.join(destination, entityName, 'package.json'), JSON.stringify(packageJson, null, 2));
|
46
46
|
}
|
47
47
|
}
|
48
|
-
exports.writeSubEntryPointPackageJson = writeSubEntryPointPackageJson;
|
49
48
|
//# sourceMappingURL=sub-entry.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sub-entry.js","sourceRoot":"","sources":["../../../src/utility/sub-entry.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"sub-entry.js","sourceRoot":"","sources":["../../../src/utility/sub-entry.ts"],"names":[],"mappings":";;AASA,0DAEC;AAQD,sEA2BC;AA5CD,kCAAkC;AAElC;;;;GAIG;AACH,SAAgB,uBAAuB,CAAC,IAAU,EAAE,WAAmB;IACrE,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAChE,CAAC;AACD;;;;;;GAMG;AACH,SAAgB,6BAA6B,CAAC,IAAU,EAAE,WAAmB,EAAE,UAAkB;IAC/F,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC;QACzD,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC;QACjE,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;QAEvG,MAAM,YAAY,GAAG,aAAa,EAAE,GAAG,EAAE,YAAY,IAAI;YACvD,aAAa,EAAE,YAAY;YAC3B,eAAe,EAAE,cAAc;YAC/B,WAAW,EAAE,UAAU;YACvB,gBAAgB,EAAE,eAAe;YACjC,aAAa,EAAE,YAAY;YAC3B,eAAe,EAAE,cAAc;YAC/B,cAAc,EAAE,aAAa;YAC7B,oBAAoB,EAAE,mBAAmB;YACzC,mBAAmB,EAAE,kBAAkB;SACxC,CAAC;QACF,MAAM,WAAW,GAAG;YAClB,SAAS,EAAE;gBACT,IAAI,EAAE,IAAI;gBACV,GAAG,EAAE;oBACH,SAAS,EAAE,UAAU;oBACrB,YAAY;iBACb;aACF;SACF,CAAC;QACF,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IACxG,CAAC;AACH,CAAC"}
|
@@ -1,6 +1,20 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.getInputComponentName = getInputComponentName;
|
4
|
+
exports.getComponentFolderName = getComponentFolderName;
|
5
|
+
exports.getComponentFileName = getComponentFileName;
|
6
|
+
exports.getComponentSelectorWithoutSuffix = getComponentSelectorWithoutSuffix;
|
7
|
+
exports.getComponentModuleName = getComponentModuleName;
|
8
|
+
exports.getComponentAnalyticsName = getComponentAnalyticsName;
|
9
|
+
exports.getComponentName = getComponentName;
|
10
|
+
exports.getComponentBlockName = getComponentBlockName;
|
11
|
+
exports.getKebabCaseBlockName = getKebabCaseBlockName;
|
12
|
+
exports.getComponentConfigName = getComponentConfigName;
|
13
|
+
exports.getComponentTranslationName = getComponentTranslationName;
|
14
|
+
exports.getComponentContextName = getComponentContextName;
|
15
|
+
exports.getComponentFixtureName = getComponentFixtureName;
|
16
|
+
exports.getComponentConfigKey = getComponentConfigKey;
|
17
|
+
exports.getLibraryNameFromPath = getLibraryNameFromPath;
|
4
18
|
const core_1 = require("@angular-devkit/core");
|
5
19
|
/**
|
6
20
|
* Returns all elements from the provided component name path
|
@@ -17,7 +31,6 @@ function getInputComponentName(componentName) {
|
|
17
31
|
const componentModuleItems = getComponentModuleItems(componentName);
|
18
32
|
return componentModuleItems[componentModuleItems.length - 1];
|
19
33
|
}
|
20
|
-
exports.getInputComponentName = getInputComponentName;
|
21
34
|
/**
|
22
35
|
* returns the component folder name
|
23
36
|
* @param componentName
|
@@ -26,7 +39,6 @@ function getComponentFolderName(componentName) {
|
|
26
39
|
const inputComponentName = getInputComponentName(componentName);
|
27
40
|
return core_1.strings.dasherize(inputComponentName).replace(/\s/g, '');
|
28
41
|
}
|
29
|
-
exports.getComponentFolderName = getComponentFolderName;
|
30
42
|
/**
|
31
43
|
* Returns the component file name
|
32
44
|
* @param componentName
|
@@ -36,7 +48,6 @@ function getComponentFileName(componentName, componentStructureDef) {
|
|
36
48
|
const componentFolderName = getComponentFolderName(componentName);
|
37
49
|
return componentStructureDef ? `${componentFolderName}-${core_1.strings.camelize(componentStructureDef)}` : componentFolderName;
|
38
50
|
}
|
39
|
-
exports.getComponentFileName = getComponentFileName;
|
40
51
|
/**
|
41
52
|
* Returns the component selector without suffix
|
42
53
|
* @param componentName
|
@@ -46,7 +57,6 @@ function getComponentSelectorWithoutSuffix(componentName, prefix) {
|
|
46
57
|
const selector = getComponentFolderName(componentName);
|
47
58
|
return prefix ? `${prefix.toLowerCase()}-${selector}` : selector; // o3r-air-offer : air-offer
|
48
59
|
}
|
49
|
-
exports.getComponentSelectorWithoutSuffix = getComponentSelectorWithoutSuffix;
|
50
60
|
/**
|
51
61
|
* Returns the component module name (e.g. AirOfferModule)
|
52
62
|
* @param componentName
|
@@ -56,7 +66,6 @@ function getComponentModuleName(componentName, componentStructureDef) {
|
|
56
66
|
const inputComponentName = getInputComponentName(componentName);
|
57
67
|
return `${core_1.strings.classify(inputComponentName)}${core_1.strings.classify(componentStructureDef)}Module`;
|
58
68
|
}
|
59
|
-
exports.getComponentModuleName = getComponentModuleName;
|
60
69
|
/**
|
61
70
|
* Returns the component analytics name (e.g. AirOfferAnalytics)
|
62
71
|
* @param componentName
|
@@ -66,7 +75,6 @@ function getComponentAnalyticsName(componentName, componentStructureDef) {
|
|
66
75
|
const inputComponentName = getInputComponentName(componentName);
|
67
76
|
return `${core_1.strings.classify(inputComponentName)}${core_1.strings.classify(componentStructureDef)}Analytics`;
|
68
77
|
}
|
69
|
-
exports.getComponentAnalyticsName = getComponentAnalyticsName;
|
70
78
|
/**
|
71
79
|
* Returns the component name (e.g. AirOfferComponent)
|
72
80
|
* @param componentName
|
@@ -76,7 +84,6 @@ function getComponentName(componentName, componentStructureDef) {
|
|
76
84
|
const inputComponentName = getInputComponentName(componentName);
|
77
85
|
return `${core_1.strings.classify(inputComponentName)}${core_1.strings.classify(componentStructureDef)}Component`;
|
78
86
|
}
|
79
|
-
exports.getComponentName = getComponentName;
|
80
87
|
/**
|
81
88
|
* Returns the component block name (e.g. AirOffer)
|
82
89
|
* @param componentName
|
@@ -85,7 +92,6 @@ function getComponentBlockName(componentName) {
|
|
85
92
|
const inputComponentName = getInputComponentName(componentName);
|
86
93
|
return core_1.strings.classify(inputComponentName);
|
87
94
|
}
|
88
|
-
exports.getComponentBlockName = getComponentBlockName;
|
89
95
|
/**
|
90
96
|
* Return the component in kebab-case (e.g. air-offer)
|
91
97
|
* @param blockName
|
@@ -93,7 +99,6 @@ exports.getComponentBlockName = getComponentBlockName;
|
|
93
99
|
function getKebabCaseBlockName(blockName) {
|
94
100
|
return core_1.strings.dasherize(blockName);
|
95
101
|
}
|
96
|
-
exports.getKebabCaseBlockName = getKebabCaseBlockName;
|
97
102
|
/**
|
98
103
|
* Returns the component config name (e.g. AirOfferConfig)
|
99
104
|
* @param componentName
|
@@ -103,7 +108,6 @@ function getComponentConfigName(componentName, componentStructureDef) {
|
|
103
108
|
const inputComponentName = getInputComponentName(componentName);
|
104
109
|
return `${core_1.strings.classify(inputComponentName)}${core_1.strings.classify(componentStructureDef)}Config`;
|
105
110
|
}
|
106
|
-
exports.getComponentConfigName = getComponentConfigName;
|
107
111
|
/**
|
108
112
|
* Returns the component translation name (e.g. AirOfferTranslation)
|
109
113
|
* @param componentName
|
@@ -113,7 +117,6 @@ function getComponentTranslationName(componentName, componentStructureDef) {
|
|
113
117
|
const inputComponentName = getInputComponentName(componentName);
|
114
118
|
return `${core_1.strings.classify(inputComponentName)}${core_1.strings.classify(componentStructureDef)}Translation`;
|
115
119
|
}
|
116
|
-
exports.getComponentTranslationName = getComponentTranslationName;
|
117
120
|
/**
|
118
121
|
* Returns the component context name (e.g. AirOfferContext)
|
119
122
|
* @param componentName
|
@@ -123,7 +126,6 @@ function getComponentContextName(componentName, componentStructureDef) {
|
|
123
126
|
const inputComponentName = getInputComponentName(componentName);
|
124
127
|
return `${core_1.strings.classify(inputComponentName)}${core_1.strings.classify(componentStructureDef)}Context`;
|
125
128
|
}
|
126
|
-
exports.getComponentContextName = getComponentContextName;
|
127
129
|
/**
|
128
130
|
* Returns the component fixture name (e.g. AirOfferFixture)
|
129
131
|
* @param componentName
|
@@ -133,7 +135,6 @@ function getComponentFixtureName(componentName, componentStructureDef) {
|
|
133
135
|
const inputComponentName = getInputComponentName(componentName);
|
134
136
|
return `${core_1.strings.classify(inputComponentName)}${core_1.strings.classify(componentStructureDef)}Fixture`;
|
135
137
|
}
|
136
|
-
exports.getComponentFixtureName = getComponentFixtureName;
|
137
138
|
/**
|
138
139
|
* Returns the component config key name (e.g. AIR_OFFER_CONT or AIR_OFFER_PRES)
|
139
140
|
* @param componentName
|
@@ -143,7 +144,6 @@ function getComponentConfigKey(componentName, componentStructureDef) {
|
|
143
144
|
const componentFileName = getComponentFileName(componentName, componentStructureDef);
|
144
145
|
return `${core_1.strings.underscore(componentFileName).toUpperCase()}`;
|
145
146
|
}
|
146
|
-
exports.getComponentConfigKey = getComponentConfigKey;
|
147
147
|
/**
|
148
148
|
* Return the library name from path in a monorepos
|
149
149
|
* @param path
|
@@ -155,5 +155,4 @@ function getLibraryNameFromPath(path) {
|
|
155
155
|
const libNameRes = /@[^@/]+\/[^/]+/.exec(path.replace(/\\/g, '/'));
|
156
156
|
return libNameRes && libNameRes[0];
|
157
157
|
}
|
158
|
-
exports.getLibraryNameFromPath = getLibraryNameFromPath;
|
159
158
|
//# sourceMappingURL=template-property.helper.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"template-property.helper.js","sourceRoot":"","sources":["../../../src/utility/template-property.helper.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"template-property.helper.js","sourceRoot":"","sources":["../../../src/utility/template-property.helper.ts"],"names":[],"mappings":";;AAcA,sDAGC;AAMD,wDAGC;AAOD,oDAGC;AAOD,8EAGC;AAOD,wDAGC;AAOD,8DAGC;AAOD,4CAGC;AAMD,sDAGC;AAMD,sDAEC;AAOD,wDAGC;AAOD,kEAGC;AAOD,0DAGC;AAOD,0DAGC;AAOD,sDAGC;AAMD,wDAMC;AA3JD,+CAA+C;AAE/C;;;GAGG;AACH,SAAS,uBAAuB,CAAC,aAAqB;IACpD,OAAO,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC;AAED;;;GAGG;AACH,SAAgB,qBAAqB,CAAC,aAAqB;IACzD,MAAM,oBAAoB,GAAG,uBAAuB,CAAC,aAAa,CAAC,CAAC;IACpE,OAAO,oBAAoB,CAAC,oBAAoB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED;;;GAGG;AACH,SAAgB,sBAAsB,CAAC,aAAqB;IAC1D,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,aAAa,CAAC,CAAC;IAChE,OAAO,cAAO,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AAClE,CAAC;AAED;;;;GAIG;AACH,SAAgB,oBAAoB,CAAC,aAAqB,EAAE,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CAAC,QAAQ,CAAC,qBAAqB,CAAC,SAAS,CAAC;AACpG,CAAC;AAED;;;;GAIG;AACH,SAAgB,qBAAqB,CAAC,aAAqB,EAAE,qBAA6B;IACxF,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,aAAa,EAAE,qBAAqB,CAAC,CAAC;IACrF,OAAO,GAAG,cAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC;AAClE,CAAC;AAED;;;GAGG;AACH,SAAgB,sBAAsB,CAAC,IAA+B;IACpE,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;IACnE,OAAO,UAAU,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;AACrC,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.updateImportsInFile =
|
3
|
+
exports.updateImportsInFile = updateImportsInFile;
|
4
4
|
const ts = require("typescript");
|
5
5
|
const ast_utils_1 = require("@schematics/angular/utility/ast-utils");
|
6
6
|
/**
|
@@ -92,5 +92,4 @@ function updateImportsInFile(logger, tree, sourceFile, importsRegexp, renamePack
|
|
92
92
|
}
|
93
93
|
return unResolvedImports.length;
|
94
94
|
}
|
95
|
-
exports.updateImportsInFile = updateImportsInFile;
|
96
95
|
//# sourceMappingURL=update-imports.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"update-imports.js","sourceRoot":"","sources":["../../../src/utility/update-imports.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"update-imports.js","sourceRoot":"","sources":["../../../src/utility/update-imports.ts"],"names":[],"mappings":";;AAmCA,kDA2GC;AA9ID,iCAAiC;AAEjC,qEAAkE;AAuBlE;;;;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