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 6. Writing a plugin

You might have an idea for a gulp plugin already brewing in your mind. Maybe you want to perform code validations, transformations, or even transpile code from one language into another. You could validate that all source code uses consistent indentation settings or strip all whitespace from a file. You might be surprised that most of these tasks have been done for you already, so be sure to search existing plugins before attempting to blaze a path that’s already been blazed before.

In this chapter, we’ll learn how to create a no-op plugin, which is a plugin that does nothing. This will teach you the absolute basics of a gulp plugin. Then, we’ll start working on a prefixer plugin to prefix all files with a string ...

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