Skip to content

Instantly share code, notes, and snippets.

View julianbei's full-sized avatar
🚴‍♂️
Bike shedding data pipelines

Julian Amelung julianbei

🚴‍♂️
Bike shedding data pipelines
View GitHub Profile
@julianbei
julianbei / Gulpfile.js
Last active March 12, 2016 20:28 — forked from 3dd13/Gulpfile.js
Adapt the gulp hot reload file and apply to partial.js directory structure. (ignored public folder at the moment)
// 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');
var spawn = require('child_process').spawn;
var node;
var config = require('./package.json');
/**
* $ gulp server
* description: launch the server. If there's a server already running, kill it.