ulivz / ts-lib-template

A hassle-free TS library template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ts-lib-template

A hassle-free TS library template.

NPM version NPM downloads Build Status

Quick Start

  1. Click "Use this template" at this repository.
  2. Rename all ts-lib-template to your package name.
  3. 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

Features

  • TypeScript by default.
  • Output both cjs and esm.
  • Unit test with jest.
  • Format code with eslint.
  • Fix and format code on each commit.
  • Leverage quick-publish for release flow.

License

MIT © ULIVZ

About

A hassle-free TS library template

License:MIT License


Languages

Language:JavaScript 81.9%Language:TypeScript 18.1%