Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Latest commit

 

History

History
33 lines (21 loc) · 712 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 712 Bytes

generator-ts-lib-starter

A Yeoman generator to create a base template for TypeScript library project.

Features

  • Pre-defined tsconfig to start with
  • Build commonjs module output (main filed in package.json)
  • Build ES6 module output (module filed in package.json)
  • Build UMD dist output, include development source map version and minify version (browser filed in package.json)

Usage

Install Yeoman

npm install -g yo

Install generator-ts-lib-starter

npm install -g generator-ts-lib-starter

Create your TypeScript lib project:

mkdir mylib && cd mylib
yo ts-lib-starter

Build your project

npm run build