fix(@schematics/angular): use enableIvy as true

Blocked on https://github.com/angular/angular/pull/28616
This commit is contained in:
Filipe Silva 2019-02-08 12:11:14 +00:00 committed by Minko Gechev
parent f03c44c841
commit becd2f53d5
2 changed files with 7 additions and 1 deletions

View File

@ -9,6 +9,6 @@
"**/*.spec.ts" "**/*.spec.ts"
]<% if (experimentalIvy) { %>, ]<% if (experimentalIvy) { %>,
"angularCompilerOptions": { "angularCompilerOptions": {
"enableIvy": "ngtsc" "enableIvy": true
}<% } %> }<% } %>
} }

View File

@ -5,11 +5,17 @@
* Use of this source code is governed by an MIT-style license that can be * Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license * found in the LICENSE file at https://angular.io/license
*/ */
import { getGlobalVariable } from '../../utils/env';
import { request } from '../../utils/http'; import { request } from '../../utils/http';
import { killAllProcesses } from '../../utils/process'; import { killAllProcesses } from '../../utils/process';
import { createProject, ngServe } from '../../utils/project'; import { createProject, ngServe } from '../../utils/project';
export default async function() { export default async function() {
const argv = getGlobalVariable('argv');
if (!argv['ng-snapshots']) {
// Only run this test on 8.x versions of Angular, which are currently only on snapshots.
return;
}
try { try {
await createProject('ivy-project', '--experimental-ivy'); await createProject('ivy-project', '--experimental-ivy');