{"id":15874546,"url":"https://github.com/rudifa/lit-element-starter-js","last_synced_at":"2025-04-01T23:21:25.134Z","repository":{"id":74523930,"uuid":"463266856","full_name":"rudifa/lit-element-starter-js","owner":"rudifa","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-24T18:55:37.000Z","size":284,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T15:13:49.076Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rudifa.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-24T18:55:35.000Z","updated_at":"2022-02-24T18:55:40.000Z","dependencies_parsed_at":"2023-03-13T20:17:09.946Z","dependency_job_id":null,"html_url":"https://github.com/rudifa/lit-element-starter-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"lit/lit-element-starter-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudifa%2Flit-element-starter-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudifa%2Flit-element-starter-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudifa%2Flit-element-starter-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudifa%2Flit-element-starter-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rudifa","download_url":"https://codeload.github.com/rudifa/lit-element-starter-js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246725459,"owners_count":20823642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-06T01:40:37.562Z","updated_at":"2025-04-01T23:21:25.100Z","avatar_url":"https://github.com/rudifa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LitElement JavaScript starter\n\nThis project includes a sample component using LitElement with JavaScript.\n\n## Setup\n\nInstall dependencies:\n\n```bash\nnpm i\n```\n\n## Testing\n\nThis sample modern-web.dev's\n[@web/test-runner](https://www.npmjs.com/package/@web/test-runner) along with\nMocha, Chai, and some related helpers 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 reccomend 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 reccomend lit-plugin to VS Code users if they don't already have it installed.\n\n## Linting\n\nLinting of JavaScript files is provided by [ESLint](eslint.org). 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`.\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 commiting files, but this can be added with Husky and 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](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 master 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 \u0026quot;Source\u0026quot; setting to \u0026quot;master branch /docs folder\u0026quot;.\u003c/p\u003e\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:watch\n```\n\nThe site will usually be served at http://localhost:8000.\n\n## Bundling and minification\n\nThis starter project doesn't include any build-time optimizations like bundling or minification. We 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\nFor information on building application projects that include LitElement components, see [Build for production](https://lit.dev/docs/tools/production/) on the LitElement site.\n\n## More information\n\nSee [Get started](https://lit.dev/docs/getting-started/) on the Lit site for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frudifa%2Flit-element-starter-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frudifa%2Flit-element-starter-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frudifa%2Flit-element-starter-js/lists"}