Updates for stencil storybook angular #711
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello. The essence of this PR unconditionally enables Webpack 5, Babel 7 for Storybook, but just for Stencil package of this repository. No Nx migration additions have been developed since this is my first Nx development which I'm still learning it's internal api. To mention one of the several reasons for this development on my part is to use .tsx files for Storybook stories without lit-html, which this PR introduces, but with one caveat. That caveat is in the
__componentFileName__.stories.tsx.template
file along with a comment above it.Feel free to ask any questions and or make edits. Thanks again for this this repo!
Also, prior to using the script below, run verdaccio locally and: clone, build and publish (
/dist/packages/stencil
package) with semver version of choice. Below I used14.0.3-local.1
. This script is a smoke test that I used and should launch Storybook with a single story generated.