Making a custom compiler pass for Closure Compiler

A step-by-step guide on implementing a custom compiler pass for Google's Closure Compiler