@lage-run/target-graph
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -5,3 +5,18 @@ { | ||
{ | ||
"date": "Mon, 03 Oct 2022 19:57:12 GMT", | ||
"date": "Thu, 20 Oct 2022 00:22:08 GMT", | ||
"tag": "@lage-run/target-graph_v0.4.3", | ||
"version": "0.4.3", | ||
"comments": { | ||
"patch": [ | ||
{ | ||
"author": "kchau@microsoft.com", | ||
"package": "@lage-run/target-graph", | ||
"commit": "9b6f27c0d2684f5bdcba0591ca2eb323e00c5529", | ||
"comment": "introducing maxWorkers, shards, and environmentGlob as target configs (shards is a future feature)" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Mon, 03 Oct 2022 19:57:28 GMT", | ||
"tag": "@lage-run/target-graph_v0.4.2", | ||
@@ -8,0 +23,0 @@ "version": "0.4.2", |
# Change Log - @lage-run/target-graph | ||
This log was last generated on Mon, 03 Oct 2022 19:57:12 GMT and should not be manually modified. | ||
This log was last generated on Thu, 20 Oct 2022 00:22:08 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## 0.4.3 | ||
Thu, 20 Oct 2022 00:22:08 GMT | ||
### Patches | ||
- introducing maxWorkers, shards, and environmentGlob as target configs (shards is a future feature) (kchau@microsoft.com) | ||
## 0.4.2 | ||
Mon, 03 Oct 2022 19:57:12 GMT | ||
Mon, 03 Oct 2022 19:57:28 GMT | ||
@@ -11,0 +19,0 @@ ### Patches |
@@ -49,3 +49,3 @@ "use strict"; | ||
var _a; | ||
const { options, dependsOn, deps, inputs, outputs, priority, run } = config; | ||
const { options, dependsOn, deps, inputs, outputs, priority, maxWorkers, environmentGlob, shards } = config; | ||
const { task } = (0, targetId_1.getPackageAndTask)(id); | ||
@@ -68,3 +68,5 @@ const targetId = (0, targetId_1.getTargetId)(undefined, task); | ||
priority, | ||
run, | ||
maxWorkers, | ||
environmentGlob, | ||
shards, | ||
options, | ||
@@ -82,3 +84,3 @@ }; | ||
var _a; | ||
const { options, dependsOn, deps, cache, inputs, outputs, priority, run } = config; | ||
const { options, dependsOn, deps, cache, inputs, outputs, priority, maxWorkers, environmentGlob, shards } = config; | ||
const info = this.packageInfos[packageName]; | ||
@@ -99,3 +101,5 @@ return { | ||
priority, | ||
run, | ||
maxWorkers, | ||
environmentGlob, | ||
shards, | ||
options, | ||
@@ -102,0 +106,0 @@ }; |
@@ -46,2 +46,14 @@ export interface Target { | ||
/** | ||
* An optional override of environmentGlob for cases when targets that need different patterns | ||
*/ | ||
environmentGlob?: string[]; | ||
/** | ||
* How many workers to dedicate to this task type | ||
*/ | ||
maxWorkers?: number; | ||
/** | ||
* How many shards to split tasks into | ||
*/ | ||
shards?: number; | ||
/** | ||
* Run options for the Target | ||
@@ -54,6 +66,2 @@ */ | ||
hidden?: boolean; | ||
/** | ||
* Custom run definition, if left blank, the scheduler will decide which runner to use to fulfill the work for the `Target` | ||
*/ | ||
run?: (target: Target) => Promise<void> | void; | ||
} |
@@ -1,2 +0,1 @@ | ||
import type { Target } from "./Target"; | ||
/** | ||
@@ -46,9 +45,17 @@ * Target configuration - to be used inside `lage.config.js` options.pipeline configurations | ||
/** | ||
* Run options for the Target. (e.g. `{ env: ...process.env, colors: true, ... }`) | ||
* An optional override of environmentGlob for cases when targets that need different patterns | ||
*/ | ||
options?: Record<string, any>; | ||
environmentGlob?: string[]; | ||
/** | ||
* Custom run definition, if left blank, the scheduler will decide which runner to use to fulfill the work for the `Target` | ||
* How many workers to dedicate to this task type | ||
*/ | ||
run?: (target: Target) => Promise<void> | void; | ||
maxWorkers?: number; | ||
/** | ||
* How many shards to split tasks into | ||
*/ | ||
shards?: number; | ||
/** | ||
* Run options for the Target Runner. (e.g. `{ env: ...process.env, colors: true, ... }`) | ||
*/ | ||
options?: Record<string, any>; | ||
} |
{ | ||
"name": "@lage-run/target-graph", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "Target for Lage", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
65755
1196