1.0.14 • Published 5 years ago

dt-tools v1.0.14

Weekly downloads
2
License
MIT
Repository
gitlab
Last release
5 years ago

dt-tools

用于构建dt组件库, fork from antd-tools@5.1.3.

使用方式

dt-tools run ts-lint

ts格式检查

dt-tools run ts-lint-fix

ts格式检查+修复

dt-tools run dist

根据项目中的webpack.config.js文件配置将组件全部打包到一起, 内容输出到/dist

dt-tools run compile

  • 组件内less文件编译转移
  • 组件内静态资源转移: png|svg|eot|ttf|woff|jpg|jpeg
  • 组件内*.tsx|*.ts编译成js文件
  • 这里的编译是/lib/es两个文件夹的内容输出

dt-tools run clean

  • 删除/_data/_site文件夹

dt-tools run pub

  • 执行 check-gitcompile 任务
  • 执行 dist 任务
  • 发布到私有源
  • gitlab上打标签

dt-tools run guard

  • publish之前的守卫, 用于使用 npm publish 防止私自发布的情况

update

  • 1.0.14 babel-preset-env增加process.env.loose配置,若为字符串'true',则开启。默认不开启。