A hassle-free TS library template.
- Click "Use this template" at this repository.
- Rename all
ts-lib-template
to your package name. - Commands:
npm run bootstrap # install dependencies
npm run clean # clean dependencies
npm run dev # development both cjs and esm output
npm run build # build both cjs and esm
npm run lint # lint code
npm run lint:fix # fix all code lint errors
npm run test # run all tests
npm run cov # run all tests and generate coverage report
npm run release # release this package
- TypeScript by default.
- Output both
cjs
andesm
. - Unit test with jest.
- Format code with eslint.
- Fix and format code on each commit.
- Leverage quick-publish for release flow.
MIT © ULIVZ