Skip to content

Commit c85e75e

Browse files
committed
Fix building docs status updates with npm run build
1 parent f151f11 commit c85e75e

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

tools/build.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ const argv = yargs
2525

2626
setExecOptions(argv);
2727

28+
function forkAndBuildDocs(fork) {
29+
console.log('Building: '.cyan + 'docs'.green);
30+
31+
let options = argv.verbose ? ' -- --verbose' : '';
32+
33+
return exec(`npm run docs-build${options}`)
34+
.then(() => console.log('Built: '.cyan + 'docs'.green));
35+
}
36+
2837
export default function Build(noExitOnFailure) {
2938
if (argv.docsOnly) {
3039
return docs();
@@ -33,7 +42,7 @@ export default function Build(noExitOnFailure) {
3342
lib(),
3443
bower(),
3544
dist(),
36-
exec(`npm run docs-build`)
45+
forkAndBuildDocs()
3746
])
3847
.then(() => copy(distRoot, bowerRoot));
3948

0 commit comments

Comments
 (0)