A starter template to use for developing libraries with Vite and TypeScript.
- Bun - A package manager for the web (faster alternative to npm and yarn)
- Vite - A next-generation front-end tooling
- TypeScript - A typed superset of JavaScript
- Vitest - A test runner for Vite
- Prettier - An opinionated code formatter
- Renovate - Automated dependency updates
- np - A better
npm publish
- Clone this repository, or
- Click on "Use this template" button, or
- Download the repository as a ZIP file, or
- Use degit, like this:
bunx degit matronator/vite-ts-lib-starter my-new-library
- Change the
package.json
file to match your library's name, description, author, etc. - Change the
outFile
field in thedts-bundle-generator.config.js
file to match your library's name. - Replace the logo with your own.
- Modify
FUNDING.yml
in the.github
folder with your own values or remove it completely. - Replace the
README.md
file with your own. - Change the name in the
LICENSE.md
file. - Replace the
CHANGELOG.md
file with your own. - Start creating your library in the
src
folder. - Write some tests in the
tests
folder. - When you're ready to publish your library, run
npm run build
to generate the production files. - Publish your library to npm with either
npm publish
, ornpm run release
to usenp
for a better publishing experience.