Automate with Grunt
The Build Tool for JavaScript
Publisher: Pragmatic Bookshelf
Final Release Date: April 2014
Pages: 80

Grunt is everywhere. JavaScript projects from jQuery to Twitter Bootstrap use Grunt to convert code, run tests, and produce distributions for production. It's a build tool in the spirit of Make and Rake, but written with modern apps in mind. This book gets you up to speed with Grunt using practical hands-on examples, so you can wrangle your projects with ease. You'll learn how to create and maintain tasks and project builds, and automate your workflow with plugins and custom tasks.

JavaScript has moved from being the language you love to hate to the language you need to use. And as JavaScript applications get more complex, you need a process to manage that complexity. While online tutorials just explain how to slap together a configuration file, this book goes further and shows you how to create your own tasks, design your own project templates, combine plugins together to bring a web app to life, and build your own plugins.

You'll start by learning the basics of task creation, error handling, and logging as you create a simple configuration that executes basic JavaScript code using Node.js. Then you'll jump right into file manipulation as you read, write, copy, and delete files. You'll learn how Grunt's powerful multitasks work as you build a task to concatenate files together. Once you've got a grasp on these basics, you'll build a simple app with AngularJS and CoffeeScript, using Grunt to do all the heavy lifting and script processing. Finally, you'll create your own plugin so you can understand how plugins work.

Each chapter contains hands-on exercises and ideas for further study. Whether you rock Ruby or sling C#, Grunt will be a useful addition to your toolbox.

What You Need:

This book covers Grunt 0.4.1 and higher, and requires basic knowledge of JavaScript and command-line tools on Windows, OS X, or Linux.

Product Details
About the Author
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyAutomate with Grunt
 
5.0

(based on 1 review)

Ratings Distribution

  • 5 Stars

     

    (1)

  • 4 Stars

     

    (0)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

Reviewed by 1 customer

Displaying review 1

Back to top

 
5.0

Excellent Grunt Overview

By Anthony

from Shiloh, IL

About Me Designer, Developer

Verified Reviewer

Pros

  • Accurate
  • Concise
  • Helpful examples

Cons

    Best Uses

    • Expert
    • Intermediate
    • Novice

    Comments about oreilly Automate with Grunt:

    This is an excellent book on how to automate your workflow using Grunt, JavaScript's task runner. Brian P. Hogan has written a lightweight book that is heavy on the content you need, stripping away all of the unnecessary text, and getting right to the heart of the matter: ways to use Grunt.

    I appreciate how he started the book with the basics of using Grunt – creating tasks, expanding tasks to accept inputs and have one or more outputs, chaining and multitasks, manipulating files on the file system – before moving on to more complex automation exercises. Brian then introduces how to utilize Grunt to execute a real-life workflow scenario, with all of the considerations that must be made when doing so. He finishes up with building Plug-ins with Grunt and, taking things a step further, creating project scaffolds to take care of the mundane setup associated with a new project.

    All of the Examples Brian uses are practical and apply to things that developers face daily in their jobs and careers. I liked that he introduced Bower into the examples early on, as this is a commonly used package manager for web sites and applications. And though I am not a fan of CoffeeScript, it was easy to ignore that fact when it was introduced, as it did show the true power and potential of Grunt as an automation tool.

    I would recommend this book to anyone who is new to Grunt and just starting to learn it, or anyone who wants to take their Grunt task runner to the next level in the automation needs of their web projects.

    Displaying review 1

    Back to top

     
    Buy 2 Get 1 Free Free Shipping Guarantee
    Buying Options
    Immediate Access - Go Digital what's this?
    Print: $17.00