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

[labs] Initial commit of eleventy plugin #1755

Merged
merged 10 commits into from Jan 27, 2022
Merged

[labs] Initial commit of eleventy plugin #1755

merged 10 commits into from Jan 27, 2022

Conversation

kevinpschaaf
Copy link
Member

A plugin for Eleventy for pre-rendering pages that include Lit web components. The components can then be (optionally) hydrated on the client for interactivity.

Note, this plugin is primarily focused on rendering standalone widgets which can be configured with attributes in HTML into an 11ty site (there currently no facility for passing 11ty data into components via Javascript).

TODO: add tests (the included demo is working).

@google-cla google-cla bot added the cla: yes label Apr 16, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Apr 16, 2021

📊 Tachometer Benchmark Results

Summary

  • lit-element-list
  • lit-html-kitchen-sink
  • lit-html-repeat
  • lit-html-template-heavy
  • reactive-element-list

Results

tachometer-reporter-action v2 for Benchmarks

Base automatically changed from lit-next-ssr-global-render to main April 20, 2021 09:27
@JosefJezek
Copy link

do you have any progress?

@aomarks aomarks self-requested a review December 2, 2021 19:16
@changeset-bot
Copy link

changeset-bot bot commented Jan 26, 2022

⚠️ No Changeset found

Latest commit: 43a43ac

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Jan 26, 2022

📊 Tachometer Benchmark Results

Summary

nop-update

  • lit-html-kitchen-sink: unsure 🔍 -3% - +3% (-0.86ms - +0.76ms)
    this-change vs tip-of-tree

render

  • lit-element-list: unsure 🔍 -2% - +3% (-1.54ms - +2.53ms)
    this-change vs tip-of-tree
  • lit-html-kitchen-sink: unsure 🔍 -2% - +2% (-0.74ms - +0.86ms)
    this-change vs tip-of-tree
  • lit-html-repeat: unsure 🔍 -6% - +18% (-0.78ms - +2.31ms)
    this-change vs tip-of-tree
  • lit-html-template-heavy: unsure 🔍 -2% - +1% (-1.12ms - +0.57ms)
    this-change vs tip-of-tree
  • reactive-element-list: unsure 🔍 -3% - +1% (-2.18ms - +0.61ms)
    this-change vs tip-of-tree

update

  • lit-element-list: unsure 🔍 -2% - +0% (-17.40ms - +4.04ms)
    this-change vs tip-of-tree
  • lit-html-kitchen-sink: unsure 🔍 -1% - +4% (-1.21ms - +4.08ms)
    this-change vs tip-of-tree
  • lit-html-repeat: unsure 🔍 -2% - +1% (-6.50ms - +1.87ms)
    this-change vs tip-of-tree
  • lit-html-template-heavy: unsure 🔍 -1% - +2% (-1.67ms - +2.72ms)
    this-change vs tip-of-tree
  • reactive-element-list: unsure 🔍 -1% - +1% (-10.43ms - +10.08ms)
    this-change vs tip-of-tree

update-reflect

  • lit-element-list: unsure 🔍 -2% - +1% (-15.09ms - +7.39ms)
    this-change vs tip-of-tree
  • reactive-element-list: unsure 🔍 -0% - +2% (-0.56ms - +19.35ms)
    this-change vs tip-of-tree

Results

lit-element-list

render

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
89.54ms - 92.96ms-unsure 🔍
-2% - +3%
-1.54ms - +2.53ms
faster ✔
22% - 26%
25.45ms - 31.64ms
tip-of-tree
tip-of-tree
89.67ms - 91.85msunsure 🔍
-3% - +2%
-2.53ms - +1.54ms
-faster ✔
22% - 26%
26.25ms - 31.84ms
previous-release
previous-release
117.22ms - 122.37msslower ❌
28% - 35%
25.45ms - 31.64ms
slower ❌
29% - 35%
26.25ms - 31.84ms
-

