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

[amp-story-player] Entry point skeleton code and bundle #28999

Merged
merged 5 commits into from
Jun 26, 2020

Conversation

Enriqe
Copy link
Contributor

@Enriqe Enriqe commented Jun 23, 2020

Related to #26308

Adds <amp-story-entry-point> skeleton files and generates bundle. I thought it would be a good idea to leverage our existing "runtime" (AmpStoryPlayerManager) to handle the lifecycle of the entry points as well, but that's open for discussion.

@Enriqe Enriqe requested review from gmajoulet and newmuis June 23, 2020 15:14
@Enriqe Enriqe marked this pull request as ready for review June 23, 2020 15:14
Copy link
Member

@danielrozenberg danielrozenberg left a comment

Choose a reason for hiding this comment

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

Approval for build-system/tasks/

@Enriqe Enriqe force-pushed the entry-points-bundle branch 2 times, most recently from 1f1f1a9 to 5598634 Compare June 23, 2020 19:28
this.rootEl_ = this.doc_.createElement('main');

// Create shadow root
const shadowRoot = this.element_.attachShadow({mode: 'open'});
Copy link
Contributor

Choose a reason for hiding this comment

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

This will fail on many browsers, we should have a fallback.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll address as a follow-up since this is something that we also do for the player.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good, is is tracked somewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants