Book Image

Getting Started with Gulp ??? Second Edition - Second Edition

By : Travis Maynard
Book Image

Getting Started with Gulp ??? Second Edition - Second Edition

By: Travis Maynard

Overview of this book

This book is a hands-on guide to get you up to speed with gulp. You will quickly learn how to install, configure, and run your own build system. It will instill you with the ability to automate several common development tasks to vastly improve your development workflow. This book first demonstrates various Gulp use cases before running through the steps of configuring, running, and customizing Gulp, providing you with core concepts of gulp, node.js, and npm. Diving a bit deeper into the gulp ecosystem, we will discuss when and why to use a node module instead of a gulp plugin. We will also go over a few issues that we can run into while using gulp and learn about ways to work around them to improve your gulp experience. By the end of this book, you will be able to create your very own gulp build from scratch, create and maintain tasks and project builds, and automate your workflow with plugins and custom tasks.
Table of Contents (7 chapters)
Free Chapter
Introducing Gulp
Getting Started
Understanding the Basics of Gulp
Performing Tasks with Gulp
Creating Advanced Tasks
Tips, Tricks, and Resolving Issues

Understanding the Basics of Gulp

In this chapter, we will take a look at the basics of Gulp and how it works. Understanding some of the basic principles and philosophies behind the tool, it's plugin system will assist you as you begin writing your own gulpfiles. We'll start by taking a look at the engine behind Gulp and then follow up by breaking down the inner workings of Gulp itself. By the end of this chapter, you will be ready to begin writing your own gulpfile.

Installing Node.js and npm

As you learned in the introduction, Node.js and npm are the engines that work behind the scenes that allow us to operate Gulp and keep track of any plugins we decide to use.

Downloading and installing Node.js

For Mac and Windows, the installation is quite simple. All you need to do is navigate over to and click on the big green install button. Once the installer has finished downloading, run the...