1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-11 23:55:16 +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() {
siteNavigation.init();
siteEffects.init();
//siteEffects.init();
});

View File

@ -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
//