3.0.0 • Published 5 years ago
generator-dodevops-typescript v3.0.0
A highly opinionated Yeoman generator for typescript modules
Introduction
This is a highly opinionated Yeoman generator for building Typescript-based modules with the following features:
- Complete Grunt-based tasks to transpile and test your Typescript files
- Mocha and Chai-based testing framework
- Istanbul-based coverage calculation
- Loglevel Logger set up
- Support for Bluebird-based promises (including testing capabilities based on chai-as-promised)
- Code Style checking based on ESlint, Typescript-eslint and Prettier with some opinionated settings
- Git ignore set up for Node and major IDEs
Usage
Install yo and generator-dodevops-typescript globally:
npm install -g yo generator-dodevops-typescriptCreate a new directory and run the generator
mkdir my-project
cd my-project
yo dodevops-typescriptThe generator will ask you a few questions and then you can start right away by opening then example class in index.ts in your favourite editor or IDE.