build: rename cli-hello-world-ivy test to cli-hello-world-ivy-compat (#28372)

There are two ways to bootstrap an Ivy app: with `platformBrowserDynamic().bootstrapModule` and `renderComponent`.

To distinguish between these two approaches we call the `platformBrowserDynamic().bootstrapModule` way `ivy-compat` and the `renderComponent` way just `ivy`.

PR Close #28372
This commit is contained in:
Filipe Silva 2019-01-28 14:54:34 +00:00 committed by Miško Hevery
parent ce83231ce9
commit 36284713b2
33 changed files with 22 additions and 22 deletions

View File

@ -8,7 +8,7 @@
}
}
},
"cli-hello-world-ivy": {
"cli-hello-world-ivy-compat": {
"master": {
"uncompressed": {
"runtime": 1440,

View File

@ -6,7 +6,7 @@
},
"newProjectRoot": "projects",
"projects": {
"cli-hello-world-ivy": {
"cli-hello-world-ivy-compat": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
@ -60,17 +60,17 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "cli-hello-world-ivy:build"
"browserTarget": "cli-hello-world-ivy-compat:build"
},
"configurations": {
"production": {
"browserTarget": "cli-hello-world-ivy:build:production"
"browserTarget": "cli-hello-world-ivy-compat:build:production"
},
"ci": {
"progress": false
},
"ci-production": {
"browserTarget": "cli-hello-world-ivy:build:production",
"browserTarget": "cli-hello-world-ivy-compat:build:production",
"progress": false
}
}
@ -78,7 +78,7 @@
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "cli-hello-world-ivy:build"
"browserTarget": "cli-hello-world-ivy-compat:build"
}
},
"test": {
@ -112,7 +112,7 @@
}
}
},
"cli-hello-world-ivy-e2e": {
"cli-hello-world-ivy-compat-e2e": {
"root": "e2e/",
"projectType": "application",
"prefix": "",
@ -121,17 +121,17 @@
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "cli-hello-world-ivy:serve"
"devServerTarget": "cli-hello-world-ivy-compat:serve"
},
"configurations": {
"production": {
"devServerTarget": "cli-hello-world-ivy:serve:production"
"devServerTarget": "cli-hello-world-ivy-compat:serve:production"
},
"ci": {
"devServerTarget": "cli-hello-world-ivy:serve:ci"
"devServerTarget": "cli-hello-world-ivy-compat:serve:ci"
},
"ci-production": {
"devServerTarget": "cli-hello-world-ivy:serve:ci-production"
"devServerTarget": "cli-hello-world-ivy-compat:serve:ci-production"
}
}
},
@ -147,5 +147,5 @@
}
}
},
"defaultProject": "cli-hello-world-ivy"
"defaultProject": "cli-hello-world-ivy-compat"
}

View File

@ -9,7 +9,7 @@ describe('cli-hello-world-ivy App', () => {
it('should display welcome message', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('Welcome to cli-hello-world-ivy!');
expect(page.getParagraphText()).toEqual('Welcome to cli-hello-world-ivy-compat!');
});
it('the percent pipe should work', () => {

View File

@ -1,5 +1,5 @@
{
"name": "cli-hello-world-ivy",
"name": "cli-hello-world-ivy-compat",
"version": "0.0.0",
"license": "MIT",
"scripts": {

View File

@ -16,16 +16,16 @@ describe('AppComponent', () => {
expect(app).toBeTruthy();
});
it(`should have as title 'cli-hello-world-ivy'`, () => {
it(`should have as title 'cli-hello-world-ivy-compat'`, () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app.title).toEqual('cli-hello-world-ivy');
expect(app.title).toEqual('cli-hello-world-ivy-compat');
});
it('should render title in a h1 tag', () => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.debugElement.nativeElement;
expect(compiled.querySelector('h1').textContent).toContain('Welcome to cli-hello-world-ivy!');
expect(compiled.querySelector('h1').textContent).toContain('Welcome to cli-hello-world-ivy-compat!');
});
});

View File

@ -6,5 +6,5 @@ import { Component } from '@angular/core';
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'cli-hello-world-ivy';
title = 'cli-hello-world-ivy-compat';
}

View File

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>CliHelloWorldIvy</title>
<title>CliHelloWorldIvyCompat</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">

View File

@ -61,9 +61,9 @@ for testDir in ${TEST_DIRS}; do
yarn install --cache-folder ../$cache
yarn test || exit 1
# Track payload size for cli-hello-world, cli-hello-world-ivy and hello_world__closure
if $CI && ([[ $testDir == cli-hello-world ]] || [[ $testDir == cli-hello-world-ivy ]] || [[ $testDir == hello_world__closure ]]); then
if ([[ $testDir == cli-hello-world ]] || [[ $testDir == cli-hello-world-ivy ]]); then
# Track payload size for cli-hello-world, cli-hello-world-ivy-compat and hello_world__closure
if $CI && ([[ $testDir == cli-hello-world ]] || [[ $testDir == cli-hello-world-ivy-compat ]] || [[ $testDir == hello_world__closure ]]); then
if ([[ $testDir == cli-hello-world ]] || [[ $testDir == cli-hello-world-ivy-compat ]]); then
yarn build
fi