grunt-lib-legacyhelpers
Some old grunt helpers provided for backwards compatability.
Last updated 13 years ago by shama .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install grunt-lib-legacyhelpers 
SYNC missed versions from official npm registry.

grunt-lib-legacyhelpers

Some old grunt helpers provided for backwards compatability.

Grunt's helper system has been depreciated 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.

Current Tags

  • 0.1.1                                ...           latest (13 years ago)

2 Versions

  • 0.1.1                                ...           13 years ago
  • 0.1.0                                ...           13 years ago
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (2)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |