Skip to content

build: serve e2e-app in aot mode #4833

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 30, 2017
Merged

Conversation

devversion
Copy link
Member

Starts building the e2e-app in AOT mode

This should make our e2e tests on the CI faster and also should be a more advanced testing of AOT compatibility.

Note: As this also makes the e2e-app smaller in payload I will try to find a way to use a RxJS bundle (would speed-up the serving a lot)

@devversion devversion requested a review from jelbourn May 26, 2017 22:05
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label May 26, 2017
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
import {E2eAppModuleNgFactory} from './e2e-app-module.ngfactory';

platformBrowserDynamic().bootstrapModuleFactory(E2eAppModuleNgFactory);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this just be platformBrowser (without the Dynamic)?

(same for demo-app, now that I notice it)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think @josephperrott also had an issue about it but I didn't assign it to myself so I lost track of it. Changed it now.

@@ -0,0 +1,4 @@
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of having a separate main-aot.ts, we should just make this the main main.ts; nobody should need to ever run this in JIT mode

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. Done!

Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels May 30, 2017
@mmalerba
Copy link
Contributor

please rebase

@mmalerba mmalerba added pr: needs rebase and removed action: merge The PR is ready for merge by the caretaker labels May 30, 2017
* Starts building the e2e-app in AOT mode
@devversion devversion force-pushed the build/e2e-app-aot branch from ed203fe to 3aeace2 Compare May 30, 2017 16:25
@devversion devversion force-pushed the build/e2e-app-aot branch from 3aeace2 to 0c1c166 Compare May 30, 2017 16:28
@devversion devversion added action: merge The PR is ready for merge by the caretaker and removed pr: needs rebase labels May 30, 2017
@devversion
Copy link
Member Author

@mmalerba Done. This also includes the fix for the CI failure.

CI failure appears because we renamed the constants.ts file but another PR, that got merged afterwards, introduced a new file that still imports form constants.ts.

@mmalerba mmalerba merged commit 3f08e37 into angular:master May 30, 2017
@devversion devversion deleted the build/e2e-app-aot branch May 30, 2017 18:23
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants