O'Reilly logo

Developing a gulp Edge: The Streaming Build System by The Thirsty Five

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Your first gulp project

You learned how to install and setup gulp in chapter 2 and have already written your first Hello World! task. Now it’s time to get productive. In this chapter you will learn how to master the two most important gulp mechanisms that will be involved in 90 percent of your gulp tasks:

  • Reading files with gulp.src(globs[, options])
  • Writing files with gulp.dest(path)

Since gulp plugins are meant to do file-based operations, most of your gulp tasks will start off by reading files with gulp.src. In a task that minifies your CSS, you might then pass those read files over to a plugin that minifies CSS files. When it’s done, you’ll take the result of the CSS minifier and pass the minified files over to gulp.dest, which ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required