A Little Script to Make Gulp a Little Easier to Start
I usually start gulp by opening a terminal window, changing directories into the project, and running
gulp <taskname>. But who has that kind of time?! Now I add a shell script to the project (be it a Drupal or WordPress theme, or whatever), usually called
gulpit.sh, and open that with the Terminal app (or, in my case, iTerm2) instead. This is the entire script:
ABSPATH=$(cd "$(dirname "$0")"; pwd)
It changes to the directory where the project lives (using this technique I found on Stack Overflow) and starts gulp, running the default task. I usually open my projects in Path Finder, so the theme is open in its own tab, with
gulpit.sh right there ready to open. There are lots of other ways to accomplish this same task, obviously, but this is one I like.