i use mine locally because i use PHPStorm and it has Gulp support in the IDE
Use Gulp locally or inside vagrant box?
Which workflow do you use and why?
You can use it in either place, all depends on what kind of tasks you are running. Since vagrant syncs or eery quickly it is not much of an issue.
One major advantage of running it locally would be that you'll likely have a lot more resources than the virtual machine does, this is a problem I've had with composer on my Vagrant box, which has been fine if I ran it locally. But then keeping things separate feels cleaner, so really it's a tough one to call!
yeah, on a slow host gulp can be very slow in virtual environment...
but if you have problem with gulp, then composer will be even more slower.
Does PHPStorm's gulp support apply to windows as well, or just mac/linux?
@hasokeric is it a plugin or native support ?
The only benefit I can see with running Gulp in vagrant is that you can avoid installing node.js and gulp on your local machine. This would be useful if you like to keep your system clean - or if you're like me and find the idea of node.js scary! (Gulp is pretty awesome though!)
Another downside of gulp in vagrant is that the notification plugins won't notify to your host, so you'll lose support for those - if you use them.
@Valorin What prompted me to ask the question was due to the gulp-notify plugin not working within vagrant, and Jeffrey seems to use it in a few casts, so I figured he must prefer working with gulp locally.
Another upside of using node/gulp locally is that you can use it for non-VM dependent work. For example I usually work on static sites that don't require a virtual machine, it'd simply be an overkill, so running gulp locally allows me to work on it using a basic server to serve the files.
Thanks for all your answers.
I think I will install gulp locally so I can use gulp-notify. Also @vengiss thats an important point about static sites, such as a simple landing page, I wouldn't need to develop in a VM for that.
@thepsion5 Yes it is available in the Windows version.
@foxted It is a plugin.
For those that are on Windows and are struggling with Vagrant + Gulp due to a VirtualBox bug... www.codeforest.net/install-gulp-on-windows-homestead
Please or to participate in this conversation.