From 2eb027a793ae8e67dbc1ed148ac99f50881c8268 Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Mon, 20 Mar 2017 07:03:17 +0000 Subject: [PATCH] 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). --- aio/transforms/angular.io-package/index.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/aio/transforms/angular.io-package/index.js b/aio/transforms/angular.io-package/index.js index dd76b4d4d9..b6e1a8045b 100644 --- a/aio/transforms/angular.io-package/index.js +++ b/aio/transforms/angular.io-package/index.js @@ -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' }, {