Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

Build apps in sequence when parallel=false #2

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

digitil
Copy link

@digitil digitil commented Feb 20, 2017

No description provided.

@digitil digitil changed the title Build apps in sequence when parallel=false #1 Build apps in sequence when parallel=false Feb 20, 2017
@digitil
Copy link
Author

digitil commented Feb 20, 2017

Fixes #1

I changed the mechanism for determining when a bundle is finished from events to promises and used the promise chain to ensure that these are always called in sequence

if (onDone) {
execOnDoneAfterFinished(map('bundle', bundles));
}
bundles.forEach(bundlerTools.writeBundle);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this forEach meant that writeBundle would be called (almost) concurrently for all bundles, which could be many

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant