Skip to content

Commit

Permalink
build(dgeni): log runtime errors (#3040)
Browse files Browse the repository at this point in the history
  • Loading branch information
griest024 authored Aug 27, 2024
1 parent 525ce39 commit 2a3cf26
Showing 1 changed file with 32 additions and 8 deletions.
40 changes: 32 additions & 8 deletions tools/dgeni/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,42 @@ rimraf('../../dist/docs/*', { glob: true }).then(() => {
new Dgeni([apiDocs]).generate().then(() => {
// base docs
Promise.all([
new Dgeni([packageDocsPackage]).generate().catch(() => process.exit(1)),
new Dgeni([guideDocsPackage]).generate().catch(() => process.exit(1)),
new Dgeni([explanationDocsPackage]).generate().catch(() => process.exit(1)),
new Dgeni([packageDocsPackage]).generate().catch((err) => {
console.log(err);
process.exit(1);
}),
new Dgeni([guideDocsPackage]).generate().catch((err) => {
console.log(err);
process.exit(1);
}),
new Dgeni([explanationDocsPackage]).generate().catch((err) => {
console.log(err);
process.exit(1);
}),
]).then(() => {
// design docs
// run them after base docs so that config between shared processors does not conflict
// a design flaw of dgeni, it wasn't meant to be run in parallel
new Dgeni([designApiPackage]).generate().then(() => {
new Dgeni([designDocsPackage]).generate().catch(() => process.exit(1));
new Dgeni([designExamplePackage]).generate().catch(() => process.exit(1));
}).catch(() => process.exit(1));
}).catch(() => process.exit(1));
new Dgeni([designDocsPackage]).generate().catch((err) => {
console.log(err);
process.exit(1);
});
new Dgeni([designExamplePackage]).generate().catch((err) => {
console.log(err);
process.exit(1);
});
}).catch((err) => {
console.log(err);
process.exit(1);
});
}).catch((err) => {
console.log(err);
process.exit(1);
});

}).catch(() => process.exit(1));
}).catch((err) => {
console.log(err);
process.exit(1);
});
});

0 comments on commit 2a3cf26

Please sign in to comment.