Chapter 2. Composing build tasks and flows

This chapter covers

  • Understanding what should happen in a build
  • Learning about key build tasks
  • Using Grunt to run key tasks
  • Configuring a build flow using Grunt
  • Creating your own Grunt tasks

In the previous chapter you got a quick overview of what the Build First approach looks like, and you glanced at a lint task. In this chapter, we’ll go over common build tasks and a few more advanced ones. I’ll uncover the use cases and reasoning behind each of them, and we’ll look at how to implement them in Grunt. Learning the theory might sound dull, but it’s particularly important if you use a task runner other than Grunt, as I’m sure you will eventually.

Grunt is a configuration-driven build tool that ...

Get JavaScript Application Design: A Build First Approach now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.