theoomoregbee / rollup-typescript-lib-starter

Just a boilerplate for building a library with TS + Github action for testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status - GitHub Actions

rollup-typescript-lib-starter

Just a boilerplate for building a library with TS + Github action for testing.

Configured with:

Build Configuration

  • Use package.json name field as the name of the library when bundling for browsers
  • type definition is exposed via types field in package.json
  • main entry point field within package.json targets the bundled distribution

Note: update main and types when build directory is changed.

Github Actions Test workflow

Automatically runs when you push to main branch or a pull request pointing to main branch.

see test.yml

Available scripts

yarn start

Start the library build and test in watch mode for every file edit.

yarn build

Build distribution bundle to ./build/ directory.

yarn test

Lints and test library.

yarn lint

Uses ts-standard for linting so you don't have to worry about ESLint configurations

yarn lint:fix

Automatically fixes any lint errors encountered.

yarn build:watch

Run build script in watch mode.

About

Just a boilerplate for building a library with TS + Github action for testing

License:MIT License


Languages

Language:TypeScript 54.5%Language:JavaScript 45.5%