{"id":19121573,"url":"https://github.com/tsparticles/lit","last_synced_at":"2025-08-20T12:40:17.440Z","repository":{"id":103337461,"uuid":"582385101","full_name":"tsparticles/lit","owner":"tsparticles","description":"tsParticles Lit Official Component","archived":false,"fork":false,"pushed_at":"2025-04-01T14:36:52.000Z","size":588,"stargazers_count":4,"open_issues_count":11,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-19T10:28:23.087Z","etag":null,"topics":["hacktoberfest","javascript","lit","tsparticles","typescript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tsparticles.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null}},"created_at":"2022-12-26T16:55:12.000Z","updated_at":"2023-09-20T09:25:42.000Z","dependencies_parsed_at":"2023-07-08T22:16:19.736Z","dependency_job_id":"af16cc3e-7825-4805-aba1-3f98e6a84e99","html_url":"https://github.com/tsparticles/lit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsparticles%2Flit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsparticles%2Flit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsparticles%2Flit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsparticles%2Flit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsparticles","download_url":"https://codeload.github.com/tsparticles/lit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252532973,"owners_count":21763508,"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":["hacktoberfest","javascript","lit","tsparticles","typescript"],"created_at":"2024-11-09T05:17:49.223Z","updated_at":"2025-05-05T16:26:44.308Z","avatar_url":"https://github.com/tsparticles.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LitElement TypeScript starter \n\nThis project includes a sample component using LitElement with TypeScript.\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 Karma, Chai, Mocha, and the open-wc test helpers for testing. See the [open-wc testing documentation](https://open-wc.org/testing/testing.html) for more information.\n\nTests can be run with the `test` script:\n\n```bash\nnpm test\n```\n\n## Dev Server\n\nThis sample uses open-wc's [es-dev-server](https://github.com/open-wc/open-wc/tree/master/packages/es-dev-server) for previewing the project without additional build steps. ES 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.\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.\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  - Syntax highlighting\n  - Type-checking\n  - Code completion\n  - Hover-over docs\n  - Jump to definition\n  - Linting\n  - Quick Fixes\n  \n  The 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 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 Polymer Project'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 Lit 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%2Ftsparticles%2Flit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsparticles%2Flit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsparticles%2Flit/lists"}