Book Image

Getting Started with Gulp

By : Travis Maynard
Book Image

Getting Started with Gulp

By: Travis Maynard

Overview of this book

<p>Gulp is a fast and powerful JavaScript task runner that is built upon the node.js platform. It allows you to create tasks that can automate common workflow processes. Gulp.js is comparatively new and has been developed keeping in mind the issues that developers have encountered with Grunt.</p> <p>Getting Started with Gulp introduces you to the world of building and testing JavaScript applications using gulp. This book is a hands-on guide to get you up to speed with gulp. It will instill you with the ability to automate several common development tasks to vastly improve your development workflow. It will get you started with gulp quickly and efficiently, providing you with core concepts of gulp, node.js, and npm.</p> <p>By the end of this book, you will be able to create your very own gulp environments from scratch, create and maintain tasks and project builds, and automate your workflow with plugins and custom tasks.</p>
Table of Contents (14 chapters)

Chapter 4 – Using Node.js Modules for Advanced Tasks


In this chapter, we explored how to use node.js modules instead of gulp plugins in our tasks. We created new tasks to run a static server, keep our project in sync across devices, and take advantage of node.js' module definitions in our client-side code.

In this chapter, we covered the following topics:

  • If you can complete the task with a plain node.js module, then you likely should

  • When developing gulp plugins, don't recreate something that has already been created. Instead, offer to help improve the current plugin

  • The Gulp team actively blacklists duplicate plugins and plugins that act as wrappers around plain Node modules to keep the plugin ecosystem clean