Skip to content

Commit 91dd53a

Browse files
committed
extended faucetDispatch to report completion of the initial build
this allows independent API consumers to perform operations at the end of the pipeline
1 parent 1c9c78f commit 91dd53a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = async function faucetDispatch(referenceDir, config,
3636
then(buildStep(buckets.scripts.concat(buckets.styles))).
3737
then(buildStep(buckets.markup));
3838
});
39-
runner.run();
39+
let res = runner.run();
4040

4141
if(watch) {
4242
makeWatcher(config.watchDirs, referenceDir).
@@ -53,6 +53,8 @@ module.exports = async function faucetDispatch(referenceDir, config,
5353
} else if(liveserve) {
5454
server.live(liveserve, assetManager.manifest.webRoot);
5555
}
56+
57+
return res; // notifies consumers once the initial build has completed
5658
};
5759

5860
function buildStep(plugins) {

0 commit comments

Comments
 (0)