How to use the utils function from grunt
Find comprehensive JavaScript grunt.utils code examples handpicked from public code repositorys.
GitHub: phated/grunt-enyo
6 7 8 9 10 11 12 13 14 15
grunt.npmTasks([ 'enyo' ]); var _ = grunt.utils._; var template = grunt.template.process; // Draw the help screen. function displayHelp(withFlags) {
7
10
5
GitHub: eclifford/towelie
74 75 76 77 78 79 80 81 82
grunt.log.header((name + " tasks:").yellow); grunt.log.writeln(); tasks.forEach(function(a) { grunt.log.writetableln(widths, ['', grunt.utils._.pad(a[0], col1len), '', a[1]] ); }); }
0
4
2
grunt.file is the most popular function in grunt (372 examples)