Skip to content

Instantly share code, notes, and snippets.

View steveinatorx's full-sized avatar

steven brezina steveinatorx

View GitHub Profile
@steveinatorx
steveinatorx / Gulpfile.js
Created July 29, 2016 22:27 — forked from webdesserts/Gulpfile.js
Automatically reload your node.js app on file change with Gulp (https://github.com/wearefractal/gulp).
// NOTE: I previously suggested doing this through Grunt, but had plenty of problems with
// my set up. Grunt did some weird things with scope, and I ended up using nodemon. This
// setup is now using Gulp. It works exactly how I expect it to and is WAY more concise.
var gulp = require('gulp'),
spawn = require('child_process').spawn,
node;
/**
* $ gulp server
* description: launch the server. If there's a server already running, kill it.