vite-template-lib-ts
v0.0.1
Published
This template provides a minimal setup to get TypeScript working in [Vite](https://cn.vitejs.dev/guide/) with HMR and some ESLint rules.
Downloads
3
Readme
vite-template-lib-ts
This template provides a minimal setup to get TypeScript working in Vite with HMR and some ESLint rules.
Get Start
npx degit tower1229/vite-template-lib-ts my-project
cd my-project
npm install
npm run dev
Directory Structure
|
|-- demo // demo page
|-- dist // build file, will upload to npm
|-- src // lib source file
|-- test // test scripts with vitest
npm scripts
dev
Start a demo serverbuild
Build the librarytest
Run test with vitestlint
Lint the project
License
This project is open source and available under the MIT License.