fuck_grunt

Does what it's named

npm install fuck_grunt
8 downloads in the last month

fuck_grunt

Concat and minify the javascript and CSS on any webpage. Just point fuck_grunt at the page and it'll give you back the html, js, and css files.

This is definitely a hack, but useful if you already have a running site and just want to combine and minify your files without spending a lot of time getting a whole grunt setup going. Yes you'll have to do it again if you change any code, but that's why this is called a hack. =-)

Installation

$ npm install -g fuck_grunt

Usage

$ fuck_grunt http://www.dailypuppy.com/

Programmatic Usage

var fuck_grunt = require('fuck_grunt');

// Just process files
fuck_grunt('http://www.dailypuppy.com', handle_result);

// Process files and write to current directory
fuck_grunt('http://www.dailypuppy.com', {write_files: true}, handle_result);

Result Data

{
  "html": {
    "filename": "..."    // filename of output file or null
    "content": "...",    // processed file content
    "files": [...]       // list of files included in content
  },
  "js": {
    "filename": "...",
    "content": "...",
    "files": [...]
  },
  "css": {
    "filename": "...",
    "content": "...",
    "files": [...]
  },
}
npm loves you