update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
850.69ms - 864.20ms-unsure 🔍
-2% - +0%
-17.40ms - +4.04ms
faster ✔
7% - 10%
67.95ms - 90.87ms
tip-of-tree
tip-of-tree
855.80ms - 872.45msunsure 🔍
-0% - +2%
-4.04ms - +17.40ms
-faster ✔
6% - 9%
60.28ms - 85.18ms
previous-release
previous-release
927.61ms - 946.11msslower ❌
8% - 11%
67.95ms - 90.87ms
slower ❌
7% - 10%
60.28ms - 85.18ms
-

update-reflect

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
939.04ms - 954.92ms-unsure 🔍
-2% - +1%
-15.09ms - +7.39ms
faster ✔
5% - 7%
47.35ms - 68.78ms
tip-of-tree
tip-of-tree
942.88ms - 958.78msunsure 🔍
-1% - +2%
-7.39ms - +15.09ms
-faster ✔
4% - 6%
43.50ms - 64.94ms
previous-release
previous-release
997.86ms - 1012.23msslower ❌
5% - 7%
47.35ms - 68.78ms
slower ❌
5% - 7%
43.50ms - 64.94ms
-
lit-html-kitchen-sink

render

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
39.98ms - 40.82ms-unsure 🔍
-2% - +2%
-0.74ms - +0.86ms
faster ✔
9% - 14%
4.01ms - 6.41ms
tip-of-tree
tip-of-tree
39.66ms - 41.02msunsure 🔍
-2% - +2%
-0.86ms - +0.74ms
-faster ✔
9% - 14%
3.95ms - 6.58ms
previous-release
previous-release
44.48ms - 46.73msslower ❌
10% - 16%
4.01ms - 6.41ms
slower ❌
10% - 16%
3.95ms - 6.58ms
-

update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
97.71ms - 100.92ms-unsure 🔍
-1% - +4%
-1.21ms - +4.08ms
faster ✔
1% - 7%
1.06ms - 7.68ms
tip-of-tree
tip-of-tree
95.78ms - 99.98msunsure 🔍
-4% - +1%
-4.08ms - +1.21ms
-faster ✔
2% - 9%
2.23ms - 9.37ms
previous-release
previous-release
100.79ms - 106.58msslower ❌
1% - 8%
1.06ms - 7.68ms
slower ❌
2% - 10%
2.23ms - 9.37ms
-

nop-update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
29.47ms - 30.54ms-unsure 🔍
-3% - +3%
-0.86ms - +0.76ms
faster ✔
9% - 13%
3.03ms - 4.34ms
tip-of-tree
tip-of-tree
29.45ms - 30.67msunsure 🔍
-3% - +3%
-0.76ms - +0.86ms
-faster ✔
9% - 13%
2.92ms - 4.35ms
previous-release
previous-release
33.31ms - 34.07msslower ❌
10% - 15%
3.03ms - 4.34ms
slower ❌
9% - 15%
2.92ms - 4.35ms
-
lit-html-repeat

render

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
12.01ms - 15.04ms-unsure 🔍
-6% - +18%
-0.78ms - +2.31ms
unsure 🔍
-16% - +5%
-2.29ms - +0.77ms
tip-of-tree
tip-of-tree
12.45ms - 13.07msunsure 🔍
-16% - +5%
-2.31ms - +0.78ms
-faster ✔
8% - 13%
1.13ms - 1.92ms
previous-release
previous-release
14.04ms - 14.53msunsure 🔍
-6% - +18%
-0.77ms - +2.29ms
slower ❌
9% - 15%
1.13ms - 1.92ms
-

update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
312.17ms - 315.91ms-unsure 🔍
-2% - +1%
-6.50ms - +1.87ms
faster ✔
32% - 34%
149.85ms - 162.11ms
tip-of-tree
tip-of-tree
312.61ms - 320.09msunsure 🔍
-1% - +2%
-1.87ms - +6.50ms
-faster ✔
32% - 34%
146.73ms - 160.60ms
previous-release
previous-release
464.18ms - 475.86msslower ❌
48% - 52%
149.85ms - 162.11ms
slower ❌
46% - 51%
146.73ms - 160.60ms
-
lit-html-template-heavy

