@o3r/schematics 10.0.0-next.8 → 11.0.0-next.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/package.json +51 -41
- package/schematics/ng-add/index.d.ts.map +1 -1
- package/schematics/ng-add/index.js +3 -2
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-add/schema.json +2 -2
- package/src/cli/environment.d.ts +2 -0
- package/src/cli/environment.d.ts.map +1 -0
- package/src/cli/environment.js +5 -0
- package/src/cli/environment.js.map +1 -0
- package/src/interfaces/angular-workspace.d.ts +11 -29
- package/src/interfaces/angular-workspace.d.ts.map +1 -1
- package/src/modules/index.d.ts +1 -0
- package/src/modules/index.d.ts.map +1 -1
- package/src/modules/index.js +1 -0
- package/src/modules/index.js.map +1 -1
- package/src/modules/modules.constants.d.ts +6 -2
- package/src/modules/modules.constants.d.ts.map +1 -1
- package/src/modules/modules.constants.js +5 -3
- package/src/modules/modules.constants.js.map +1 -1
- package/src/modules/modules.display.rule.d.ts +26 -0
- package/src/modules/modules.display.rule.d.ts.map +1 -0
- package/src/modules/modules.display.rule.js +45 -0
- package/src/modules/modules.display.rule.js.map +1 -0
- package/src/modules/modules.helpers.d.ts +2 -9
- package/src/modules/modules.helpers.d.ts.map +1 -1
- package/src/modules/modules.helpers.js +1 -6
- package/src/modules/modules.helpers.js.map +1 -1
- package/src/rule-factories/add-imports/index.d.ts +0 -1
- package/src/rule-factories/add-imports/index.d.ts.map +1 -1
- package/src/rule-factories/add-imports/index.js +0 -1
- package/src/rule-factories/add-imports/index.js.map +1 -1
- package/src/rule-factories/check-packages-peers/index.d.ts +0 -1
- package/src/rule-factories/check-packages-peers/index.d.ts.map +1 -1
- package/src/rule-factories/check-packages-peers/index.js +4 -7
- package/src/rule-factories/check-packages-peers/index.js.map +1 -1
- package/src/rule-factories/dev-tools/devtools-registration.d.ts +25 -0
- package/src/rule-factories/dev-tools/devtools-registration.d.ts.map +1 -0
- package/src/rule-factories/dev-tools/devtools-registration.js +89 -0
- package/src/rule-factories/dev-tools/devtools-registration.js.map +1 -0
- package/src/rule-factories/dev-tools/index.d.ts +2 -0
- package/src/rule-factories/dev-tools/index.d.ts.map +1 -0
- package/src/rule-factories/dev-tools/index.js +5 -0
- package/src/rule-factories/dev-tools/index.js.map +1 -0
- package/src/rule-factories/eslint-fix/index.d.ts +1 -18
- package/src/rule-factories/eslint-fix/index.d.ts.map +1 -1
- package/src/rule-factories/eslint-fix/index.js +17 -26
- package/src/rule-factories/eslint-fix/index.js.map +1 -1
- package/src/rule-factories/get-test-frameworks/index.d.ts +0 -1
- package/src/rule-factories/get-test-frameworks/index.d.ts.map +1 -1
- package/src/rule-factories/get-test-frameworks/index.js +0 -1
- package/src/rule-factories/get-test-frameworks/index.js.map +1 -1
- package/src/rule-factories/index.d.ts +1 -0
- package/src/rule-factories/index.d.ts.map +1 -1
- package/src/rule-factories/index.js +1 -0
- package/src/rule-factories/index.js.map +1 -1
- package/src/rule-factories/ng-add/index.d.ts +2 -5
- package/src/rule-factories/ng-add/index.d.ts.map +1 -1
- package/src/rule-factories/ng-add/index.js +107 -83
- package/src/rule-factories/ng-add/index.js.map +1 -1
- package/src/rule-factories/remove-packages/index.d.ts +0 -1
- package/src/rule-factories/remove-packages/index.d.ts.map +1 -1
- package/src/rule-factories/remove-packages/index.js +0 -1
- package/src/rule-factories/remove-packages/index.js.map +1 -1
- package/src/rule-factories/update-imports/list-of-vars.d.ts +1 -2
- package/src/rule-factories/update-imports/list-of-vars.d.ts.map +1 -1
- package/src/rule-factories/update-imports/list-of-vars.js.map +1 -1
- package/src/rule-factories/update-imports/update-imports-with-scope.d.ts +0 -1
- package/src/rule-factories/update-imports/update-imports-with-scope.d.ts.map +1 -1
- package/src/rule-factories/update-imports/update-imports-with-scope.js +0 -1
- package/src/rule-factories/update-imports/update-imports-with-scope.js.map +1 -1
- package/src/rule-factories/update-imports/update-ts-imports.d.ts +0 -1
- package/src/rule-factories/update-imports/update-ts-imports.d.ts.map +1 -1
- package/src/rule-factories/update-imports/update-ts-imports.js +0 -1
- package/src/rule-factories/update-imports/update-ts-imports.js.map +1 -1
- package/src/rule-factories/update-imports/v7-to-v8-map-object.js +1 -1
- package/src/rule-factories/update-imports/v7-to-v8-map-object.js.map +1 -1
- package/src/rule-factories/vscode-extensions/index.d.ts +0 -1
- package/src/rule-factories/vscode-extensions/index.d.ts.map +1 -1
- package/src/rule-factories/vscode-extensions/index.js +0 -1
- package/src/rule-factories/vscode-extensions/index.js.map +1 -1
- package/src/rules/install.d.ts +0 -1
- package/src/rules/install.d.ts.map +1 -1
- package/src/rules/install.js +0 -1
- package/src/rules/install.js.map +1 -1
- package/src/tasks/eslint/index.d.ts +17 -1
- package/src/tasks/eslint/index.d.ts.map +1 -1
- package/src/tasks/eslint/index.js +15 -6
- package/src/tasks/eslint/index.js.map +1 -1
- package/src/tasks/package-manager/add-dev-dependency.d.ts +1 -0
- package/src/tasks/package-manager/add-dev-dependency.d.ts.map +1 -1
- package/src/tasks/package-manager/add-dev-dependency.js +3 -1
- package/src/tasks/package-manager/add-dev-dependency.js.map +1 -1
- package/src/tasks/package-manager/interfaces.d.ts +9 -0
- package/src/tasks/package-manager/interfaces.d.ts.map +1 -1
- package/src/tasks/package-manager/npm-install.d.ts +2 -1
- package/src/tasks/package-manager/npm-install.d.ts.map +1 -1
- package/src/tasks/package-manager/npm-install.js +3 -1
- package/src/tasks/package-manager/npm-install.js.map +1 -1
- package/src/utility/ast.d.ts +4 -20
- package/src/utility/ast.d.ts.map +1 -1
- package/src/utility/ast.js +0 -18
- package/src/utility/ast.js.map +1 -1
- package/src/utility/builder.d.ts +11 -0
- package/src/utility/builder.d.ts.map +1 -0
- package/src/utility/builder.js +21 -0
- package/src/utility/builder.js.map +1 -0
- package/src/utility/collection.d.ts +2 -5
- package/src/utility/collection.d.ts.map +1 -1
- package/src/utility/collection.js +11 -9
- package/src/utility/collection.js.map +1 -1
- package/src/utility/component.d.ts +0 -6
- package/src/utility/component.d.ts.map +1 -1
- package/src/utility/component.js +4 -9
- package/src/utility/component.js.map +1 -1
- package/src/utility/dependencies.d.ts +0 -2
- package/src/utility/dependencies.d.ts.map +1 -1
- package/src/utility/dependencies.js +0 -2
- package/src/utility/dependencies.js.map +1 -1
- package/src/utility/environment.d.ts +27 -0
- package/src/utility/environment.d.ts.map +1 -0
- package/src/utility/environment.js +51 -0
- package/src/utility/environment.js.map +1 -0
- package/src/utility/error.d.ts +7 -0
- package/src/utility/error.d.ts.map +1 -0
- package/src/utility/error.js +17 -0
- package/src/utility/error.js.map +1 -0
- package/src/utility/file-info.d.ts +11 -1
- package/src/utility/file-info.d.ts.map +1 -1
- package/src/utility/file-info.js +46 -4
- package/src/utility/file-info.js.map +1 -1
- package/src/utility/generation.d.ts +0 -1
- package/src/utility/generation.d.ts.map +1 -1
- package/src/utility/generation.js +7 -11
- package/src/utility/generation.js.map +1 -1
- package/src/utility/gitignore.d.ts +0 -1
- package/src/utility/gitignore.d.ts.map +1 -1
- package/src/utility/gitignore.js +0 -1
- package/src/utility/gitignore.js.map +1 -1
- package/src/utility/index.d.ts +10 -7
- package/src/utility/index.d.ts.map +1 -1
- package/src/utility/index.js +10 -7
- package/src/utility/index.js.map +1 -1
- package/src/utility/loaders.d.ts +12 -50
- package/src/utility/loaders.d.ts.map +1 -1
- package/src/utility/loaders.js +34 -97
- package/src/utility/loaders.js.map +1 -1
- package/src/utility/logo.d.ts +0 -1
- package/src/utility/logo.d.ts.map +1 -1
- package/src/utility/logo.js +0 -1
- package/src/utility/logo.js.map +1 -1
- package/src/utility/matching-peers.d.ts +11 -3
- package/src/utility/matching-peers.d.ts.map +1 -1
- package/src/utility/matching-peers.js +26 -5
- package/src/utility/matching-peers.js.map +1 -1
- package/src/utility/modules.d.ts +4 -9
- package/src/utility/modules.d.ts.map +1 -1
- package/src/utility/modules.js +17 -22
- package/src/utility/modules.js.map +1 -1
- package/src/utility/monorepo.d.ts +0 -5
- package/src/utility/monorepo.d.ts.map +1 -1
- package/src/utility/monorepo.js +0 -5
- package/src/utility/monorepo.js.map +1 -1
- package/src/utility/package-manager-runner.d.ts +24 -7
- package/src/utility/package-manager-runner.d.ts.map +1 -1
- package/src/utility/package-manager-runner.js +70 -10
- package/src/utility/package-manager-runner.js.map +1 -1
- package/src/utility/package-version.d.ts +0 -2
- package/src/utility/package-version.d.ts.map +1 -1
- package/src/utility/package-version.js +0 -2
- package/src/utility/package-version.js.map +1 -1
- package/src/utility/question.d.ts +0 -1
- package/src/utility/question.d.ts.map +1 -1
- package/src/utility/question.js +0 -1
- package/src/utility/question.js.map +1 -1
- package/src/utility/routes.d.ts +0 -3
- package/src/utility/routes.d.ts.map +1 -1
- package/src/utility/routes.js +0 -5
- package/src/utility/routes.js.map +1 -1
- package/src/utility/sub-entry.d.ts +0 -2
- package/src/utility/sub-entry.d.ts.map +1 -1
- package/src/utility/sub-entry.js +0 -2
- package/src/utility/sub-entry.js.map +1 -1
- package/src/utility/template-property.helper.d.ts +0 -15
- package/src/utility/template-property.helper.d.ts.map +1 -1
- package/src/utility/template-property.helper.js +0 -16
- package/src/utility/template-property.helper.js.map +1 -1
- package/src/utility/update-imports.d.ts +0 -1
- package/src/utility/update-imports.d.ts.map +1 -1
- package/src/utility/update-imports.js +0 -1
- package/src/utility/update-imports.js.map +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/vscode-extensions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAE/E
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/vscode-extensions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAE/E;;;GAGG;AACH,eAAO,MAAM,wBAAwB,oBAAqB,MAAM,EAAE,KAAG,IAepE,CAAC"}
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addVsCodeRecommendations = void 0;
|
4
4
|
/**
|
5
5
|
* Update VsCode recommendations for the current project
|
6
|
-
*
|
7
6
|
* @param recommendations list of recommendations
|
8
7
|
*/
|
9
8
|
const addVsCodeRecommendations = (recommendations) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rule-factories/vscode-extensions/index.ts"],"names":[],"mappings":";;;AAEA
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rule-factories/vscode-extensions/index.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACI,MAAM,wBAAwB,GAAG,CAAC,eAAyB,EAAQ,EAAE;IAC1E,MAAM,aAAa,GAAG,0BAA0B,CAAC;IAEjD,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE;YAC/B,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,eAAe,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;YACzE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,aAAa,0BAA0B,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;SACrG;aAAM;YACL,MAAM,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAkC,CAAC;YACjF,UAAU,CAAC,eAAe,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,eAAe,IAAI,EAAE,CAAC,EAAE,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;YAC9G,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;YACnE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,aAAa,0BAA0B,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;SACtG;QACD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC,CAAC;AAfW,QAAA,wBAAwB,4BAenC"}
|
package/src/rules/install.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../src/rules/install.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAK1E
|
1
|
+
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../src/rules/install.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAK1E;;;;GAIG;AACH,wBAAsB,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAMlF"}
|
package/src/rules/install.js
CHANGED
package/src/rules/install.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"install.js","sourceRoot":"","sources":["../../../src/rules/install.ts"],"names":[],"mappings":";;;AACA,4DAA0E;AAC1E,+BAAqC;AACrC,8EAAsE;AAEtE
|
1
|
+
{"version":3,"file":"install.js","sourceRoot":"","sources":["../../../src/rules/install.ts"],"names":[],"mappings":";;;AACA,4DAA0E;AAC1E,+BAAqC;AACrC,8EAAsE;AAEtE;;;;GAIG;AACI,KAAK,UAAU,OAAO,CAAC,IAAU,EAAE,OAAyB;IACjE,MAAM,cAAc,GAAG,IAAA,0CAAiB,GAAE,CAAC;IAC3C,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;IACnD,OAAO,CAAC,OAAO,CAAC,IAAI,8BAAsB,CAAC,EAAC,cAAc,EAAC,CAAC,CAAC,CAAC;IAC9D,MAAM,IAAA,oBAAa,EAAC,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,CAAC,CAAC;IACvD,OAAO,GAAG,EAAE,CAAC,IAAI,CAAC;AACpB,CAAC;AAND,0BAMC"}
|
@@ -1,10 +1,26 @@
|
|
1
1
|
import { TaskConfiguration, TaskConfigurationGenerator } from '@angular-devkit/schematics';
|
2
2
|
import { NodePackageTaskOptions } from '@angular-devkit/schematics/tasks/package-manager/options';
|
3
|
+
/**
|
4
|
+
* Linter options
|
5
|
+
*/
|
6
|
+
export interface LinterOptions {
|
7
|
+
/**
|
8
|
+
* Indicates if the linter process should succeed even if there are lint errors remaining
|
9
|
+
* @default true
|
10
|
+
*/
|
11
|
+
continueOnError?: boolean;
|
12
|
+
/**
|
13
|
+
* If enabled, only errors are reported (--quiet option of ESLint CLI)
|
14
|
+
* @default true
|
15
|
+
*/
|
16
|
+
hideWarnings?: boolean;
|
17
|
+
}
|
3
18
|
export declare class EslintFixTask implements TaskConfigurationGenerator<NodePackageTaskOptions> {
|
4
19
|
files: string[];
|
5
20
|
workingDirectory?: string | undefined;
|
6
21
|
configFile?: string | undefined;
|
7
|
-
|
22
|
+
linterOptions: LinterOptions;
|
23
|
+
constructor(files: string[], workingDirectory?: string | undefined, configFile?: string | undefined, options?: LinterOptions);
|
8
24
|
toConfiguration(): TaskConfiguration<NodePackageTaskOptions>;
|
9
25
|
}
|
10
26
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tasks/eslint/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAC3F,OAAO,EAAmB,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tasks/eslint/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAC3F,OAAO,EAAmB,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AAGnH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,qBAAa,aAAc,YAAW,0BAA0B,CAAC,sBAAsB,CAAC;IAGnE,KAAK,EAAE,MAAM,EAAE;IAAS,gBAAgB,CAAC;IAAiB,UAAU,CAAC;IAFjF,aAAa,EAAE,aAAa,CAAC;gBAEjB,KAAK,EAAE,MAAM,EAAE,EAAS,gBAAgB,CAAC,oBAAQ,EAAS,UAAU,CAAC,oBAAQ,EAAE,OAAO,CAAC,EAAE,aAAa;IAQlH,eAAe,IAAI,iBAAiB,CAAC,sBAAsB,CAAC;CAmBpE"}
|
@@ -2,24 +2,33 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.EslintFixTask = void 0;
|
4
4
|
const options_1 = require("@angular-devkit/schematics/tasks/package-manager/options");
|
5
|
-
const path = require("node:path");
|
6
5
|
const package_manager_runner_1 = require("../../utility/package-manager-runner");
|
7
6
|
class EslintFixTask {
|
8
|
-
constructor(files, workingDirectory, configFile) {
|
7
|
+
constructor(files, workingDirectory, configFile, options) {
|
9
8
|
this.files = files;
|
10
9
|
this.workingDirectory = workingDirectory;
|
11
10
|
this.configFile = configFile;
|
11
|
+
this.linterOptions = {
|
12
|
+
continueOnError: true,
|
13
|
+
hideWarnings: true,
|
14
|
+
...options
|
15
|
+
};
|
12
16
|
}
|
13
|
-
// TODO Find a way to catch linter errors without failing the ng add process
|
14
17
|
toConfiguration() {
|
15
18
|
return {
|
16
19
|
name: options_1.NodePackageName,
|
17
20
|
options: {
|
18
|
-
command: '
|
21
|
+
command: 'exec',
|
19
22
|
quiet: false,
|
20
23
|
workingDirectory: this.workingDirectory,
|
21
|
-
packageName:
|
22
|
-
'
|
24
|
+
packageName: [
|
25
|
+
'eslint',
|
26
|
+
...this.files,
|
27
|
+
'--fix',
|
28
|
+
...(this.linterOptions?.hideWarnings ? ['--quiet'] : []),
|
29
|
+
...(this.configFile ? ['--config', this.configFile] : []),
|
30
|
+
...(this.linterOptions?.continueOnError ? ['|| exit 0'] : [])
|
31
|
+
].join(' '),
|
23
32
|
packageManager: (0, package_manager_runner_1.getPackageManager)()
|
24
33
|
}
|
25
34
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tasks/eslint/index.ts"],"names":[],"mappings":";;;AACA,sFAAmH;AACnH,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tasks/eslint/index.ts"],"names":[],"mappings":";;;AACA,sFAAmH;AACnH,iFAAyE;AAkBzE,MAAa,aAAa;IAGxB,YAAmB,KAAe,EAAS,gBAAyB,EAAS,UAAmB,EAAE,OAAuB;QAAtG,UAAK,GAAL,KAAK,CAAU;QAAS,qBAAgB,GAAhB,gBAAgB,CAAS;QAAS,eAAU,GAAV,UAAU,CAAS;QAC9F,IAAI,CAAC,aAAa,GAAG;YACnB,eAAe,EAAE,IAAI;YACrB,YAAY,EAAE,IAAI;YAClB,GAAG,OAAO;SACX,CAAC;IACJ,CAAC;IAEM,eAAe;QACpB,OAAO;YACL,IAAI,EAAE,yBAAe;YACrB,OAAO,EAAE;gBACP,OAAO,EAAE,MAAM;gBACf,KAAK,EAAE,KAAK;gBACZ,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;gBACvC,WAAW,EAAE;oBACX,QAAQ;oBACR,GAAG,IAAI,CAAC,KAAK;oBACb,OAAO;oBACP,GAAG,CAAC,IAAI,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;oBACxD,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;oBACzD,GAAG,CAAC,IAAI,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;iBAC9D,CAAC,IAAI,CAAC,GAAG,CAAC;gBACX,cAAc,EAAE,IAAA,0CAAiB,GAAE;aACpC;SACF,CAAC;IACJ,CAAC;CACF;AA9BD,sCA8BC"}
|
@@ -5,6 +5,7 @@ import { NodePackageInstallTaskOptions } from './interfaces';
|
|
5
5
|
*/
|
6
6
|
export declare class AddDevInstall extends NodePackageInstallTask {
|
7
7
|
quiet: boolean;
|
8
|
+
force: boolean;
|
8
9
|
constructor(options?: NodePackageInstallTaskOptions);
|
9
10
|
/** @inheritdoc */
|
10
11
|
toConfiguration(): {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"add-dev-dependency.d.ts","sourceRoot":"","sources":["../../../../src/tasks/package-manager/add-dev-dependency.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAG1E,OAAO,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAE7D;;GAEG;AACH,qBAAa,aAAc,SAAQ,sBAAsB;IAChD,KAAK,UAAS;gBAET,OAAO,CAAC,EAAE,6BAA6B;
|
1
|
+
{"version":3,"file":"add-dev-dependency.d.ts","sourceRoot":"","sources":["../../../../src/tasks/package-manager/add-dev-dependency.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAG1E,OAAO,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAE7D;;GAEG;AACH,qBAAa,aAAc,SAAQ,sBAAsB;IAChD,KAAK,UAAS;IACd,KAAK,UAAS;gBAET,OAAO,CAAC,EAAE,6BAA6B;IAUnD,kBAAkB;IACX,eAAe;;;;;;;;;;;;;CAYvB"}
|
@@ -11,10 +11,12 @@ class AddDevInstall extends tasks_1.NodePackageInstallTask {
|
|
11
11
|
constructor(options) {
|
12
12
|
super(options);
|
13
13
|
this.quiet = false;
|
14
|
+
this.force = false;
|
14
15
|
this.packageManager = (0, utility_1.getPackageManager)({
|
15
16
|
workspaceConfig: options?.tree && (0, utility_1.getWorkspaceConfig)(options.tree),
|
16
17
|
enforcedNpmManager: options?.packageName
|
17
18
|
});
|
19
|
+
this.force = !!options?.force;
|
18
20
|
}
|
19
21
|
/** @inheritdoc */
|
20
22
|
toConfiguration() {
|
@@ -25,7 +27,7 @@ class AddDevInstall extends tasks_1.NodePackageInstallTask {
|
|
25
27
|
options: {
|
26
28
|
...defaultConfig.options,
|
27
29
|
command: 'install',
|
28
|
-
packageName: `${this.packageName} ${this.packageManager === 'yarn' ? '--prefer-dev' : '--save-dev'}`
|
30
|
+
packageName: `${this.packageName} ${this.packageManager === 'yarn' ? '--prefer-dev' : '--save-dev'}${this.force && this.packageManager === 'npm' ? ' --force' : ''}`
|
29
31
|
}
|
30
32
|
};
|
31
33
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"add-dev-dependency.js","sourceRoot":"","sources":["../../../../src/tasks/package-manager/add-dev-dependency.ts"],"names":[],"mappings":";;;AAAA,4DAA0E;AAC1E,sFAA2F;AAC3F,2CAAsE;AAGtE;;GAEG;AACH,MAAa,aAAc,SAAQ,8BAAsB;
|
1
|
+
{"version":3,"file":"add-dev-dependency.js","sourceRoot":"","sources":["../../../../src/tasks/package-manager/add-dev-dependency.ts"],"names":[],"mappings":";;;AAAA,4DAA0E;AAC1E,sFAA2F;AAC3F,2CAAsE;AAGtE;;GAEG;AACH,MAAa,aAAc,SAAQ,8BAAsB;IAIvD,YAAY,OAAuC;QACjD,KAAK,CAAC,OAAc,CAAC,CAAC;QAJjB,UAAK,GAAG,KAAK,CAAC;QACd,UAAK,GAAG,KAAK,CAAC;QAInB,IAAI,CAAC,cAAc,GAAG,IAAA,2BAAiB,EAAC;YACtC,eAAe,EAAE,OAAO,EAAE,IAAI,IAAI,IAAA,4BAAkB,EAAC,OAAO,CAAC,IAAI,CAAC;YAClE,kBAAkB,EAAE,OAAO,EAAE,WAAW;SACzC,CAAC,CAAC;QACH,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC;IAChC,CAAC;IAGD,kBAAkB;IACX,eAAe;QACpB,MAAM,aAAa,GAAG,KAAK,CAAC,eAAe,EAAE,CAAC;QAC9C,OAAO;YACL,GAAG,aAAa;YAChB,IAAI,EAAE,yBAAe;YACrB,OAAO,EAAE;gBACP,GAAG,aAAa,CAAC,OAAO;gBACxB,OAAO,EAAE,SAAS;gBAClB,WAAW,EAAE,GAAG,IAAI,CAAC,WAAY,IAAI,IAAI,CAAC,cAAc,KAAK,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,YAAY,GAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,cAAc,KAAK,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE;aACtK;SACF,CAAC;IACJ,CAAC;CACF;AA3BD,sCA2BC"}
|
@@ -3,12 +3,21 @@ import { Tree } from '@angular-devkit/schematics';
|
|
3
3
|
* Duplication of the interface not exposed by the @angular-devkit/schematics
|
4
4
|
*/
|
5
5
|
export interface NodePackageInstallTaskOptions {
|
6
|
+
/** Tree */
|
6
7
|
tree?: Tree;
|
8
|
+
/** Package Manager */
|
7
9
|
packageManager?: 'yarn' | 'npm' | '';
|
10
|
+
/** Package Name */
|
8
11
|
packageName?: string;
|
12
|
+
/** Current working directory */
|
9
13
|
workingDirectory?: string;
|
14
|
+
/** quiet argument to package manager command */
|
10
15
|
quiet?: boolean;
|
16
|
+
/** Hide output */
|
11
17
|
hideOutput?: boolean;
|
18
|
+
/** Allow post/pre-install script run */
|
12
19
|
allowScripts?: boolean;
|
20
|
+
/** force install */
|
21
|
+
force?: boolean;
|
13
22
|
}
|
14
23
|
//# sourceMappingURL=interfaces.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../src/tasks/package-manager/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,cAAc,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,EAAE,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../src/tasks/package-manager/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,WAAW;IACX,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,sBAAsB;IACtB,cAAc,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,EAAE,CAAC;IACrC,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gCAAgC;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gDAAgD;IAChD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,mBAAmB;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,wCAAwC;IACxC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,oBAAoB;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB"}
|
@@ -5,6 +5,7 @@ import type { NodePackageInstallTaskOptions } from './interfaces';
|
|
5
5
|
*/
|
6
6
|
export declare class NpmInstall extends NodePackageInstallTask {
|
7
7
|
quiet: boolean;
|
8
|
+
force: boolean;
|
8
9
|
constructor(options?: NodePackageInstallTaskOptions);
|
9
10
|
/** @inheritdoc */
|
10
11
|
toConfiguration(): {
|
@@ -12,7 +13,7 @@ export declare class NpmInstall extends NodePackageInstallTask {
|
|
12
13
|
options: {
|
13
14
|
command: string;
|
14
15
|
quiet: boolean;
|
15
|
-
packageManager: string
|
16
|
+
packageManager: string;
|
16
17
|
hideOutput?: boolean | undefined;
|
17
18
|
workingDirectory?: string | undefined;
|
18
19
|
packageName?: string | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"npm-install.d.ts","sourceRoot":"","sources":["../../../../src/tasks/package-manager/npm-install.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAIlE;;GAEG;AACH,qBAAa,UAAW,SAAQ,sBAAsB;IAC7C,KAAK,UAAS;gBAET,OAAO,CAAC,EAAE,6BAA6B;
|
1
|
+
{"version":3,"file":"npm-install.d.ts","sourceRoot":"","sources":["../../../../src/tasks/package-manager/npm-install.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAIlE;;GAEG;AACH,qBAAa,UAAW,SAAQ,sBAAsB;IAC7C,KAAK,UAAS;IACd,KAAK,UAAS;gBAET,OAAO,CAAC,EAAE,6BAA6B;IASnD,kBAAkB;IACX,eAAe;;;;;;;;;;;;;CAavB"}
|
@@ -11,10 +11,12 @@ class NpmInstall extends tasks_1.NodePackageInstallTask {
|
|
11
11
|
constructor(options) {
|
12
12
|
super(options);
|
13
13
|
this.quiet = false;
|
14
|
+
this.force = false;
|
14
15
|
this.packageManager = (0, utility_1.getPackageManager)({
|
15
16
|
workspaceConfig: options?.tree && (0, utility_1.getWorkspaceConfig)(options.tree),
|
16
17
|
enforcedNpmManager: options?.packageName
|
17
18
|
});
|
19
|
+
this.force = !!options?.force;
|
18
20
|
}
|
19
21
|
/** @inheritdoc */
|
20
22
|
toConfiguration() {
|
@@ -26,7 +28,7 @@ class NpmInstall extends tasks_1.NodePackageInstallTask {
|
|
26
28
|
...config.options,
|
27
29
|
command: 'install',
|
28
30
|
quiet: this.quiet,
|
29
|
-
packageManager: this.packageManager
|
31
|
+
packageManager: `${this.packageManager}${this.force && this.packageManager === 'npm' ? ' --force' : ''}`
|
30
32
|
}
|
31
33
|
};
|
32
34
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"npm-install.js","sourceRoot":"","sources":["../../../../src/tasks/package-manager/npm-install.ts"],"names":[],"mappings":";;;AAAA,4DAA0E;AAE1E,2CAAsE;AACtE,sFAA2F;AAE3F;;GAEG;AACH,MAAa,UAAW,SAAQ,8BAAsB;
|
1
|
+
{"version":3,"file":"npm-install.js","sourceRoot":"","sources":["../../../../src/tasks/package-manager/npm-install.ts"],"names":[],"mappings":";;;AAAA,4DAA0E;AAE1E,2CAAsE;AACtE,sFAA2F;AAE3F;;GAEG;AACH,MAAa,UAAW,SAAQ,8BAAsB;IAIpD,YAAY,OAAuC;QACjD,KAAK,CAAC,OAAc,CAAC,CAAC;QAJjB,UAAK,GAAG,KAAK,CAAC;QACd,UAAK,GAAG,KAAK,CAAC;QAInB,IAAI,CAAC,cAAc,GAAG,IAAA,2BAAiB,EAAC;YACtC,eAAe,EAAE,OAAO,EAAE,IAAI,IAAI,IAAA,4BAAkB,EAAC,OAAO,CAAC,IAAI,CAAC;YAClE,kBAAkB,EAAE,OAAO,EAAE,WAAW;SACzC,CAAC,CAAC;QACH,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC;IAChC,CAAC;IAED,kBAAkB;IACX,eAAe;QACpB,MAAM,MAAM,GAAG,KAAK,CAAC,eAAe,EAAE,CAAC;QACvC,OAAO;YACL,GAAG,MAAM;YACT,IAAI,EAAE,yBAAe;YACrB,OAAO,EAAE;gBACP,GAAG,MAAM,CAAC,OAAO;gBACjB,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,cAAc,EAAE,GAAG,IAAI,CAAC,cAAe,GAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,cAAc,KAAK,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE;aAC1G;SACF,CAAC;IACJ,CAAC;CACF;AA3BD,gCA2BC"}
|
package/src/utility/ast.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import * as ts from 'typescript';
|
2
2
|
/**
|
3
3
|
* Find the first node with the specific syntax kind
|
4
|
-
*
|
5
4
|
* @param sourceFile Typescript file
|
6
5
|
* @param searchKind Kind of syntax to look up
|
7
6
|
* @param node current node
|
@@ -9,7 +8,6 @@ import * as ts from 'typescript';
|
|
9
8
|
export declare function findFirstNodeOfKind<T extends ts.Node = ts.Node>(sourceFile: ts.SourceFile, searchKind: ts.SyntaxKind, node?: ts.Node): T | null;
|
10
9
|
/**
|
11
10
|
* Find the last node with the specific syntax kind
|
12
|
-
*
|
13
11
|
* @param sourceFile Typescript file
|
14
12
|
* @param searchKind Kind of syntax to look up
|
15
13
|
* @param node current node
|
@@ -17,7 +15,6 @@ export declare function findFirstNodeOfKind<T extends ts.Node = ts.Node>(sourceF
|
|
17
15
|
export declare function findLastNodeOfKind<T extends ts.Node = ts.Node>(sourceFile: ts.SourceFile, searchKind: ts.SyntaxKind, node?: ts.Node): T | null;
|
18
16
|
/**
|
19
17
|
* Reads all the imports of a given SourceFile and returns a parsed list that's easy to consume.
|
20
|
-
*
|
21
18
|
* @param sourceFile
|
22
19
|
*/
|
23
20
|
export declare function parseImportsFromFile(sourceFile: ts.SourceFile): {
|
@@ -27,15 +24,16 @@ export declare function parseImportsFromFile(sourceFile: ts.SourceFile): {
|
|
27
24
|
}[];
|
28
25
|
/**
|
29
26
|
* Given a program and a path to a source file, returns all the Symbols exported by the file.
|
30
|
-
*
|
31
27
|
* @param program
|
32
28
|
* @param sourcePath
|
33
29
|
*/
|
34
30
|
export declare function getExportedSymbolsFromFile(program: ts.Program, sourcePath: string): ts.Symbol[];
|
35
31
|
/**
|
36
32
|
* Decorator with arguments
|
37
|
-
*
|
38
|
-
*
|
33
|
+
* @example
|
34
|
+
* ```typescript
|
35
|
+
* \@Decorator({ propName: 'value' })
|
36
|
+
* ```
|
39
37
|
*/
|
40
38
|
export type DecoratorWithArg = ts.Decorator & {
|
41
39
|
expression: ts.CallExpression & {
|
@@ -44,78 +42,66 @@ export type DecoratorWithArg = ts.Decorator & {
|
|
44
42
|
};
|
45
43
|
/**
|
46
44
|
* Returns true if it is a decorator with arguments
|
47
|
-
*
|
48
45
|
* @param node decorator node
|
49
46
|
*/
|
50
47
|
export declare const isDecoratorWithArg: (node: ts.Node) => node is DecoratorWithArg;
|
51
48
|
/**
|
52
49
|
* Returns the value of {@link argName} in the first argument
|
53
|
-
*
|
54
50
|
* @param decorator
|
55
51
|
* @param argName
|
56
52
|
*/
|
57
53
|
export declare const getPropertyFromDecoratorFirstArgument: (decorator: DecoratorWithArg, argName: string) => ts.Expression | undefined;
|
58
54
|
/**
|
59
55
|
* Returns `ExpressionWithTypeArguments[]` of a class that implements {@link str}
|
60
|
-
*
|
61
56
|
* @param str
|
62
57
|
*/
|
63
58
|
export declare const generateImplementsExpressionWithTypeArguments: (str: string) => ts.ExpressionWithTypeArguments[];
|
64
59
|
/**
|
65
60
|
* Returns `ClassElement[]` of a class that have {@link str} has body
|
66
|
-
*
|
67
61
|
* @param str
|
68
62
|
*/
|
69
63
|
export declare const generateClassElementsFromString: (str: string) => ts.ClassElement[];
|
70
64
|
/**
|
71
65
|
* Returns `Statement[]` of a function that have {@link str} has body
|
72
|
-
*
|
73
66
|
* @param str
|
74
67
|
*/
|
75
68
|
export declare const generateBlockStatementsFromString: (str: string) => ts.Statement[];
|
76
69
|
/**
|
77
70
|
* Returns `ParameterDeclaration[]` of a function that have {@link str} has parameters
|
78
|
-
*
|
79
71
|
* @param str
|
80
72
|
*/
|
81
73
|
export declare const generateParametersDeclarationFromString: (str: string) => ts.ParameterDeclaration[];
|
82
74
|
/**
|
83
75
|
* Method to sort ClassElement based on the kind of it
|
84
76
|
* order will be PropertyDeclaration, Constructor then MethodDeclaration
|
85
|
-
*
|
86
77
|
* @param classElement1
|
87
78
|
* @param classElement2
|
88
79
|
*/
|
89
80
|
export declare const sortClassElement: (classElement1: ts.ClassElement, classElement2: ts.ClassElement) => 1 | -1;
|
90
81
|
/**
|
91
82
|
* Returns a TransformerFactory to add an interface to a class
|
92
|
-
*
|
93
83
|
* @param interfaceToAdd
|
94
84
|
* @param classIdentifier
|
95
85
|
*/
|
96
86
|
export declare const addInterfaceToClassTransformerFactory: (interfaceToAdd: string, classIdentifier?: (node: ts.ClassDeclaration) => boolean) => ts.TransformerFactory<ts.Node>;
|
97
87
|
/**
|
98
88
|
* Add comment on class properties
|
99
|
-
*
|
100
89
|
* @param classElements
|
101
90
|
* @param comments Dictionnary of comment indexed by properties' name
|
102
91
|
*/
|
103
92
|
export declare const addCommentsOnClassProperties: (classElements: ts.ClassElement[], comments: Record<string, string>) => void;
|
104
93
|
/**
|
105
94
|
* Transformer to be used to fix the string literals generated by creating a new SourceFile (for instance, using #generateClassElementsFromString)
|
106
|
-
*
|
107
95
|
* @param ctx
|
108
96
|
*/
|
109
97
|
export declare const fixStringLiterals: ts.TransformerFactory<ts.SourceFile>;
|
110
98
|
/**
|
111
99
|
* Returns a function to match classElement by method name
|
112
|
-
*
|
113
100
|
* @param methodName
|
114
101
|
*/
|
115
102
|
export declare const findMethodByName: (methodName: string) => (classElement: ts.ClassElement) => classElement is ts.MethodDeclaration;
|
116
103
|
/**
|
117
104
|
* Add block statements to a method
|
118
|
-
*
|
119
105
|
* @param node
|
120
106
|
* @param factory
|
121
107
|
* @param methodName
|
@@ -124,7 +110,6 @@ export declare const findMethodByName: (methodName: string) => (classElement: ts
|
|
124
110
|
export declare const getSimpleUpdatedMethod: (node: ts.ClassDeclaration, factory: ts.NodeFactory, methodName: string, blockStatements: ts.Statement[]) => ts.MethodDeclaration;
|
125
111
|
/**
|
126
112
|
* Return true is the node is the ExpressionStatement of the TestBedConfiguration
|
127
|
-
*
|
128
113
|
* @param node
|
129
114
|
*/
|
130
115
|
export declare const isTestBedConfiguration: (node: ts.Node) => node is ts.ExpressionStatement & {
|
@@ -134,7 +119,6 @@ export declare const isTestBedConfiguration: (node: ts.Node) => node is ts.Expre
|
|
134
119
|
};
|
135
120
|
/**
|
136
121
|
* TransformerFactory to add imports at spec initialization and code to be run just after
|
137
|
-
*
|
138
122
|
* @param imports
|
139
123
|
* @param code
|
140
124
|
*/
|
package/src/utility/ast.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ast.d.ts","sourceRoot":"","sources":["../../../src/utility/ast.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAGjC
|
1
|
+
{"version":3,"file":"ast.d.ts","sourceRoot":"","sources":["../../../src/utility/ast.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAGjC;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,EAAE,CAAC,UAAU,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,GAAG,CAAC,GAAG,IAAI,CAa/I;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,CAAC,UAAU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CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,kBAAkB,CAAC,EAAE,CAAC,UAAU,CASlE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,eAAgB,MAAM,oBAAoB,GAAG,YAAY,yCAG1B,CAAC;AAE7D;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,SAAU,GAAG,gBAAgB,WAAW,GAAG,WAAW,cAAc,MAAM,mBAAmB,GAAG,SAAS,EAAE,yBA2B7I,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,SAAU,OAAO;gBAAkD,GAAG,cAAc,GAAG;QAAE,UAAU,EAAE,GAAG,wBAAwB,CAAA;KAAE;CAOzF,CAAC;AAE7E;;;;GAIG;AACH,eAAO,MAAM,qEAAqE,YACvE,CAAC,MAAM,GAAG,GAAG,UAAU,CAAC,EAAE,SAC5B,MAAM,KACZ,GAAG,kBAAkB,CAAC,OAAO,CAmD7B,CAAC"}
|
package/src/utility/ast.js
CHANGED
@@ -5,7 +5,6 @@ const ts = require("typescript");
|
|
5
5
|
const ast_utils_1 = require("@schematics/angular/utility/ast-utils");
|
6
6
|
/**
|
7
7
|
* Find the first node with the specific syntax kind
|
8
|
-
*
|
9
8
|
* @param sourceFile Typescript file
|
10
9
|
* @param searchKind Kind of syntax to look up
|
11
10
|
* @param node current node
|
@@ -28,7 +27,6 @@ function findFirstNodeOfKind(sourceFile, searchKind, node) {
|
|
28
27
|
exports.findFirstNodeOfKind = findFirstNodeOfKind;
|
29
28
|
/**
|
30
29
|
* Find the last node with the specific syntax kind
|
31
|
-
*
|
32
30
|
* @param sourceFile Typescript file
|
33
31
|
* @param searchKind Kind of syntax to look up
|
34
32
|
* @param node current node
|
@@ -52,7 +50,6 @@ function findLastNodeOfKind(sourceFile, searchKind, node) {
|
|
52
50
|
exports.findLastNodeOfKind = findLastNodeOfKind;
|
53
51
|
/**
|
54
52
|
* Reads all the imports of a given SourceFile and returns a parsed list that's easy to consume.
|
55
|
-
*
|
56
53
|
* @param sourceFile
|
57
54
|
*/
|
58
55
|
function parseImportsFromFile(sourceFile) {
|
@@ -71,7 +68,6 @@ function parseImportsFromFile(sourceFile) {
|
|
71
68
|
exports.parseImportsFromFile = parseImportsFromFile;
|
72
69
|
/**
|
73
70
|
* Given a program and a path to a source file, returns all the Symbols exported by the file.
|
74
|
-
*
|
75
71
|
* @param program
|
76
72
|
* @param sourcePath
|
77
73
|
*/
|
@@ -89,7 +85,6 @@ function getExportedSymbolsFromFile(program, sourcePath) {
|
|
89
85
|
exports.getExportedSymbolsFromFile = getExportedSymbolsFromFile;
|
90
86
|
/**
|
91
87
|
* Returns true if it is a decorator with arguments
|
92
|
-
*
|
93
88
|
* @param node decorator node
|
94
89
|
*/
|
95
90
|
const isDecoratorWithArg = (node) => ts.isDecorator(node)
|
@@ -98,7 +93,6 @@ const isDecoratorWithArg = (node) => ts.isDecorator(node)
|
|
98
93
|
exports.isDecoratorWithArg = isDecoratorWithArg;
|
99
94
|
/**
|
100
95
|
* Returns the value of {@link argName} in the first argument
|
101
|
-
*
|
102
96
|
* @param decorator
|
103
97
|
* @param argName
|
104
98
|
*/
|
@@ -113,7 +107,6 @@ const getPropertyFromDecoratorFirstArgument = (decorator, argName) => {
|
|
113
107
|
exports.getPropertyFromDecoratorFirstArgument = getPropertyFromDecoratorFirstArgument;
|
114
108
|
/**
|
115
109
|
* Returns `ExpressionWithTypeArguments[]` of a class that implements {@link str}
|
116
|
-
*
|
117
110
|
* @param str
|
118
111
|
*/
|
119
112
|
const generateImplementsExpressionWithTypeArguments = (str) => {
|
@@ -123,7 +116,6 @@ const generateImplementsExpressionWithTypeArguments = (str) => {
|
|
123
116
|
exports.generateImplementsExpressionWithTypeArguments = generateImplementsExpressionWithTypeArguments;
|
124
117
|
/**
|
125
118
|
* Returns `ClassElement[]` of a class that have {@link str} has body
|
126
|
-
*
|
127
119
|
* @param str
|
128
120
|
*/
|
129
121
|
const generateClassElementsFromString = (str) => {
|
@@ -135,7 +127,6 @@ const generateClassElementsFromString = (str) => {
|
|
135
127
|
exports.generateClassElementsFromString = generateClassElementsFromString;
|
136
128
|
/**
|
137
129
|
* Returns `Statement[]` of a function that have {@link str} has body
|
138
|
-
*
|
139
130
|
* @param str
|
140
131
|
*/
|
141
132
|
const generateBlockStatementsFromString = (str) => {
|
@@ -147,7 +138,6 @@ const generateBlockStatementsFromString = (str) => {
|
|
147
138
|
exports.generateBlockStatementsFromString = generateBlockStatementsFromString;
|
148
139
|
/**
|
149
140
|
* Returns `ParameterDeclaration[]` of a function that have {@link str} has parameters
|
150
|
-
*
|
151
141
|
* @param str
|
152
142
|
*/
|
153
143
|
const generateParametersDeclarationFromString = (str) => {
|
@@ -158,7 +148,6 @@ exports.generateParametersDeclarationFromString = generateParametersDeclarationF
|
|
158
148
|
/**
|
159
149
|
* Method to sort ClassElement based on the kind of it
|
160
150
|
* order will be PropertyDeclaration, Constructor then MethodDeclaration
|
161
|
-
*
|
162
151
|
* @param classElement1
|
163
152
|
* @param classElement2
|
164
153
|
*/
|
@@ -191,7 +180,6 @@ const sortClassElement = (classElement1, classElement2) => {
|
|
191
180
|
exports.sortClassElement = sortClassElement;
|
192
181
|
/**
|
193
182
|
* Returns a TransformerFactory to add an interface to a class
|
194
|
-
*
|
195
183
|
* @param interfaceToAdd
|
196
184
|
* @param classIdentifier
|
197
185
|
*/
|
@@ -221,7 +209,6 @@ const addInterfaceToClassTransformerFactory = (interfaceToAdd, classIdentifier =
|
|
221
209
|
exports.addInterfaceToClassTransformerFactory = addInterfaceToClassTransformerFactory;
|
222
210
|
/**
|
223
211
|
* Add comment on class properties
|
224
|
-
*
|
225
212
|
* @param classElements
|
226
213
|
* @param comments Dictionnary of comment indexed by properties' name
|
227
214
|
*/
|
@@ -238,7 +225,6 @@ const addCommentsOnClassProperties = (classElements, comments) => {
|
|
238
225
|
exports.addCommentsOnClassProperties = addCommentsOnClassProperties;
|
239
226
|
/**
|
240
227
|
* Transformer to be used to fix the string literals generated by creating a new SourceFile (for instance, using #generateClassElementsFromString)
|
241
|
-
*
|
242
228
|
* @param ctx
|
243
229
|
*/
|
244
230
|
const fixStringLiterals = (ctx) => (rootNode) => {
|
@@ -254,7 +240,6 @@ const fixStringLiterals = (ctx) => (rootNode) => {
|
|
254
240
|
exports.fixStringLiterals = fixStringLiterals;
|
255
241
|
/**
|
256
242
|
* Returns a function to match classElement by method name
|
257
|
-
*
|
258
243
|
* @param methodName
|
259
244
|
*/
|
260
245
|
const findMethodByName = (methodName) => (classElement) => ts.isMethodDeclaration(classElement)
|
@@ -263,7 +248,6 @@ const findMethodByName = (methodName) => (classElement) => ts.isMethodDeclaratio
|
|
263
248
|
exports.findMethodByName = findMethodByName;
|
264
249
|
/**
|
265
250
|
* Add block statements to a method
|
266
|
-
*
|
267
251
|
* @param node
|
268
252
|
* @param factory
|
269
253
|
* @param methodName
|
@@ -278,7 +262,6 @@ const getSimpleUpdatedMethod = (node, factory, methodName, blockStatements) => {
|
|
278
262
|
exports.getSimpleUpdatedMethod = getSimpleUpdatedMethod;
|
279
263
|
/**
|
280
264
|
* Return true is the node is the ExpressionStatement of the TestBedConfiguration
|
281
|
-
*
|
282
265
|
* @param node
|
283
266
|
*/
|
284
267
|
const isTestBedConfiguration = (node) => (ts.isExpressionStatement(node)
|
@@ -291,7 +274,6 @@ const isTestBedConfiguration = (node) => (ts.isExpressionStatement(node)
|
|
291
274
|
exports.isTestBedConfiguration = isTestBedConfiguration;
|
292
275
|
/**
|
293
276
|
* TransformerFactory to add imports at spec initialization and code to be run just after
|
294
|
-
*
|
295
277
|
* @param imports
|
296
278
|
* @param code
|
297
279
|
*/
|
package/src/utility/ast.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ast.js","sourceRoot":"","sources":["../../../src/utility/ast.ts"],"names":[],"mappings":";;;AAAA,iCAAiC;AACjC,qEAAkE;AAElE;;;;;;GAMG;AACH,SAAgB,mBAAmB,CAA8B,UA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E,EAAE,CAAC;iBACL,MAAM,CACL,IAAI,CAAC,CAAC,CAAC,IAAA,yCAAiC,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CACpD,CACJ,CAAC;SACH;QACD,OAAO,EAAE,CAAC,cAAc,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;IAC7C,CAAC,CAAC;IACF,OAAO,EAAE,CAAC,SAAS,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;AACvC,CAAC,CAAC;AAtDS,QAAA,qEAAqE,yEAsD9E"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { SchematicOptionObject, WorkspaceProject } from '../interfaces';
|
2
|
+
/**
|
3
|
+
* Register the builder to the workspace
|
4
|
+
* @param workspaceProject Workspace project to add the builder to
|
5
|
+
* @param taskName Name of the task to defined
|
6
|
+
* @param taskParameters Parameter of the task to defined
|
7
|
+
* @param force Override task if already defined
|
8
|
+
* @returns the updated workspace
|
9
|
+
*/
|
10
|
+
export declare function registerBuilder(workspaceProject: WorkspaceProject, taskName: string, taskParameters: SchematicOptionObject, force?: boolean): WorkspaceProject;
|
11
|
+
//# sourceMappingURL=builder.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../../src/utility/builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAE7E;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,qBAAqB,EAAE,KAAK,UAAQ,GAAG,gBAAgB,CAO5J"}
|