build(aio): don't process unnecessary example files in doc-gen

This lowers the `yarn docs` processing time by about 40% (from 50 secs
to 30 secs).
This commit is contained in:
Peter Bacon Darwin 2017-03-20 07:03:17 +00:00 committed by Miško Hevery
parent b0a7bc77ee
commit 2eb027a793
1 changed files with 21 additions and 0 deletions

View File

@ -118,6 +118,27 @@ module.exports =
{
basePath: CONTENTS_PATH,
include: CONTENTS_PATH + '/examples/**/*',
exclude: [
'**/*plnkr.no-link.html',
'**/node_modules/**',
// _boilerplate files
'**/_boilerplate/**',
'**/*/src/styles.css',
'**/*/src/systemjs-angular-loader.js',
'**/*/src/systemjs.config.js',
'**/*/src/tsconfig.json',
'**/*/bs-config.e2e.json',
'**/*/bs-config.json',
'**/*/package.json',
'**/*/tslint.json',
// example files
'**/_test-output',
'**/protractor-helpers.js',
'**/e2e-spec.js',
'**/ts/**/*.js',
'**/js-es6*/**/*.js',
'**/ts-snippets/**/*.js',
],
fileReader: 'exampleFileReader'
},
{