render

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
59.82ms - 61.03ms-unsure 🔍
-2% - +1%
-1.12ms - +0.57ms
faster ✔
16% - 18%
11.55ms - 13.61ms
tip-of-tree
tip-of-tree
60.11ms - 61.29msunsure 🔍
-1% - +2%
-0.57ms - +1.12ms
-faster ✔
16% - 18%
11.28ms - 13.33ms
previous-release
previous-release
72.17ms - 73.84msslower ❌
19% - 23%
11.55ms - 13.61ms
slower ❌
18% - 22%
11.28ms - 13.33ms
-

update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
128.85ms - 132.47ms-unsure 🔍
-1% - +2%
-1.67ms - +2.72ms
faster ✔
11% - 14%
16.71ms - 21.22ms
tip-of-tree
tip-of-tree
128.89ms - 131.37msunsure 🔍
-2% - +1%
-2.72ms - +1.67ms
-faster ✔
12% - 14%
17.66ms - 21.32ms
previous-release
previous-release
148.28ms - 150.96msslower ❌
13% - 16%
16.71ms - 21.22ms
slower ❌
13% - 16%
17.66ms - 21.32ms
-
reactive-element-list

render

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
67.49ms - 69.26ms-unsure 🔍
-3% - +1%
-2.18ms - +0.61ms
unsure 🔍
-2% - +2%
-1.35ms - +1.22ms
tip-of-tree
tip-of-tree
68.07ms - 70.24msunsure 🔍
-1% - +3%
-0.61ms - +2.18ms
-unsure 🔍
-1% - +3%
-0.71ms - +2.15ms
previous-release
previous-release
67.51ms - 69.37msunsure 🔍
-2% - +2%
-1.22ms - +1.35ms
unsure 🔍
-3% - +1%
-2.15ms - +0.71ms
-

update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
858.02ms - 872.18ms-unsure 🔍
-1% - +1%
-10.43ms - +10.08ms
unsure 🔍
-1% - +1%
-9.25ms - +7.95ms
tip-of-tree
tip-of-tree
857.86ms - 872.69msunsure 🔍
-1% - +1%
-10.08ms - +10.43ms
-unsure 🔍
-1% - +1%
-9.35ms - +8.39ms
previous-release
previous-release
860.88ms - 870.62msunsure 🔍
-1% - +1%
-7.95ms - +9.25ms
unsure 🔍
-1% - +1%
-8.39ms - +9.35ms
-

update-reflect

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
969.39ms - 984.77ms-unsure 🔍
-0% - +2%
-0.56ms - +19.35ms
unsure 🔍
-1% - +2%
-6.47ms - +16.31ms
tip-of-tree
tip-of-tree
961.37ms - 974.00msunsure 🔍
-2% - +0%
-19.35ms - +0.56ms
-unsure 🔍
-2% - +1%
-14.98ms - +6.04ms
previous-release
previous-release
963.75ms - 980.55msunsure 🔍
-2% - +1%
-16.31ms - +6.47ms
unsure 🔍
-1% - +2%
-6.04ms - +14.98ms
-

tachometer-reporter-action v2 for Benchmarks

@aomarks aomarks marked this pull request as ready for review January 26, 2022 16:44
packages/labs/eleventy-plugin-lit/CHANGELOG.md Outdated Show resolved Hide resolved
packages/labs/eleventy-plugin-lit/.gitignore Outdated Show resolved Hide resolved
packages/labs/eleventy-plugin-lit/LICENSE Outdated Show resolved Hide resolved
packages/labs/eleventy-plugin-lit/README.md Show resolved Hide resolved
packages/labs/eleventy-plugin-lit/README.md Outdated Show resolved Hide resolved
packages/labs/eleventy-plugin-lit/scripts/dev.sh Outdated Show resolved Hide resolved
packages/labs/eleventy-plugin-lit/src/index.ts Outdated Show resolved Hide resolved
@aomarks aomarks merged commit d26f109 into main Jan 27, 2022
@aomarks aomarks deleted the lit-next-ssr-11ty branch January 27, 2022 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants