Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ms-fadaei/vite-lit-library-starter

Vite + Lit Library Starter Template
https://github.com/ms-fadaei/vite-lit-library-starter

eslint lit-element typescript vite vitejs vitest

Last synced: 2 months ago
JSON representation

Vite + Lit Library Starter Template

Awesome Lists containing this project

README

        

# Vite + Lit Library Starter

> Create [Custom Elements](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements) library with Lit + Vite + TypeScript

## Pre-packed

- [Vite 2](https://github.com/vitejs/vite)
- [Lit 2](https://github.com/lit/lit/)
- [Typescript](https://github.com/microsoft/TypeScript)
- [Vitest](https://github.com/vitest-dev/vitest)
- [ESLint](https://github.com/eslint/eslint)
- [Standard Version](https://github.com/conventional-changelog/standard-version)

## commands

### Run Playground
```bash
yarn dev
```

### Build Playground (preview)
```bash
yarn generate
```

### Build Library
```bash
yarn build
```

### Lint
```bash
yarn lint
```

### Test
```bash
yarn test
```

### Test Dashboard
```bash
yarn test:ui
```

### Test + Watch
```bash
yarn test:watch
```

### Test + Coverage
```bash
yarn coverage
```

### Release & Publish
```bash
yarn release
```

## License

[MIT License](./LICENSE)

Copyright (c) Mohammad Saleh Fadaei ([@ms-fadaei](https://github.com/ms-fadaei))