DEV Community

Felipe Armoni
Felipe Armoni

Posted on

Typescript Library Template

TLDR

I've created a Typescript library template that has some pre-configured boilerplate, you can find it here: https://github.com/komyg/library-template.

The Template

This template uses:

  • Rollup for bundling.
  • ESLint and Prettier for linting and formatting.
  • Jest for testing.

It is structured as a monorepo, with a lib package for the library and a runner package that is meant to call the library and thus enable manual testing during the development.

Please note that you must build the library (npm run build -w lib), before using it on the runner.

The library itself does not have any dependencies, and it can be imported in a browser or in a node application.

Top comments (0)