A Yeoman generator to create a base template for TypeScript library project.
- Pre-defined tsconfig to start with
- Build commonjs module output (
main
filed inpackage.json
) - Build ES6 module output (
module
filed inpackage.json
) - Build UMD dist output, include development source map version and minify version (
browser
filed inpackage.json
)
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