Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Some old grunt helpers provided for backwards compatability.
JavaScript
Branch: master
Failed to load latest commit information.
lib Alias grunt-lib-contrib minMaxInfo method
.gitignore initial commit
.jshintrc initial commit
AUTHORS initial commit
CHANGELOG initial commit
Gruntfile.js initial commit
LICENSE-MIT initial commit
README.md Typo
package.json Bump v0.1.1

README.md

grunt-lib-legacyhelpers

Some old grunt helpers provided for backwards compatability.

Grunt's helper system has been deprecated in favor of node require. If your plugin uses the concat, gzip or min_max_info helpers, you may now use them by adding this package to your plugin's dependencies.

Usage

// adding this line near the top of your task will load the helpers,
// giving them access to the current instance of grunt.
var helpers = require('grunt-lib-legacyhelpers').init(grunt);

// then, replace any call to helpers:
grunt.helper('name', ...);

// with this:
helpers.name(...);

Future releases of grunt will provide the ability to pipe data through multiple tasks in your plugin code. For now, this is the canonical method for sharing common utility functions between tasks.

Something went wrong with that request. Please try again.