Simple
Vite + React + TypeScript
Library Template

github.com/mrkev/new-react-ts-lib

StarUse this template

Getting Started

  1. Click "Use Template" above
  2. Clone the repo you created
  3. Use these scripts:
  4. Edit away!
  5. Folder structure
    dist/            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:


Kevin Chavez ·@aykev ·Follow @mrkev