A template for JavaScript/TypeScript library projects using Vite as a bundler.
typescript
^4.5.x
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 onsrc
and import directly fromlib
;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;
See AUTHORS.md
for more information.
This project is licensed under the MIT License
. See LICENSE.md
for details.
©2022 YUITI