@angular-devkit/architect 0.1801.0-next.0 → 0.1801.0-next.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/builders/all-of.d.ts +1 -1
- package/builders/all-of.js +1 -1
- package/builders/concat.d.ts +1 -1
- package/builders/concat.js +1 -1
- package/builders/false.d.ts +1 -1
- package/builders/false.js +1 -1
- package/builders/true.d.ts +1 -1
- package/builders/true.js +1 -1
- package/node/index.d.ts +1 -1
- package/node/index.js +1 -1
- package/node/jobs/job-registry.d.ts +1 -1
- package/node/jobs/job-registry.js +1 -1
- package/node/node-modules-architect-host.d.ts +1 -2
- package/node/node-modules-architect-host.js +3 -3
- package/package.json +12 -3
- package/src/api.d.ts +1 -1
- package/src/api.js +7 -7
- package/src/architect.d.ts +1 -1
- package/src/architect.js +1 -1
- package/src/create-builder.d.ts +1 -1
- package/src/create-builder.js +2 -3
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/src/internal.d.ts +1 -1
- package/src/internal.js +1 -1
- package/src/jobs/api.d.ts +1 -1
- package/src/jobs/api.js +3 -3
- package/src/jobs/create-job-handler.d.ts +1 -1
- package/src/jobs/create-job-handler.js +5 -5
- package/src/jobs/dispatcher.d.ts +1 -1
- package/src/jobs/dispatcher.js +2 -3
- package/src/jobs/exception.d.ts +1 -1
- package/src/jobs/exception.js +1 -1
- package/src/jobs/fallback-registry.d.ts +1 -1
- package/src/jobs/fallback-registry.js +1 -1
- package/src/jobs/index.d.ts +1 -1
- package/src/jobs/index.js +1 -1
- package/src/jobs/simple-registry.d.ts +1 -1
- package/src/jobs/simple-registry.js +1 -1
- package/src/jobs/simple-scheduler.d.ts +1 -1
- package/src/jobs/simple-scheduler.js +1 -1
- package/src/jobs/strategy.d.ts +1 -1
- package/src/jobs/strategy.js +4 -5
- package/src/jobs/types.d.ts +1 -1
- package/src/jobs/types.js +1 -1
- package/src/schedule-by-name.d.ts +1 -1
- package/src/schedule-by-name.js +3 -4
- package/testing/index.d.ts +1 -1
- package/testing/index.js +1 -1
- package/testing/test-project-host.d.ts +1 -3
- package/testing/test-project-host.js +1 -1
- package/testing/testing-architect-host.d.ts +1 -1
- package/testing/testing-architect-host.js +1 -1
package/builders/all-of.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { json } from '@angular-devkit/core';
|
|
9
9
|
import { Schema as OperatorSchema } from './operator-schema';
|
package/builders/all-of.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
const rxjs_1 = require("rxjs");
|
package/builders/concat.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { json } from '@angular-devkit/core';
|
|
9
9
|
import { Schema as OperatorSchema } from './operator-schema';
|
package/builders/concat.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
const rxjs_1 = require("rxjs");
|
package/builders/false.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
declare const _default: import("../src/internal").Builder<import("../../core/src").JsonObject>;
|
|
9
9
|
export default _default;
|
package/builders/false.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
const src_1 = require("../src");
|
package/builders/true.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
declare const _default: import("../src/internal").Builder<import("../../core/src").JsonObject>;
|
|
9
9
|
export default _default;
|
package/builders/true.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
const src_1 = require("../src");
|
package/node/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import * as jobs from './jobs/job-registry';
|
|
9
9
|
export * from './node-modules-architect-host';
|
package/node/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { jobs } from '@angular-devkit/architect';
|
|
9
9
|
import { JsonValue } from '@angular-devkit/core';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.NodeModuleJobRegistry = void 0;
|
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
-
/// <reference types="node" />
|
|
9
8
|
import { json, workspaces } from '@angular-devkit/core';
|
|
10
9
|
import { BuilderInfo } from '../src';
|
|
11
10
|
import { Target } from '../src/input-schema';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
@@ -30,7 +30,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
30
30
|
return result;
|
|
31
31
|
};
|
|
32
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
-
exports.
|
|
33
|
+
exports.WorkspaceNodeModulesArchitectHost = void 0;
|
|
34
|
+
exports.loadEsmModule = loadEsmModule;
|
|
34
35
|
const node_fs_1 = require("node:fs");
|
|
35
36
|
const node_module_1 = require("node:module");
|
|
36
37
|
const path = __importStar(require("node:path"));
|
|
@@ -234,7 +235,6 @@ function loadEsmModule(modulePath) {
|
|
|
234
235
|
load ??= new Function('modulePath', `return import(modulePath);`);
|
|
235
236
|
return load(modulePath);
|
|
236
237
|
}
|
|
237
|
-
exports.loadEsmModule = loadEsmModule;
|
|
238
238
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
239
239
|
async function getBuilder(builderPath) {
|
|
240
240
|
switch (path.extname(builderPath)) {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/architect",
|
|
3
|
-
"version": "0.1801.0-next.
|
|
3
|
+
"version": "0.1801.0-next.2",
|
|
4
4
|
"description": "Angular Build Facade",
|
|
5
5
|
"experimental": true,
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"typings": "src/index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@angular-devkit/core": "18.1.0-next.
|
|
9
|
+
"@angular-devkit/core": "18.1.0-next.2",
|
|
10
10
|
"rxjs": "7.8.1"
|
|
11
11
|
},
|
|
12
12
|
"builders": "./builders/builders.json",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"devkit",
|
|
18
18
|
"sdk"
|
|
19
19
|
],
|
|
20
|
+
"packageManager": "yarn@4.2.2",
|
|
20
21
|
"repository": {
|
|
21
22
|
"type": "git",
|
|
22
23
|
"url": "https://github.com/angular/angular-cli.git"
|
|
@@ -31,5 +32,13 @@
|
|
|
31
32
|
"bugs": {
|
|
32
33
|
"url": "https://github.com/angular/angular-cli/issues"
|
|
33
34
|
},
|
|
34
|
-
"homepage": "https://github.com/angular/angular-cli"
|
|
35
|
+
"homepage": "https://github.com/angular/angular-cli",
|
|
36
|
+
"dependenciesMeta": {
|
|
37
|
+
"esbuild": {
|
|
38
|
+
"built": true
|
|
39
|
+
},
|
|
40
|
+
"puppeteer": {
|
|
41
|
+
"built": true
|
|
42
|
+
}
|
|
43
|
+
}
|
|
35
44
|
}
|
package/src/api.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { json, logging } from '@angular-devkit/core';
|
|
9
9
|
import { Observable, ObservableInput } from 'rxjs';
|
package/src/api.js
CHANGED
|
@@ -4,10 +4,15 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.BuilderProgressState = void 0;
|
|
11
|
+
exports.isBuilderOutput = isBuilderOutput;
|
|
12
|
+
exports.fromAsyncIterable = fromAsyncIterable;
|
|
13
|
+
exports.targetStringFromTarget = targetStringFromTarget;
|
|
14
|
+
exports.targetFromTargetString = targetFromTargetString;
|
|
15
|
+
exports.scheduleTargetAndForget = scheduleTargetAndForget;
|
|
11
16
|
const rxjs_1 = require("rxjs");
|
|
12
17
|
const progress_schema_1 = require("./progress-schema");
|
|
13
18
|
Object.defineProperty(exports, "BuilderProgressState", { enumerable: true, get: function () { return progress_schema_1.State; } });
|
|
@@ -21,13 +26,11 @@ function isBuilderOutput(obj) {
|
|
|
21
26
|
}
|
|
22
27
|
return typeof obj.success === 'boolean';
|
|
23
28
|
}
|
|
24
|
-
exports.isBuilderOutput = isBuilderOutput;
|
|
25
29
|
function fromAsyncIterable(iterable) {
|
|
26
30
|
return new rxjs_1.Observable((subscriber) => {
|
|
27
31
|
handleAsyncIterator(subscriber, iterable[Symbol.asyncIterator]()).then(() => subscriber.complete(), (error) => subscriber.error(error));
|
|
28
32
|
});
|
|
29
33
|
}
|
|
30
|
-
exports.fromAsyncIterable = fromAsyncIterable;
|
|
31
34
|
async function handleAsyncIterator(subscriber, iterator) {
|
|
32
35
|
const teardown = new Promise((resolve) => subscriber.add(() => resolve()));
|
|
33
36
|
try {
|
|
@@ -49,7 +52,6 @@ async function handleAsyncIterator(subscriber, iterator) {
|
|
|
49
52
|
function targetStringFromTarget({ project, target, configuration }) {
|
|
50
53
|
return `${project}:${target}${configuration !== undefined ? ':' + configuration : ''}`;
|
|
51
54
|
}
|
|
52
|
-
exports.targetStringFromTarget = targetStringFromTarget;
|
|
53
55
|
/**
|
|
54
56
|
* Return a Target tuple from a specifier string.
|
|
55
57
|
* Supports abbreviated target specifiers (examples: `::`, `::development`, or `:build:production`).
|
|
@@ -65,7 +67,6 @@ function targetFromTargetString(specifier, abbreviatedProjectName, abbreviatedTa
|
|
|
65
67
|
...(tuple[2] !== undefined && { configuration: tuple[2] }),
|
|
66
68
|
};
|
|
67
69
|
}
|
|
68
|
-
exports.targetFromTargetString = targetFromTargetString;
|
|
69
70
|
/**
|
|
70
71
|
* Schedule a target, and forget about its run. This will return an observable of outputs, that
|
|
71
72
|
* as a teardown will stop the target from running. This means that the Run object this returns
|
|
@@ -94,4 +95,3 @@ function scheduleTargetAndForget(context, target, overrides, scheduleOptions) {
|
|
|
94
95
|
};
|
|
95
96
|
})));
|
|
96
97
|
}
|
|
97
|
-
exports.scheduleTargetAndForget = scheduleTargetAndForget;
|
package/src/architect.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { json, logging } from '@angular-devkit/core';
|
|
9
9
|
import { Observable } from 'rxjs';
|
package/src/architect.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.Architect = void 0;
|
package/src/create-builder.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { json } from '@angular-devkit/core';
|
|
9
9
|
import { BuilderHandlerFn, BuilderOutput } from './api';
|
package/src/create-builder.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.createBuilder =
|
|
10
|
+
exports.createBuilder = createBuilder;
|
|
11
11
|
const core_1 = require("@angular-devkit/core");
|
|
12
12
|
const rxjs_1 = require("rxjs");
|
|
13
13
|
const api_1 = require("./api");
|
|
@@ -175,7 +175,6 @@ function createBuilder(fn) {
|
|
|
175
175
|
[internal_1.BuilderVersionSymbol]: require('../package.json').version,
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
|
-
exports.createBuilder = createBuilder;
|
|
179
178
|
function isAsyncIterable(obj) {
|
|
180
179
|
return !!obj && typeof obj[Symbol.asyncIterator] === 'function';
|
|
181
180
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import * as jobs from './jobs';
|
|
9
9
|
export * from './api';
|
package/src/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
package/src/internal.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { json } from '@angular-devkit/core';
|
|
9
9
|
import { BuilderInfo, BuilderInput, BuilderOutput, Target } from './api';
|
package/src/internal.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.BuilderVersionSymbol = exports.BuilderSymbol = void 0;
|
package/src/jobs/api.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { JsonObject, JsonValue, schema } from '@angular-devkit/core';
|
|
9
9
|
import { Observable, Observer } from 'rxjs';
|
package/src/jobs/api.js
CHANGED
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.JobState = exports.JobOutboundMessageKind = exports.JobInboundMessageKind = void 0;
|
|
11
|
+
exports.isJobHandler = isJobHandler;
|
|
11
12
|
/**
|
|
12
13
|
* Messages that can be sent TO a job. The job needs to listen to those.
|
|
13
14
|
*/
|
|
@@ -70,4 +71,3 @@ function isJobHandler(value) {
|
|
|
70
71
|
const job = value;
|
|
71
72
|
return (typeof job == 'function' && typeof job.jobDescription == 'object' && job.jobDescription !== null);
|
|
72
73
|
}
|
|
73
|
-
exports.isJobHandler = isJobHandler;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { BaseException, JsonValue, logging } from '@angular-devkit/core';
|
|
9
9
|
import { Observable, Observer } from 'rxjs';
|
|
@@ -4,10 +4,13 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.ChannelAlreadyExistException = void 0;
|
|
11
|
+
exports.createJobHandler = createJobHandler;
|
|
12
|
+
exports.createJobFactory = createJobFactory;
|
|
13
|
+
exports.createLoggerJob = createLoggerJob;
|
|
11
14
|
const core_1 = require("@angular-devkit/core");
|
|
12
15
|
const rxjs_1 = require("rxjs");
|
|
13
16
|
const api_1 = require("./api");
|
|
@@ -116,7 +119,6 @@ function createJobHandler(fn, options = {}) {
|
|
|
116
119
|
};
|
|
117
120
|
return Object.assign(handler, { jobDescription: options });
|
|
118
121
|
}
|
|
119
|
-
exports.createJobHandler = createJobHandler;
|
|
120
122
|
/**
|
|
121
123
|
* Lazily create a job using a function.
|
|
122
124
|
* @param loader A factory function that returns a promise/observable of a JobHandler.
|
|
@@ -128,7 +130,6 @@ function createJobFactory(loader, options = {}) {
|
|
|
128
130
|
};
|
|
129
131
|
return Object.assign(handler, { jobDescription: options });
|
|
130
132
|
}
|
|
131
|
-
exports.createJobFactory = createJobFactory;
|
|
132
133
|
/**
|
|
133
134
|
* Creates a job that logs out input/output messages of another Job. The messages are still
|
|
134
135
|
* propagated to the other job.
|
|
@@ -142,4 +143,3 @@ function createLoggerJob(job, logger) {
|
|
|
142
143
|
};
|
|
143
144
|
return Object.assign(handler, job);
|
|
144
145
|
}
|
|
145
|
-
exports.createLoggerJob = createLoggerJob;
|
package/src/jobs/dispatcher.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { JsonValue } from '@angular-devkit/core';
|
|
9
9
|
import { JobDescription, JobHandler, JobName } from './api';
|
package/src/jobs/dispatcher.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.createDispatcher =
|
|
10
|
+
exports.createDispatcher = createDispatcher;
|
|
11
11
|
const api_1 = require("./api");
|
|
12
12
|
const exception_1 = require("./exception");
|
|
13
13
|
/**
|
|
@@ -47,4 +47,3 @@ function createDispatcher(options = {}) {
|
|
|
47
47
|
// TODO: Remove return-only generic from createDispatcher() API.
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
exports.createDispatcher = createDispatcher;
|
package/src/jobs/exception.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { BaseException } from '@angular-devkit/core';
|
|
9
9
|
import { JobName } from './api';
|
package/src/jobs/exception.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.JobDoesNotExistException = exports.JobNameAlreadyRegisteredException = void 0;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { JsonValue } from '@angular-devkit/core';
|
|
9
9
|
import { Observable } from 'rxjs';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.FallbackRegistry = void 0;
|
package/src/jobs/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import * as strategy from './strategy';
|
|
9
9
|
export * from './api';
|
package/src/jobs/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { JsonValue } from '@angular-devkit/core';
|
|
9
9
|
import { Observable } from 'rxjs';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.SimpleJobRegistry = void 0;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { JsonValue, schema } from '@angular-devkit/core';
|
|
9
9
|
import { Observable } from 'rxjs';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.SimpleScheduler = exports.JobOutputSchemaValidationError = exports.JobInboundMessageSchemaValidationError = exports.JobArgumentSchemaValidationError = void 0;
|
package/src/jobs/strategy.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { JsonValue } from '@angular-devkit/core';
|
|
9
9
|
import { JobDescription, JobHandler } from './api';
|
package/src/jobs/strategy.js
CHANGED
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.serialize = serialize;
|
|
11
|
+
exports.reuse = reuse;
|
|
12
|
+
exports.memoize = memoize;
|
|
11
13
|
const core_1 = require("@angular-devkit/core");
|
|
12
14
|
const rxjs_1 = require("rxjs");
|
|
13
15
|
const api_1 = require("./api");
|
|
@@ -27,7 +29,6 @@ function serialize() {
|
|
|
27
29
|
});
|
|
28
30
|
};
|
|
29
31
|
}
|
|
30
|
-
exports.serialize = serialize;
|
|
31
32
|
/**
|
|
32
33
|
* Creates a JobStrategy that will always reuse a running job, and restart it if the job ended.
|
|
33
34
|
* @param replayMessages Replay ALL messages if a job is reused, otherwise just hook up where it
|
|
@@ -62,7 +63,6 @@ function reuse(replayMessages = false) {
|
|
|
62
63
|
return Object.assign(newHandler, handler, options || {});
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
|
-
exports.reuse = reuse;
|
|
66
66
|
/**
|
|
67
67
|
* Creates a JobStrategy that will reuse a running job if the argument matches.
|
|
68
68
|
* @param replayMessages Replay ALL messages if a job is reused, otherwise just hook up where it
|
|
@@ -91,4 +91,3 @@ function memoize(replayMessages = false) {
|
|
|
91
91
|
return Object.assign(newHandler, handler, options || {});
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
|
-
exports.memoize = memoize;
|
package/src/jobs/types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
export type DeepReadonly<T> = T extends (infer R)[] ? DeepReadonlyArray<R> : T extends Function ? T : T extends object ? DeepReadonlyObject<T> : T;
|
|
9
9
|
export type DeepReadonlyArray<T> = Array<DeepReadonly<T>>;
|
package/src/jobs/types.js
CHANGED
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { json, logging } from '@angular-devkit/core';
|
|
9
9
|
import { BuilderRun, Target } from './api';
|
package/src/schedule-by-name.js
CHANGED
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.scheduleByName = scheduleByName;
|
|
11
|
+
exports.scheduleByTarget = scheduleByTarget;
|
|
11
12
|
const rxjs_1 = require("rxjs");
|
|
12
13
|
const api_1 = require("./api");
|
|
13
14
|
const jobs_1 = require("./jobs");
|
|
@@ -90,7 +91,6 @@ async function scheduleByName(name, buildOptions, options) {
|
|
|
90
91
|
},
|
|
91
92
|
};
|
|
92
93
|
}
|
|
93
|
-
exports.scheduleByName = scheduleByName;
|
|
94
94
|
async function scheduleByTarget(target, overrides, options) {
|
|
95
95
|
return scheduleByName(`{${(0, api_1.targetStringFromTarget)(target)}}`, overrides, {
|
|
96
96
|
...options,
|
|
@@ -98,4 +98,3 @@ async function scheduleByTarget(target, overrides, options) {
|
|
|
98
98
|
logger: options.logger,
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
|
-
exports.scheduleByTarget = scheduleByTarget;
|
package/testing/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
export * from './testing-architect-host';
|
|
9
9
|
export * from './test-project-host';
|
package/testing/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
@@ -3,10 +3,8 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
-
/// <reference types="node" />
|
|
9
|
-
/// <reference types="node" />
|
|
10
8
|
import { Path, PathFragment, virtualFs } from '@angular-devkit/core';
|
|
11
9
|
import { NodeJsSyncHost } from '@angular-devkit/core/node';
|
|
12
10
|
import { Stats } from 'fs';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.TestProjectHost = void 0;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { json } from '@angular-devkit/core';
|
|
9
9
|
import { BuilderInfo, Target } from '../src';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|