@o3r/schematics 10.4.0-prerelease.1 → 10.4.0-prerelease.11

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/schematics",
3
- "version": "10.4.0-prerelease.1",
3
+ "version": "10.4.0-prerelease.11",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,7 +30,7 @@
30
30
  "@angular-devkit/core": "~17.3.0",
31
31
  "@angular-devkit/schematics": "~17.3.0",
32
32
  "@angular/cli": "~17.3.0",
33
- "@o3r/telemetry": "^10.4.0-prerelease.1",
33
+ "@o3r/telemetry": "^10.4.0-prerelease.11",
34
34
  "@schematics/angular": "~17.3.0",
35
35
  "eslint": "^8.42.0",
36
36
  "rxjs": "^7.8.1",
@@ -82,9 +82,9 @@
82
82
  "@nx/eslint-plugin": "~18.3.0",
83
83
  "@nx/jest": "~18.3.0",
84
84
  "@nx/js": "~18.3.0",
85
- "@o3r/build-helpers": "^10.4.0-prerelease.1",
86
- "@o3r/eslint-plugin": "^10.4.0-prerelease.1",
87
- "@o3r/telemetry": "^10.4.0-prerelease.1",
85
+ "@o3r/build-helpers": "^10.4.0-prerelease.11",
86
+ "@o3r/eslint-plugin": "^10.4.0-prerelease.11",
87
+ "@o3r/telemetry": "^10.4.0-prerelease.11",
88
88
  "@schematics/angular": "~17.3.0",
89
89
  "@stylistic/eslint-plugin-ts": "^1.5.4",
90
90
  "@types/inquirer": "~8.2.10",
@@ -1,4 +1,6 @@
1
1
  export * from './add-dev-dependency';
2
2
  export * from './interfaces';
3
+ export * from './npm-exec';
3
4
  export * from './npm-install';
5
+ export * from './npm-run';
4
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tasks/package-manager/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tasks/package-manager/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC"}
@@ -3,5 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./add-dev-dependency"), exports);
5
5
  tslib_1.__exportStar(require("./interfaces"), exports);
6
+ tslib_1.__exportStar(require("./npm-exec"), exports);
6
7
  tslib_1.__exportStar(require("./npm-install"), exports);
