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)

Introducing GitHub


GitHub is an online hosting service primarily used for software projects. Using the version control system, Git users are able to deploy their coding projects to either public or private repositories on GitHub.

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

GitHub will be used in the book as a host to the base templates alongside extra documentation for the projects in this book. Readers should note that the main purpose of setting up GitHub is to have the ability to fork repositories. Forking allows one to clone a repository on the GitHub server, which allows one to keep track of their changes through commits and back up all of their code online in case of data loss.

Using GitHub

By facilitating software collaboration, GitHub users can leverage its enterprise solutions to track development history and bugs, and contribute to an internal wiki. Using Git's branching capabilities and history tracking, it creates tree-based visual representations of software contributions for the team. These features, alongside the free hosting and backup of open source software, help to make GitHub the go-to source for software hosting.

Installing GitHub

The following steps will help to demonstrate how to sign up and use GitHub:

  1. Go to https://github.com/.

  2. Fill out the necessary fields on the home page and click on the Sign Up for GitHub button, as shown in the following screenshot:

    The GitHub registration form

  3. Complete the installation steps as required.

  4. Following this, visit the Packt Publishing Mastering Grunt GitHub repository at https://github.com/packt-mg.

    The Packt Publishing GitHub page

  5. For each of the repositories, click on the Fork button in the top-right corner, as shown in the following screenshot, in order to clone it to your own account on the server side: