Getting Started with Grunt: The JavaScript Task Runner

If you know JavaScript you ought to know Grunt – the Task Runner for managing sophisticated web applications. From a basic understanding to constructing your own advanced Grunt tasks, this tutorial has it all covered.

Getting Started with Grunt: The JavaScript Task Runner

Starting
Jaime Pillora

If you know JavaScript you ought to know Grunt – the Task Runner for managing sophisticated web applications. From a basic understanding to constructing your own advanced Grunt tasks, this tutorial has it all covered.
$20.99
$34.99
RRP $20.99
RRP $34.99
eBook
Print + eBook
$12.99 p/month

Want this title & more? Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.
+ Collection
Free Sample

Book Details

ISBN 139781783980628
Paperback132 pages

About This Book

  • Gain insight on the core concepts of Grunt, Node.js and npm to get started with Grunt.
  • Learn how to install, configure, run, and customize Grunt
  • Example-driven and filled with tips to help you create custom Grunt tasks

Who This Book Is For

This book is for JavaScript developers who want to get to grips with GruntJS and use it to build and test their JavaScript applications. The only requirement for this book is a basic understanding of objects and functions in JavaScript.

Table of Contents

Chapter 1: Introducing Grunt
What is Grunt?
Why use Grunt?
Benefits of Grunt
Real-world use cases
Minification
Concatenation
Deployment
Summary
Chapter 2: Setting Up Grunt
Installation
Project setup
Configuring tasks
Summary
Chapter 3: Using Grunt
Creating your own tasks
Running tasks
Using third-party tasks
Summary
Chapter 4: Grunt in Action
Creating the build
Summary
Chapter 5: Advanced Grunt
Testing with Grunt
Continuous integration with Grunt
External tasks
Grunt plugins
JavaScript resources
Development tools
Summary

What You Will Learn

  • Learn about Grunt and its advantages
  • Understand Node.js and how it relates to Grunt
  • Take an in-depth look at npm, Node.js modules, and the working of Grunt plugins
  • Get familiar with installing Grunt and setting up your first Grunt build environment
  • Gain insight on the methods of configuring Grunt and when each method should be used
  • Effectively execute Grunt through the use of task arguments, task aliasing, multi-task targets, and more
  • Construct your own Grunt tasks, multi-tasks, and asynchronous tasks

In Detail

In recent times, modern web browsers have become the application platform of choice. Grunt, along with its wide range of plugins, provides a simple way of managing the large number of build tasks required to maintain a sophisticated web application.

Getting Started with Grunt: The JavaScript Task Runner provides you with all the information you need to become an effective Grunt power-user. You will quickly learn how to install, configure, and run Grunt. You will go on to understand how to use third-party Grunt and then create your own Grunt tasks that cater to your particular needs.

This book first demonstrates various Grunt use cases before running through the steps of installing, configuring, running, and customizing Grunt. You will learn how to install Node.js, the Node.js package manager (npm), and Grunt. Then, you will understand how to set up and configure a personalized Grunt environment. Next, you will look at the various methods of running and customizing Grunt to utilize its flexibility. Finally, to emphasise what has been learnt, you will see a complete example build of a web application.

Getting Started with Grunt: The JavaScript Task Runner will enable you to create your very own Grunt environments from scratch and fully utilize Grunt’s large feature set to effectively solve your custom requirements.

Authors

Table of Contents

Chapter 1: Introducing Grunt
What is Grunt?
Why use Grunt?
Benefits of Grunt
Real-world use cases
Minification
Concatenation
Deployment
Summary
Chapter 2: Setting Up Grunt
Installation
Project setup
Configuring tasks
Summary
Chapter 3: Using Grunt
Creating your own tasks
Running tasks
Using third-party tasks
Summary
Chapter 4: Grunt in Action
Creating the build
Summary
Chapter 5: Advanced Grunt
Testing with Grunt
Continuous integration with Grunt
External tasks
Grunt plugins
JavaScript resources
Development tools
Summary

Book Details

ISBN 139781783980628
Paperback132 pages
Read More