1.0.4 • Published 3 years ago

zhao-bing-ts-cli v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

ts-cli

这个包的作用是一键生成ts项目的配置文件

包含以下几个插件 不需要大家再次繁琐的初始化过程

  • eslint
  • typescript
  • git的提交规范
  • git的hook(husky)

使用方式

npm i @zb/ts-cli [-g]

使用:

npx ts-cli 项目的名字

这样就可以生成一个项目了

npm i eslint@7.23.0 eslint-config-standard -D

eslint --init

npm i commander chalk shelljs inquirer clear-console ora download-git-repo -D

npm i eslint-config-standard typescript commander chalk shelljs inquirer clear-console ora download-git-repo -D

创建自己写好的项目

ts-node ./src/index.ts create reactName

打包命令

tsc --build npm link