Tools and workflows overview
Lit components are written using plain JavaScript or TypeScript and run out-of-the box on modern browsers with minimal tooling, so you don't need any Lit-specific compilers, tools, or workflows.
However, Lit uses very modern web platform features, so it does require some tooling and polyfills to run on older browsers. Some tools also require configuration options to handle modern JavaScript. And, while Lit is "just JavaScript" there are some tools that make working with web components much nicer.
The tools and workflows docs cover the different phases of development:
- Requirements: Common requirements for tools and browsers to work with Lit out of the box, as well as compiler options and polyfills required for legacy browsers.
- Development: Setting up your local development environment, including dev server, linting, formatting, syntax highlighting and type-checking.
- Testing: Recommendations for testing Lit projects in modern and legacy browsers.
- Publishing: Guidelines for publishing your component packages to npm.
- Building for production: Building applications for production, including bundling, optimizations, and differential serving for modern and legacy browsers.
- Starter Kits: Instructions on using our Lit component starter kits for JavaScript and TypeScript.
- Adding Lit: Installing and adding Lit to an existing project.