From 99c9c3f72ad71cf9b162a880ed383641b9eeba45 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 8 Jun 2015 10:53:12 +0200 Subject: [PATCH] extended banner --- _src/_assets/js/app.js | 2 +- gulpfile.js | 30 ++++++++++++++++++++++-------- 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/_src/_assets/js/app.js b/_src/_assets/js/app.js index e45f94a4..aa121964 100644 --- a/_src/_assets/js/app.js +++ b/_src/_assets/js/app.js @@ -1,7 +1,7 @@ $(ASAP = function() { siteNavigation.init(); - siteEffects.init(); + //siteEffects.init(); }); diff --git a/gulpfile.js b/gulpfile.js index 9ae0d119..ba7521f8 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -37,10 +37,18 @@ var banner = [ '/**', ' ** <%= pkg.name %> v<%= pkg.version %>', ' ** <%= pkg.description %>', - ' ** <%= pkg.homepage %>\n' + - ' **\n' + - ' ** <%= pkg.repository.url %>', + ' ** <%= pkg.homepage %>', + ' **', ' ** <%= pkg.author.name %> <<%= pkg.author.email %>>', + ' **', + ' ** YOU EARNED THE GEEK ACHIEVEMENT ', + ' ** FOR LOOKING AT MY SOURCE ', + ' **', + ' ** But because of all the minimizing and caching ', + ' ** going on you better check out the code on ', + ' ** github ', + ' ** ', + ' ** <%= pkg.repository.url %> ', ' **/', '' ].join('\n'); @@ -251,28 +259,34 @@ gulp.task('watch', function() { gulp.watch([src + '/_assets/styl/**/*.styl'], ['css']); gulp.watch([src + '/_assets/js/*.js'], ['js-project']); gulp.watch([src + '/_assets/img/**/*'], ['images']); - gulp.watch([src + '/**/*.{html,xml,json,txt}'], ['jekyll']); + gulp.watch([src + '/_media/**/*'], ['media']); + gulp.watch([src + '/**/*.{html,xml,json,txt}'], ['jekyll-build']); }); // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // Task sequences // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +gulp.task('jekyll-build', function(cb) { + runSequence( + 'jekyll', + ['css', 'js', 'images', 'fonts', 'media'], + cb + ); +}); + // // Dev Server // gulp.task('server', function(cb) { runSequence( - 'clean', - 'jekyll', - ['css', 'js', 'images', 'fonts', 'media'], + 'jekyll-build', 'watch', 'connect', cb ); }); - // // Production build //