Typescript-Nyc-Mocha-Gulp
A Project With:
- TypeScript ^3.0
- Travis Nyc(coveralls)
- Mocha(based TS) Gulp-typescript
- TsLint TsDoc
Develop
Project
# init
npm install
# build
npm run build
# incrementally build
gulp watch
Global (optional)
npm install gulp -g
npm install typescript -g
Cmd
# Test 本地TS测试
npm test test/*.ts
# Cover 覆盖率检查
npm run cover
# TsLint (src/**/*.ts test/**/*.ts) 语法检查
npm run lint
# Doc (save to docs/) 生成html api 文档
npm doc
# Readme (save to md/) 生成MD 文档
npm md
Platform Support
-
preversion before npm publish
- tslint
- cover