ts-project-helpers
v1.0.2
Published
Helps init typescript project in one-command-line.
Downloads
8
Readme
ts-project-helpers
Install
npm i -g ts-projet-helpers
Intro
Helps init typescript project in one-command-line.
All command will check if current folder is a nodejs project.\
Command : tph-init
- Add following npm package into devDependencies ( if not exists ). But not installed yet.
version will all set to"*"
- typescript
- @types/node
- eslint
- eslint-config-egg
- mocha
- @types/mocha
- chai
- @types/chai
- Add package script
"mocha-test" : "mocha --reporter spec --timeout 10000 --colors test/**/*.test.js"
- Add package script
"mocha-debug" : "mocha --reporter spec --timeout 10000 --colors test/debug.js"
- create
tsconfig.json
file . ( if not exists ) - create
.eslintignore
and.eslintrc
file . ( if not exists )