mirror of
https://github.com/Mayccoll/Gogh.git
synced 2023-08-10 21:12:46 +03:00
31 lines
541 B
JavaScript
31 lines
541 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const gulp = require('gulp');
|
||
|
|
||
|
const browserSync = require('browser-sync').create();
|
||
|
|
||
|
gulp.task('serve', function () {
|
||
|
browserSync.init({
|
||
|
port: 8890,
|
||
|
reloadDelay: 500,
|
||
|
ui: false,
|
||
|
open: true,
|
||
|
server: {
|
||
|
baseDir: './',
|
||
|
directory: true
|
||
|
}
|
||
|
});
|
||
|
});
|
||
|
|
||
|
gulp.task('reload', function (done) {
|
||
|
browserSync.reload();
|
||
|
done();
|
||
|
});
|
||
|
|
||
|
gulp.task('watch', ['serve'], function () {
|
||
|
gulp.watch('./**/*', { interval: 800 }, ['reload']);
|
||
|
});
|
||
|
|
||
|
gulp.task('default', ['watch']);
|
||
|
|
||
|
gulp.task('dev', ['watch']);
|