yuigoto / vite-library-template

A template for JavaScript/TypeScript library projects using Vite as a bundler.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vite Library Template

A template for JavaScript/TypeScript library projects using Vite as a bundler.


Dependencies

  • typescript ^4.5.x

How to

Clone this repository or use the following command to create your local project:

npx degit yuigoto/vite-library-template your-project-name

Place your library code under the lib folder and expose it through its index.ts file.

This project was bootstrapped using yarn create vite, so you can use its commands to execute/build the project:

  • yarn dev: executes the project locally, you can use test-specific code on src and import directly from lib;
  • yarn build: builds and bundles your project, also generates definition files for your coding completion pleasure;
  • yarn preview: not used really, since it's mostly for previewing the production build locally;

Author

See AUTHORS.md for more information.


License

This project is licensed under the MIT License. See LICENSE.md for details.


©2022 YUITI

About

A template for JavaScript/TypeScript library projects using Vite as a bundler.

License:MIT License


Languages

Language:HTML 41.2%Language:JavaScript 32.6%Language:TypeScript 15.4%Language:SCSS 10.8%