diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de933644c..84a7828d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -99,7 +99,8 @@ jobs: with: name: artifacts path: | - packages/**/dist/** + packages/*/dist/** + packages/*/*/dist/** packages/webapi/mod.js packages/webapi/mod.js.map if-no-files-found: error diff --git a/examples/blog-multiple-authors/astro.config.mjs b/examples/blog-multiple-authors/astro.config.mjs index a024b64b4..5a51e487a 100644 --- a/examples/blog-multiple-authors/astro.config.mjs +++ b/examples/blog-multiple-authors/astro.config.mjs @@ -1,7 +1,8 @@ import { defineConfig } from 'astro/config'; +import preact from '@astrojs/preact'; // https://astro.build/config export default defineConfig({ - // Enable the Preact renderer to support Preact JSX components. - renderers: ['@astrojs/renderer-preact'], + // Enable the Preact integration to support Preact JSX components. + integrations: [preact()], }); diff --git a/examples/blog-multiple-authors/package.json b/examples/blog-multiple-authors/package.json index d2e77885d..c3d7d7b98 100644 --- a/examples/blog-multiple-authors/package.json +++ b/examples/blog-multiple-authors/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/renderer-preact": "^0.5.0", + "@astrojs/preact": "^0.0.1", "astro": "^0.24.3", "sass": "^1.49.9" } diff --git a/examples/blog/astro.config.mjs b/examples/blog/astro.config.mjs index f682daa06..e8f14324a 100644 --- a/examples/blog/astro.config.mjs +++ b/examples/blog/astro.config.mjs @@ -1,8 +1,9 @@ import { defineConfig } from 'astro/config'; +import preact from '@astrojs/preact'; // https://astro.build/config export default defineConfig({ - renderers: ['@astrojs/renderer-preact'], + integrations: [preact()], buildOptions: { site: 'https://example.com/', }, diff --git a/examples/blog/package.json b/examples/blog/package.json index 13b11a14c..4e0efd07d 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "astro": "^0.24.3", - "@astrojs/renderer-preact": "^0.5.0" + "@astrojs/preact": "^0.0.1" } } diff --git a/examples/component/demo/astro.config.mjs b/examples/component/demo/astro.config.mjs index c6e58dbdc..882e6515a 100644 --- a/examples/component/demo/astro.config.mjs +++ b/examples/component/demo/astro.config.mjs @@ -1,7 +1,4 @@ import { defineConfig } from 'astro/config'; // https://astro.build/config -export default defineConfig({ - // Comment out "renderers: []" to enable Astro's default component support. - renderers: [], -}); +export default defineConfig({}); diff --git a/examples/docs/astro.config.mjs b/examples/docs/astro.config.mjs index 9f97b3a89..7ae8d6f7b 100644 --- a/examples/docs/astro.config.mjs +++ b/examples/docs/astro.config.mjs @@ -1,11 +1,13 @@ import { defineConfig } from 'astro/config'; +import preact from '@astrojs/preact'; +import react from '@astrojs/react'; // https://astro.build/config export default defineConfig({ - renderers: [ - // Enable the Preact renderer to support Preact JSX components. - '@astrojs/renderer-preact', - // Enable the React renderer, for the Algolia search component - '@astrojs/renderer-react', + integrations: [ + // Enable Preact to support Preact JSX components. + preact(), + // Enable React for the Algolia search component. + react(), ], }); diff --git a/examples/docs/package.json b/examples/docs/package.json index 60000c43f..ab596ccce 100644 --- a/examples/docs/package.json +++ b/examples/docs/package.json @@ -17,8 +17,8 @@ "react-dom": "^17.0.2" }, "devDependencies": { - "@astrojs/renderer-preact": "^0.5.0", - "@astrojs/renderer-react": "^0.5.0", + "@astrojs/preact": "^0.0.1", + "@astrojs/react": "^0.0.1", "astro": "^0.24.3" } } diff --git a/examples/env-vars/astro.config.mjs b/examples/env-vars/astro.config.mjs index e3579a160..882e6515a 100644 --- a/examples/env-vars/astro.config.mjs +++ b/examples/env-vars/astro.config.mjs @@ -1,6 +1,4 @@ import { defineConfig } from 'astro/config'; // https://astro.build/config -export default defineConfig({ - renderers: [], -}); +export default defineConfig({}); diff --git a/examples/framework-alpine/astro.config.mjs b/examples/framework-alpine/astro.config.mjs index 9827239bb..ade2c1278 100644 --- a/examples/framework-alpine/astro.config.mjs +++ b/examples/framework-alpine/astro.config.mjs @@ -2,6 +2,6 @@ import { defineConfig } from 'astro/config'; // https://astro.build/config export default defineConfig({ - // No renderers are needed for AlpineJS support, just use Astro components! - renderers: [], + // No integrations are needed for AlpineJS support, just use Astro components! + integrations: [], }); diff --git a/examples/framework-lit/astro.config.mjs b/examples/framework-lit/astro.config.mjs index c86c77bf7..99733e933 100644 --- a/examples/framework-lit/astro.config.mjs +++ b/examples/framework-lit/astro.config.mjs @@ -1,7 +1,8 @@ import { defineConfig } from 'astro/config'; +import lit from '@astrojs/lit'; // https://astro.build/config export default defineConfig({ - // Enable the lit renderer to support LitHTML components and templates. - renderers: ['@astrojs/renderer-lit'], + // Enable Lit to support LitHTML components and templates. + integrations: [lit()], }); diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index 4d68428b5..651dbf2ab 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/renderer-lit": "^0.4.0", + "@astrojs/lit": "^0.0.1", "astro": "^0.24.3" } } diff --git a/examples/framework-multiple/astro.config.mjs b/examples/framework-multiple/astro.config.mjs index 90f8b2ca4..4b50887cd 100644 --- a/examples/framework-multiple/astro.config.mjs +++ b/examples/framework-multiple/astro.config.mjs @@ -1,7 +1,12 @@ import { defineConfig } from 'astro/config'; +import preact from '@astrojs/preact'; +import react from '@astrojs/react'; +import svelte from '@astrojs/svelte'; +import vue from '@astrojs/vue'; +import solid from '@astrojs/solid-js'; // https://astro.build/config export default defineConfig({ - // Enable many renderers to support all different kinds of components. - renderers: ['@astrojs/renderer-preact', '@astrojs/renderer-react', '@astrojs/renderer-svelte', '@astrojs/renderer-vue', '@astrojs/renderer-solid'], + // Enable many frameworks to support all different kinds of components. + integrations: [preact(), react(), svelte(), vue(), solid()], }); diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index 1b299dba9..e24f45a97 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -9,12 +9,12 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/renderer-lit": "^0.4.0", - "@astrojs/renderer-preact": "^0.5.0", - "@astrojs/renderer-react": "^0.5.0", - "@astrojs/renderer-solid": "^0.4.0", - "@astrojs/renderer-svelte": "^0.5.2", - "@astrojs/renderer-vue": "^0.4.0", + "@astrojs/lit": "^0.0.1", + "@astrojs/preact": "^0.0.1", + "@astrojs/react": "^0.0.1", + "@astrojs/solid-js": "^0.0.1", + "@astrojs/svelte": "^0.0.1", + "@astrojs/vue": "^0.0.1", "astro": "^0.24.3" } } diff --git a/examples/framework-preact/astro.config.mjs b/examples/framework-preact/astro.config.mjs index a024b64b4..b1c8d1150 100644 --- a/examples/framework-preact/astro.config.mjs +++ b/examples/framework-preact/astro.config.mjs @@ -1,7 +1,8 @@ import { defineConfig } from 'astro/config'; +import preact from '@astrojs/preact'; // https://astro.build/config export default defineConfig({ - // Enable the Preact renderer to support Preact JSX components. - renderers: ['@astrojs/renderer-preact'], + // Enable Preact to support Preact JSX components. + integrations: [preact()], }); diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 23e834b17..68ad0fabf 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/renderer-preact": "^0.5.0", + "@astrojs/preact": "^0.0.1", "astro": "^0.24.3" } } diff --git a/examples/framework-react/astro.config.mjs b/examples/framework-react/astro.config.mjs index b35ad27e9..4b5a68ec0 100644 --- a/examples/framework-react/astro.config.mjs +++ b/examples/framework-react/astro.config.mjs @@ -1,7 +1,8 @@ import { defineConfig } from 'astro/config'; +import react from '@astrojs/react'; // https://astro.build/config export default defineConfig({ - // Enable the React renderer to support React JSX components. - renderers: ['@astrojs/renderer-react'], + // Enable React to support React JSX components. + integrations: [react()], }); diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index 399246155..f0d36db78 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/renderer-react": "^0.5.0", + "@astrojs/react": "^0.0.1", "astro": "^0.24.3" } } diff --git a/examples/framework-solid/astro.config.mjs b/examples/framework-solid/astro.config.mjs index c78642c43..623fb8ea5 100644 --- a/examples/framework-solid/astro.config.mjs +++ b/examples/framework-solid/astro.config.mjs @@ -1,7 +1,8 @@ import { defineConfig } from 'astro/config'; +import solid from '@astrojs/solid-js'; // https://astro.build/config export default defineConfig({ - // Enable the Solid renderer to support Solid JSX components. - renderers: ['@astrojs/renderer-solid'], + // Enable Solid to support Solid JSX components. + integrations: [solid()], }); diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index e11ec1ca5..d76f69b27 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/renderer-solid": "^0.4.0", + "@astrojs/solid-js": "^0.0.1", "astro": "^0.24.3" } } diff --git a/examples/framework-svelte/astro.config.mjs b/examples/framework-svelte/astro.config.mjs index 4452ef101..194e45917 100644 --- a/examples/framework-svelte/astro.config.mjs +++ b/examples/framework-svelte/astro.config.mjs @@ -1,7 +1,8 @@ import { defineConfig } from 'astro/config'; +import svelte from '@astrojs/svelte'; // https://astro.build/config export default defineConfig({ - // Enable the Svelte renderer to support Svelte components. - renderers: ['@astrojs/renderer-svelte'], + // Enable Svelte to support Svelte components. + integrations: [svelte()], }); diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 4370b867f..1c3bd34ca 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/renderer-svelte": "^0.5.2", + "@astrojs/svelte": "^0.0.1", "astro": "^0.24.3" } } diff --git a/examples/framework-vue/astro.config.mjs b/examples/framework-vue/astro.config.mjs index 563e8b8fc..f30130a95 100644 --- a/examples/framework-vue/astro.config.mjs +++ b/examples/framework-vue/astro.config.mjs @@ -1,7 +1,8 @@ import { defineConfig } from 'astro/config'; +import vue from '@astrojs/vue'; // https://astro.build/config export default defineConfig({ - // Enable the Vue renderer to support Vue components. - renderers: ['@astrojs/renderer-vue'], + // Enable Vue to support Vue components. + integrations: [vue()], }); diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index e8779da77..21c1df412 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/renderer-vue": "^0.4.0", + "@astrojs/vue": "^0.0.1", "astro": "^0.24.3" } } diff --git a/examples/integrations-playground/.gitignore b/examples/integrations-playground/.gitignore new file mode 100644 index 000000000..c82467453 --- /dev/null +++ b/examples/integrations-playground/.gitignore @@ -0,0 +1,17 @@ +# build output +dist + +# dependencies +node_modules/ + +# logs +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# environment variables +.env +.env.production + +# macOS-specific files +.DS_Store diff --git a/examples/integrations-playground/.npmrc b/examples/integrations-playground/.npmrc new file mode 100644 index 000000000..ef83021af --- /dev/null +++ b/examples/integrations-playground/.npmrc @@ -0,0 +1,2 @@ +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/integrations-playground/.stackblitzrc b/examples/integrations-playground/.stackblitzrc new file mode 100644 index 000000000..43798ecff --- /dev/null +++ b/examples/integrations-playground/.stackblitzrc @@ -0,0 +1,6 @@ +{ + "startCommand": "npm start", + "env": { + "ENABLE_CJS_IMPORTS": true + } +} \ No newline at end of file diff --git a/examples/integrations-playground/README.md b/examples/integrations-playground/README.md new file mode 100644 index 000000000..0910d4b88 --- /dev/null +++ b/examples/integrations-playground/README.md @@ -0,0 +1,7 @@ +# Integration Playground + +``` +npm init astro -- --template integration-playground +``` + +[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/integration-playground) diff --git a/examples/integrations-playground/astro.config.mjs b/examples/integrations-playground/astro.config.mjs new file mode 100644 index 000000000..a1f21fe0b --- /dev/null +++ b/examples/integrations-playground/astro.config.mjs @@ -0,0 +1,12 @@ +import { defineConfig } from 'astro/config'; + +import lit from '@astrojs/lit'; +import react from '@astrojs/react'; +import tailwind from '@astrojs/tailwind'; +import turbolinks from '@astrojs/turbolinks'; +import sitemap from '@astrojs/sitemap'; +import partytown from '@astrojs/partytown'; + +export default defineConfig({ + integrations: [lit(), react(), tailwind(), turbolinks(), partytown(), sitemap()], +}); diff --git a/examples/integrations-playground/package.json b/examples/integrations-playground/package.json new file mode 100644 index 000000000..23b8c21df --- /dev/null +++ b/examples/integrations-playground/package.json @@ -0,0 +1,20 @@ +{ + "name": "@example/integrations-playground", + "version": "0.0.1", + "private": true, + "scripts": { + "dev": "astro dev", + "start": "astro dev", + "build": "astro build", + "preview": "astro preview" + }, + "devDependencies": { + "@astrojs/lit": "^0.0.1", + "@astrojs/react": "^0.0.1", + "@astrojs/partytown": "^0.0.1", + "@astrojs/sitemap": "^0.0.1", + "@astrojs/tailwind": "^0.0.1", + "@astrojs/turbolinks": "^0.0.1", + "astro": "^0.24.3" + } +} diff --git a/examples/integrations-playground/public/assets/logo.svg b/examples/integrations-playground/public/assets/logo.svg new file mode 100644 index 000000000..d751556b2 --- /dev/null +++ b/examples/integrations-playground/public/assets/logo.svg @@ -0,0 +1,12 @@ + diff --git a/examples/integrations-playground/public/favicon.ico b/examples/integrations-playground/public/favicon.ico new file mode 100644 index 000000000..578ad458b Binary files /dev/null and b/examples/integrations-playground/public/favicon.ico differ diff --git a/examples/integrations-playground/public/robots.txt b/examples/integrations-playground/public/robots.txt new file mode 100644 index 000000000..1f53798bb --- /dev/null +++ b/examples/integrations-playground/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: / diff --git a/examples/integrations-playground/sandbox.config.json b/examples/integrations-playground/sandbox.config.json new file mode 100644 index 000000000..9178af77d --- /dev/null +++ b/examples/integrations-playground/sandbox.config.json @@ -0,0 +1,11 @@ +{ + "infiniteLoopProtection": true, + "hardReloadOnChange": false, + "view": "browser", + "template": "node", + "container": { + "port": 3000, + "startScript": "start", + "node": "14" + } +} diff --git a/examples/integrations-playground/src/components/Counter.js b/examples/integrations-playground/src/components/Counter.js new file mode 100644 index 000000000..35fa8dbbb --- /dev/null +++ b/examples/integrations-playground/src/components/Counter.js @@ -0,0 +1,34 @@ +import { LitElement, html } from 'lit'; + +export const tagName = 'my-counter'; + +class Counter extends LitElement { + static get properties() { + return { + count: { + type: Number, + }, + }; + } + + constructor() { + super(); + this.count = 0; + } + + increment() { + this.count++; + } + + render() { + return html` +
Count: ${this.count}
+ + ++ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi quam arcu, rhoncus et dui at, volutpat viverra augue. Suspendisse placerat libero tellus, ut consequat ligula + rutrum id. Vestibulum lectus libero, viverra in lacus eget, porttitor tincidunt leo. Integer sit amet turpis et felis fringilla lacinia in id nibh. Proin vitae dapibus odio. + Mauris ornare eget urna id volutpat. Duis tellus nisi, hendrerit id sodales in, rutrum a quam. Proin tempor velit turpis, et tempor lacus sagittis in. Sed congue mauris quis nibh + posuere, nec semper lacus auctor. Morbi sit amet enim sit amet arcu ullamcorper sollicitudin. Donec dignissim posuere tincidunt. Donec ultrices quam nec orci venenatis suscipit. + Maecenas sapien quam, pretium sit amet ullamcorper at, vulputate sit amet urna. Suspendisse potenti. Integer in sapien turpis. Nulla accumsan viverra diam, quis convallis magna + finibus eget. Integer sed eros bibendum, consequat velit sit amet, tincidunt orci. Mauris varius id metus in fringilla. Vestibulum dignissim massa eget erat luctus, ac congue + mauris pellentesque. In et tempor dolor. Cras blandit congue lorem at facilisis. Aenean vel lacinia quam. Pellentesque luctus metus ut scelerisque efficitur. Mauris laoreet + sodales libero eget luctus. Proin at congue dui, a cursus risus. Pellentesque lorem sem, rhoncus fermentum arcu ut, euismod fermentum ligula. Nullam eu orci posuere, laoreet leo + in, commodo dolor. Fusce at felis elementum, commodo justo at, placerat justo. Nam feugiat scelerisque arcu, ut fermentum tellus elementum in. Sed ut vulputate ante. Morbi cursus + arcu quis odio convallis egestas. Donec vulputate vestibulum dolor eget tristique. Nullam tempor semper augue, vitae lobortis neque tempor ac. Pellentesque massa leo, congue id + ligula auctor, sollicitudin pharetra lorem. Curabitur a lacus porttitor, venenatis est quis, mattis velit. Fusce hendrerit lobortis mi ac efficitur. Mauris ornare, lorem sed + varius faucibus, nisi dui pretium urna, sit amet lacinia nibh ligula in ipsum. Phasellus gravida, metus eget ornare ultrices, dolor ipsum consectetur erat, ac aliquet eros metus + sed lectus. Nullam eleifend posuere rhoncus. Curabitur semper ligula vel ante posuere, at blandit orci accumsan. Vivamus accumsan metus in lorem laoreet, a luctus arcu tempus. + Donec posuere sollicitudin nulla at vulputate. Nulla condimentum imperdiet purus, et lobortis ligula iaculis in. Donec suscipit viverra neque, ut elementum eros lacinia ut. Fusce + at odio enim. Donec rutrum lectus sit amet est auctor, ac rhoncus lorem imperdiet. Curabitur commodo ex est, non tempus massa pulvinar nec. Sed fermentum, lectus eget ultricies + luctus, enim sem sodales quam, sed laoreet tortor sem feugiat nisi. Morbi molestie vehicula viverra. Integer accumsan mi in orci ultrices posuere. Integer mi quam, faucibus et + aliquet imperdiet, ornare ac ex. Nunc mattis molestie nisi, eu venenatis nibh vehicula at. Aliquam ut elit consectetur, finibus lorem sed, condimentum sapien. Praesent fermentum + iaculis orci, vitae tincidunt est viverra nec. Morbi semper turpis sed lectus ornare tristique. Sed congue dui ex. Maecenas orci ligula, imperdiet sit amet accumsan et, finibus a + velit. Ut vitae blandit eros. Nam gravida nec ipsum non volutpat. Integer quam metus, porttitor id ante sed, rutrum porta quam. Aenean at mattis ante. Morbi id libero eget risus + sagittis gravida. Proin consequat sapien a dignissim posuere. Ut luctus sed metus ut elementum. Mauris tincidunt condimentum risus at bibendum. Aenean a sapien justo. Morbi vel + neque in eros venenatis scelerisque vitae nec justo. Vestibulum lacinia, dui eu sollicitudin ornare, est elit vestibulum arcu, nec ultrices augue turpis in massa. Duis commodo + lectus sed est posuere, et mollis nisi dapibus. Sed id ultrices arcu. Praesent tempor sodales aliquet. Donec suscipit ipsum eu odio cursus, quis sodales metus sodales. Nunc + vestibulum massa at felis ullamcorper cursus. Pellentesque facilisis ante ut lectus vulputate vestibulum. Nullam pharetra felis ac lacus sodales, vel suscipit metus faucibus. + Donec facilisis imperdiet risus, in volutpat odio tincidunt a. Aliquam vitae leo lorem. Proin scelerisque efficitur velit, vel cursus ipsum accumsan id. Morbi nibh nulla, pretium + quis venenatis et, pharetra et sapien. Cras lobortis, massa sit amet blandit pulvinar, mi magna condimentum ex, quis commodo ipsum est quis metus. Maecenas pulvinar, leo sit amet + congue pulvinar, neque magna ultrices mi, et rhoncus massa sapien quis libero. Etiam a nunc et ipsum faucibus pretium. Nulla facilisi. Nunc nec dolor velit. In semper semper mi + non condimentum. Pellentesque vehicula volutpat odio, a semper sem porta a. In sit amet lectus rutrum, sollicitudin augue auctor, maximus quam. Mauris congue, nisl non fermentum + iaculis, leo erat interdum lorem, quis bibendum arcu eros et elit. Fusce tortor ante, gravida a arcu in, lacinia finibus ante. Phasellus facilisis lectus vitae sapien feugiat + laoreet. Curabitur ultricies libero sit amet condimentum suscipit. Duis at vestibulum mi. Suspendisse at neque augue. Duis ornare a mauris id efficitur. Suspendisse in dui nec + dolor dignissim venenatis. Curabitur a magna turpis. Aliquam at commodo tellus. In id sem interdum, suscipit felis at, mattis velit. Proin accumsan sodales felis a lacinia. + Curabitur at magna a massa varius maximus. Vestibulum in auctor ante. Donec aliquam tortor sed nulla rutrum, et egestas mi efficitur. Sed viverra quam tellus, quis vulputate + felis ultrices sed. Mauris sagittis, neque quis laoreet gravida, nisi est ultrices mi, at tempus nunc justo non dui. Suspendisse porttitor tortor nulla, eget luctus quam finibus + id. Proin sodales eros mollis tellus euismod luctus a eu mi. Quisque consectetur iaculis nibh, at mollis tellus volutpat eu. Aenean a nulla vel lectus rhoncus aliquam. Donec + vitae lacinia neque. Donec non lectus eget sem finibus ultrices vel nec felis. Proin fringilla mi a leo rhoncus aliquam sit amet quis augue. Duis congue ligula at est suscipit + fringilla. Proin aliquam erat ut consequat dapibus. Suspendisse non nisi orci. Donec ac erat vel libero egestas laoreet. Nullam felis odio, tincidunt eget eleifend a, porttitor + eu nisi. Suspendisse tristique eros at dolor scelerisque hendrerit. Etiam id dignissim lectus. Fusce lacinia metus eu risus placerat, et eleifend nunc ultrices. Ut gravida a dui + sed volutpat. Sed semper quis erat sed ornare. Pellentesque sapien sem, fermentum vel nunc at, auctor posuere nisl. Maecenas aliquet lobortis leo. Vivamus tellus urna, dignissim + consectetur sapien vitae, hendrerit varius sem. Nunc dictum tristique fermentum. Duis eu suscipit odio. Curabitur quis egestas neque. Fusce eu fringilla orci, vitae euismod + sapien. Donec sit amet iaculis urna. Phasellus maximus nisl in libero bibendum volutpat. Nulla at vehicula lorem. Phasellus varius, elit ac suscipit pretium, turpis ipsum + porttitor lectus, vitae ullamcorper orci velit ut ligula. Proin mollis, orci vel commodo auctor, sapien ipsum vulputate enim, sit amet aliquam nulla sapien ut sapien. Proin + tincidunt ex non massa aliquet, quis aliquam nulla egestas. Maecenas mollis turpis dapibus, dignissim lectus tincidunt, egestas ligula. Suspendisse in lobortis purus. Sed tellus + tellus, mollis eget tempor sed, interdum ut lectus. Nulla sed ex efficitur, porta dui cursus, tristique elit. Maecenas tincidunt tortor vitae massa laoreet ultricies. Mauris ac + elit vitae orci eleifend ornare non eu ligula. Curabitur venenatis nulla ut neque tristique, non tincidunt justo pretium. Suspendisse mattis semper dui, eget vestibulum risus + elementum sed. In consequat nisi sit amet nulla euismod, at convallis tortor tincidunt. Aliquam hendrerit venenatis risus in interdum. Duis ullamcorper imperdiet elit sit amet + blandit. Mauris placerat lacinia velit id pharetra. Nam nec iaculis dui. Etiam odio mi, fringilla in rutrum in, viverra quis tellus. Aliquam egestas mauris id nisi facilisis, in + laoreet nibh malesuada. Ut eu dui laoreet, venenatis tellus ac, feugiat mauris. Nunc in velit laoreet, venenatis tellus quis, blandit dolor. Nulla ultrices et neque id placerat. + Nulla eu interdum nulla. Aliquam molestie enim quis rutrum finibus. Nulla bibendum orci vel scelerisque posuere. Praesent quis magna molestie, luctus tortor tincidunt, gravida + neque. Quisque et ligula eget magna viverra interdum at a sapien. Mauris ornare efficitur nunc sed vulputate. Praesent laoreet mollis tincidunt. Vestibulum id arcu vulputate, + eleifend enim vel, accumsan turpis. Morbi faucibus convallis tellus, semper laoreet justo lacinia nec. Sed sodales ligula consectetur dui rhoncus, et convallis metus accumsan. + Sed ullamcorper non ex sit amet ultricies. Donec finibus nulla nec blandit porttitor. Etiam aliquam quis leo a imperdiet. Cras at lobortis est. In convallis semper enim, ac porta + ligula fringilla at. Donec augue est, facilisis et odio sit amet, viverra ullamcorper nisl. Ut porta velit nec sem lacinia, sit amet mollis magna auctor. Nulla lobortis lacinia + mauris nec sagittis. Suspendisse rutrum ex vel nisi interdum hendrerit et ut purus. Sed consectetur sodales nibh eget tempus. Aenean egestas luctus viverra. Integer fermentum + tincidunt tellus, nec rhoncus velit hendrerit vitae. Proin quis neque porttitor, scelerisque risus gravida, volutpat sem. Fusce nec ex rhoncus, tempor libero nec, pellentesque + ex. Integer quis iaculis purus. Nullam vitae imperdiet orci. Sed sit amet eros condimentum, scelerisque turpis facilisis, dignissim ante. Proin quis tristique lacus, sed sagittis + nisl. Cras pharetra ultrices purus, sed ullamcorper nisi fringilla eu. Praesent risus turpis, auctor in fringilla a, fringilla eu dolor. Phasellus auctor tristique enim, eleifend + molestie diam venenatis ut. Mauris dapibus, enim eget pharetra semper, nulla dui porttitor mi, auctor hendrerit augue nulla quis urna. Aliquam in cursus justo. +
diff --git a/examples/integrations-playground/src/components/Test.js b/examples/integrations-playground/src/components/Test.js new file mode 100644 index 000000000..7f565f777 --- /dev/null +++ b/examples/integrations-playground/src/components/Test.js @@ -0,0 +1,19 @@ +import { LitElement, html } from 'lit'; + +export const tagName = 'calc-add'; + +class CalcAdd extends LitElement { + static get properties() { + return { + num: { + type: Number, + }, + }; + } + + render() { + return html`