From 40705f33664129c096ee0dc3a01bb5457a6e89dd Mon Sep 17 00:00:00 2001 From: Santosh Yadav Date: Mon, 15 Jul 2019 23:07:25 +0530 Subject: [PATCH] docs: include svg files in stackblitz and download examples (#31559) Fixes #31537 PR Close #31559 --- .../examples/built-in-directives/src/assets/potted-plant.svg | 1 - aio/tools/example-zipper/exampleZipper.js | 2 +- aio/tools/stackblitz-builder/builder.js | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 aio/content/examples/built-in-directives/src/assets/potted-plant.svg diff --git a/aio/content/examples/built-in-directives/src/assets/potted-plant.svg b/aio/content/examples/built-in-directives/src/assets/potted-plant.svg deleted file mode 100644 index 871a2096c4..0000000000 --- a/aio/content/examples/built-in-directives/src/assets/potted-plant.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/aio/tools/example-zipper/exampleZipper.js b/aio/tools/example-zipper/exampleZipper.js index 00d713428a..15de1f46a8 100644 --- a/aio/tools/example-zipper/exampleZipper.js +++ b/aio/tools/example-zipper/exampleZipper.js @@ -82,7 +82,7 @@ class ExampleZipper { const exampleDirName = path.dirname(configFileName); const outputFileName = path.join(outputDirName, relativeDirName, exampleZipName + '.zip'); - let defaultIncludes = ['**/*.ts', '**/*.js', '**/*.es6', '**/*.css', '**/*.html', '**/*.md', '**/*.json', '**/*.png']; + let defaultIncludes = ['**/*.ts', '**/*.js', '**/*.es6', '**/*.css', '**/*.html', '**/*.md', '**/*.json', '**/*.png', '**/*.svg']; let alwaysIncludes = [ 'bs-config.json', 'e2e/protractor.conf.js', diff --git a/aio/tools/stackblitz-builder/builder.js b/aio/tools/stackblitz-builder/builder.js index 00da191c95..b32f29b6e9 100644 --- a/aio/tools/stackblitz-builder/builder.js +++ b/aio/tools/stackblitz-builder/builder.js @@ -249,7 +249,7 @@ class StackblitzBuilder { throw new Error(`Stackblitz config - unable to parse json file: ${configFileName}\n${e}`); } - var defaultIncludes = ['**/*.ts', '**/*.js', '**/*.css', '**/*.html', '**/*.md', '**/*.json', '**/*.png']; + var defaultIncludes = ['**/*.ts', '**/*.js', '**/*.css', '**/*.html', '**/*.md', '**/*.json', '**/*.png', '**/*.svg']; var boilerplateIncludes = ['src/environments/*.*', 'angular.json', 'src/polyfills.ts']; if (config.files) { if (config.files.length > 0) {