Skip to content

Instantly share code, notes, and snippets.

View dstarr's full-sized avatar
💭
Learning starts here

David Starr dstarr

💭
Learning starts here
View GitHub Profile
@dstarr
dstarr / gulpfile.js
Created June 17, 2016 02:25
My gulpfile.js ensuring nodemon doesn't leave a hanging Node.js process when interrupted.
const gulp = require('gulp');
const nodemon = require('gulp-nodemon');
gulp.task('default', launchServer);
function launchServer() {
var restart_called = false;
var nm = nodemon({