mirror of
https://github.com/ViViDboarder/Vivid-Casper.git
synced 2024-12-23 03:57:38 +00:00
Added livereload for .hbs files
This commit is contained in:
parent
85fed4f083
commit
b4d0219d4e
14
gulpfile.js
14
gulpfile.js
@ -1,4 +1,4 @@
|
|||||||
const {series, watch, src, dest} = require('gulp');
|
const {series, watch, src, dest, parallel} = require('gulp');
|
||||||
const pump = require('pump');
|
const pump = require('pump');
|
||||||
|
|
||||||
// gulp plugins and utils
|
// gulp plugins and utils
|
||||||
@ -29,6 +29,13 @@ const handleError = (done) => {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
function hbs(done) {
|
||||||
|
pump([
|
||||||
|
src(['*.hbs', 'partials/**/*.hbs', '!node_modules/**/*.hbs']),
|
||||||
|
livereload()
|
||||||
|
], handleError(done));
|
||||||
|
}
|
||||||
|
|
||||||
function css(done) {
|
function css(done) {
|
||||||
const processors = [
|
const processors = [
|
||||||
easyimport,
|
easyimport,
|
||||||
@ -71,7 +78,9 @@ function zipper(done) {
|
|||||||
], handleError(done));
|
], handleError(done));
|
||||||
}
|
}
|
||||||
|
|
||||||
const watcher = () => watch('assets/css/**', css);
|
const cssWatcher = () => watch('assets/css/**', css);
|
||||||
|
const hbsWatcher = () => watch(['*.hbs', 'partials/**/*.hbs', '!node_modules/**/*.hbs'], hbs);
|
||||||
|
const watcher = parallel(cssWatcher, hbsWatcher);
|
||||||
const build = series(css, js);
|
const build = series(css, js);
|
||||||
const dev = series(build, serve, watcher);
|
const dev = series(build, serve, watcher);
|
||||||
|
|
||||||
@ -171,7 +180,6 @@ const release = () => {
|
|||||||
|
|
||||||
return previousRelease()
|
return previousRelease()
|
||||||
.then((previousVersion) => {
|
.then((previousVersion) => {
|
||||||
|
|
||||||
changelog({previousVersion});
|
changelog({previousVersion});
|
||||||
|
|
||||||
return releaseUtils
|
return releaseUtils
|
||||||
|
Loading…
Reference in New Issue
Block a user