A starter template for building web components with LitElement and TypeScript.
LitElement TypeScript starter is a project template that provides a sample component and development setup for creating web components using LitElement with TypeScript. It enables developers to quickly start building custom, reusable UI elements with modern web standards, combining Lit's declarative templating with TypeScript's type safety.
Developers looking to create reusable web components with Lit and TypeScript, particularly those who want a pre-configured starter template with best practices for development, testing, and documentation.
Developers choose this template because it offers a comprehensive, opinionated setup with tools like a development server, testing framework, linting, formatting, and static site generation, all configured to follow Lit's publishing best practices for efficient build tool optimization.
Sample component project using LitElement with TypeScript
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Includes pre-configured development server with @web/dev-server for live preview, testing with @web/test-runner, and linting tools, enabling immediate start without manual configuration.
Combines Lit's declarative templating with TypeScript for robust type safety, and recommends lit-plugin for VS Code with syntax highlighting and type-checking, enhancing developer experience.
Supports testing in both development and production modes with watch functionality, as per the README, ensuring components are validated under different conditions.
Integrates eleventy for generating documentation sites deployable via GitHub Pages, facilitating easy project documentation and sharing.
Configured with ESLint, TypeScript ESLint, lit-analyzer, and Prettier to enforce code quality, following Lit's publishing guidelines for efficient build tool optimization.
The TypeScript compiler and lit-analyzer are set to be very strict by default, requiring users to manually adjust tsconfig.json and .eslintrc.json for more flexible development.
Emphasizes publishing unoptimized JavaScript modules and leaves bundling to application-level tools, which may necessitate additional setup for production-ready deployments.
Based on Lit 3.0 pre-release, which could introduce instability or require updates upon full release, despite claims of few breaking changes and interoperability.