Grunt: The Javascript Task Runner
Grunt: The Javascript Task Runner
Note: This isn’t Grunt.js itself. This just helps manage our multiple versions of
Grunt on machine.
Grunt dependencies
Both files live together at the root of our project.
# Install grunt
$ npm install grunt --save-dev
};
Executing Grunt Tasks
# Execute the default task alias
$ grunt
★ Function task
grunt.registerTask(‘name’, ‘description’, function);
★ Multi-task
grunt.registerMultiTask(‘name’, ‘description’, function);
Grunt: What is it Good For?
★ Simple builds (front-end dev)
★ Complicated builds (front-end and
back-end)
★ Continuous workflow automation
(watch, livereload)
★ Not just for JS projects
Who uses Grunt?
★ These are just a few companies and projects
that are using Grunt.
Grunt: The JavaScript Task Runner
Thanks!
gruntjs.com