|
@@ -181,12 +181,14 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
async executeStage(step) {
|
|
async executeStage(step) {
|
|
|
STAGES[step].sync.forEach(task => {
|
|
STAGES[step].sync.forEach(task => {
|
|
|
// const startTime = Date.now();
|
|
// const startTime = Date.now();
|
|
|
|
|
+ // console.log(task.action, "...");
|
|
|
this.executeTask(task, !step);
|
|
this.executeTask(task, !step);
|
|
|
// console.log(task.action, Date.now() - startTime);
|
|
// console.log(task.action, Date.now() - startTime);
|
|
|
});
|
|
});
|
|
|
if (STAGES[step].async) {
|
|
if (STAGES[step].async) {
|
|
|
return Promise.all(STAGES[step].async.map(task => {
|
|
return Promise.all(STAGES[step].async.map(task => {
|
|
|
// const startTime = Date.now();
|
|
// const startTime = Date.now();
|
|
|
|
|
+ // console.log(task.action, "...");
|
|
|
const promise = this.executeTask(task, !step);
|
|
const promise = this.executeTask(task, !step);
|
|
|
// promise.then(() => console.log(task.action, Date.now() - startTime));
|
|
// promise.then(() => console.log(task.action, Date.now() - startTime));
|
|
|
return promise;
|
|
return promise;
|