1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-14 09:05:17 +01:00

extended banner

This commit is contained in:
Matthias Kretschmann 2015-06-08 10:53:12 +02:00
parent c4436e2f3b
commit 99c9c3f72a
2 changed files with 23 additions and 9 deletions

View File

@ -1,7 +1,7 @@
$(ASAP = function() { $(ASAP = function() {
siteNavigation.init(); siteNavigation.init();
siteEffects.init(); //siteEffects.init();
}); });

View File

@ -37,10 +37,18 @@ var banner = [
'/**', '/**',
' ** <%= pkg.name %> v<%= pkg.version %>', ' ** <%= pkg.name %> v<%= pkg.version %>',
' ** <%= pkg.description %>', ' ** <%= pkg.description %>',
' ** <%= pkg.homepage %>\n' + ' ** <%= pkg.homepage %>',
' **\n' + ' **',
' ** <%= pkg.repository.url %>',
' ** <%= pkg.author.name %> <<%= pkg.author.email %>>', ' ** <%= 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'); ].join('\n');
@ -251,28 +259,34 @@ gulp.task('watch', function() {
gulp.watch([src + '/_assets/styl/**/*.styl'], ['css']); gulp.watch([src + '/_assets/styl/**/*.styl'], ['css']);
gulp.watch([src + '/_assets/js/*.js'], ['js-project']); gulp.watch([src + '/_assets/js/*.js'], ['js-project']);
gulp.watch([src + '/_assets/img/**/*'], ['images']); 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 // Task sequences
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gulp.task('jekyll-build', function(cb) {
runSequence(
'jekyll',
['css', 'js', 'images', 'fonts', 'media'],
cb
);
});
// //
// Dev Server // Dev Server
// //
gulp.task('server', function(cb) { gulp.task('server', function(cb) {
runSequence( runSequence(
'clean', 'jekyll-build',
'jekyll',
['css', 'js', 'images', 'fonts', 'media'],
'watch', 'watch',
'connect', 'connect',
cb cb
); );
}); });
// //
// Production build // Production build
// //