Book Image

Mastering Grunt

By : Daniel Li
Book Image

Mastering Grunt

By: Daniel Li

Overview of this book

<p>Grunt.js continues to excel as the build automation tool of choice. Along with its support for many third-party technologies, Grunt is packaged with a clean API for defining tasks. This powerful tool can streamline your workflow by automating the preparation tasks for production, such as compression, compilation, obfuscation, testing, and even pushing your web application live. This book will teach you how to master build automation and testing with Grunt. You will have the opportunity to utilize the latest and in-demand web tools, such as Git, Jade, CoffeeScript, Sass, and the Mocha testing engine, across several exciting projects by combining Grunt with them. You will also learn to create a project – a simple Bulletin Board System (BBS), which will explain the use of Grunt alongside the Mocha testing library to automate testing throughout the build process.</p> <p>Mastering Grunt will demonstrate how to leverage Grunt with other technologies to become an expert in build automation, teaching you the best practices for modern web development along the way.</p>
Table of Contents (12 chapters)

A brief summary of Jade


This chapter will discuss the background and underlying reasons behind the invention of Jade.

The following is a look into the official website for Jade:

Jade is a templating engine built on Node.js (to be used for Node.js) and has since become fairly popular among the JavaScript community. It supports layouts, mixins, and embedded JavaScript. All of these features will be explored in this chapter. For instance, this chapter will cover the usage of mixins to generate comments and relevant posts for a given blog post.

The power behind Jade lies in its elegance. Using Jade, developers can now iterate with massive amounts of HTML templates without having to worry about overlapping code and lack of flexibility.