fix(docs-infra): all examples should get Ivy boilerplate (#28757)
PR Close #28757
This commit is contained in:
parent
04a1923af7
commit
1e6ed52cba
|
@ -124,9 +124,10 @@ class ExampleBoilerPlate {
|
||||||
BOILERPLATE_PATHS.common.forEach(filePath => this.copyFile(BOILERPLATE_COMMON_BASE_PATH, exampleFolder, filePath));
|
BOILERPLATE_PATHS.common.forEach(filePath => this.copyFile(BOILERPLATE_COMMON_BASE_PATH, exampleFolder, filePath));
|
||||||
|
|
||||||
// Copy Ivy specific files
|
// Copy Ivy specific files
|
||||||
if (ivy && BOILERPLATE_PATHS.ivy[boilerPlateType]) {
|
if (ivy) {
|
||||||
const ivyBoilerPlateBasePath = path.resolve(BOILERPLATE_BASE_PATH, 'ivy', boilerPlateType);
|
const ivyBoilerPlateType = boilerPlateType === 'systemjs' ? 'systemjs' : 'cli';
|
||||||
BOILERPLATE_PATHS.ivy[boilerPlateType].forEach(filePath => this.copyFile(ivyBoilerPlateBasePath, exampleFolder, filePath));
|
const ivyBoilerPlateBasePath = path.resolve(BOILERPLATE_BASE_PATH, 'ivy', ivyBoilerPlateType);
|
||||||
|
BOILERPLATE_PATHS.ivy[ivyBoilerPlateType].forEach(filePath => this.copyFile(ivyBoilerPlateBasePath, exampleFolder, filePath));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,9 +23,6 @@ const IGNORED_EXAMPLES = [
|
||||||
const fixmeIvyExamples = [
|
const fixmeIvyExamples = [
|
||||||
// fixmeIvy('unknown') failed content projection and applied styles
|
// fixmeIvy('unknown') failed content projection and applied styles
|
||||||
'component-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)
|
// fixmeIvy('unknown') app fails at runtime due to missing external service (goog is undefined)
|
||||||
'i18n'
|
'i18n'
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue