i got super tired of manually setting up projects every time i start a new one, so i made this boilerplate.
yaps should help you quickly get set up with a typescript web library in less than 2min of setup.
a similar underlying structure is used in react-scan and bippy. it makes me feel super productive and it's not super boilerplate-y so i can can just focus on building stuff, and when it comes time to scale features it's easy to delete/add code.
this is mainly maintained for me and by me, feel free to remix/use it as you see fit.
git clone https://github.com/aidenybai/yaps.git
cd yaps
pnpm installnext, i recommend you global search REPLACE_ME_PLEASE and replace it with whatever you want. here are some files you should enter your project name in:
kitchen-sink/vite.config.mjskitchen-sink/index.htmlkitchen-sink/LICENSEkitchen-sink/package.jsonkitchen-sink/tsup.config.ts
here are some neat commands you can run:
# dev
pnpm run dev
# build
pnpm run build
# lint
pnpm run lint
# format
pnpm run format
# lint publish config
pnpm run publint
# test
pnpm run testfor ad-hoc testing use the kitchen-sink directory:
cd kitchen-sink
pnpm run devfor unit testing, edit src/index.test.ts and run:
pnpm run test