atool

0.0.1 • Public • Published

atool 工具

主要特点

  • anjs 根据angular.moudle 动态分析获取依赖与资源,让angular模块化繁为简,回归本质。
  • koa 服务器实现线上线下一致的开发环境,请求资源动态实时打包,响应及时流畅,提前预知问题
  • bower 组件管理 ,另实现了css 资源引用相对于bower_components目录直接使用
  • gulp 打包
  • weinre 手机调试集成
  • ginit 支持自定义模板资源
  • less
  • html 支持inculde tms区块 ===
  • atool-html2js 动态编译template
  • 代理 pac

安装

$ sudo npm install -g atool

sudo npm  install bower -g  

sudo npm  install weinre -g 

使用过程

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

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

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

命令使用

  • atool start weinre 手机调试打开项目(weinre 需要全局安装)
  • atool start proxy 打开代理 (需要将pac设置系统的网络代理)
  • atool start wp 打开代理 + 手机调试(weinre(需要将pac设置系统的网络代理)
  • atool start 开启项目
  • atool build 打包项目
  • atool ut [url] 替换atool中template文件中自定义内容
  • atool init [url?] 项目初始化 后面参数实现自定义初始化
  • atool task [name] 执行glupfile 中自定义的其他对应命令
  • atool data [name][type?] 创建本地mock数据type submit(s)list(l)data(d)
  • atool router [name][type?] 创建路由 type 类型create(c) edit(e) list(l) 强烈建议添加类型
  • atool modal [name][routename?] 创建弹层 routename所在路由页面的名称(可以没有默认注册在全局,建议写上)
  • atool service[name][routename?] 同上
  • atool directive ,controller, provider ,value ,constant, filter 同上

template开发

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

init 初始化自定义开发

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

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

bug反馈 zhoujianlin8@gmail.com

Readme

Keywords

none

Package Sidebar

Install

npm i atool

Weekly Downloads

2

Version

0.0.1

License

MIT

Last publish

Collaborators

  • zhoujianlin