Registry / devops / grunt-hustler

grunt-hustler

JSON →
library4.0.6jsnpmunverified

A collection of Grunt tasks including cache busting, file hashing, HTML minification, RequireJS main file generation, AngularJS template cache creation, and Lo-Dash template compilation. Version 4.0.6 is the latest stable release. The package provides specialized task wrappers for asset pipeline workflows in legacy Grunt-based projects. Key differentiators from other Grunt task collections: includes 'bust' for cache busting with file reference replacement, 'ngTemplateCache' for AngularJS templates, and 'shimmer' for RequireJS integration. Requires Node >= 0.8.1.

npm install grunt-hustler
INSTALL
IMPORT
SIG · GRUNT-HUSTLER
G
grunt-hustler
devopsjavascriptv4.0.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

grunt-hustler
grunt.loadNpmTasks('grunt-hustler');
require('grunt-hustler');
Must be called in Gruntfile to register tasks. Not a direct module import.
bust
_grunt.config('bust', { ... })
grunt.config('bust', ...) // if using grunt inside initConfig
Task configuration is set via grunt.config() within Gruntfile. The underscore is not required; it can be grunt.config directly.
hash
_grunt.config('hash', { ... })
minifyHtml
_grunt.config('minifyHtml', { ... })
Note the camelCase spelling; 'minifyHtml' not 'minifyhtml' or 'minifyHTML'.
ngTemplateCache
_grunt.config('ngTemplateCache', { ... })
_grunt.config('ngtemplatecache', ...) // incorrect casing
Task name is case-sensitive as 'ngTemplateCache'.

Gruntfile configuration demonstrating all four tasks: bust, hash, minifyHtml, and ngTemplateCache.

// Gruntfile.js module.exports = function(grunt) { grunt.loadNpmTasks('grunt-hustler'); grunt.initConfig({ bust: { images: { files: [{ cwd: './temp/', src: ['images/**/*.png'], dest: './temp/', replaceIn: { files: ['./temp/styles/styles.css'] } }] } }, hash: { scripts: { files: [{ cwd: './temp/', src: ['scripts/scripts.min.js'], dest: './temp/scripts/' }] } }, minifyHtml: { views: { files: [{ src: 'index.html', dest: './dist/' }] } }, ngTemplateCache: { views: { options: { trim: './temp' }, files: [{ './dist/views.js': './views/**/*.html' }] } } }); // Default task can run one or more tasks grunt.registerTask('default', ['bust', 'hash', 'minifyHtml', 'ngTemplateCache']); };
Debug
Known issues
deprecatedPackage is no longer actively maintained. Last release 4.0.6 from 2015. May have unpatched vulnerabilities.
fix
Consider migrating to modern build tools like Webpack, Vite, or Gulp.
affects: >=4.0.0
gotchaNode.js version requirement: '>= 0.8.1'. Will not work on modern Node.js versions without compatibility issues.
fix
Use an older Node.js version or find alternative packages.
affects: >=4.0.0
gotchaTask names are case-sensitive. 'minifyHtml' not 'minifyhtml'; 'ngTemplateCache' not 'ngtemplatecache'.
fix
Ensure exact casing in grunt.config() calls.
affects: >=4.0.0
gotcha'bust' task replaces file references; unintended replacements may occur if replaceIn files contain similar strings.
fix
Review replaceIn file contents and test before deployment.
affects: >=4.0.0
Errors
Common errors & fixes
grunt.loadNpmTasks('grunt-hustler') fails: "Warning: Task "bust" not found."
grunt-hustler requires grunt peer dependency; if grunt is not installed or version mismatch, tasks don't register.
fix
Ensure grunt is installed (npm install grunt --save-dev) and versions are compatible.
Fatal error: Unable to find local grunt.
grunt CLI not installed or not in node_modules.
fix
npm install grunt --save-dev
Upgrade
Version history
4.0.6latest on npm
Audit
Dependencies
gruntrequiredpeer dependency required to load tasks
Agent activity
4 hits · last 30 days
node
4
Resources
grunt-hustler — npm install grunt-hustler · libregistry