Skip to content

Instantly share code, notes, and snippets.

@hedgerh
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hedgerh/e2ef09138c25a6109c05 to your computer and use it in GitHub Desktop.
Save hedgerh/e2ef09138c25a6109c05 to your computer and use it in GitHub Desktop.
var gulp = require('gulp');
var tinylr = require('tiny-lr');
gulp.task('dev', function () {
var lr = tinylr();
lr.listen(35729);
gulp.watch(['**.{js,css,html}'], function (evt) {
lr.changed({
body: {
files: [evt.path]
}
});
});
});
$ gulp dev
body-parser deprecated bodyParser: use individual json/urlencoded middlewares node_modules\tiny-l
r\lib\server.js:14:41
body-parser deprecated urlencoded: explicitly specify "extended: true" for extended parsing node_
modules\tiny-lr\node_modules\body-parser\index.js:74:29
[21:11:51] Using gulpfile g:\sites\sces\gulpfile.js
[21:11:51] Starting 'dev'...
[21:11:51] Finished 'dev' after 41 ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment