Todd Wolfson

Software Engineer

February 17, 2014

After completing gulp.spritesmith, other developers asked me for good resources on writing a gulp plugin. This article is meant to serve as a public ledger of those resources.

If you are vague on the inner workings on of gulp, it is node's streams combined with a custom file system layer, known as vinyl.

This slideshow by @contra, one of gulp's authors, and explains this concept nicely.

If you are shaky on your knowledge of streams, some good references are:

If you are uncertain of where to get started/are stuck, try reading some other gulp plugins:

Lastly, it is suggested to embrace utilities/modules. You can write everything from scratch but it will be more verbose than necessary. Some practical libraries are:

Top articles

Lessons of a startup engineer

Lessons from being a 3x first engineer, former Uber engineer, and working at even more startups

Develop faster

Removing the tedium from creating, developing, and publishing repos.

Sexy bash prompt

A bash prompt with colors, git statuses, and git branches.