Add gulpfile with browser-sync.

This commit is contained in:
Arpad Csanyi
2016-01-14 00:41:48 +01:00
parent 4072a58a24
commit a06716ff8b
3 changed files with 20 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
node_modules

12
gulpfile.js Normal file
View File

@@ -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);
});

7
package.json Normal file
View File

@@ -0,0 +1,7 @@
{
"name": "agent-mockup",
"dependencies": {
"browser-sync": "^2.11.0",
"gulp": "^3.9.0"
}
}