matteosacchetto / typescript-rollup-lib-template

Template for creating a JS library using Typescript and Rollup for bundling it to CJS and ESM modules

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript Rollup lib template

Template for creating a JS library using Typescript and Rollup for bundling it to CJS and ESM modules

It handles the Typescript code and transpiles it to CJS and ESM modules, in order to provide both types of export. Moreover it also generates a type declaration file, to be used in Typescript projects. The transpilation is performed using rollup as a bundler and esbuild for the actual transpilation.

This template is also configured to use eslint and prettier for linting and style rules, and jest for testing

About

Template for creating a JS library using Typescript and Rollup for bundling it to CJS and ESM modules

License:MIT License


Languages

Language:JavaScript 75.7%Language:Dockerfile 20.0%Language:TypeScript 4.3%