fmt
This commit is contained in:
parent
1ba0b8d182
commit
d3bc53a57a
1 changed files with 12 additions and 12 deletions
|
@ -1119,6 +1119,18 @@ const Release = task(`release`, async target => {
|
||||||
await target.need(ReleaseArchives, SampleImages, Pages, AmendReadme, ReleaseNotes, ChangeLog);
|
await target.need(ReleaseArchives, SampleImages, Pages, AmendReadme, ReleaseNotes, ChangeLog);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const ReleaseArchives = task(`release:archives`, async target => {
|
||||||
|
const [collectPlans] = await target.need(Version, CollectPlans, UtilScriptFiles);
|
||||||
|
|
||||||
|
let goals = [];
|
||||||
|
for (const [cgr, plan] of Object.entries(collectPlans)) {
|
||||||
|
if (!plan.inRelease) continue;
|
||||||
|
goals.push(ReleaseArchivesFor(cgr));
|
||||||
|
}
|
||||||
|
|
||||||
|
await target.need(goals);
|
||||||
|
});
|
||||||
|
|
||||||
const ReleaseArchivesFor = task.group(`release:archives-for`, async (target, cgr) => {
|
const ReleaseArchivesFor = task.group(`release:archives-for`, async (target, cgr) => {
|
||||||
const [version, collectPlans] = await target.need(Version, CollectPlans, UtilScriptFiles);
|
const [version, collectPlans] = await target.need(Version, CollectPlans, UtilScriptFiles);
|
||||||
const plan = collectPlans[cgr];
|
const plan = collectPlans[cgr];
|
||||||
|
@ -1139,18 +1151,6 @@ const ReleaseArchivesFor = task.group(`release:archives-for`, async (target, cgr
|
||||||
return archiveFiles;
|
return archiveFiles;
|
||||||
});
|
});
|
||||||
|
|
||||||
const ReleaseArchives = task(`release:archives`, async target => {
|
|
||||||
const [collectPlans] = await target.need(Version, CollectPlans, UtilScriptFiles);
|
|
||||||
|
|
||||||
let goals = [];
|
|
||||||
for (const [cgr, plan] of Object.entries(collectPlans)) {
|
|
||||||
if (!plan.inRelease) continue;
|
|
||||||
goals.push(ReleaseArchivesFor(cgr));
|
|
||||||
}
|
|
||||||
|
|
||||||
await target.need(goals);
|
|
||||||
});
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
////// Script Building //////
|
////// Script Building //////
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue