github.com/mrkev/new-react-ts-lib
StarUse this template"Use Template"
abovebuild
builds this website and the library ready for publishingbuild:site
builds only the websitebuild:lib
builds only the librarydev
starts the dev serverdist/ built library, gitignored docs/ built website, configure GH Pages to point here src/ lib/ site/ site goes here. Ignored when generating .d.ts files public/ vite "public" folder for the site index.html site entry file index.ts library entry file
This sample library just adds two numbers.
The latest version is always built with the site: