commit 9d66092895e10e72e9ea79c6ef1537e64c9d810f
parent 61d18e10c3ed0496a6375ac3520df263ea9edb32
Author: MTRNord <mtrnord1@gmail.com>
Date: Sat, 28 Apr 2018 18:31:04 +0200
update gulp file
Diffstat:
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/gulpfile.js b/gulpfile.js
@@ -14,28 +14,28 @@ var jekyllCommand = (/^win/.test(process.platform)) ? 'jekyll.bat' : 'jekyll';
* Build the Jekyll Site
* runs a child process in node that runs the jekyll commands
*/
-gulp.task('jekyll-build', function (done) {
+/*gulp.task('jekyll-build', function (done) {
return cp.spawn(jekyllCommand, ['build'], {stdio: 'inherit'})
.on('close', done);
-});
+});*/
/*
* Rebuild Jekyll & reload browserSync
*/
-gulp.task('jekyll-rebuild', ['jekyll-build'], function () {
+/*gulp.task('jekyll-rebuild', ['jekyll-build'], function () {
browserSync.reload();
-});
+});*/
/*
* Build the jekyll site and launch browser-sync
*/
-gulp.task('browser-sync', ['jekyll-build'], function() {
+/*gulp.task('browser-sync', ['jekyll-build'], function() {
browserSync({
server: {
baseDir: '_site'
}
});
-});
+});*/
/*
* Compile and minify sass
@@ -78,12 +78,12 @@ gulp.task('js', function(){
.pipe(gulp.dest('assets/js/'))
});
-gulp.task('watch', function() {
- gulp.watch('src/styles/**/*.scss', ['sass', 'jekyll-rebuild']);
- gulp.watch('src/js/**/*.js', ['js']);
- gulp.watch('src/fonts/**/*.{tff,woff,woff2}', ['fonts']);
- gulp.watch('src/img/**/*.{jpg,png,gif}', ['imagemin']);
- gulp.watch(['*html', '_includes/*html', '_layouts/*.html'], ['jekyll-rebuild']);
-});
+//gulp.task('watch', function() {
+// gulp.watch('src/styles/**/*.scss', ['sass', 'jekyll-rebuild']);
+// gulp.watch('src/js/**/*.js', ['js']);
+// gulp.watch('src/fonts/**/*.{tff,woff,woff2}', ['fonts']);
+// gulp.watch('src/img/**/*.{jpg,png,gif}', ['imagemin']);
+// gulp.watch(['*html', '_includes/*html', '_layouts/*.html'], ['jekyll-rebuild']);
+//});
-gulp.task('default', ['js', 'sass', 'fonts', 'browser-sync', 'watch']);
+gulp.task('default', ['js', 'sass', 'fonts']);