JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 60487
  • Score
    100M100P100Q12204F

Common functionality shared across grunt-contrib tasks.

Package Exports

  • grunt-lib-contrib

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (grunt-lib-contrib) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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.