8
+ tslib_1.__exportStar(require("./npm-run"), exports);
7
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tasks/package-manager/index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC;AACrC,uDAA6B;AAC7B,wDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tasks/package-manager/index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC;AACrC,uDAA6B;AAC7B,qDAA2B;AAC3B,wDAA8B;AAC9B,oDAA0B"}
@@ -0,0 +1,14 @@
1
+ import { TaskConfiguration, TaskConfigurationGenerator } from '@angular-devkit/schematics';
2
+ import { NodePackageTaskOptions } from '@angular-devkit/schematics/tasks/package-manager/options';
3
+ /**
4
+ * Configuration used to run an Npm binary during schematics execution
5
+ * Note that this only works if the necessary files are created on the disk (doesn't work on tree)
6
+ */
7
+ export declare class NpmExecTask implements TaskConfigurationGenerator<NodePackageTaskOptions> {
8
+ private readonly script;
9
+ private readonly args;
10
+ private readonly workingDirectory?;
11
+ constructor(script: string, args?: string[], workingDirectory?: string | undefined);
12
+ toConfiguration(): TaskConfiguration<NodePackageTaskOptions>;
13
+ }
14
+ //# sourceMappingURL=npm-exec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"npm-exec.d.ts","sourceRoot":"","sources":["../../../../src/tasks/package-manager/npm-exec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAC3F,OAAO,EAAmB,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AAGnH;;;GAGG;AACH,qBAAa,WAAY,YAAW,0BAA0B,CAAC,sBAAsB,CAAC;IAExE,OAAO,CAAC,QAAQ,CAAC,MAAM;IAAU,OAAO,CAAC,QAAQ,CAAC,IAAI;IAAiB,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC;gBAAxF,MAAM,EAAE,MAAM,EAAmB,IAAI,GAAE,MAAM,EAAO,EAAmB,gBAAgB,CAAC,oBAAQ;IAEtH,eAAe,IAAI,iBAAiB,CAAC,sBAAsB,CAAC;CAYpE"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NpmExecTask = void 0;
4
+ const options_1 = require("@angular-devkit/schematics/tasks/package-manager/options");
5
+ const package_manager_runner_1 = require("../../utility/package-manager-runner");
6
+ /**
7
+ * Configuration used to run an Npm binary during schematics execution
8
+ * Note that this only works if the necessary files are created on the disk (doesn't work on tree)
9
+ */
10
+ class NpmExecTask {
11
+ constructor(script, args = [], workingDirectory) {
12
+ this.script = script;
13
+ this.args = args;
14
+ this.workingDirectory = workingDirectory;
15
+ }
16
+ toConfiguration() {
17
+ const packageManager = (0, package_manager_runner_1.getPackageManager)();
18
+ return {
19
+ name: options_1.NodePackageName,
20
+ options: {
21
+ command: 'exec',
22
+ packageName: `exec ${this.script} ${packageManager === 'npm' ? '-- ' : ''}${this.args.map((arg) => `"${arg}"`).join(' ')}`,
23
+ workingDirectory: this.workingDirectory,
24
+ packageManager
25
+ }
26
+ };
27
+ }
28
+ }
29
+ exports.NpmExecTask = NpmExecTask;
30
+ //# sourceMappingURL=npm-exec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"npm-exec.js","sourceRoot":"","sources":["../../../../src/tasks/package-manager/npm-exec.ts"],"names":[],"mappings":";;;AACA,sFAAmH;AACnH,iFAAyE;AAEzE;;;GAGG;AACH,MAAa,WAAW;IAEtB,YAA6B,MAAc,EAAmB,OAAiB,EAAE,EAAmB,gBAAyB;QAAhG,WAAM,GAAN,MAAM,CAAQ;QAAmB,SAAI,GAAJ,IAAI,CAAe;QAAmB,qBAAgB,GAAhB,gBAAgB,CAAS;IAAG,CAAC;IAE1H,eAAe;QACpB,MAAM,cAAc,GAAG,IAAA,0CAAiB,GAAE,CAAC;QAC3C,OAAO;YACL,IAAI,EAAE,yBAAe;YACrB,OAAO,EAAE;gBACP,OAAO,EAAE,MAAM;gBACf,WAAW,EAAE,QAAQ,IAAI,CAAC,MAAM,IAAI,cAAc,KAAK,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;gBAC1H,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;gBACvC,cAAc;aACf;SACF,CAAC;IACJ,CAAC;CACF;AAhBD,kCAgBC"}
@@ -0,0 +1,13 @@
1
+ import { TaskConfiguration, TaskConfigurationGenerator } from '@angular-devkit/schematics';
2
+ import { NodePackageTaskOptions } from '@angular-devkit/schematics/tasks/package-manager/options';
3
+ /**
4
+ * Configuration used to run an Npm script during schematics execution
5
+ * Note that this only works if the necessary files are created on the disk (doesn't work on tree)
6
+ */
7
+ export declare class NpmRunTask implements TaskConfigurationGenerator<NodePackageTaskOptions> {
8
+ private readonly script;
9
+ private readonly workingDirectory?;
10
+ constructor(script: string, workingDirectory?: string | undefined);
11
+ toConfiguration(): TaskConfiguration<NodePackageTaskOptions>;
12
+ }
13
+ //# sourceMappingURL=npm-run.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"npm-run.d.ts","sourceRoot":"","sources":["../../../../src/tasks/package-manager/npm-run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAC3F,OAAO,EAAmB,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AAGnH;;;GAGG;AACH,qBAAa,UAAW,YAAW,0BAA0B,CAAC,sBAAsB,CAAC;IAEvE,OAAO,CAAC,QAAQ,CAAC,MAAM;IAAU,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC;gBAAlD,MAAM,EAAE,MAAM,EAAmB,gBAAgB,CAAC,oBAAQ;IAEhF,eAAe,IAAI,iBAAiB,CAAC,sBAAsB,CAAC;CAWpE"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NpmRunTask = void 0;
4
+ const options_1 = require("@angular-devkit/schematics/tasks/package-manager/options");
5
+ const package_manager_runner_1 = require("../../utility/package-manager-runner");
6
+ /**
7
+ * Configuration used to run an Npm script during schematics execution
8
+ * Note that this only works if the necessary files are created on the disk (doesn't work on tree)
9
+ */
10
+ class NpmRunTask {
11
+ constructor(script, workingDirectory) {
12
+ this.script = script;
13
+ this.workingDirectory = workingDirectory;
14
+ }
15
+ toConfiguration() {
16
+ return {
17
+ name: options_1.NodePackageName,
18
+ options: {
19
+ command: 'run',
20
+ packageName: `run ${this.script}`,
21
+ workingDirectory: this.workingDirectory,
22
+ packageManager: (0, package_manager_runner_1.getPackageManager)()
23
+ }
24
+ };
25
+ }
26
+ }
27
+ exports.NpmRunTask = NpmRunTask;
28
+ //# sourceMappingURL=npm-run.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"npm-run.js","sourceRoot":"","sources":["../../../../src/tasks/package-manager/npm-run.ts"],"names":[],"mappings":";;;AACA,sFAAmH;AACnH,iFAAyE;AAEzE;;;GAGG;AACH,MAAa,UAAU;IAErB,YAA6B,MAAc,EAAmB,gBAAyB;QAA1D,WAAM,GAAN,MAAM,CAAQ;QAAmB,qBAAgB,GAAhB,gBAAgB,CAAS;IAAG,CAAC;IAEpF,eAAe;QACpB,OAAO;YACL,IAAI,EAAE,yBAAe;YACrB,OAAO,EAAE;gBACP,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,OAAO,IAAI,CAAC,MAAM,EAAE;gBACjC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;gBACvC,cAAc,EAAE,IAAA,0CAAiB,GAAE;aACpC;SACF,CAAC;IACJ,CAAC;CACF;AAfD,gCAeC"}