build(docs-infra): switch docs examples to Ivy (#36143)

The docs examples are switched to Ivy. On CI, the tests are run with
both Ivy and ViewEngine.

Partially addresses:
[FW-1609](https://angular-team.atlassian.net/browse/FW-1609)

PR Close #36143
This commit is contained in:
George Kalpakas
2020-04-06 22:57:58 +03:00
committed by Kara Erickson
parent 068e28381d
commit f4ee067cb8
23 changed files with 146 additions and 121 deletions

View File

@ -20,7 +20,6 @@
]
},
"angularCompilerOptions": {
"enableIvy": false,
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true
}

View File

@ -1,33 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./out-tsc/app",
"types": []
},
"files": [
"src/main.ts",
"src/polyfills.ts"
],
"include": [
"src/**/*.d.ts"
],
"exclude": [
"src/test.ts",
"src/**/*.spec.ts",
"src/**/*-specs.ts",
"src/**/*.avoid.ts",
"src/**/*.0.ts",
"src/**/*.1.ts",
"src/**/*.1b.ts",
"src/**/*.2.ts",
"src/**/*.3.ts",
"src/**/*.4.ts",
"src/**/*.5.ts",
"src/**/*.6.ts",
"src/**/*.7.ts",
"src/**/testing"
],
"angularCompilerOptions": {
"enableIvy": true
}
}

View File

@ -0,0 +1,27 @@
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"module": "esnext",
"moduleResolution": "node",
"importHelpers": true,
"target": "es2015",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2018",
"dom"
]
},
"angularCompilerOptions": {
"enableIvy": false,
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true
}
}

View File

@ -5,7 +5,7 @@ import uglify from 'rollup-plugin-uglify'
//paths are relative to the execution path
export default {
input: 'app/main.js',
input: 'app/main-aot.js',
output: {
file: 'aot/dist/build.js', // output a single application bundle
format: 'iife',
@ -13,7 +13,7 @@ export default {
sourcemapFile: 'aot/dist/build.js.map'
},
plugins: [
nodeResolve({ jsnext: true, module: true }),
nodeResolve({jsnext: true, module: true}),
commonjs({
include: ['node_modules/rxjs/**']
}),

View File

@ -7,24 +7,23 @@
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [
"es2018",
"es2015",
"dom"
],
"removeComments": false,
"noImplicitAny": true,
"skipLibCheck": true,
"suppressImplicitAnyIndexErrors": true,
"importHelpers": true,
"typeRoots": [
"node_modules/@types"
]
},
"files": [
"app/app.module.ts",
"app/main.ts"
"app/main-aot.ts"
],
"angularCompilerOptions": {
"skipMetadataEmit": true,
"enableIvy": true
"enableIvy": false,
"skipMetadataEmit": true
}
}