A Yeoman generator to setup a Node.js command-line interface app in Typescript 2.0
Install generator-nodejs-cli-typescript
globally
npm i -g generator-nodejs-cli-typescript
Create a new project directory and run yo
mkdir your-project && cd $_
yo nodejs-cli-typescript
You can use npm run
to get information about available tasks
Lifecycle scripts included in your-project:
test
npm run build && mocha --compilers ts:ts-node/register --recursive test/**/*-spec.ts
available via `npm run-script`:
clean
rimraf dist
build
npm run clean && tsc --pretty
watch
npm run build -- --watch
watch:test
npm run test -- --watch
- Lars Hisken (larshisken@protonmail.com)
MIT