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

Addon-docs/Angular: Fix inline rendering setup #14270

Merged
merged 1 commit into from
Mar 18, 2021
Merged

Conversation

shilman
Copy link
Member

@shilman shilman commented Mar 18, 2021

Issue: #8153

What I did

Set up Angular prepareForInline inside the preset. Users can enable it on by simply setting docs.inlineStories: true and we don't need to create another entry point or import in the user's code.

NOTE that this is a breaking change for prerelease users, since this PR removes the unnecessary entry point.

How to test

cd examples/angular-cli && yarn storybook

Copy link
Contributor

@yngvebn yngvebn left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@shilman shilman merged commit d8813c8 into next Mar 18, 2021
@shilman shilman deleted the 8153-fix-angular-inline branch March 18, 2021 13:38
Copy link
Contributor

@ThibaudAV ThibaudAV left a comment

Choose a reason for hiding this comment

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

👍

@ThibaudAV
Copy link
Contributor

aaa @shilman I just remembered why I didn't add it here.

the goal is to keep the 2 dependencies "@angular/elements" and "@webcomponents/custom-elements" optional for the user. So if we import the function prepareForInline in storybook these dependencies are not optional anymore (it seems to me)

to make a test it is necessary to start an angular application with storybook. outside the monorepo.
I think that if I'm not mistaken an error occurs directly when we display the docs
It seems to me that I have already done this test and I had noticed the error :/

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.

3 participants