A library starter template use Typescript and Rollup, inspired by The best Rollup config for TypeScript libraries
- Bundle by
Rollup
, useEsbuild
as TS compilers and minifier rollup-plugin-esbuild - Automaticlly
.d.ts
definition files by dts plugin rollup-plugin-dts - Example page powered by Vite, out of box
- use PNPM as package manager
- Use Jest as test framefork
- Commitizen friendly
- install
pnpm dlx degit --force https://github.com/FPG-Alan/ts-lib-starter
-
modify value of
[name/main/module/typings]
in package.json with your lib name -
modify value of dep in example's package.json