Add gulpfile with browser-sync.
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
node_modules
|
||||||
12
gulpfile.js
Normal file
12
gulpfile.js
Normal 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
7
package.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"name": "agent-mockup",
|
||||||
|
"dependencies": {
|
||||||
|
"browser-sync": "^2.11.0",
|
||||||
|
"gulp": "^3.9.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user