Skip to content

productdevbookcom/ts-bundle-template

Repository files navigation

Typescript Bundle Template

Typescript Bundle Template

This is a template for creating a Typescript bundle. It is based on the Typescript compiler with the Tsup bundler.

Features

Usage

  1. To use this template, click the "Use this template" button above.
  2. Clone the repository to your local machine.
  3. Run pnpm install to install the dependencies.
  4. Run pnpm build to build the bundle.
  5. Run pnpm start to start the bundle.
  6. Run pnpm lint to lint the code. (You can also run pnpm lint:fix to fix the linting errors.)
  7. Run pnpm test to run the tests. (You can also run pnpm test:watch to run the tests in watch mode.)
  8. Run pnpm release to bump the version. Terminal will ask you to select the version type. And then it will automatically commit and push the changes. GitHub Actions will automatically publish git tags. NPM local registry will automatically publish the package.

Configuration

Renovate

Setup Github App for Renovate.

TS Config Base

(tsconfig.json)[https://github.com/tsconfig/bases/tree/main/bases] is used as the base config for the Typescript compiler.

Sponsors

sponsors

License

This project is licensed under the MIT License.