Yarn
: This project usesyarn
- creators of the starter kit said it solves dependencies better, it has more functions thatnpm
does not have and is used in other projects. The commands are very similar, don't worry if you haven't seenyarn
yet.lit-plugin
Is a syntax highlighting, type checking and code completion forlit
in VS Code.Vite
is a build tool that aims to provide a faster and leaner development experience for modern web projects. Seevite.config.ts
for build configuration.
- Button (
src/nj-button.ts
) - Icon (
src/nj-icon.ts
)
Note: This repo is forked from the Lit Simple Starter Kit.
- Have
npm
oryarn
installed - Use VS code
- Have installed
lit-plugin
for VS Code. Download:lit-plugin by Rune Mehlsen
- Clone repo
yarn install
yarn build
- compiles TS files into JS files indist/
folderyarn dev
- hostsindex.html
in web server for live testingyarn test
- runs automated tests