Source Code - https://github.com/AbijeetP/grunt-demo
It's a task runner.
and how to create it?
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
prod: {
files: minifyFiles
}, options: {
mangle: true
},
}
}); // Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-uglify');
// Default task(s).
grunt.registerTask('default', ['uglify:prod']);