Starter repository for building Polymer/lit-element-based web components.
- Polymer Lit-Element as base class for building native custom elements.
- Lit-HTML as templating library.
- Typescript.
- Extensible development server with support for bare ECMAScript imports.
- Custom mocha-based unit test framework with code coverage: lit-element-tester.
-
Fork this repository
-
Install dependencies
npm install
- Run the watch script (should be continuously running in the background)
npm run watch
- In another terminal window, run the development server
npm start
-
Open your browser at the given location to view your component documentation and demo pages.
-
You can also execute the unit test suite
npm test
You can add your own components in the src/components/
directory.
Add the associated unit tests in the src/unit/
directory.