Skip to content

Commit 32b13bc

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 dae1cd5 commit 32b13bc

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@ faucet-pipeline-core version history
22
====================================
33

44

5+
v3.1.0
6+
------
7+
8+
_2025-10-29_
9+
10+
no significant changes for end users
11+
12+
notable changes for developers:
13+
14+
* `faucetDispatch` now has a return value which reports completion of the
15+
initial build
16+
17+
518
v3.0.0
619
------
720

lib/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ exports.faucetDispatch = 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).
@@ -55,6 +55,8 @@ exports.faucetDispatch = async function faucetDispatch(referenceDir, config,
5555
} else if(liveserve) {
5656
server.live(liveserve, assetManager.manifest.webRoot);
5757
}
58+
59+
return res; // notifies consumers once the initial build has completed
5860
};
5961

6062
function buildStep(plugins) {

0 commit comments

Comments
 (0)