Exemple #1
0
grunt.help.templates = function() {
  grunt.log.header('Available templates');
  if (templates.length > 0) {
    grunt.help.table(templates);
  } else {
    grunt.log.writeln().writeln('(No templates found)');
  }
  grunt.log.writeln().writelns(
    'Templates that exist in the ' + helpers.userDir() + ' ' +
    'directory may be run with "grunt-init TEMPLATE". Templates that exist ' +
    'in another location may be run with "grunt-init /path/to/TEMPLATE". A ' +
    'template is a directory that must contain, at the very minimum, a ' +
    'template.js file.'
  );
};
Exemple #2
0
 templates = Object.keys(templatesMap).map(function(name) {
   var description = templatesMap[name].description;
   grunt.help.initCol1(name);
   return [name, description || '(no description)'];
 });