generator-ts
Generator to start with TypeScript
Installation
First, install Yeoman and generator-ts using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-ts
Then generate your new project:
yo ts
Commands:
All commands are npm tasks in package.json:
- npm run test -> execute tests with Karma + Coverage + PhantomJS
- npm run live -> show app with livereload thank to live-server
- npm run pro -> prepare app for production in dist folder
- npm run clean -> delete build folder
- npm run compile -> compile TypeScript to JavaScript
- npm run compile-w -> compile TypeScript to JavaScript when files change
- npm run lint -> show syntax error when files change
- npm run plato -> execute complexity analysis with plato in report folder
Getting To Know Yeoman
Yeoman has a heart of gold. He's a person with feelings and opinions, but he's very easy to work with. If you think he's too opinionated, he can be easily convinced. Feel free to learn more about him.