build(aio): do not fail on bad examples when running docs-watch
This commit is contained in:

committed by
Victor Berchet

parent
9b579d85be
commit
bc52e97eba
@ -18,7 +18,7 @@ const { CONTENTS_PATH, GUIDE_EXAMPLES_PATH } = require('../config');
|
||||
module.exports = new Package('angular-content', [basePackage, contentPackage])
|
||||
|
||||
// Where do we get the source files?
|
||||
.config(function(readFilesProcessor, collectExamples) {
|
||||
.config(function(readFilesProcessor, collectExamples, renderExamples) {
|
||||
|
||||
const gitignoreFilePath = path.resolve(GUIDE_EXAMPLES_PATH, '.gitignore');
|
||||
const gitignoreFile = fs.readFileSync(gitignoreFilePath, 'utf8');
|
||||
@ -81,6 +81,8 @@ module.exports = new Package('angular-content', [basePackage, contentPackage])
|
||||
|
||||
collectExamples.exampleFolders.push('examples');
|
||||
collectExamples.registerIgnoredExamples(ignoredExamplePaths, gitignoreFilePath);
|
||||
|
||||
renderExamples.ignoreBrokenExamples = true;
|
||||
})
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user