Running gulp tasks with JetBrains WebStorm

JetBrains WebStorm 8 provides grunt integration but as of this writing, gulp integration is part of WebStorm 9’s roadmap.

However, that doesn’t mean that gulp users cannot Run/Debug gulp tasks. Here’s how to enable gulp configuration within WebStorm 8 (should work with 7 as well).

Image

  • Create a new NodeJs configuration
  • Set your working directory to where your gulpfile.js resides
  • If you have installed gulp globally, point to %AppData%\npm\node_modules\gulp\bin\gulp.js; otherwise point to your local node_modules’ gulp folder.
  • Save it!

Now you can run/debug your gulp tasks to your heart’s content!!

Advertisements