From 1e6ed52cbad3979f594dd43780aeae653befd6d6 Mon Sep 17 00:00:00 2001 From: Marc Laval Date: Fri, 15 Feb 2019 12:53:58 +0100 Subject: [PATCH] fix(docs-infra): all examples should get Ivy boilerplate (#28757) PR Close #28757 --- aio/tools/examples/example-boilerplate.js | 7 ++++--- aio/tools/examples/run-example-e2e.js | 3 --- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/aio/tools/examples/example-boilerplate.js b/aio/tools/examples/example-boilerplate.js index 53fecd1d2a..6268181bc6 100644 --- a/aio/tools/examples/example-boilerplate.js +++ b/aio/tools/examples/example-boilerplate.js @@ -124,9 +124,10 @@ class ExampleBoilerPlate { BOILERPLATE_PATHS.common.forEach(filePath => this.copyFile(BOILERPLATE_COMMON_BASE_PATH, exampleFolder, filePath)); // Copy Ivy specific files - if (ivy && BOILERPLATE_PATHS.ivy[boilerPlateType]) { - const ivyBoilerPlateBasePath = path.resolve(BOILERPLATE_BASE_PATH, 'ivy', boilerPlateType); - BOILERPLATE_PATHS.ivy[boilerPlateType].forEach(filePath => this.copyFile(ivyBoilerPlateBasePath, exampleFolder, filePath)); + if (ivy) { + const ivyBoilerPlateType = boilerPlateType === 'systemjs' ? 'systemjs' : 'cli'; + const ivyBoilerPlateBasePath = path.resolve(BOILERPLATE_BASE_PATH, 'ivy', ivyBoilerPlateType); + BOILERPLATE_PATHS.ivy[ivyBoilerPlateType].forEach(filePath => this.copyFile(ivyBoilerPlateBasePath, exampleFolder, filePath)); } }); } diff --git a/aio/tools/examples/run-example-e2e.js b/aio/tools/examples/run-example-e2e.js index 4049a2b1f3..91207ab776 100644 --- a/aio/tools/examples/run-example-e2e.js +++ b/aio/tools/examples/run-example-e2e.js @@ -23,9 +23,6 @@ const IGNORED_EXAMPLES = [ const fixmeIvyExamples = [ // fixmeIvy('unknown') failed content projection and applied styles 'component-styles', - // fixmeIvy('unknown') ERROR Error: Unable to find context associated with [object - // HTMLInputElement] - 'http', // fixmeIvy('unknown') app fails at runtime due to missing external service (goog is undefined) 'i18n' ];