Skip to content

Template using vitejs and typescript (and more) for create easily and quickly nice JS library !

Notifications You must be signed in to change notification settings

fabienwnklr/ts-vitejs-template

Repository files navigation

ts-vitejs-template

Template using vitejs and typescript (and more) for create easily and quickly nice JS library !

Table of contents

Features

Checklist

When you use this template, try follow the checklist to update your info properly

  • Change the class name file
  • Change the class name file in src then the class name in index.html / vite.config.ts / src/MyClass.ts AND in script build:docs into package.json
  • Change url for repo in .versionrc.json
  • Add your style to src/scss/style.scss (optionnal)
  • Add the favicon in public (optional)
  • Clean up the README (optional)
  • Update you website name and more in docs folder or remove it and update docs:api script

Usage

Just run and visit http://localhost:5173/

yarn dev

Build

To build the lib, run

yarn build

And you will see the generated file in dist that ready to be served.

Docs

Vitepress website

Run dev mode website

yarn docs:dev

for more you can see docs/package.json scripts

Api doc

Generate api doc from typedoc

yarn build:api

Release

First release

yarn release -- --first-release

New release

See all availables options here

yarn release

you can precise version using major, minor or patch

yarn release -- --release-as minor

or you can pass specific version

yarn release -- --release-as 1.1.0

About

Template using vitejs and typescript (and more) for create easily and quickly nice JS library !

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages