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": { "master": {
"uncompressed": { "uncompressed": {
"runtime": 1440, "runtime": 1440,

View File

@ -6,7 +6,7 @@
}, },
"newProjectRoot": "projects", "newProjectRoot": "projects",
"projects": { "projects": {
"cli-hello-world-ivy": { "cli-hello-world-ivy-compat": {
"root": "", "root": "",
"sourceRoot": "src", "sourceRoot": "src",
"projectType": "application", "projectType": "application",
@ -60,17 +60,17 @@
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",
"options": { "options": {
"browserTarget": "cli-hello-world-ivy:build" "browserTarget": "cli-hello-world-ivy-compat:build"
}, },
"configurations": { "configurations": {
"production": { "production": {
"browserTarget": "cli-hello-world-ivy:build:production" "browserTarget": "cli-hello-world-ivy-compat:build:production"
}, },
"ci": { "ci": {
"progress": false "progress": false
}, },
"ci-production": { "ci-production": {
"browserTarget": "cli-hello-world-ivy:build:production", "browserTarget": "cli-hello-world-ivy-compat:build:production",
"progress": false "progress": false
} }
} }
@ -78,7 +78,7 @@
"extract-i18n": { "extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n", "builder": "@angular-devkit/build-angular:extract-i18n",
"options": { "options": {
"browserTarget": "cli-hello-world-ivy:build" "browserTarget": "cli-hello-world-ivy-compat:build"
} }
}, },
"test": { "test": {
@ -112,7 +112,7 @@
} }
} }
}, },
"cli-hello-world-ivy-e2e": { "cli-hello-world-ivy-compat-e2e": {
"root": "e2e/", "root": "e2e/",
"projectType": "application", "projectType": "application",
"prefix": "", "prefix": "",
@ -121,17 +121,17 @@
"builder": "@angular-devkit/build-angular:protractor", "builder": "@angular-devkit/build-angular:protractor",
"options": { "options": {
"protractorConfig": "e2e/protractor.conf.js", "protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "cli-hello-world-ivy:serve" "devServerTarget": "cli-hello-world-ivy-compat:serve"
}, },
"configurations": { "configurations": {
"production": { "production": {
"devServerTarget": "cli-hello-world-ivy:serve:production" "devServerTarget": "cli-hello-world-ivy-compat:serve:production"
}, },
"ci": { "ci": {
"devServerTarget": "cli-hello-world-ivy:serve:ci" "devServerTarget": "cli-hello-world-ivy-compat:serve:ci"
}, },
"ci-production": { "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', () => { it('should display welcome message', () => {
page.navigateTo(); 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', () => { 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", "version": "0.0.0",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {

View File

@ -16,16 +16,16 @@ describe('AppComponent', () => {
expect(app).toBeTruthy(); 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 fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance; 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', () => { it('should render title in a h1 tag', () => {
const fixture = TestBed.createComponent(AppComponent); const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges(); fixture.detectChanges();
const compiled = fixture.debugElement.nativeElement; 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'] styleUrls: ['./app.component.css']
}) })
export class AppComponent { 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"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>CliHelloWorldIvy</title> <title>CliHelloWorldIvyCompat</title>
<base href="/"> <base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1"> <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 install --cache-folder ../$cache
yarn test || exit 1 yarn test || exit 1
# Track payload size for cli-hello-world, cli-hello-world-ivy and hello_world__closure # 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 ]] || [[ $testDir == hello_world__closure ]]); then 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 ]]); then if ([[ $testDir == cli-hello-world ]] || [[ $testDir == cli-hello-world-ivy-compat ]]); then
yarn build yarn build
fi fi