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

Add lit-html support #3433

Merged
merged 1 commit into from
Apr 17, 2018
Merged

Add lit-html support #3433

merged 1 commit into from
Apr 17, 2018

Conversation

stijnkoopal
Copy link
Contributor

Adds the ability to render a story based on lit-html

What I did

Instead of returning either a string or a Node from a story, now you can also return a TemplateResult

How to test

See polymer stories in the examples dir

@codecov
Copy link

codecov bot commented Apr 17, 2018

Codecov Report

Merging #3433 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3433      +/-   ##
==========================================
+ Coverage    37.2%   37.21%   +<.01%     
==========================================
  Files         463      463              
  Lines       10242    10241       -1     
  Branches      894      935      +41     
==========================================
  Hits         3811     3811              
+ Misses       5901     5865      -36     
- Partials      530      565      +35
Impacted Files Coverage Δ
app/polymer/src/client/preview/render.js 0% <ø> (ø) ⬆️
...es__/update-addon-info/update-addon-info.output.js 0% <0%> (ø) ⬆️
addons/info/src/components/types/PrettyPropType.js 85.71% <0%> (ø) ⬆️
addons/viewport/src/preview/withViewport.js 77.27% <0%> (ø) ⬆️
lib/ui/src/modules/ui/configs/init_panels.js 25% <0%> (ø) ⬆️
lib/ui/src/modules/ui/libs/hierarchy.js 49.03% <0%> (ø) ⬆️
addons/a11y/src/components/Report/Info.js 0% <0%> (ø) ⬆️
lib/core/src/client/preview/syncUrlWithStore.js 40.9% <0%> (ø) ⬆️
addons/knobs/src/components/types/Number.js 7.04% <0%> (ø) ⬆️
lib/ui/src/modules/ui/containers/stories_panel.js 26.31% <0%> (ø) ⬆️
... and 64 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d956d51...26f509c. Read the comment docs.

@@ -53,12 +53,14 @@
"webpack-hot-middleware": "^2.22.0"
},
"devDependencies": {
"lit-html": "^0.9.0",
Copy link
Member

Choose a reason for hiding this comment

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

Why do you need the "lit-html" and "polymer-webpack-loader" in devDeps ?

Copy link
Member

Choose a reason for hiding this comment

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

For lit-html, it's probably because you need a single instance of that package for instanceof TemplateResult to pass

@Hypnosphi Hypnosphi merged commit a504a08 into master Apr 17, 2018
@Hypnosphi Hypnosphi deleted the stijnkoopal/add-lit-html branch April 17, 2018 16:08
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