Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zjhiphop/optimize

This is a tool which is used to merge&compress js/css files
https://github.com/zjhiphop/optimize

Last synced: 3 days ago
JSON representation

This is a tool which is used to merge&compress js/css files

Awesome Lists containing this project

README

        

#A tool used to relax your css&js merge&minify.
###use:
npm install -g optimize
###to install it in your computer.

## It has the fllowing features:
1. merge all css and js files from base dir
2. use jshint to detect errors and potential problems with the js code
3. use jshint to detect errors and potential problems with the js code
4. use csshint to help point out problems with the CSS code
5. build with a config json file.

eg:
{
"dir":".",
"out":"build/",
"files":{
"js":[],
"css":[]
},
"lint":{
"js":true,
"css":true
},
"minify":{
"css":true,
"js":true
},
"concat":{
"css":true,
"js":true
},
"watch":{
"minify":true,
"lint":false
}
}

##example:
optimize watch //this will watch all project,and build while files changed

## TODO:
1. auto merge @import css files.
2. auto task deploy

@update:
V 0.1.6
1.add @import css consist,but only configed in config.json

[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/zjhiphop/optimize/trend.png)](https://bitdeli.com/free "Bitdeli Badge")