grunt-lib-contrib

Common functionality shared across grunt-contrib tasks.

DEPRECATED. See readme: https://github.com/gruntjs/grunt-lib-contrib
Last updated 12 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install grunt-lib-contrib 
SYNC missed versions from official npm registry.

grunt-lib-contrib Build Status

DEPRECATED - DO NOT USE

Common functionality shared across grunt-contrib tasks.

Helper Functions

stripPath(path, stripPath)

Deprecated. Use strip-path instead.

Strip a path from a path. Normalize both paths for best results.

minMaxInfo(min, max, report)

Deprecated. Use maxmin instead.

Helper for logging compressed, uncompressed and gzipped sizes of strings.

report

Choices: false, 'min', 'gzip' Default: false

Either do not report anything, report only minification result, or report minification and gzip results.

Important Including 'gzip' results can make this task 5-10x slower depending on the size of the file.

var max = grunt.file.read('max.js');
var min = minify(max);
minMaxInfo(min, max, 'gzip');

Would print:

Original: 495 bytes.
Minified: 396 bytes.
Gzipped: 36 bytes.

getNamespaceDeclaration(ns)

This helper is used to build JS namespace declarations.

--

Lib submitted by Tyler Kellen.

Current Tags

  • 0.7.1                                ...           latest (12 years ago)

10 Versions

  • 0.7.1 [deprecated]           ...           12 years ago
  • 0.7.0                                ...           12 years ago
  • 0.6.1                                ...           13 years ago
  • 0.6.0                                ...           13 years ago
  • 0.5.3                                ...           13 years ago
  • 0.5.2                                ...           13 years ago
  • 0.5.1                                ...           13 years ago
  • 0.4.0                                ...           13 years ago
  • 0.3.1                                ...           13 years ago
  • 0.3.0                                ...           14 years ago

Copyright 2013 - present © cnpmjs.org | Home |