Skip to content
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

refactor(bazel): use web_package rule for index.html #27995

Closed
wants to merge 1 commit into from

Conversation

kyliau
Copy link
Contributor

@kyliau kyliau commented Jan 8, 2019

index.html needs to have the zone.js and the project bundle injected
using script tags. This used to be done explicitly by specifying a
new index.html but with web_package rule introduced in rules_nodejs,
it is now possible to perform the injection dynamically.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@kyliau kyliau requested a review from a team as a code owner January 8, 2019 20:08
@mary-poppins
Copy link

You can preview bb1c137 at https://pr27995-bb1c137.ngbuilds.io/.

@mary-poppins
Copy link

You can preview dc5961c at https://pr27995-dc5961c.ngbuilds.io/.

@kara kara added the area: bazel Issues related to the published `@angular/bazel` build rules label Jan 8, 2019
@ngbot ngbot bot added this to the needsTriage milestone Jan 8, 2019
Copy link
Contributor

@IgorMinar IgorMinar left a comment

Choose a reason for hiding this comment

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

can you also add more context into the commit message explaining why you are making this change and how is web_package rule better than the current approach?

the CI is failing (sauce failure is a flake, but the other one seems legit - please fix)

the rest looks good to me. please clean up and label for merge. thanks

integration/bazel-schematics/package.json Outdated Show resolved Hide resolved
integration/bazel-schematics/package.json Outdated Show resolved Hide resolved
@IgorMinar IgorMinar added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews target: patch This PR is targeted for the next patch release effort2: days risk: low labels Jan 9, 2019
@kyliau
Copy link
Contributor Author

kyliau commented Jan 9, 2019

This PR is currently blocked pending #28000
Will address the comments along with the rebase once the PR is merged.

@IgorMinar
Copy link
Contributor

IgorMinar commented Jan 9, 2019 via email

@kyliau kyliau force-pushed the web_package branch 2 times, most recently from 852c5fa to 04abbbe Compare January 9, 2019 18:55
@mary-poppins
Copy link

You can preview 852c5fa at https://pr27995-852c5fa.ngbuilds.io/.

@mary-poppins
Copy link

You can preview 04abbbe at https://pr27995-04abbbe.ngbuilds.io/.

@mary-poppins
Copy link

You can preview 49f45f5 at https://pr27995-49f45f5.ngbuilds.io/.

@mary-poppins
Copy link

You can preview 2f5f5ef at https://pr27995-2f5f5ef.ngbuilds.io/.

@mary-poppins
Copy link

You can preview 3b53aae at https://pr27995-3b53aae.ngbuilds.io/.

@mary-poppins
Copy link

You can preview 6b7718e at https://pr27995-6b7718e.ngbuilds.io/.

@mary-poppins
Copy link

You can preview c8673ef at https://pr27995-c8673ef.ngbuilds.io/.

@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of all the commit author(s), set the cla label to yes (if enabled on your project), and then merge this pull request when appropriate.

@googlebot
Copy link

CLAs look good, thanks!

@mary-poppins
Copy link

You can preview cd6caaa at https://pr27995-cd6caaa.ngbuilds.io/.

@mary-poppins
Copy link

You can preview 6ee3918 at https://pr27995-6ee3918.ngbuilds.io/.

@mary-poppins
Copy link

You can preview 761a702 at https://pr27995-761a702.ngbuilds.io/.

@mary-poppins
Copy link

You can preview d198025 at https://pr27995-d198025.ngbuilds.io/.

index.html needs to have the zone.js and the project bundle injected
using script tags. This used to be done explicitly by specifying a
new index.html but with `web_package` rule introduced in rules_nodejs,
it is now possible to perform the injection dynamically.
@kyliau kyliau removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews effort2: days labels Jan 12, 2019
@mary-poppins
Copy link

You can preview de8bfcb at https://pr27995-de8bfcb.ngbuilds.io/.

@kyliau kyliau added the action: merge The PR is ready for merge by the caretaker label Jan 12, 2019
AndrewKushnir pushed a commit that referenced this pull request Jan 14, 2019
index.html needs to have the zone.js and the project bundle injected
using script tags. This used to be done explicitly by specifying a
new index.html but with `web_package` rule introduced in rules_nodejs,
it is now possible to perform the injection dynamically.

PR Close #27995
petebacondarwin pushed a commit to petebacondarwin/angular that referenced this pull request Jan 14, 2019
index.html needs to have the zone.js and the project bundle injected
using script tags. This used to be done explicitly by specifying a
new index.html but with `web_package` rule introduced in rules_nodejs,
it is now possible to perform the injection dynamically.

PR Close angular#27995
@kyliau kyliau deleted the web_package branch January 14, 2019 22:49
AndrewKushnir pushed a commit that referenced this pull request Jan 16, 2019
index.html needs to have the zone.js and the project bundle injected
using script tags. This used to be done explicitly by specifying a
new index.html but with `web_package` rule introduced in rules_nodejs,
it is now possible to perform the injection dynamically.

PR Close #27995
wKoza pushed a commit to wKoza/angular that referenced this pull request Jan 18, 2019
index.html needs to have the zone.js and the project bundle injected
using script tags. This used to be done explicitly by specifying a
new index.html but with `web_package` rule introduced in rules_nodejs,
it is now possible to perform the injection dynamically.

PR Close angular#27995
wKoza pushed a commit to wKoza/angular that referenced this pull request Jan 18, 2019
index.html needs to have the zone.js and the project bundle injected
using script tags. This used to be done explicitly by specifying a
new index.html but with `web_package` rule introduced in rules_nodejs,
it is now possible to perform the injection dynamically.

PR Close angular#27995
ngfelixl pushed a commit to ngfelixl/angular that referenced this pull request Jan 28, 2019
index.html needs to have the zone.js and the project bundle injected
using script tags. This used to be done explicitly by specifying a
new index.html but with `web_package` rule introduced in rules_nodejs,
it is now possible to perform the injection dynamically.

PR Close angular#27995
@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 14, 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 area: bazel Issues related to the published `@angular/bazel` build rules cla: yes risk: low target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants