Grunt

Alexa's Ranking: 217,441

Like Gulp, Grunt is a task runner to automate your workflow.

To install the Grunt:

npm install –g grunt-clinpm install –save-dev grunt

The Gruntfile.js or Gruntfile.coffee file is a valid JavaScript or CoffeeScript file that belongs in the root directory of your project, next to the package.json file, and should be committed with your project source.


// example 1 module.exports = function(grunt) {  // Project configuration.
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    uglify: {
      options: {
        banner: '/*! <%= pkg.name %>
          <%= grunt.template.today("yyyy-mm-dd") %> */\n'
      },
      build: {
        src: 'src/<%= pkg.name %>.js',
        dest: 'build/<%= pkg.name %>.min.js'
      }
    }
  });  // Load the plugin that provides the "uglify" task.
  grunt.loadNpmTasks('grunt-contrib-uglify');  // Default task(s).
  grunt.registerTask('default', ['uglify']);};

To run Grunt:

grunt

There are 6250 Grunt plugins at the time of writing.