npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

att

v4.2.4

Published

an easy frontend developer tool

Downloads

19

Readme

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)

  • 基础框架
  • 插件机制