Mastering Grunt [Video]

More Information
Learn
  • Set up Grunt in a project as well as choose, install, and load Grunt plugins
  • Configure Grunt tasks using options and file selection efficiently
  • Compose and create an automation workflow using atomic tasks
  • Use Grunt for long-running tasks such as live compilation and hot reloading
  • Author, release, and publish your own Grunt plugin
  • Use Grunt’s internal APIs such as file, event, log, and async
  • Debug a Grunt configuration to detect possible conceptual issues
  • Clean up, optimize, and organize the Grunt configuration to get efficient workflows
About

Grunt is everywhere. From JavaScript projects in jQuery to Twitter Bootstrap, everyone's using Grunt to convert code, run tests, and produce distributions for production. Web development activities are marked by repetitive tasks such as optimization, compilation, sprites assembling, and testing. Grunt stands on a wide number of rock solid plugins that will do the job for you, helping you to maximize your development time by reducing time spent doing repetitive tasks.

With this course, not only will you be able to set up and use Grunt in your projects, you’ll also learn about the Grunt internals and its philosophy. The goal is to prepare you to become a Grunt expert—from complex configuration to plugin authoring.

Using a real application as a leading thread, called Foodprint.io, we will automate most of the repetitive tasks in its workflow such as compiling SASS files, running unit tests, and bundling ES2015 code to ES5. We will start with an advanced configuration and customization of the Grunt environment, focusing on practical examples of creating a customized Grunt environment that will support large-scale web development.

Next, we will discover one of the most powerful aspects of Grunt—using live tasks to run the application in development mode. We'll talk about LiveReload, Test Automation, Modular configuration, and combining tasks. Another crucial part of the course is dedicated to creating a Grunt plugin from scratch, and we'll cover how to scaffold plugins using Grunt init and Yeoman, how to test them with Mocha and Chai, and how to publish them so others can use them. We finally end our journey with a dedicated focus on best practices and troubleshooting.

Full of advice, best practices, and real-life examples, the course isn’t just a combination of different Grunt configurations, it will give you all you need to architect your automation workflow, debug existing ones, and implement Grunt successfully in large and complex applications.

Style and Approach

This video course is an advanced practical guide that will dive deep into efficiently creating and maintaining large scale tasks and project builds, automating work-flows of large groups by creating complex routines, integrating third-party plugins, and creating custom tasks. During the course, we will implement Grunt step-by-step, introducing a new concept in every section. The course leads you through concrete use cases, from an efficient Grunt configuration to the development of your own Grunt tasks all in less than 3 hours.

Features
  • Learn how to use and configure Grunt and its plugins to automate your project’s tasks
  • Write Grunt plugins and become the author of the next hip plugin
  • Using a real-world application as a breadcrumb trail, the course examples are based on pragmatic use cases so you can easily learn the Grunt way of doing automation
Course Length 2 hours 7 minutes
ISBN 9781785281617
Date Of Publication 30 May 2016

Authors

Bertrand Chevrier

Bertrand Chevrier is a professional JavaScript developer with 10 years of experience in large-scale software development and architecture. He uses Grunt every day for his professional and personal projects. As a Grunt plugin author, he’s part of the Grunt community and his work is widely used. He also used to teach Grunt to his team mates and speaks about Grunt in conferences and user groups.

He's also a strong believer and advocate of free and open source software. By day he works for OAT SA, the company behind TAO, the open source e-testing platform, where he’s in charge of front-end development and architecture, and by night he contributes to open source software.