clone the repo and detach from
git clone https://github.com/romanzy-1612/modern-ts-lib-starter.git PROJECTNAME
cd PROJECTNAME
rm -rf ./.git
customize this template
node init-template.js
install dependencies and run tests
pnpm install
pnpm test
- Vite/tsc bundling
- Vitest unit testing
- Playwright e2e testing
- Minimal eslint and prettier configuration
- Easy templating for customized npm publishable repo
- Working ? github actions for testing
Create new vite project and install your library
pnpm create vite example2
cd example2
pnpm install placeholder-lib-name
Use your library as folloing:
import { DummyClass } from 'placeholder-lib-name/src';
console.log(DummyClass);
[] Cache playwright deps (https://playwrightsolutions.com/playwright-github-action-to-cache-the-browser-binaries/)
delete above here to start writing your README
<>
npm
npm install placeholder-lib-name
yarn
yarn add placeholder-lib-name
pnpm
pnpm install placeholder-lib-name
See more examples here