collate
a .js/.coffee and .css/.less collater
Last updated 7 years ago by jlewis .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install collate 
SYNC missed versions from official npm registry.

Collate

Collate is a Node module for concatenating and minifying scripts and stylesheets. Collate works with JavaScript/CoffeeScript and CSS/LESS. The command line utility can watch for changes and automatically recollate. Collate is a project of State Design.

Installation

Install via NPM:

npm install collate

Use the -g flag for global access to the command line utility.

Usage

As a module:

Collate = require('collate');
Collate.collate('styles.css', ['main.less', 'home.css'], { basedir: 'styles/' });

From the command line:

collate -t styles.css -d styles/ main.less home.css

Options

  -t, --target    Target for collated output.                                    [required]
  -d, --basedir   Base dir (relative to cwd).                                  
  -c, --compress  Minify the output.                                             [boolean]
  -v, --verbose   Verbose - source changes and collate results print to STDOUT.  [boolean]
  -w, --watch     Watch for changes (process will run until ^C).                 [boolean]

The module syntax is

Collate.collate([target], [sources], [options], [callback]);

Todo

  • Option to gzip
  • Don't reminify already-minified source

Current Tags

  • 0.0.7                                ...           latest (7 years ago)

6 Versions

  • 0.0.7                                ...           7 years ago
  • 0.0.6                                ...           8 years ago
  • 0.0.5                                ...           8 years ago
  • 0.0.4                                ...           8 years ago
  • 0.0.2                                ...           8 years ago
  • 0.0.1                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (5)
Dev Dependencies (0)
None
Dependents (2)

Copyright 2014 - 2016 © taobao.org |