ATT is a terminal tool for front-end developers to make web project deployment easier and faster
集成化的、易扩展的前端开发工具
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
压缩htmlatt minify icon.png
压缩pngatt minify app.js
压缩jsatt minify style.css
压缩cssatt minify icon.png
压缩图片并替换原有图片att datauri style.css
对css中的图片进行datauri编码att install att-formatjson
att install xxx --registry=http://registry.npm.taobao.net
att minify **/*.js
#and
att minify **/*.css
#and
att minify **/*.png
att datauri **/*.css
npm install yuidoc -g
进行安装yuidoc --server .
att datauri banner.jpg -o banner.txt
util.puts
更好为console.log
node-minifier
,为minify
插件增加图片默认不使用pngquant
的配置att
增加--overwrite
标记,输出是否覆盖原来的文件。node-minifier
更新至0.1.4,使用最新版UglifyJS2
,修复IE8下DataURI 32K限制判断不准确的bug。去除namespace内置插件。node-minifier
更新至0.1.2,增强压缩png图片的功能,依次使用optipng
, pngcrush
, pngquant
, advpng
优化png图片。node-minifier
更新至0.1.1,压缩JS时,默认将中文转成Unicode--remove-console
, --copyright
--node