Created
November 12, 2014 01:06
-
-
Save robwormald/73a132327c7743914d51 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require( 'gulp' ), | |
server = require( 'gulp-develop-server' ); | |
// run server | |
gulp.task( 'server:start', function() { | |
server.listen( { path: './app.js' } ); | |
}); | |
// restart server if app.js changed | |
gulp.task( 'server:restart', function() { | |
gulp.watch( [ '/api/**/*.*' ], server.restart ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment