Launching Gulp watch into your workflow

As we saw previously, it is super handy to have Travis CI running tests as you push to GitHub. But it is actually pretty slow to wait so long to see whether your tests are passing; better to run it locally before you push. But who can remember to do this? Well, with Gulp, we will see no need to remember it, just run it!

Getting ready

SSH into Homestead using the command homestead ssh and cd into the recipe directory. Then, let's get going.

How to do it...

  1. Take a moment to run npm install from within the app directory.

    Tip

    This will take a few minutes! Go get some coffee and welcome to NPM!

  2. While this is running or after it is done, edit gulpfile.js, and make it look as follows:
  3. Then, run gulp watch.
  4. Start editing ...

Get Laravel 5.x Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.