Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

colorhook/att

Repository files navigation

att - Auto Task Tool

集成化的、易扩展的前端开发工具

单元测试

travis build status

安装

npm install att -g

★使用方法

~>att
Usage: att COMMAND[:NAMESPACE] [ARGS] [--silent]
 beautify format the code to be beautiful
 createapp create app by template
 datauri datauri the css or image
 help for more infomation on a specific command
 hint code syntax validation
 install install att plugin by npm module
 minify minify html, css, js and image files
 server startup a simple server
 uninstall uninstall att plugin
  • att hint */**/*.js 检查所有js文件
  • att minify index.html 压缩html
  • att minify icon.png 压缩png
  • att minify app.js 压缩js
  • att minify style.css 压缩css
  • att minify icon.png 压缩图片并替换原有图片
  • att datauri style.css 对css中的图片进行datauri编码

att install

  • 从npm库安装一个library作为插件
att install att-formatjson
  • 指定特定的npm环境
att install xxx --registry=http://registry.npm.taobao.net

att minify

att minify **/*.js
#and
att minify **/*.css
#and
att minify **/*.png

att datauri

att datauri **/*.css

★文档

  • 确保安装了yuidoc,如果没有请在命令行中执行npm install yuidoc -g进行安装
  • 启动命令行,进入att目录,执行yuidoc --server .
  • 在浏览器中打开 http://localhost:3000 查看文档

★Timeline

4.2.3 (2015年4月19日)

  • datauri支持直接转换图片 att datauri banner.jpg -o banner.txt
  • util.puts更好为console.log

4.2.0, 4.2.1, 4.2.2 (2014年10月23日)

  • 支持私有库 @ali/att-yunos-suite

4.1.8, 4.1.9 (2014年07月15日)

  • 升级node-minifier,为minify插件增加图片默认不使用pngquant的配置

4.1.7 (2014年06月05日)

  • 解决mac下安装失败的问题

4.1.6 (2014年05月15日)

  • att增加--overwrite标记,输出是否覆盖原来的文件。

4.1.5 (2013年12月31日)

  • node-minifier 更新至0.1.4,使用最新版UglifyJS2,修复IE8下DataURI 32K限制判断不准确的bug。去除namespace内置插件。

4.1.4 (2013年12月17日)

4.1.3 (2013年11月26日)

  • node-minifier 更新至0.1.2,增强压缩png图片的功能,依次使用optipng, pngcrush, pngquant, advpng优化png图片。

4.1.2 (2013年9月3日)

  • node-minifier 更新至0.1.1,压缩JS时,默认将中文转成Unicode

4.1.1 (2013年8月26日)

  • 文档更新
  • 代码检查,代码优化
  • minify 增加参数 --remove-console, --copyright
  • hint 增加参数 --node
  • bugfix

4.1.0 (2013年8月25日)

  • 加入createapp創建項目插件
  • 加入beautify格式化代碼插件
  • 加入server插件,插件存储到att/plugins目录
  • 重构att的插件机制
  • js压缩使用UglifyJS2
  • 图片压缩优先使用本地native包压缩

4.0.0 (2013年3月12日)

  • 插件延迟初始化
  • 安装卸载插件功能
  • 插件取别名的功能 (deprecated)
  • 支持npm模块作为插件安装
  • 移除了att build功能

3.3.0 (2013年1月30日)

  • 更灵活的配置
  • 协同化的插件机制

3.2.0 (2012年12月30日)

  • 基础插件
  • 压缩
  • 代码检查
  • datauri
  • 上传CDN

3.1.0 (2012年12月15日)

  • 基础框架
  • 插件机制

About

ATT is a terminal tool for front-end developers to make web project deployment easier and faster

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

AltStyle によって変換されたページ (->オリジナル) /