Giter Site home page Giter Site logo

christian24 / lit-html Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lit/lit

0.0 1.0 0.0 33.04 MB

An efficient, expressive, extensible HTML templating library for JavaScript.

Home Page: https://lit-html.polymer-project.org/

License: BSD 3-Clause "New" or "Revised" License

JavaScript 40.30% TypeScript 56.98% HTML 2.31% Shell 0.01% Vue 0.16% CSS 0.24%

lit-html's Introduction

Lit

Simple. Fast. Web Components.

Build Status Published on npm Join our Discord Mentioned in Awesome Lit

Lit is a simple library for building fast, lightweight web components.

At Lit's core is a boilerplate-killing component base class that provides reactive state, scoped styles, and a declarative template system that's tiny, fast and expressive.

Documentation

See the full documentation for Lit at lit.dev.

For information about upgrading lit-html 1.x and lit-element 2.x code, see the Lit 2.0 Upgrade Guide.

npm

To install from npm:

npm i lit

Lit Monorepo

This is the monorepo for upcoming Lit packages, including lit, lit-html 2.0 and lit-element 3.0.

lit-html 1.x source is available on the lit-html-1.x branch.

Packages

  • Core packages
    • lit - The primary user-facing package of Lit which includes everything from lit-html and lit-element.
    • lit-element - The web component base class used in Lit.
    • lit-html - The rendering library used by LitElement.
    • @lit/reactive-element - A low level base class that provides a reactive lifecycle based on attribute/property changes.
  • Additional libraries
    • @lit/localize - A library and command-line tool for localizing web applications built using Lit.
    • @lit/localize-tools - Localization tooling for use with @lit/localize.
    • @lit/react - A React component wrapper for web components.
    • @lit/task - A controller for Lit that renders asynchronous tasks.
    • @lit/context - A system for passing data through a tree of elements using browser events, avoiding the need to pass properties down every layer of the tree using a community defined protocol.
  • Labs
  • Starter kits (not published to npm)
  • Internal packages (not published to npm)
    • tests - Test infrastructure for the monorepo.
    • benchmarks - Benchmarks for testing various libraries in the monorepo.
    • @lit-internal/scripts - Utility scripts used within the monorepo.

Contributing to Lit

Lit is open source and we appreciate issue reports and pull requests. See CONTRIBUTING.md for more information.

Setting up the lit monorepo for development

Initialize repo:

git clone https://github.com/lit/lit.git
cd lit
npm ci

Build all packages:

npm run build

Test all packages:

npm run test

Run benchmarks for all packages:

npm run benchmarks

See individual package READMEs for details on developing for a specific package.

lit-html's People

Contributors

43081j avatar abdonrd avatar andrewjakubowicz avatar aomarks avatar augustjk avatar benjamind avatar bennypowers avatar bgotink avatar bicknellr avatar dependabot[bot] avatar dfreedm avatar e111077 avatar github-actions[bot] avatar graynorton avatar jridgewell avatar justinfagnani avatar keanulee avatar kevinpschaaf avatar lit-robot avatar patrickjs avatar rictic avatar ruphin avatar stramel avatar straversi avatar taylor-vann avatar usergenic avatar web-padawan avatar westbrook avatar zh-lx avatar zhaoz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.