ttool

0.0.1 • Public • Published

ttool 工具

主要特点

  • webpack
  • koa 服务器实现线上线下一致的开发环境,请求资源动态实时打包,响应及时流畅,提前预知问题
  • npm 组件管理 ,另实现了css 资源引用相对于node_components目录直接使用
  • gulp 打包
  • weinre 手机调试集成
  • ginit 支持自定义模板资源
  • less
  • html 支持inculde tms区块 ===
  • 代理 pac

安装

$ sudo npm install -g ttool

sudo npm  install bower -g  

sudo npm  install weinre -g 

使用过程

 mkdir my-new-project && cd $_
 ttool init(初始化项目 )

 ttool router list l (创建一个名称为list模板类型为list的路由页面)

 ttool start(开启项目)
 
 ttool build(打包)

命令使用

  • ttool start weinre 手机调试打开项目(weinre 需要全局安装)
  • ttool start proxy 打开代理 (需要将pac设置系统的网络代理)
  • ttool start wp 打开代理 + 手机调试(weinre(需要将pac设置系统的网络代理)
  • ttool start 开启项目
  • ttool build 打包项目
  • ttool ut [url] 替换atool中template文件中自定义内容
  • ttool init [url?] 项目初始化 后面参数实现自定义初始化
  • ttool task [name] 执行glupfile 中自定义的其他对应命令
  • ttool data [name][type?] 创建本地mock数据type submit(s)list(l)data(d)
  • ttool r [name][type?] 创建路由
  • ttool c [name] 创建components

template开发

可以直接fork template 目录代码修改

init 初始化自定义开发

可以直接fork template/root 目录代码修改

注意node版本要求在0.11.x以上, 请更新到最新稳定版本

bug反馈 zhoujianlin8@gmail.com

Dependents (0)

Package Sidebar

Install

npm i ttool

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • zhoujianlin