Détail du package

grunt-lib-contrib

gruntjs150.5kobsolète0.7.1

DEPRECATED. See readme: https://github.com/gruntjs/grunt-lib-contrib

Common functionality shared across grunt-contrib tasks.

readme

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.

changelog

v0.6.1: date: 2013-03-24 changes:

- Add formatForType option

v0.6.0: date: 2013-03-14 changes:

- Change API/reportying style for minMaxInfo

v0.5.3: date: 2013-02-23 changes:

- use MIT licensed zlib-browserify instead of unlicensed gzip-js

v0.5.2: date: 2013-01-24 changes:

- add minMaxGzip & minMaxInfo.

v0.5.0: date: 2012-12-05 changes:

- remove findBasePath, buildIndividualDest and isIndividualDest.
- remove options and normalizeMultiTaskFiles.
- remove node v0.6 and grunt v0.3 support.

v0.4.0: date: 2012-11-20 changes:

- findBasePath returns '' if passed false.
- Added stripPath.

v0.3.1: date: 2012-10-29 changes:

- Tweaked findBasePath to handle single dot differently.
- Start testing with Travis.
- Docs cleanup.

v0.3.0: date: 2012-09-24 changes:

- Added findBasePath, buildIndividualDest, isIndividualDest, optsToArgs.
- Refactored tests.
- Automatically parse templates in options.

v0.2.1: date: 2012-09-14 changes:

- Added non-destuctive namespace declarations.

v0.2.0: date: 2012-09-10 changes:

- Refactored from grunt-contrib into individual repo.