Socket
Book a DemoInstallSign in
Socket

atool

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atool

angular tool without any module wrap 极致angular开发环境 不需任何模块包装,智能加载资源, 没有任何依赖

0.0.1
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 27 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.