Book Image

Grunt Cookbook

By : Jurie-Jan Botha
Book Image

Grunt Cookbook

By: Jurie-Jan Botha

Overview of this book

<p>A web application can quickly turn into a complex orchestration of many smaller components, each one requiring its own bit of maintenance. Grunt allows you to automate all the repetitive tasks required to get everything working together by using JavaScript, the most popular programming language.</p> <p>Grunt Cookbook offers a host of easy-to-follow recipes for automating repetitive tasks in your web application's development, management, and deployment processes. This book will introduce you to methods that can be used to automate basic processes and your favorite tools. By following the recipes, you will soon be comfortable using Grunt to perform a wide array of advanced tasks in a range of different scenarios.</p>
Table of Contents (17 chapters)
Grunt Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Deploying to GitHub Pages


In this recipe, we'll make use of the gh-pages (0.10.0) plugin to publish our site to the GitHub Pages service.

The GitHub Pages service provides a simple way for GitHub users to host static sites related to themselves, their organizations, or their projects. At the core of this service lies the standard GitHub service that provides hosting for Git-based code repositories.

Getting ready

In this example, we'll work with the basic project structure that we created in the Installing Grunt on a project recipe in Chapter 1, Getting Started with Grunt. Be sure to refer to it if you are not yet familiar with its contents.

In addition to the standard project setup, the following recipe will require a GitHub user account that has the appropriate public key (SSH) associated with it.

Tip

Please refer to the following URL for help to create and set up SSH keys for your GitHub account:

https://help.github.com/articles/generating-ssh-keys/

We'll also need to create a repository called...