From a06716ff8b22a35b72e2a71a7593f9d8f161dfe3 Mon Sep 17 00:00:00 2001 From: Arpad Csanyi Date: Thu, 14 Jan 2016 00:41:48 +0100 Subject: [PATCH] Add gulpfile with browser-sync. --- .gitignore | 1 + gulpfile.js | 12 ++++++++++++ package.json | 7 +++++++ 3 files changed, 20 insertions(+) create mode 100644 .gitignore create mode 100644 gulpfile.js create mode 100644 package.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..3c3629e6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 00000000..e65e78d1 --- /dev/null +++ b/gulpfile.js @@ -0,0 +1,12 @@ +var gulp = require('gulp'); +var browserSync = require('browser-sync').create(); + +gulp.task('serve', function() { + browserSync.init({ + server: { + baseDir: "./" + }, + }); + + gulp.watch(['*.html', '*.css', '*.js']).on('change', browserSync.reload); +}); diff --git a/package.json b/package.json new file mode 100644 index 00000000..a5bd5dfb --- /dev/null +++ b/package.json @@ -0,0 +1,7 @@ +{ + "name": "agent-mockup", + "dependencies": { + "browser-sync": "^2.11.0", + "gulp": "^3.9.0" + } +}