Gruntfile.js
function log(err, stdout, stderr, cb) {
              //And handle errors (if any)
              if (err) {
                grunt.log.errorlns(err);
              }
              else if (stderr) {
                grunt.log.errorlns(stderr);
              }
              else {
                //Otherwise load a lodash template
                var template = grunt.file.read(
                  __dirname +
                  '/view/binders.lodash');
                
                //process it with the hulk result
                var result = grunt.template.process(template, {data: {stdout: stdout}});  
                
                //And write out our bootstrap module
                grunt.file.write(
                  __dirname +
                  '/tasks/binders.js',
                  result
                );
                grunt.log.ok('hulk: generated binders.js');
                cb();
              }
          }
function log(err, stdout, stderr, cb) {
              //And handle errors (if any)
              if (err) {
                grunt.log.errorlns(err);
              }
              else if (stderr) {
                grunt.log.errorlns(stderr);
              }
              else {
                //Otherwise load a lodash template
                var template = grunt.file.read(
                  __dirname +
                  '/view/binders.lodash');
                
                //process it with the hulk result
                var result = grunt.template.process(template, {data: {stdout: stdout}});  
                
                //And write out our bootstrap module
                grunt.file.write(
                  __dirname +
                  '/tasks/binders.js',
                  result
                );
                grunt.log.ok('hulk: generated binders.js');
                cb();
              }
          }
function log ( err , stdout , stderr , cb ) { //And handle errors (if any) if ( err ) { grunt . log . errorlns ( err ) ; } else if ( stderr ) { grunt . log . errorlns ( stderr ) ; } else { //Otherwise load a lodash template var template = grunt . file . read ( __dirname + '/view/binders.lodash' ) ; //process it with the hulk result var result = grunt . template . process ( template , { data : { stdout : stdout } } ) ; //And write out our bootstrap module grunt . file . write ( __dirname + '/tasks/binders.js' , result ) ; grunt . log . ok ( 'hulk: generated binders.js' ) ; cb ( ) ; } }
But catch the output
But catch the output