[
  {
    "path": ".eleventy.cjs",
    "content": "const syntaxHighlight = require('@11ty/eleventy-plugin-syntaxhighlight');\n\nmodule.exports = function (eleventyConfig) {\n  eleventyConfig.addPlugin(syntaxHighlight);\n  eleventyConfig.addPassthroughCopy('docs-src/docs.css');\n  eleventyConfig.addPassthroughCopy('docs-src/.nojekyll');\n  eleventyConfig.addPassthroughCopy(\n    'node_modules/@webcomponents/webcomponentsjs'\n  );\n  eleventyConfig.addPassthroughCopy('node_modules/lit/polyfill-support.js');\n  return {\n    dir: {\n      input: 'docs-src',\n      output: 'docs',\n    },\n    templateExtensionAliases: {\n      '11ty.cjs': '11ty.js',\n      '11tydata.cjs': '11tydata.js',\n    },\n  };\n};\n"
  },
  {
    "path": ".eslintignore",
    "content": "node_modules/*\ndocs/*\ndocs-src/*\nrollup-config.js\ncustom-elements.json\nweb-dev-server.config.js\n"
  },
  {
    "path": ".eslintrc.json",
    "content": "{\n  \"root\": true,\n  \"extends\": [\n    \"eslint:recommended\",\n    \"plugin:@typescript-eslint/eslint-recommended\",\n    \"plugin:@typescript-eslint/recommended\"\n  ],\n  \"parser\": \"@typescript-eslint/parser\",\n  \"parserOptions\": {\n    \"ecmaVersion\": 2020,\n    \"sourceType\": \"module\"\n  },\n  \"plugins\": [\"@typescript-eslint\"],\n  \"env\": {\n    \"browser\": true\n  },\n  \"rules\": {\n    \"no-prototype-builtins\": \"off\",\n    \"@typescript-eslint/ban-types\": \"off\",\n    \"@typescript-eslint/explicit-function-return-type\": \"off\",\n    \"@typescript-eslint/explicit-module-boundary-types\": \"off\",\n    \"@typescript-eslint/no-explicit-any\": \"error\",\n    \"@typescript-eslint/no-empty-function\": \"off\",\n    \"@typescript-eslint/no-non-null-assertion\": \"off\",\n    \"@typescript-eslint/no-unused-vars\": [\n      \"warn\",\n      {\n        \"argsIgnorePattern\": \"^_\"\n      }\n    ]\n  },\n  \"overrides\": [\n    {\n      \"files\": [\"rollup.config.js\", \"web-test-runner.config.js\"],\n      \"env\": {\n        \"node\": true\n      }\n    },\n    {\n      \"files\": [\n        \"*_test.ts\",\n        \"**/custom_typings/*.ts\",\n        \"packages/labs/ssr/src/test/integration/tests/**\",\n        \"packages/labs/ssr/src/lib/util/parse5-utils.ts\"\n      ],\n      \"rules\": {\n        \"@typescript-eslint/no-explicit-any\": \"off\"\n      }\n    }\n  ]\n}\n"
  },
  {
    "path": ".gitignore",
    "content": "/node_modules/\n/lib/\n/test/\ncustom-elements.json\n# top level source\nmy-element.js\nmy-element.js.map\nmy-element.d.ts\nmy-element.d.ts.map\n# only generated for size check\nmy-element.bundled.js"
  },
  {
    "path": ".prettierrc.json",
    "content": "{\n  \"trailingComma\": \"es5\",\n  \"tabWidth\": 2,\n  \"singleQuote\": true,\n  \"bracketSpacing\": false,\n  \"arrowParens\": \"always\"\n}\n"
  },
  {
    "path": ".vscode/extensions.json",
    "content": "{\n  // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.\n  // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp\n\n  // List of extensions which should be recommended for users of this workspace.\n  \"recommendations\": [\"runem.lit-plugin\"],\n  // List of extensions recommended by VS Code that should not be recommended for users of this workspace.\n  \"unwantedRecommendations\": []\n}\n"
  },
  {
    "path": "CHANGELOG.md",
    "content": "# @lit/lit-starter-ts\n\n## 2.0.3\n\n### Patch Changes\n\n- [#4984](https://github.com/lit/lit/pull/4984) [`ad23f26ae908a160d30ed2a939b322fe9cc2ee83`](https://github.com/lit/lit/commit/ad23f26ae908a160d30ed2a939b322fe9cc2ee83) Thanks [@kyubisation](https://github.com/kyubisation)! - Update TypeScript dependencies to version 5.8 with related ARIAMixin changes (ariaColIndexText, ariaRelevant and ariaRowIndexText)\n\n## 2.0.2\n\n### Patch Changes\n\n- [#4682](https://github.com/lit/lit/pull/4682) [`290a608a`](https://github.com/lit/lit/commit/290a608aa2297e8b99a5424dc90632b97c66386c) - Update typescript to 5.5.0\n\n- [#4681](https://github.com/lit/lit/pull/4681) [`5463b104`](https://github.com/lit/lit/commit/5463b1046e0589c9ce7041e67cd539ddfba2e5a7) - Update Rollup and Terser dependencies\n\n- Updated dependencies [[`feccc1ba`](https://github.com/lit/lit/commit/feccc1ba8e82b36d07a0e2576381bf2819926b98)]:\n  - lit@3.2.0\n\n## 2.0.1\n\n### Patch Changes\n\n- [#4451](https://github.com/lit/lit/pull/4451) [`7852e130`](https://github.com/lit/lit/commit/7852e13022c9dcfcff5ed54a215c93420349e318) - Minor security fixes.\n\n## 2.0.0\n\n### Major Changes\n\n- [#4141](https://github.com/lit/lit/pull/4141) [`6b515e43`](https://github.com/lit/lit/commit/6b515e43c3a24cc8a593247d3aa72d81bcc724d5) - Update TypeScript to ~5.2.0\n\n- [#3756](https://github.com/lit/lit/pull/3756) [`f06f7972`](https://github.com/lit/lit/commit/f06f7972a027d2937fe2c68ab5af0274dec57cf4) - Drop IE11 support\n\n### Patch Changes\n\n- [#3814](https://github.com/lit/lit/pull/3814) [`23326c6b`](https://github.com/lit/lit/commit/23326c6b9a6abdf01998dadf5d0f20a643e457aa) - Update to TypeScript v5.0\n\n- Updated dependencies [[`dfd747cf`](https://github.com/lit/lit/commit/dfd747cf4f7239e0c3bb7134f8acb967d0157654), [`6b515e43`](https://github.com/lit/lit/commit/6b515e43c3a24cc8a593247d3aa72d81bcc724d5), [`23c404fd`](https://github.com/lit/lit/commit/23c404fdec0cd7be834221b6ddf9b659c24ca8a2), [`1040f758`](https://github.com/lit/lit/commit/1040f75861b029527538b4ec36b2cfedcc32988a), [`0f6878dc`](https://github.com/lit/lit/commit/0f6878dc45fd95bbeb8750f277349c1392e2b3ad), [`1db01376`](https://github.com/lit/lit/commit/1db0137699b35d7e7bfac9b2ab274af4100fd7cf), [`2a01471a`](https://github.com/lit/lit/commit/2a01471a5f65fe34bad11e1099281811b8d0f79b), [`6f2833fd`](https://github.com/lit/lit/commit/6f2833fd05f2ecde5386f72d291dafc9dbae0cf7), [`c3e473b4`](https://github.com/lit/lit/commit/c3e473b499ff029b5e1aff01ca8799daf1ca1bbe), [`2eba6997`](https://github.com/lit/lit/commit/2eba69974c9e130e7483f44f9daca308345497d5), [`92cedaa2`](https://github.com/lit/lit/commit/92cedaa2c8cd8a306be3fe25d52e0e47bb044020), [`d27a77ec`](https://github.com/lit/lit/commit/d27a77ec3d3999e872df9218a2b07f90f22eb417), [`7e8491d4`](https://github.com/lit/lit/commit/7e8491d4ed9f0c39d974616c4678552ef50b81df), [`6470807f`](https://github.com/lit/lit/commit/6470807f3a0981f9d418cb26f05969912455d148), [`23326c6b`](https://github.com/lit/lit/commit/23326c6b9a6abdf01998dadf5d0f20a643e457aa), [`09949234`](https://github.com/lit/lit/commit/09949234445388d51bfb4ee24ff28a4c9f82fe17), [`f06f7972`](https://github.com/lit/lit/commit/f06f7972a027d2937fe2c68ab5af0274dec57cf4)]:\n  - lit@3.0.0\n\n## 2.0.0-pre.1\n\n### Major Changes\n\n- [#4141](https://github.com/lit/lit/pull/4141) [`6b515e43`](https://github.com/lit/lit/commit/6b515e43c3a24cc8a593247d3aa72d81bcc724d5) - Update TypeScript to ~5.2.0\n\n### Patch Changes\n\n- Updated dependencies [[`6b515e43`](https://github.com/lit/lit/commit/6b515e43c3a24cc8a593247d3aa72d81bcc724d5), [`0f6878dc`](https://github.com/lit/lit/commit/0f6878dc45fd95bbeb8750f277349c1392e2b3ad), [`2a01471a`](https://github.com/lit/lit/commit/2a01471a5f65fe34bad11e1099281811b8d0f79b), [`2eba6997`](https://github.com/lit/lit/commit/2eba69974c9e130e7483f44f9daca308345497d5), [`d27a77ec`](https://github.com/lit/lit/commit/d27a77ec3d3999e872df9218a2b07f90f22eb417), [`6470807f`](https://github.com/lit/lit/commit/6470807f3a0981f9d418cb26f05969912455d148), [`09949234`](https://github.com/lit/lit/commit/09949234445388d51bfb4ee24ff28a4c9f82fe17)]:\n  - lit@3.0.0-pre.1\n\n## 2.0.0-pre.0\n\n### Major Changes\n\n- [#3756](https://github.com/lit/lit/pull/3756) [`f06f7972`](https://github.com/lit/lit/commit/f06f7972a027d2937fe2c68ab5af0274dec57cf4) - Drop IE11 support\n\n### Patch Changes\n\n- [#3814](https://github.com/lit/lit/pull/3814) [`23326c6b`](https://github.com/lit/lit/commit/23326c6b9a6abdf01998dadf5d0f20a643e457aa) - Update to TypeScript v5.0\n\n- Updated dependencies [[`dfd747cf`](https://github.com/lit/lit/commit/dfd747cf4f7239e0c3bb7134f8acb967d0157654), [`23c404fd`](https://github.com/lit/lit/commit/23c404fdec0cd7be834221b6ddf9b659c24ca8a2), [`1db01376`](https://github.com/lit/lit/commit/1db0137699b35d7e7bfac9b2ab274af4100fd7cf), [`c3e473b4`](https://github.com/lit/lit/commit/c3e473b499ff029b5e1aff01ca8799daf1ca1bbe), [`92cedaa2`](https://github.com/lit/lit/commit/92cedaa2c8cd8a306be3fe25d52e0e47bb044020), [`23326c6b`](https://github.com/lit/lit/commit/23326c6b9a6abdf01998dadf5d0f20a643e457aa), [`f06f7972`](https://github.com/lit/lit/commit/f06f7972a027d2937fe2c68ab5af0274dec57cf4)]:\n  - lit@3.0.0-pre.0\n\n## 1.0.6\n\n### Patch Changes\n\n- [#4157](https://github.com/lit/lit/pull/4157) [`da32db2e`](https://github.com/lit/lit/commit/da32db2e67547e0f17b7132065559eba2b1d3513) Thanks [@welingtonms](https://github.com/welingtonms)! - Improve bundling and minification recommendations.\n\n## 1.0.5\n\n### Patch Changes\n\n- [#3561](https://github.com/lit/lit/pull/3561) [`e5c254e9`](https://github.com/lit/lit/commit/e5c254e96cb5d0f770ec616332e231559325c5c5) - Update dependency `@rollup/plugin-replace`\n\n## 1.0.4\n\n### Patch Changes\n\n- [#2922](https://github.com/lit/lit/pull/2922) [`da9db86a`](https://github.com/lit/lit/commit/da9db86a33cba710d439e254df2492f9f6dcbbee) - Update dependencies and remove unused dependencies\n\n## 1.0.3\n\n### Patch Changes\n\n- [#2757](https://github.com/lit/lit/pull/2757) [`55841c14`](https://github.com/lit/lit/commit/55841c14f52891357dd93680d3bc5b1da6c89c8a) - Update Rollup and Rollup plugins\n\n## 1.0.2\n\n### Patch Changes\n\n- [#2535](https://github.com/lit/lit/pull/2535) [`d1359856`](https://github.com/lit/lit/commit/d1359856698d1af381b335fb757f9282574690b0) - Update the README to indicate that issues and PRs should be filed on the main Lit repo.\n\n## 1.0.1\n\n### Patch Changes\n\n- [#2300](https://github.com/lit/lit/pull/2300) [`8b9dcb4d`](https://github.com/lit/lit/commit/8b9dcb4d10e4161083146ae40d0b12174a63d31d) - Fix starter kits so `npm run serve` serves the root directory, and add a link to the `/dev/index.html` component example from `/`.\n\n- Updated dependencies [[`fcc2b3d0`](https://github.com/lit/lit/commit/fcc2b3d0054e69e6f76588ea9f440117b6d0deed), [`49ecf623`](https://github.com/lit/lit/commit/49ecf6239033e9578184d46116e6b89676d091db), [`1d563e83`](https://github.com/lit/lit/commit/1d563e830c02a2d1a22e1e939f1ace971b1d1ae7)]:\n  - lit@2.1.0\n\n## 1.0.0\n\n### Patch Changes\n\n- [#2113](https://github.com/lit/lit/pull/2113) [`5b2f3642`](https://github.com/lit/lit/commit/5b2f3642ff91931b5b01f8bdd2ed98aba24f1047) - Dependency upgrades including TypeScript 4.4.2\n\n- [#2103](https://github.com/lit/lit/pull/2103) [`15a8356d`](https://github.com/lit/lit/commit/15a8356ddd59a1e80880a93acd21fadc9c24e14b) - Added Lit dev mode to test and serve commands, controlled via the MODE=dev or MODE=prod environment variables.\n\n- [#2117](https://github.com/lit/lit/pull/2117) [`eff2fbc7`](https://github.com/lit/lit/commit/eff2fbc7e45cfc2a7b8df21e18c84619dfbcb277) - Updated starter templates to use open-wc analyzer for generating custom-elements.json, and updated basic API docs generater included in the template to the new manifest format.\n\n- Updated dependencies [[`15a8356d`](https://github.com/lit/lit/commit/15a8356ddd59a1e80880a93acd21fadc9c24e14b), [`5fabe2b5`](https://github.com/lit/lit/commit/5fabe2b5ae4ab8fba9dc2d23a69105d32e4c0705), [`5b2f3642`](https://github.com/lit/lit/commit/5b2f3642ff91931b5b01f8bdd2ed98aba24f1047), [`5fabe2b5`](https://github.com/lit/lit/commit/5fabe2b5ae4ab8fba9dc2d23a69105d32e4c0705), [`5fabe2b5`](https://github.com/lit/lit/commit/5fabe2b5ae4ab8fba9dc2d23a69105d32e4c0705), [`0312f3e5`](https://github.com/lit/lit/commit/0312f3e533611eb3f4f9381594485a33ad003b74)]:\n  - lit@2.0.0\n"
  },
  {
    "path": "LICENSE",
    "content": "BSD 3-Clause License\n\nCopyright (c) 2019 Google LLC. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this\n   list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice,\n   this list of conditions and the following disclaimer in the documentation\n   and/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its\n   contributors may be used to endorse or promote products derived from\n   this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
  },
  {
    "path": "README.md",
    "content": "# LitElement TypeScript starter\n\nThis project includes a sample component using LitElement with TypeScript.\n\nThis template is generated from the `lit-starter-ts` package in [the main Lit\nrepo](https://github.com/lit/lit). Issues and PRs for this template should be\nfiled in that repo.\n\n## About this release\n\nThis is a pre-release of Lit 3.0, the next major version of Lit.\n\nLit 3.0 has very few breaking changes from Lit 2.0:\n\n- Drops support for IE11\n- Published as ES2021\n- Removes a couple of deprecated Lit 1.x APIs\n\nLit 3.0 should require no changes to upgrade from Lit 2.0 for the vast majority of users. Once the full release is published, most apps and libraries will be able to extend their npm version ranges to include both 2.x and 3.x, like `\"^2.7.0 || ^3.0.0\"`.\n\nLit 2.x and 3.0 are _interoperable_: templates, base classes, directives, decorators, etc., from one version of Lit will work with those from another.\n\nPlease file any issues you find on our [issue tracker](https://github.com/lit/lit/issues).\n\n## Setup\n\nInstall dependencies:\n\n```bash\nnpm i\n```\n\n## Build\n\nThis sample uses the TypeScript compiler to produce JavaScript that runs in modern browsers.\n\nTo build the JavaScript version of your component:\n\n```bash\nnpm run build\n```\n\nTo watch files and rebuild when the files are modified, run the following command in a separate shell:\n\n```bash\nnpm run build:watch\n```\n\nBoth the TypeScript compiler and lit-analyzer are configured to be very strict. You may want to change `tsconfig.json` to make them less strict.\n\n## Testing\n\nThis sample uses modern-web.dev's\n[@web/test-runner](https://www.npmjs.com/package/@web/test-runner) for testing. See the\n[modern-web.dev testing documentation](https://modern-web.dev/docs/test-runner/overview) for\nmore information.\n\nTests can be run with the `test` script, which will run your tests against Lit's development mode (with more verbose errors) as well as against Lit's production mode:\n\n```bash\nnpm test\n```\n\nFor local testing during development, the `test:dev:watch` command will run your tests in Lit's development mode (with verbose errors) on every change to your source files:\n\n```bash\nnpm test:watch\n```\n\nAlternatively the `test:prod` and `test:prod:watch` commands will run your tests in Lit's production mode.\n\n## Dev Server\n\nThis sample uses modern-web.dev's [@web/dev-server](https://www.npmjs.com/package/@web/dev-server) for previewing the project without additional build steps. Web Dev Server handles resolving Node-style \"bare\" import specifiers, which aren't supported in browsers. It also automatically transpiles JavaScript and adds polyfills to support older browsers. See [modern-web.dev's Web Dev Server documentation](https://modern-web.dev/docs/dev-server/overview/) for more information.\n\nTo run the dev server and open the project in a new browser tab:\n\n```bash\nnpm run serve\n```\n\nThere is a development HTML file located at `/dev/index.html` that you can view at http://localhost:8000/dev/index.html. Note that this command will serve your code using Lit's development mode (with more verbose errors). To serve your code against Lit's production mode, use `npm run serve:prod`.\n\n## Editing\n\nIf you use VS Code, we highly recommend the [lit-plugin extension](https://marketplace.visualstudio.com/items?itemName=runem.lit-plugin), which enables some extremely useful features for lit-html templates:\n\n- Syntax highlighting\n- Type-checking\n- Code completion\n- Hover-over docs\n- Jump to definition\n- Linting\n- Quick Fixes\n\nThe project is setup to recommend lit-plugin to VS Code users if they don't already have it installed.\n\n## Linting\n\nLinting of TypeScript files is provided by [ESLint](eslint.org) and [TypeScript ESLint](https://github.com/typescript-eslint/typescript-eslint). In addition, [lit-analyzer](https://www.npmjs.com/package/lit-analyzer) is used to type-check and lint lit-html templates with the same engine and rules as lit-plugin.\n\nThe rules are mostly the recommended rules from each project, but some have been turned off to make LitElement usage easier. The recommended rules are pretty strict, so you may want to relax them by editing `.eslintrc.json` and `tsconfig.json`.\n\nTo lint the project run:\n\n```bash\nnpm run lint\n```\n\n## Formatting\n\n[Prettier](https://prettier.io/) is used for code formatting. It has been pre-configured according to the Lit's style. You can change this in `.prettierrc.json`.\n\nPrettier has not been configured to run when committing files, but this can be added with Husky and `pretty-quick`. See the [prettier.io](https://prettier.io/) site for instructions.\n\n## Static Site\n\nThis project includes a simple website generated with the [eleventy](https://11ty.dev) static site generator and the templates and pages in `/docs-src`. The site is generated to `/docs` and intended to be checked in so that GitHub pages can serve the site [from `/docs` on the main branch](https://help.github.com/en/github/working-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site).\n\nTo enable the site go to the GitHub settings and change the GitHub Pages &quot;Source&quot; setting to &quot;main branch /docs folder&quot;.</p>\n\nTo build the site, run:\n\n```bash\nnpm run docs\n```\n\nTo serve the site locally, run:\n\n```bash\nnpm run docs:serve\n```\n\nTo watch the site files, and re-build automatically, run:\n\n```bash\nnpm run docs:gen:watch\n```\n\nThe site will usually be served at http://localhost:8000.\n\n**Note**: The project uses Rollup to bundle and minify the source code for the docs site and not to publish to NPM. For bundling and minification, check the [Bundling and minification](#bundling-and-minification) section.\n\n## Bundling and minification\n\nAs stated in the [static site generation](#static-site) section, the bundling and minification setup in the Rollup configuration in this project is there specifically for the docs generation.\n\nWe recommend publishing components as unoptimized JavaScript modules and performing build-time optimizations at the application level. This gives build tools the best chance to deduplicate code, remove dead code, and so on.\n\nPlease check the [Publishing best practices](https://lit.dev/docs/tools/publishing/#publishing-best-practices) for information on publishing reusable Web Components, and [Build for production](https://lit.dev/docs/tools/production/) for building application projects that include LitElement components, on the Lit site.\n\n## More information\n\nSee [Get started](https://lit.dev/docs/getting-started/) on the Lit site for more information.\n"
  },
  {
    "path": "dev/README.md",
    "content": "This directory contains HTML files containing your element for development. By running `npm run build:watch` and `npm run serve` you can edit and see changes without bundling.\n"
  },
  {
    "path": "dev/index.html",
    "content": "<!doctype html>\n\n<html>\n  <head>\n    <meta charset=\"utf-8\" />\n    <title>&lt;my-element> Demo</title>\n    <script src=\"../node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js\"></script>\n    <script src=\"../node_modules/lit/polyfill-support.js\"></script>\n    <script type=\"module\" src=\"../my-element.js\"></script>\n    <style>\n      p {\n        border: solid 1px blue;\n        padding: 8px;\n      }\n    </style>\n  </head>\n  <body>\n    <my-element>\n      <p>This is child content</p>\n    </my-element>\n  </body>\n</html>\n"
  },
  {
    "path": "docs/.nojekyll",
    "content": ""
  },
  {
    "path": "docs/api/index.html",
    "content": "\n<!doctype html>\n\n<html lang=\"en\">\n  <head>\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title><my-element> ⌲ Docs</title>\n    <link rel=\"stylesheet\" href=\"../docs.css\">\n    <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/css?family=Open+Sans:300,400,600|Roboto+Mono\">\n    <link href=\"../prism-okaidia.css\" rel=\"stylesheet\" />\n    <script src=\"/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js\"></script>\n    <script src=\"/node_modules/lit/polyfill-support.js\"></script>\n    <script type=\"module\" src=\"../my-element.bundled.js\"></script>\n  </head>\n  <body>\n    \n<header>\n  <h1>&lt;my-element></h1>\n  <h2>A web component just for me.</h2>\n</header>\n    \n<nav>\n  <a href=\"../\">Home</a>\n  <a href=\"../examples/\">Examples</a>\n  <a href=\"\">API</a>\n  <a href=\"../install/\">Install</a>\n</nav>\n    <div id=\"main-wrapper\">\n      <main>\n        \n     <h1>API</h1>\n     \n       <h2>&lt;my-element></h2>\n       <div>\n         An example element.\n       </div>\n       \n   <h3>Attributes</h3>\n   <table>\n     <tr>\n       <th>Name</th><th>Description</th><th>Type</th><th>Default</th>\n     </tr>\n     \n       <tr>\n         <td>name</td><td>The name to say \"Hello\" to.</td><td>string</td><td>'World'</td>\n       </tr>\n     \n       <tr>\n         <td>count</td><td>The number of times the button has been clicked.</td><td>number</td><td>0</td>\n       </tr>\n     \n   </table>\n \n       \n   <h3>Properties</h3>\n   <table>\n     <tr>\n       <th>Name</th><th>Attribute</th><th>Description</th><th>Type</th><th>Default</th>\n     </tr>\n     \n       <tr>\n         <td>name</td><td>name</td><td>The name to say \"Hello\" to.</td><td>string</td><td>'World'</td>\n       </tr>\n     \n       <tr>\n         <td>count</td><td>count</td><td>The number of times the button has been clicked.</td><td>number</td><td>0</td>\n       </tr>\n     \n   </table>\n   \n       \n   <h3>Methods</h3>\n   <table>\n     <tr>\n       <th>Name</th><th>Parameters</th><th>Description</th><th>Return</th>\n     </tr>\n     \n       <tr>\n         <td>sayHello</td><td>\n   \n   <table>\n     <tr>\n       <th>Name</th><th>Description</th><th>Type</th>\n     </tr>\n     \n       <tr>\n         <td>name</td><td>The name to say \"Hello\" to</td><td>string</td>\n       </tr>\n     \n   </table>\n </td><td>Formats a greeting</td><td>string</td>\n       </tr>\n     \n   </table>\n \n       \n   <h3>Events</h3>\n   <table>\n     <tr>\n       <th>Name</th><th>Description</th>\n     </tr>\n     \n       <tr>\n         <td>count-changed</td><td>Indicates when the count changes</td>\n       </tr>\n     \n   </table>\n     \n       \n   <h3>Slots</h3>\n   <table>\n     <tr>\n       <th>Name</th><th>Description</th>\n     </tr>\n     \n       <tr>\n         <td>(default)</td><td>This element has a slot</td>\n       </tr>\n     \n   </table>\n   \n       \n   <h3>CSS Shadow Parts</h3>\n   <table>\n     <tr>\n       <th>Name</th><th>Description</th>\n     </tr>\n     \n       <tr>\n         <td>button</td><td>The button</td>\n       </tr>\n     \n   </table>\n \n       \n       \n   \n      </main>\n    </div>\n    \n<footer>\n  <p>\n    Made with\n    <a href=\"https://github.com/lit/lit-element-starter-ts\">lit-starter-ts</a>\n  </p>\n</footer>\n  </body>\n</html>"
  },
  {
    "path": "docs/docs.css",
    "content": "* {\n  box-sizing: border-box;\n}\n\nbody {\n  margin: 0;\n  color: #333;\n  font-family: 'Open Sans', arial, sans-serif;\n  min-width: min-content;\n  min-height: 100vh;\n  font-size: 18px;\n  display: flex;\n  flex-direction: column;\n  align-items: stretch;\n}\n\n#main-wrapper {\n  flex-grow: 1;\n}\n\nmain {\n  max-width: 1024px;\n  margin: 0 auto;\n}\n\na:visited {\n  color: inherit;\n}\n\nheader {\n  width: 100%;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  height: 360px;\n  margin: 0;\n  background: linear-gradient(0deg, rgba(9,9,121,1) 0%, rgba(0,212,255,1) 100%);\n  color: white;\n}\n\nfooter {\n  width: 100%;\n  min-height: 120px;\n  background: gray;\n  color: white;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  padding: 12px;\n  margin-top: 64px;\n}\n\nh1 {\n  font-size: 2.5em;\n  font-weight: 400;\n}\n\nh2 {\n  font-size: 1.6em;\n  font-weight: 300;\n  margin: 64px 0 12px;\n}\n\nh3 {\n  font-weight: 300;\n}\n\nheader h1 {\n  width: auto;\n  font-size: 2.8em;\n  margin: 0;\n}\n\nheader h2 {\n  width: auto;\n  margin: 0;\n}\n\nnav {\n  display: grid;\n  width: 100%;\n  max-width: 100%;\n  grid-template-columns: repeat(auto-fit, 240px);\n  justify-content: center;\n  border-bottom: 1px solid #efefef;\n}\n\nnav > a {\n  color: #444;\n  display: block;\n  flex: 1;\n  font-size: 18px;\n  padding: 20px 0;\n  text-align: center;\n  text-decoration: none;\n}\n\nnav > a:hover {\n  text-decoration: underline;\n}\n\nnav.collection {\n  border: none;\n}\n\nnav.collection > ul {\n  padding: 0;\n  list-style: none;\n}\n\nnav.collection > ul > li {\n  padding: 4px 0;\n}\n\nnav.collection > ul > li.selected {\n  font-weight: 600;\n}\n\nnav.collection a {\n  text-decoration: none;\n}\n\nnav.collection a:hover {\n  text-decoration: underline;\n}\n\nsection.columns {\n  display: grid;\n  grid-template-columns: repeat(auto-fit, minmax(400px, 488px));\n  grid-gap: 48px;\n  justify-content: center;\n}\n\nsection.columns > div {\n  flex: 1;\n}\n\nsection.examples {\n  display: grid;\n  grid-template-columns: 240px minmax(400px, 784px);\n  grid-gap: 48px;\n  justify-content: center;\n}\n\nsection.examples h2:first-of-type {\n  margin-top: 0;\n}\n\ntable {\n  width: 100%;\n  border-collapse: collapse;\n}\nth {\n  font-weight: 600;\n}\n\ntd, th {\n  border: solid 1px #aaa;\n  padding: 4px;\n  text-align: left;\n  vertical-align: top;\n}\n"
  },
  {
    "path": "docs/examples/index.html",
    "content": "\n<!doctype html>\n\n<html lang=\"en\">\n  <head>\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title><my-element> ⌲ Examples ⌲ Basic</title>\n    <link rel=\"stylesheet\" href=\"../docs.css\">\n    <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/css?family=Open+Sans:300,400,600|Roboto+Mono\">\n    <link href=\"../prism-okaidia.css\" rel=\"stylesheet\" />\n    <script src=\"/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js\"></script>\n    <script src=\"/node_modules/lit/polyfill-support.js\"></script>\n    <script type=\"module\" src=\"../my-element.bundled.js\"></script>\n  </head>\n  <body>\n    \n<header>\n  <h1>&lt;my-element></h1>\n  <h2>A web component just for me.</h2>\n</header>\n    \n<nav>\n  <a href=\"../\">Home</a>\n  <a href=\"\">Examples</a>\n  <a href=\"../api/\">API</a>\n  <a href=\"../install/\">Install</a>\n</nav>\n    <div id=\"main-wrapper\">\n      <main>\n        \n    <h1>Example: Basic</h1>\n    <section class=\"examples\">\n      <nav class=\"collection\">\n        <ul>\n          \n                  <li class=selected>\n                    <a href=\"\">A basic example</a>\n                  </li>\n                \n                  <li class=>\n                    <a href=\"name-property/\">Setting the name property</a>\n                  </li>\n                \n        </ul>\n      </nav>\n      <div>\n        <style>\n  my-element p {\n    border: solid 1px blue;\n    padding: 8px;\n  }\n</style>\n<my-element>\n  <p>This is child content</p>\n</my-element>\n<h3>CSS</h3>\n<pre class=\"language-css\"><code class=\"language-css\"><span class=\"token selector\">p</span> <span class=\"token punctuation\">{</span><br>  <span class=\"token property\">border</span><span class=\"token punctuation\">:</span> solid 1px blue<span class=\"token punctuation\">;</span><br>  <span class=\"token property\">padding</span><span class=\"token punctuation\">:</span> 8px<span class=\"token punctuation\">;</span><br><span class=\"token punctuation\">}</span></code></pre>\n<h3>HTML</h3>\n<pre class=\"language-html\"><code class=\"language-html\"><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>my-element</span><span class=\"token punctuation\">></span></span><br>  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>p</span><span class=\"token punctuation\">></span></span>This is child content<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>p</span><span class=\"token punctuation\">></span></span><br><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>my-element</span><span class=\"token punctuation\">></span></span></code></pre>\n\n      </div>\n    </section>\n  \n      </main>\n    </div>\n    \n<footer>\n  <p>\n    Made with\n    <a href=\"https://github.com/lit/lit-element-starter-ts\">lit-starter-ts</a>\n  </p>\n</footer>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/name-property/index.html",
    "content": "\n<!doctype html>\n\n<html lang=\"en\">\n  <head>\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title><my-element> ⌲ Examples ⌲ Name Property</title>\n    <link rel=\"stylesheet\" href=\"../../docs.css\">\n    <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/css?family=Open+Sans:300,400,600|Roboto+Mono\">\n    <link href=\"../../prism-okaidia.css\" rel=\"stylesheet\" />\n    <script src=\"/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js\"></script>\n    <script src=\"/node_modules/lit/polyfill-support.js\"></script>\n    <script type=\"module\" src=\"../../my-element.bundled.js\"></script>\n  </head>\n  <body>\n    \n<header>\n  <h1>&lt;my-element></h1>\n  <h2>A web component just for me.</h2>\n</header>\n    \n<nav>\n  <a href=\"../../\">Home</a>\n  <a href=\"../\">Examples</a>\n  <a href=\"../../api/\">API</a>\n  <a href=\"../../install/\">Install</a>\n</nav>\n    <div id=\"main-wrapper\">\n      <main>\n        \n    <h1>Example: Name Property</h1>\n    <section class=\"examples\">\n      <nav class=\"collection\">\n        <ul>\n          \n                  <li class=>\n                    <a href=\"../\">A basic example</a>\n                  </li>\n                \n                  <li class=selected>\n                    <a href=\"\">Setting the name property</a>\n                  </li>\n                \n        </ul>\n      </nav>\n      <div>\n        <p><my-element name=\"Earth\"></my-element></p>\n<h3>HTML</h3>\n<pre class=\"language-html\"><code class=\"language-html\"><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>my-element</span> <span class=\"token attr-name\">name</span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">=</span><span class=\"token punctuation\">\"</span>Earth<span class=\"token punctuation\">\"</span></span><span class=\"token punctuation\">></span></span><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>my-element</span><span class=\"token punctuation\">></span></span></code></pre>\n\n      </div>\n    </section>\n  \n      </main>\n    </div>\n    \n<footer>\n  <p>\n    Made with\n    <a href=\"https://github.com/lit/lit-element-starter-ts\">lit-starter-ts</a>\n  </p>\n</footer>\n  </body>\n</html>"
  },
  {
    "path": "docs/index.html",
    "content": "\n<!doctype html>\n\n<html lang=\"en\">\n  <head>\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title><my-element> ⌲ Home</title>\n    <link rel=\"stylesheet\" href=\"docs.css\">\n    <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/css?family=Open+Sans:300,400,600|Roboto+Mono\">\n    <link href=\"prism-okaidia.css\" rel=\"stylesheet\" />\n    <script src=\"/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js\"></script>\n    <script src=\"/node_modules/lit/polyfill-support.js\"></script>\n    <script type=\"module\" src=\"my-element.bundled.js\"></script>\n  </head>\n  <body>\n    \n<header>\n  <h1>&lt;my-element></h1>\n  <h2>A web component just for me.</h2>\n</header>\n    \n<nav>\n  <a href=\"\">Home</a>\n  <a href=\"examples/\">Examples</a>\n  <a href=\"api/\">API</a>\n  <a href=\"install/\">Install</a>\n</nav>\n    <div id=\"main-wrapper\">\n      <main>\n        <h1>&lt;my-element&gt;</h1>\n<p><code>&lt;my-element&gt;</code> is an awesome element. It's a great introduction to building web components with LitElement, with nice documentation site as well.</p>\n<h2>As easy as HTML</h2>\n<section class=\"columns\">\n  <div>\n<p><code>&lt;my-element&gt;</code> is just an HTML element. You can it anywhere you can use HTML!</p>\n<pre class=\"language-html\"><code class=\"language-html\"><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>my-element</span><span class=\"token punctuation\">></span></span><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>my-element</span><span class=\"token punctuation\">></span></span></code></pre>\n  </div>\n  <div>\n<p><my-element></my-element></p>\n  </div>\n</section>\n<h2>Configure with attributes</h2>\n<section class=\"columns\">\n  <div>\n<p><code>&lt;my-element&gt;</code> can be configured with attributed in plain HTML.</p>\n<pre class=\"language-html\"><code class=\"language-html\"><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>my-element</span> <span class=\"token attr-name\">name</span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">=</span><span class=\"token punctuation\">\"</span>HTML<span class=\"token punctuation\">\"</span></span><span class=\"token punctuation\">></span></span><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>my-element</span><span class=\"token punctuation\">></span></span></code></pre>\n  </div>\n  <div>\n<p><my-element name=\"HTML\"></my-element></p>\n  </div>\n</section>\n<h2>Declarative rendering</h2>\n<section class=\"columns\">\n  <div>\n<p><code>&lt;my-element&gt;</code> can be used with declarative rendering libraries like Angular, React, Vue, and lit-html</p>\n<pre class=\"language-js\"><code class=\"language-js\"><span class=\"token keyword\">import</span> <span class=\"token punctuation\">{</span>html<span class=\"token punctuation\">,</span> render<span class=\"token punctuation\">}</span> <span class=\"token keyword\">from</span> <span class=\"token string\">'lit-html'</span><span class=\"token punctuation\">;</span><br><br><span class=\"token keyword\">const</span> name <span class=\"token operator\">=</span> <span class=\"token string\">'lit-html'</span><span class=\"token punctuation\">;</span><br><br><span class=\"token function\">render</span><span class=\"token punctuation\">(</span><br>  html<span class=\"token template-string\"><span class=\"token template-punctuation string\">`</span><span class=\"token string\"><br>    &lt;h2>This is a &amp;lt;my-element&amp;gt;&lt;/h2><br>    &lt;my-element .name=</span><span class=\"token interpolation\"><span class=\"token interpolation-punctuation punctuation\">${</span>name<span class=\"token interpolation-punctuation punctuation\">}</span></span><span class=\"token string\">>&lt;/my-element><br>  </span><span class=\"token template-punctuation string\">`</span></span><span class=\"token punctuation\">,</span><br>  document<span class=\"token punctuation\">.</span>body<br><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span></code></pre>\n  </div>\n  <div>\n<h2>This is a &lt;my-element&gt;</h2>\n<my-element name=\"lit-html\"></my-element>\n  </div>\n</section>\n\n      </main>\n    </div>\n    \n<footer>\n  <p>\n    Made with\n    <a href=\"https://github.com/lit/lit-element-starter-ts\">lit-starter-ts</a>\n  </p>\n</footer>\n  </body>\n</html>"
  },
  {
    "path": "docs/install/index.html",
    "content": "\n<!doctype html>\n\n<html lang=\"en\">\n  <head>\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title><my-element> ⌲ Install</title>\n    <link rel=\"stylesheet\" href=\"../docs.css\">\n    <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/css?family=Open+Sans:300,400,600|Roboto+Mono\">\n    <link href=\"../prism-okaidia.css\" rel=\"stylesheet\" />\n    <script src=\"/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js\"></script>\n    <script src=\"/node_modules/lit/polyfill-support.js\"></script>\n    <script type=\"module\" src=\"../my-element.bundled.js\"></script>\n  </head>\n  <body>\n    \n<header>\n  <h1>&lt;my-element></h1>\n  <h2>A web component just for me.</h2>\n</header>\n    \n<nav>\n  <a href=\"../\">Home</a>\n  <a href=\"../examples/\">Examples</a>\n  <a href=\"../api/\">API</a>\n  <a href=\"\">Install</a>\n</nav>\n    <div id=\"main-wrapper\">\n      <main>\n        <h1>Install</h1>\n<p><code>&lt;my-element&gt;</code> is distributed on npm, so you can install it locally or use it via npm CDNs like unpkg.com.</p>\n<h2>Local Installation</h2>\n<pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">npm</span> i my-element</code></pre>\n<h2>CDN</h2>\n<p>npm CDNs like <a href=\"\">unpkg.com</a> can directly serve files that have been published to npm. This works great for standard JavaScript modules that the browser can load natively.</p>\n<p>For this element to work from unpkg.com specifically, you need to include the <code>?module</code> query parameter, which tells unpkg.com to rewrite &quot;bare&quot; module specifiers to full URLs.</p>\n<h3>HTML</h3>\n<pre class=\"language-html\"><code class=\"language-html\"><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>script</span> <span class=\"token attr-name\">type</span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">=</span><span class=\"token punctuation\">\"</span>module<span class=\"token punctuation\">\"</span></span> <span class=\"token attr-name\">src</span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">=</span><span class=\"token punctuation\">\"</span>https://unpkg.com/my-element?module<span class=\"token punctuation\">\"</span></span><span class=\"token punctuation\">></span></span><span class=\"token script\"></span><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>script</span><span class=\"token punctuation\">></span></span></code></pre>\n<h3>JavaScript</h3>\n<pre class=\"language-html\"><code class=\"language-html\">import {MyElement} from 'https://unpkg.com/my-element?module';</code></pre>\n\n      </main>\n    </div>\n    \n<footer>\n  <p>\n    Made with\n    <a href=\"https://github.com/lit/lit-element-starter-ts\">lit-starter-ts</a>\n  </p>\n</footer>\n  </body>\n</html>"
  },
  {
    "path": "docs/prism-okaidia.css",
    "content": "/**\n * okaidia theme for JavaScript, CSS and HTML\n * Loosely based on Monokai textmate theme by http://www.monokai.nl/\n * @author ocodia\n */\n\ncode[class*=\"language-\"],\npre[class*=\"language-\"] {\n\tcolor: #f8f8f2;\n\tbackground: none;\n\ttext-shadow: 0 1px rgba(0, 0, 0, 0.3);\n\tfont-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;\n\tfont-size: 1em;\n\ttext-align: left;\n\twhite-space: pre;\n\tword-spacing: normal;\n\tword-break: normal;\n\tword-wrap: normal;\n\tline-height: 1.5;\n\n\t-moz-tab-size: 4;\n\t-o-tab-size: 4;\n\ttab-size: 4;\n\n\t-webkit-hyphens: none;\n\t-moz-hyphens: none;\n\t-ms-hyphens: none;\n\thyphens: none;\n}\n\n/* Code blocks */\npre[class*=\"language-\"] {\n\tpadding: 1em;\n\tmargin: .5em 0;\n\toverflow: auto;\n\tborder-radius: 0.3em;\n}\n\n:not(pre) > code[class*=\"language-\"],\npre[class*=\"language-\"] {\n\tbackground: #272822;\n}\n\n/* Inline code */\n:not(pre) > code[class*=\"language-\"] {\n\tpadding: .1em;\n\tborder-radius: .3em;\n\twhite-space: normal;\n}\n\n.token.comment,\n.token.prolog,\n.token.doctype,\n.token.cdata {\n\tcolor: #8292a2;\n}\n\n.token.punctuation {\n\tcolor: #f8f8f2;\n}\n\n.token.namespace {\n\topacity: .7;\n}\n\n.token.property,\n.token.tag,\n.token.constant,\n.token.symbol,\n.token.deleted {\n\tcolor: #f92672;\n}\n\n.token.boolean,\n.token.number {\n\tcolor: #ae81ff;\n}\n\n.token.selector,\n.token.attr-name,\n.token.string,\n.token.char,\n.token.builtin,\n.token.inserted {\n\tcolor: #a6e22e;\n}\n\n.token.operator,\n.token.entity,\n.token.url,\n.language-css .token.string,\n.style .token.string,\n.token.variable {\n\tcolor: #f8f8f2;\n}\n\n.token.atrule,\n.token.attr-value,\n.token.function,\n.token.class-name {\n\tcolor: #e6db74;\n}\n\n.token.keyword {\n\tcolor: #66d9ef;\n}\n\n.token.regex,\n.token.important {\n\tcolor: #fd971f;\n}\n\n.token.important,\n.token.bold {\n\tfont-weight: bold;\n}\n.token.italic {\n\tfont-style: italic;\n}\n\n.token.entity {\n\tcursor: help;\n}\n"
  },
  {
    "path": "docs-src/.eleventyignore",
    "content": "# Ignore files with a leading underscore; useful for e.g. readmes in source documentation\n_*.md"
  },
  {
    "path": "docs-src/.nojekyll",
    "content": ""
  },
  {
    "path": "docs-src/_README.md",
    "content": "This directory contains the sources for the static site contained in the /docs/ directory. The site is based on the [eleventy](11ty.dev) static site generator.\n\nThe site is intended to be used with GitHub pages. To enable the site go to the GitHub settings and change the GitHub Pages \"Source\" setting to \"master branch /docs folder\".\n\nTo view the site locally, run `npm run docs:serve`.\n\nTo edit the site, add to or edit the files in this directory then run `npm run docs` to build the site. The built files must be checked in and pushed to GitHub to appear on GitHub pages.\n"
  },
  {
    "path": "docs-src/_data/api.11tydata.js",
    "content": "/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nconst fs = require('fs');\n\nmodule.exports = () => {\n  const customElements = JSON.parse(\n    fs.readFileSync('custom-elements.json', 'utf-8')\n  );\n  return {\n    customElements,\n  };\n};\n"
  },
  {
    "path": "docs-src/_includes/example.11ty.cjs",
    "content": "const page = require('./page.11ty.cjs');\nconst relative = require('./relative-path.cjs');\n\n/**\n * This template extends the page template and adds an examples list.\n */\nmodule.exports = function (data) {\n  return page({\n    ...data,\n    content: renderExample(data),\n  });\n};\n\nconst renderExample = ({name, content, collections, page}) => {\n  return `\n    <h1>Example: ${name}</h1>\n    <section class=\"examples\">\n      <nav class=\"collection\">\n        <ul>\n          ${\n            collections.example === undefined\n              ? ''\n              : collections.example\n                  .map(\n                    (post) => `\n                  <li class=${post.url === page.url ? 'selected' : ''}>\n                    <a href=\"${relative(\n                      page.url,\n                      post.url\n                    )}\">${post.data.description.replace(/</g, '&lt;')}</a>\n                  </li>\n                `\n                  )\n                  .join('')\n          }\n        </ul>\n      </nav>\n      <div>\n        ${content}\n      </div>\n    </section>\n  `;\n};\n"
  },
  {
    "path": "docs-src/_includes/footer.11ty.cjs",
    "content": "module.exports = function (data) {\n  return `\n<footer>\n  <p>\n    Made with\n    <a href=\"https://github.com/lit/lit-element-starter-ts\">lit-starter-ts</a>\n  </p>\n</footer>`;\n};\n"
  },
  {
    "path": "docs-src/_includes/header.11ty.cjs",
    "content": "module.exports = function (data) {\n  return `\n<header>\n  <h1>&lt;my-element></h1>\n  <h2>A web component just for me.</h2>\n</header>`;\n};\n"
  },
  {
    "path": "docs-src/_includes/nav.11ty.cjs",
    "content": "const relative = require('./relative-path.cjs');\n\nmodule.exports = function ({page}) {\n  return `\n<nav>\n  <a href=\"${relative(page.url, '/')}\">Home</a>\n  <a href=\"${relative(page.url, '/examples/')}\">Examples</a>\n  <a href=\"${relative(page.url, '/api/')}\">API</a>\n  <a href=\"${relative(page.url, '/install/')}\">Install</a>\n</nav>`;\n};\n"
  },
  {
    "path": "docs-src/_includes/page.11ty.cjs",
    "content": "const header = require('./header.11ty.cjs');\nconst footer = require('./footer.11ty.cjs');\nconst nav = require('./nav.11ty.cjs');\nconst relative = require('./relative-path.cjs');\n\nmodule.exports = function (data) {\n  const {title, page, content} = data;\n  return `\n<!doctype html>\n\n<html lang=\"en\">\n  <head>\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>${title}</title>\n    <link rel=\"stylesheet\" href=\"${relative(page.url, '/docs.css')}\">\n    <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/css?family=Open+Sans:300,400,600|Roboto+Mono\">\n    <link href=\"${relative(page.url, '/prism-okaidia.css')}\" rel=\"stylesheet\" />\n    <script src=\"/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js\"></script>\n    <script src=\"/node_modules/lit/polyfill-support.js\"></script>\n    <script type=\"module\" src=\"${relative(\n      page.url,\n      '/my-element.bundled.js'\n    )}\"></script>\n  </head>\n  <body>\n    ${header()}\n    ${nav(data)}\n    <div id=\"main-wrapper\">\n      <main>\n        ${content}\n      </main>\n    </div>\n    ${footer()}\n  </body>\n</html>`;\n};\n"
  },
  {
    "path": "docs-src/_includes/relative-path.cjs",
    "content": "const path = require('path').posix;\n\nmodule.exports = (base, p) => {\n  const relativePath = path.relative(base, p);\n  if (p.endsWith('/') && !relativePath.endsWith('/') && relativePath !== '') {\n    return relativePath + '/';\n  }\n  return relativePath;\n};\n"
  },
  {
    "path": "docs-src/api.11ty.cjs",
    "content": "/**\n * This page generates its content from the custom-element.json file as read by\n * the _data/api.11tydata.js script.\n */\nmodule.exports = class Docs {\n  data() {\n    return {\n      layout: 'page.11ty.cjs',\n      title: '<my-element> ⌲ Docs',\n    };\n  }\n\n  render(data) {\n    const manifest = data.api['11tydata'].customElements;\n    const elements = manifest.modules.reduce(\n      (els, module) =>\n        els.concat(\n          module.declarations?.filter((dec) => dec.customElement) ?? []\n        ),\n      []\n    );\n    return `\n     <h1>API</h1>\n     ${elements\n       .map(\n         (element) => `\n       <h2>&lt;${element.tagName}></h2>\n       <div>\n         ${element.description}\n       </div>\n       ${renderTable(\n         'Attributes',\n         ['name', 'description', 'type.text', 'default'],\n         element.attributes\n       )}\n       ${renderTable(\n         'Properties',\n         ['name', 'attribute', 'description', 'type.text', 'default'],\n         element.members.filter((m) => m.kind === 'field')\n       )}  \n       ${renderTable(\n         'Methods',\n         ['name', 'parameters', 'description', 'return.type.text'],\n         element.members\n           .filter((m) => m.kind === 'method' && m.privacy !== 'private')\n           .map((m) => ({\n             ...m,\n             parameters: renderTable(\n               '',\n               ['name', 'description', 'type.text'],\n               m.parameters\n             ),\n           }))\n       )}\n       ${renderTable('Events', ['name', 'description'], element.events)}    \n       ${renderTable(\n         'Slots',\n         [['name', '(default)'], 'description'],\n         element.slots\n       )}  \n       ${renderTable(\n         'CSS Shadow Parts',\n         ['name', 'description'],\n         element.cssParts\n       )}\n       ${renderTable(\n         'CSS Custom Properties',\n         ['name', 'description'],\n         element.cssProperties\n       )}\n       `\n       )\n       .join('')}\n   `;\n  }\n};\n\n/**\n * Reads a (possibly deep) path off of an object.\n */\nconst get = (obj, path) => {\n  let fallback = '';\n  if (Array.isArray(path)) {\n    [path, fallback] = path;\n  }\n  const parts = path.split('.');\n  while (obj && parts.length) {\n    obj = obj[parts.shift()];\n  }\n  return obj == null || obj === '' ? fallback : obj;\n};\n\n/**\n * Renders a table of data, plucking the given properties from each item in\n * `data`.\n */\nconst renderTable = (name, properties, data) => {\n  if (data === undefined || data.length === 0) {\n    return '';\n  }\n  return `\n   ${name ? `<h3>${name}</h3>` : ''}\n   <table>\n     <tr>\n       ${properties\n         .map(\n           (p) =>\n             `<th>${capitalize(\n               (Array.isArray(p) ? p[0] : p).split('.')[0]\n             )}</th>`\n         )\n         .join('')}\n     </tr>\n     ${data\n       .map(\n         (i) => `\n       <tr>\n         ${properties.map((p) => `<td>${get(i, p)}</td>`).join('')}\n       </tr>\n     `\n       )\n       .join('')}\n   </table>\n `;\n};\n\nconst capitalize = (s) => s[0].toUpperCase() + s.substring(1);\n"
  },
  {
    "path": "docs-src/docs.css",
    "content": "* {\n  box-sizing: border-box;\n}\n\nbody {\n  margin: 0;\n  color: #333;\n  font-family: 'Open Sans', arial, sans-serif;\n  min-width: min-content;\n  min-height: 100vh;\n  font-size: 18px;\n  display: flex;\n  flex-direction: column;\n  align-items: stretch;\n}\n\n#main-wrapper {\n  flex-grow: 1;\n}\n\nmain {\n  max-width: 1024px;\n  margin: 0 auto;\n}\n\na:visited {\n  color: inherit;\n}\n\nheader {\n  width: 100%;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  height: 360px;\n  margin: 0;\n  background: linear-gradient(0deg, rgba(9,9,121,1) 0%, rgba(0,212,255,1) 100%);\n  color: white;\n}\n\nfooter {\n  width: 100%;\n  min-height: 120px;\n  background: gray;\n  color: white;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  padding: 12px;\n  margin-top: 64px;\n}\n\nh1 {\n  font-size: 2.5em;\n  font-weight: 400;\n}\n\nh2 {\n  font-size: 1.6em;\n  font-weight: 300;\n  margin: 64px 0 12px;\n}\n\nh3 {\n  font-weight: 300;\n}\n\nheader h1 {\n  width: auto;\n  font-size: 2.8em;\n  margin: 0;\n}\n\nheader h2 {\n  width: auto;\n  margin: 0;\n}\n\nnav {\n  display: grid;\n  width: 100%;\n  max-width: 100%;\n  grid-template-columns: repeat(auto-fit, 240px);\n  justify-content: center;\n  border-bottom: 1px solid #efefef;\n}\n\nnav > a {\n  color: #444;\n  display: block;\n  flex: 1;\n  font-size: 18px;\n  padding: 20px 0;\n  text-align: center;\n  text-decoration: none;\n}\n\nnav > a:hover {\n  text-decoration: underline;\n}\n\nnav.collection {\n  border: none;\n}\n\nnav.collection > ul {\n  padding: 0;\n  list-style: none;\n}\n\nnav.collection > ul > li {\n  padding: 4px 0;\n}\n\nnav.collection > ul > li.selected {\n  font-weight: 600;\n}\n\nnav.collection a {\n  text-decoration: none;\n}\n\nnav.collection a:hover {\n  text-decoration: underline;\n}\n\nsection.columns {\n  display: grid;\n  grid-template-columns: repeat(auto-fit, minmax(400px, 488px));\n  grid-gap: 48px;\n  justify-content: center;\n}\n\nsection.columns > div {\n  flex: 1;\n}\n\nsection.examples {\n  display: grid;\n  grid-template-columns: 240px minmax(400px, 784px);\n  grid-gap: 48px;\n  justify-content: center;\n}\n\nsection.examples h2:first-of-type {\n  margin-top: 0;\n}\n\ntable {\n  width: 100%;\n  border-collapse: collapse;\n}\nth {\n  font-weight: 600;\n}\n\ntd, th {\n  border: solid 1px #aaa;\n  padding: 4px;\n  text-align: left;\n  vertical-align: top;\n}\n"
  },
  {
    "path": "docs-src/examples/index.md",
    "content": "---\nlayout: example.11ty.cjs\ntitle: <my-element> ⌲ Examples ⌲ Basic\ntags: example\nname: Basic\ndescription: A basic example\n---\n\n<style>\n  my-element p {\n    border: solid 1px blue;\n    padding: 8px;\n  }\n</style>\n<my-element>\n  <p>This is child content</p>\n</my-element>\n\n<h3>CSS</h3>\n\n```css\np {\n  border: solid 1px blue;\n  padding: 8px;\n}\n```\n\n<h3>HTML</h3>\n\n```html\n<my-element>\n  <p>This is child content</p>\n</my-element>\n```\n"
  },
  {
    "path": "docs-src/examples/name-property.md",
    "content": "---\nlayout: example.11ty.cjs\ntitle: <my-element> ⌲ Examples ⌲ Name Property\ntags: example\nname: Name Property\ndescription: Setting the name property\n---\n\n<my-element name=\"Earth\"></my-element>\n\n<h3>HTML</h3>\n\n```html\n<my-element name=\"Earth\"></my-element>\n```\n"
  },
  {
    "path": "docs-src/index.md",
    "content": "---\nlayout: page.11ty.cjs\ntitle: <my-element> ⌲ Home\n---\n\n# &lt;my-element>\n\n`<my-element>` is an awesome element. It's a great introduction to building web components with LitElement, with nice documentation site as well.\n\n## As easy as HTML\n\n<section class=\"columns\">\n  <div>\n\n`<my-element>` is just an HTML element. You can it anywhere you can use HTML!\n\n```html\n<my-element></my-element>\n```\n\n  </div>\n  <div>\n\n<my-element></my-element>\n\n  </div>\n</section>\n\n## Configure with attributes\n\n<section class=\"columns\">\n  <div>\n\n`<my-element>` can be configured with attributed in plain HTML.\n\n```html\n<my-element name=\"HTML\"></my-element>\n```\n\n  </div>\n  <div>\n\n<my-element name=\"HTML\"></my-element>\n\n  </div>\n</section>\n\n## Declarative rendering\n\n<section class=\"columns\">\n  <div>\n\n`<my-element>` can be used with declarative rendering libraries like Angular, React, Vue, and lit-html\n\n```js\nimport {html, render} from 'lit-html';\n\nconst name = 'lit-html';\n\nrender(\n  html`\n    <h2>This is a &lt;my-element&gt;</h2>\n    <my-element .name=${name}></my-element>\n  `,\n  document.body\n);\n```\n\n  </div>\n  <div>\n\n<h2>This is a &lt;my-element&gt;</h2>\n<my-element name=\"lit-html\"></my-element>\n\n  </div>\n</section>\n"
  },
  {
    "path": "docs-src/install.md",
    "content": "---\nlayout: page.11ty.cjs\ntitle: <my-element> ⌲ Install\n---\n\n# Install\n\n`<my-element>` is distributed on npm, so you can install it locally or use it via npm CDNs like unpkg.com.\n\n## Local Installation\n\n```bash\nnpm i my-element\n```\n\n## CDN\n\nnpm CDNs like [unpkg.com]() can directly serve files that have been published to npm. This works great for standard JavaScript modules that the browser can load natively.\n\nFor this element to work from unpkg.com specifically, you need to include the `?module` query parameter, which tells unpkg.com to rewrite \"bare\" module specifiers to full URLs.\n\n### HTML\n\n```html\n<script type=\"module\" src=\"https://unpkg.com/my-element?module\"></script>\n```\n\n### JavaScript\n\n```html\nimport {MyElement} from 'https://unpkg.com/my-element?module';\n```\n"
  },
  {
    "path": "docs-src/package.json",
    "content": "{\n  \"type\": \"commonjs\"\n}\n"
  },
  {
    "path": "index.html",
    "content": "<!doctype html>\n\n<html>\n  <head>\n    <meta charset=\"utf-8\" />\n    <title>Lit Starter Kit</title>\n  </head>\n  <body>\n    <a href=\"/dev/index.html\">Component Demo</a>\n  </body>\n</html>\n"
  },
  {
    "path": "package.json",
    "content": "{\n  \"name\": \"@lit/lit-starter-ts\",\n  \"private\": true,\n  \"version\": \"2.0.3\",\n  \"description\": \"A simple web component\",\n  \"main\": \"my-element.js\",\n  \"module\": \"my-element.js\",\n  \"type\": \"module\",\n  \"scripts\": {\n    \"build\": \"tsc\",\n    \"build:watch\": \"tsc --watch\",\n    \"clean\": \"rimraf my-element.{d.ts,d.ts.map,js,js.map} test/my-element.{d.ts,d.ts.map,js,js.map} test/my-element_test.{d.ts,d.ts.map,js,js.map}\",\n    \"lint\": \"npm run lint:lit-analyzer && npm run lint:eslint\",\n    \"lint:eslint\": \"eslint 'src/**/*.ts'\",\n    \"lint:lit-analyzer\": \"lit-analyzer\",\n    \"format\": \"prettier \\\"**/*.{cjs,html,js,json,md,ts}\\\" --ignore-path ./.eslintignore --write\",\n    \"docs\": \"npm run docs:clean && npm run build && npm run analyze && npm run docs:build && npm run docs:assets && npm run docs:gen\",\n    \"docs:clean\": \"rimraf docs\",\n    \"docs:gen\": \"eleventy --config=.eleventy.cjs\",\n    \"docs:gen:watch\": \"eleventy --config=.eleventy.cjs --watch\",\n    \"docs:build\": \"rollup -c --file docs/my-element.bundled.js\",\n    \"docs:assets\": \"cp node_modules/prismjs/themes/prism-okaidia.css docs/\",\n    \"docs:serve\": \"wds --root-dir=docs --node-resolve --watch\",\n    \"analyze\": \"cem analyze --litelement --globs \\\"src/**/*.ts\\\"\",\n    \"analyze:watch\": \"cem analyze --litelement --globs \\\"src/**/*.ts\\\" --watch\",\n    \"serve\": \"wds --watch\",\n    \"serve:prod\": \"MODE=prod npm run serve\",\n    \"test\": \"npm run test:dev && npm run test:prod\",\n    \"test:dev\": \"wtr\",\n    \"test:watch\": \"wtr --watch\",\n    \"test:prod\": \"MODE=prod wtr\",\n    \"test:prod:watch\": \"MODE=prod wtr --watch\",\n    \"checksize\": \"rollup -c ; cat my-element.bundled.js | gzip -9 | wc -c ; rm my-element.bundled.js\"\n  },\n  \"keywords\": [\n    \"web-components\",\n    \"lit-element\",\n    \"typescript\",\n    \"lit\"\n  ],\n  \"author\": \"Google LLC\",\n  \"license\": \"BSD-3-Clause\",\n  \"dependencies\": {\n    \"lit\": \"^3.2.0\"\n  },\n  \"devDependencies\": {\n    \"@11ty/eleventy\": \"^1.0.1\",\n    \"@11ty/eleventy-plugin-syntaxhighlight\": \"^4.0.0\",\n    \"@custom-elements-manifest/analyzer\": \"^0.6.3\",\n    \"@open-wc/testing\": \"^4.0.0\",\n    \"@rollup/plugin-node-resolve\": \"^15.2.3\",\n    \"@rollup/plugin-replace\": \"^5.0.7\",\n    \"@rollup/plugin-terser\": \"^0.4.4\",\n    \"@typescript-eslint/eslint-plugin\": \"^5.25.0\",\n    \"@typescript-eslint/parser\": \"^5.25.0\",\n    \"@web/dev-server\": \"^0.1.31\",\n    \"@web/dev-server-legacy\": \"^1.0.0\",\n    \"@web/test-runner\": \"^0.15.0\",\n    \"@web/test-runner-playwright\": \"^0.9.0\",\n    \"@webcomponents/webcomponentsjs\": \"^2.8.0\",\n    \"eslint\": \"^8.15.0\",\n    \"lit-analyzer\": \"^1.2.1\",\n    \"prettier\": \"^2.6.2\",\n    \"rimraf\": \"^3.0.2\",\n    \"rollup\": \"^4.18.0\",\n    \"rollup-plugin-summary\": \"^2.0.1\",\n    \"typescript\": \"~5.9.0\"\n  },\n  \"customElements\": \"custom-elements.json\"\n}\n"
  },
  {
    "path": "rollup.config.js",
    "content": "/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nimport summary from 'rollup-plugin-summary';\nimport terser from '@rollup/plugin-terser';\nimport resolve from '@rollup/plugin-node-resolve';\nimport replace from '@rollup/plugin-replace';\n\nexport default {\n  input: 'my-element.js',\n  output: {\n    file: 'my-element.bundled.js',\n    format: 'esm',\n  },\n  onwarn(warning) {\n    if (warning.code !== 'THIS_IS_UNDEFINED') {\n      console.error(`(!) ${warning.message}`);\n    }\n  },\n  plugins: [\n    replace({preventAssignment: false, 'Reflect.decorate': 'undefined'}),\n    resolve(),\n    /**\n     * This minification setup serves the static site generation.\n     * For bundling and minification, check the README.md file.\n     */\n    terser({\n      ecma: 2021,\n      module: true,\n      warnings: true,\n      mangle: {\n        properties: {\n          regex: /^__/,\n        },\n      },\n    }),\n    summary(),\n  ],\n};\n"
  },
  {
    "path": "src/my-element.ts",
    "content": "/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nimport {LitElement, html, css} from 'lit';\nimport {customElement, property} from 'lit/decorators.js';\n\n/**\n * An example element.\n *\n * @fires count-changed - Indicates when the count changes\n * @slot - This element has a slot\n * @csspart button - The button\n */\n@customElement('my-element')\nexport class MyElement extends LitElement {\n  static override styles = css`\n    :host {\n      display: block;\n      border: solid 1px gray;\n      padding: 16px;\n      max-width: 800px;\n    }\n  `;\n\n  /**\n   * The name to say \"Hello\" to.\n   */\n  @property()\n  name = 'World';\n\n  /**\n   * The number of times the button has been clicked.\n   */\n  @property({type: Number})\n  count = 0;\n\n  override render() {\n    return html`\n      <h1>${this.sayHello(this.name)}!</h1>\n      <button @click=${this._onClick} part=\"button\">\n        Click Count: ${this.count}\n      </button>\n      <slot></slot>\n    `;\n  }\n\n  private _onClick() {\n    this.count++;\n    this.dispatchEvent(new CustomEvent('count-changed'));\n  }\n\n  /**\n   * Formats a greeting\n   * @param name The name to say \"Hello\" to\n   */\n  sayHello(name: string): string {\n    return `Hello, ${name}`;\n  }\n}\n\ndeclare global {\n  interface HTMLElementTagNameMap {\n    'my-element': MyElement;\n  }\n}\n"
  },
  {
    "path": "src/test/my-element_test.ts",
    "content": "/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nimport {MyElement} from '../my-element.js';\n\nimport {fixture, assert} from '@open-wc/testing';\nimport {html} from 'lit/static-html.js';\n\nsuite('my-element', () => {\n  test('is defined', () => {\n    const el = document.createElement('my-element');\n    assert.instanceOf(el, MyElement);\n  });\n\n  test('renders with default values', async () => {\n    const el = await fixture(html`<my-element></my-element>`);\n    assert.shadowDom.equal(\n      el,\n      `\n      <h1>Hello, World!</h1>\n      <button part=\"button\">Click Count: 0</button>\n      <slot></slot>\n    `\n    );\n  });\n\n  test('renders with a set name', async () => {\n    const el = await fixture(html`<my-element name=\"Test\"></my-element>`);\n    assert.shadowDom.equal(\n      el,\n      `\n      <h1>Hello, Test!</h1>\n      <button part=\"button\">Click Count: 0</button>\n      <slot></slot>\n    `\n    );\n  });\n\n  test('handles a click', async () => {\n    const el = (await fixture(html`<my-element></my-element>`)) as MyElement;\n    const button = el.shadowRoot!.querySelector('button')!;\n    button.click();\n    await el.updateComplete;\n    assert.shadowDom.equal(\n      el,\n      `\n      <h1>Hello, World!</h1>\n      <button part=\"button\">Click Count: 1</button>\n      <slot></slot>\n    `\n    );\n  });\n\n  test('styling applied', async () => {\n    const el = (await fixture(html`<my-element></my-element>`)) as MyElement;\n    await el.updateComplete;\n    assert.equal(getComputedStyle(el).paddingTop, '16px');\n  });\n});\n"
  },
  {
    "path": "tsconfig.json",
    "content": "{\n  \"compilerOptions\": {\n    \"target\": \"es2021\",\n    \"module\": \"es2020\",\n    \"lib\": [\"es2021\", \"DOM\", \"DOM.Iterable\"],\n    \"declaration\": true,\n    \"declarationMap\": true,\n    \"sourceMap\": true,\n    \"inlineSources\": true,\n    \"outDir\": \"./\",\n    \"rootDir\": \"./src\",\n    \"strict\": true,\n    \"noUnusedLocals\": true,\n    \"noUnusedParameters\": true,\n    \"noImplicitReturns\": true,\n    \"noFallthroughCasesInSwitch\": true,\n    \"noImplicitAny\": true,\n    \"noImplicitThis\": true,\n    \"moduleResolution\": \"node\",\n    \"allowSyntheticDefaultImports\": true,\n    \"experimentalDecorators\": true,\n    \"forceConsistentCasingInFileNames\": true,\n    \"noImplicitOverride\": true,\n    \"plugins\": [\n      {\n        \"name\": \"ts-lit-plugin\",\n        \"strict\": true\n      }\n    ],\n    \"types\": [\"mocha\"]\n  },\n  \"include\": [\"src/**/*.ts\"],\n  \"exclude\": []\n}\n"
  },
  {
    "path": "web-dev-server.config.js",
    "content": "/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nimport {legacyPlugin} from '@web/dev-server-legacy';\n\nconst mode = process.env.MODE || 'dev';\nif (!['dev', 'prod'].includes(mode)) {\n  throw new Error(`MODE must be \"dev\" or \"prod\", was \"${mode}\"`);\n}\n\nexport default {\n  nodeResolve: {exportConditions: mode === 'dev' ? ['development'] : []},\n  preserveSymlinks: true,\n  plugins: [\n    legacyPlugin({\n      polyfills: {\n        // Manually imported in index.html file\n        webcomponents: false,\n      },\n    }),\n  ],\n};\n"
  },
  {
    "path": "web-test-runner.config.js",
    "content": "/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nimport {legacyPlugin} from '@web/dev-server-legacy';\nimport {playwrightLauncher} from '@web/test-runner-playwright';\n\nconst mode = process.env.MODE || 'dev';\nif (!['dev', 'prod'].includes(mode)) {\n  throw new Error(`MODE must be \"dev\" or \"prod\", was \"${mode}\"`);\n}\n\n// Uncomment for testing on Sauce Labs\n// Must run `npm i --save-dev @web/test-runner-saucelabs` and set\n// SAUCE_USERNAME and SAUCE_USERNAME environment variables\n// ===========\n// import {createSauceLabsLauncher} from '@web/test-runner-saucelabs';\n// const sauceLabsLauncher = createSauceLabsLauncher(\n//   {\n//     user: process.env.SAUCE_USERNAME,\n//     key: process.env.SAUCE_USERNAME,\n//   },\n//   {\n//     'sauce:options': {\n//       name: 'unit tests',\n//       build: `${process.env.GITHUB_REF ?? 'local'} build ${\n//         process.env.GITHUB_RUN_NUMBER ?? ''\n//       }`,\n//     },\n//   }\n// );\n\n// Uncomment for testing on BrowserStack\n// Must run `npm i --save-dev @web/test-runner-browserstack` and set\n// BROWSER_STACK_USERNAME and BROWSER_STACK_ACCESS_KEY environment variables\n// ===========\n// import {browserstackLauncher as createBrowserstackLauncher} from '@web/test-runner-browserstack';\n// const browserstackLauncher = (config) => createBrowserstackLauncher({\n//   capabilities: {\n//     'browserstack.user': process.env.BROWSER_STACK_USERNAME,\n//     'browserstack.key': process.env.BROWSER_STACK_ACCESS_KEY,\n//     project: 'my-element',\n//     name: 'unit tests',\n//     build: `${process.env.GITHUB_REF ?? 'local'} build ${\n//       process.env.GITHUB_RUN_NUMBER ?? ''\n//     }`,\n//     ...config,\n//   }\n// });\n\nconst browsers = {\n  // Local browser testing via playwright\n  // ===========\n  chromium: playwrightLauncher({product: 'chromium'}),\n  firefox: playwrightLauncher({product: 'firefox'}),\n  webkit: playwrightLauncher({product: 'webkit'}),\n\n  // Uncomment example launchers for running on Sauce Labs\n  // ===========\n  // chromium: sauceLabsLauncher({browserName: 'chrome', browserVersion: 'latest', platformName: 'Windows 10'}),\n  // firefox: sauceLabsLauncher({browserName: 'firefox', browserVersion: 'latest', platformName: 'Windows 10'}),\n  // safari: sauceLabsLauncher({browserName: 'safari', browserVersion: 'latest', platformName: 'macOS 10.15'}),\n\n  // Uncomment example launchers for running on Sauce Labs\n  // ===========\n  // chromium: browserstackLauncher({browserName: 'Chrome', os: 'Windows', os_version: '10'}),\n  // firefox: browserstackLauncher({browserName: 'Firefox', os: 'Windows', os_version: '10'}),\n  // safari: browserstackLauncher({browserName: 'Safari', browser_version: '14.0', os: 'OS X', os_version: 'Big Sur'}),\n};\n\n// Prepend BROWSERS=x,y to `npm run test` to run a subset of browsers\n// e.g. `BROWSERS=chromium,firefox npm run test`\nconst noBrowser = (b) => {\n  throw new Error(`No browser configured named '${b}'; using defaults`);\n};\nlet commandLineBrowsers;\ntry {\n  commandLineBrowsers = process.env.BROWSERS?.split(',').map(\n    (b) => browsers[b] ?? noBrowser(b)\n  );\n} catch (e) {\n  console.warn(e);\n}\n\n// https://modern-web.dev/docs/test-runner/cli-and-configuration/\nexport default {\n  rootDir: '.',\n  files: ['./test/**/*_test.js'],\n  nodeResolve: {exportConditions: mode === 'dev' ? ['development'] : []},\n  preserveSymlinks: true,\n  browsers: commandLineBrowsers ?? Object.values(browsers),\n  testFramework: {\n    // https://mochajs.org/api/mocha\n    config: {\n      ui: 'tdd',\n      timeout: '60000',\n    },\n  },\n  plugins: [\n    // Detect browsers without modules (e.g. IE11) and transform to SystemJS\n    // (https://modern-web.dev/docs/dev-server/plugins/legacy/).\n    legacyPlugin({\n      polyfills: {\n        webcomponents: true,\n        // Inject lit's polyfill-support module into test files, which is required\n        // for interfacing with the webcomponents polyfills\n        custom: [\n          {\n            name: 'lit-polyfill-support',\n            path: 'node_modules/lit/polyfill-support.js',\n            test: \"!('attachShadow' in Element.prototype) || !('getRootNode' in Element.prototype) || window.ShadyDOM && window.ShadyDOM.force\",\n            module: false,\n          },\n        ],\n      },\n    }),\n  ],\n};\n"
  }
]