2015-06-07 00:33:03 +02:00
|
|
|
// load plugins
|
|
|
|
var $ = require('gulp-load-plugins')();
|
|
|
|
|
|
|
|
// manually require modules that won"t get picked up by gulp-load-plugins
|
|
|
|
var gulp = require('gulp'),
|
|
|
|
del = require('del'),
|
2015-08-09 18:11:26 +02:00
|
|
|
chalk = require('chalk'),
|
2015-06-07 00:33:03 +02:00
|
|
|
merge = require('merge-stream'),
|
2015-08-23 09:45:57 +02:00
|
|
|
pkg = require('./package.json'),
|
2015-08-30 15:05:08 +02:00
|
|
|
parallelize = require('concurrent-transform');
|
2015-06-07 00:33:03 +02:00
|
|
|
|
|
|
|
// Temporary solution until gulp 4
|
|
|
|
// https://github.com/gulpjs/gulp/issues/355
|
|
|
|
var runSequence = require('run-sequence');
|
|
|
|
|
2015-08-09 18:11:26 +02:00
|
|
|
// handle errors
|
|
|
|
var onError = function(error) {
|
|
|
|
console.log(chalk.red('You fucked up:', error.message, 'on line' , error.lineNumber));
|
2015-08-29 21:57:46 +02:00
|
|
|
this.emit('end');
|
2015-08-09 18:11:26 +02:00
|
|
|
}
|
|
|
|
|
2015-08-30 14:02:02 +02:00
|
|
|
// 'development' is just default, production overrides are triggered
|
|
|
|
// by adding the production flag to the gulp command e.g. `gulp build --production`
|
|
|
|
var isProduction = ($.util.env.production === true ? true : false);
|
2015-08-09 18:11:26 +02:00
|
|
|
|
2015-06-07 20:53:49 +02:00
|
|
|
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
// Terminal Banner
|
|
|
|
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
console.log("");
|
2015-08-29 21:57:46 +02:00
|
|
|
console.log(chalk.gray(" <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>"));
|
2015-06-07 20:53:49 +02:00
|
|
|
console.log("");
|
2015-08-29 21:57:46 +02:00
|
|
|
console.log(chalk.cyan(" (o) Just what do you think you're doing, Matthias? "));
|
2015-06-07 20:53:49 +02:00
|
|
|
console.log("");
|
2015-08-29 21:57:46 +02:00
|
|
|
console.log(chalk.gray(" <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>"));
|
2015-06-07 20:53:49 +02:00
|
|
|
console.log("");
|
|
|
|
|
2015-06-07 00:33:03 +02:00
|
|
|
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
// Config
|
|
|
|
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2015-06-08 19:29:04 +02:00
|
|
|
// paths
|
2015-08-30 15:05:08 +02:00
|
|
|
var src = '_src',
|
|
|
|
dist = '_site',
|
|
|
|
cdn = 'https://cdn.kremalicious.com',
|
2015-08-23 09:45:57 +02:00
|
|
|
s3bucket = 'kremalicious.com',
|
|
|
|
s3path = '/',
|
|
|
|
s3region = 'eu-central-1';
|
2015-06-07 00:33:03 +02:00
|
|
|
|
2015-06-08 19:29:04 +02:00
|
|
|
// icons
|
|
|
|
var icons = {
|
|
|
|
entypo: {
|
2015-06-08 22:27:39 +02:00
|
|
|
src: src + '/_assets/icons/entypo/',
|
2015-06-08 19:29:04 +02:00
|
|
|
dist: dist + '/assets/img/',
|
|
|
|
prefix: 'entypo-',
|
2015-06-08 19:40:53 +02:00
|
|
|
icons: [
|
2015-06-22 21:28:31 +02:00
|
|
|
'twitter', 'facebook', 'google+', 'magnifying-glass', 'menu', 'rss', 'link', 'arrow-with-circle-down', 'forward', 'heart', 'info-with-circle', 'infinity', 'github', 'chevron-right', 'chevron-left', 'eye'
|
2015-06-08 19:40:53 +02:00
|
|
|
]
|
2015-06-08 19:29:04 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SVG sprite
|
2015-08-23 06:28:48 +02:00
|
|
|
var spriteConfig = {
|
2015-06-08 22:03:16 +02:00
|
|
|
dest: dist + '/assets/img/',
|
2015-06-08 19:29:04 +02:00
|
|
|
mode: {
|
|
|
|
symbol: {
|
|
|
|
dest: './',
|
2015-06-08 21:22:09 +02:00
|
|
|
sprite: 'sprite.svg'
|
2015-06-08 19:29:04 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// code banner
|
2015-06-07 00:33:03 +02:00
|
|
|
var banner = [
|
|
|
|
'/**',
|
2015-06-07 03:11:46 +02:00
|
|
|
' ** <%= pkg.name %> v<%= pkg.version %>',
|
|
|
|
' ** <%= pkg.description %>',
|
2015-06-08 10:53:12 +02:00
|
|
|
' ** <%= pkg.homepage %>',
|
|
|
|
' **',
|
2015-06-07 03:11:46 +02:00
|
|
|
' ** <%= pkg.author.name %> <<%= pkg.author.email %>>',
|
2015-06-08 10:53:12 +02:00
|
|
|
' **',
|
|
|
|
' ** 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 %> ',
|
2015-06-07 00:33:03 +02:00
|
|
|
' **/',
|
|
|
|
''
|
|
|
|
].join('\n');
|
|
|
|
|
|
|
|
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
// Tasks
|
|
|
|
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
//
|
|
|
|
// Delete build artifacts
|
|
|
|
//
|
|
|
|
gulp.task('clean', function(cb) {
|
|
|
|
return del([
|
|
|
|
dist + '/**/*',
|
2015-06-07 20:53:49 +02:00
|
|
|
dist + '/.*', // delete all hidden files
|
2015-06-07 00:33:03 +02:00
|
|
|
'!' + dist + '/media/**'
|
2015-08-23 06:28:48 +02:00
|
|
|
], cb)
|
2015-06-07 00:33:03 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Jekyll
|
|
|
|
//
|
2015-06-08 19:29:04 +02:00
|
|
|
gulp.task('jekyll', function(cb) {
|
2015-06-07 00:33:03 +02:00
|
|
|
var spawn = require('child_process').spawn;
|
2015-08-30 14:02:02 +02:00
|
|
|
|
|
|
|
if (isProduction) {
|
|
|
|
var jekyll = spawn('bundle', ['exec', 'jekyll', 'build', '--lsi'], { stdio: 'inherit' });
|
|
|
|
} else {
|
|
|
|
var jekyll = spawn('bundle', ['exec', 'jekyll', 'build', '--drafts', '--future'], { stdio: 'inherit' });
|
|
|
|
}
|
2015-06-07 03:11:46 +02:00
|
|
|
|
|
|
|
jekyll.on('exit', function(code) {
|
2015-06-08 19:29:04 +02:00
|
|
|
cb(code === 0 ? null : 'ERROR: Jekyll process exited with code: ' + code);
|
2015-06-07 03:11:46 +02:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2015-06-07 00:33:03 +02:00
|
|
|
|
2015-08-30 14:02:02 +02:00
|
|
|
//
|
|
|
|
// HTML
|
|
|
|
//
|
|
|
|
gulp.task('html', function() {
|
|
|
|
return gulp.src(dist + '/**/*.html')
|
|
|
|
.pipe($.if(isProduction, $.htmlmin({
|
|
|
|
collapseWhitespace: true,
|
|
|
|
conservativeCollapse: true,
|
|
|
|
removeComments: true,
|
|
|
|
useShortDoctype: true,
|
|
|
|
collapseBooleanAttributes: true,
|
|
|
|
removeRedundantAttributes: true,
|
|
|
|
removeEmptyAttributes: true
|
|
|
|
})))
|
|
|
|
.pipe(gulp.dest(dist))
|
2015-06-07 00:33:03 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Styles
|
|
|
|
//
|
|
|
|
gulp.task('css', function() {
|
|
|
|
return gulp.src([
|
|
|
|
src + '/_assets/styl/kremalicious3.styl',
|
2015-08-23 21:21:30 +02:00
|
|
|
src + '/_assets/styl/post-*.styl'
|
2015-06-07 00:33:03 +02:00
|
|
|
])
|
2015-08-20 20:06:14 +02:00
|
|
|
.pipe($.stylus({ 'include css': true })).on('error', onError)
|
|
|
|
.pipe($.autoprefixer({ browsers: 'last 2 versions' })).on('error', onError)
|
2015-08-30 14:02:02 +02:00
|
|
|
.pipe($.if(isProduction, $.combineMq({ beautify: false })))
|
|
|
|
.pipe($.if(isProduction, $.cssmin()))
|
|
|
|
.pipe($.if(isProduction, $.header(banner, { pkg: pkg })))
|
2015-06-22 21:28:31 +02:00
|
|
|
.pipe($.rename({ suffix: '.min' }))
|
2015-06-07 00:33:03 +02:00
|
|
|
.pipe(gulp.dest(dist + '/assets/css/'))
|
2015-08-23 06:28:48 +02:00
|
|
|
.pipe($.connect.reload())
|
2015-06-07 00:33:03 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Scripts
|
|
|
|
//
|
|
|
|
|
|
|
|
// Libraries
|
2015-08-23 06:28:48 +02:00
|
|
|
gulp.task('js:libraries', function() {
|
|
|
|
return gulp.src([
|
2015-08-30 15:05:08 +02:00
|
|
|
'node_modules/picturefill/dist/picturefill.js'
|
|
|
|
])
|
|
|
|
.pipe($.if(isProduction, $.uglify())).on('error', onError)
|
|
|
|
.pipe($.rename({ suffix: '.min'}))
|
|
|
|
.pipe(gulp.dest(dist + '/assets/js/'))
|
2015-06-07 00:33:03 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
// Project js
|
2015-08-23 06:28:48 +02:00
|
|
|
gulp.task('js:project', function() {
|
|
|
|
return gulp.src(src + '/_assets/js/*.js')
|
|
|
|
.pipe($.include()).on('error', onError)
|
|
|
|
.pipe($.concat('kremalicious3.min.js'))
|
2015-08-30 14:02:02 +02:00
|
|
|
.pipe($.if(isProduction, $.uglify())).on('error', onError)
|
|
|
|
.pipe($.if(isProduction, $.header(banner, { pkg: pkg })))
|
2015-08-20 20:06:14 +02:00
|
|
|
.pipe(gulp.dest(dist + '/assets/js/'))
|
2015-08-23 06:28:48 +02:00
|
|
|
.pipe($.connect.reload())
|
2015-06-07 00:33:03 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
// Collect all script tasks
|
2015-08-23 06:28:48 +02:00
|
|
|
gulp.task('js', ['js:libraries', 'js:project'])
|
2015-06-07 00:33:03 +02:00
|
|
|
|
|
|
|
|
2015-06-08 19:29:04 +02:00
|
|
|
//
|
|
|
|
// Icons
|
|
|
|
//
|
2015-06-08 21:22:09 +02:00
|
|
|
gulp.task('icons', function() {
|
2015-08-09 18:11:26 +02:00
|
|
|
var iconset = icons.entypo;
|
2015-06-08 19:29:04 +02:00
|
|
|
|
|
|
|
// Iterate through the icon set array
|
|
|
|
icons.entypo.icons.forEach(function(icon, i, icons) {
|
|
|
|
icons[i] = iconset.src + icon + '.svg';
|
|
|
|
});
|
|
|
|
|
|
|
|
return gulp.src(iconset.icons)
|
2015-06-08 21:22:09 +02:00
|
|
|
.pipe($.rename({ prefix: iconset.prefix }))
|
2015-06-08 19:29:04 +02:00
|
|
|
.pipe(gulp.dest(iconset.dist))
|
|
|
|
.pipe($.filter('**/*.svg'))
|
2015-08-30 14:02:02 +02:00
|
|
|
.pipe($.if(isProduction, $.imagemin({ svgoPlugins: [{ removeViewBox: false }] })))
|
2015-06-08 19:29:04 +02:00
|
|
|
.pipe($.svgSprite(spriteConfig))
|
|
|
|
.pipe(gulp.dest(iconset.dist))
|
|
|
|
});
|
|
|
|
|
|
|
|
|
2015-06-07 00:33:03 +02:00
|
|
|
//
|
|
|
|
// Copy images
|
|
|
|
//
|
|
|
|
gulp.task('images', function() {
|
2015-08-23 06:28:48 +02:00
|
|
|
return gulp.src([
|
|
|
|
src + '/_assets/img/**/*',
|
|
|
|
'!' + src + '/_assets/img/entypo/**/*'
|
|
|
|
])
|
2015-08-30 14:02:02 +02:00
|
|
|
.pipe($.if(isProduction, $.imagemin({
|
|
|
|
optimizationLevel: 5, // png
|
|
|
|
progressive: true, // jpg
|
|
|
|
interlaced: true, // gif
|
|
|
|
multipass: true, // svg
|
|
|
|
svgoPlugins: [{ removeViewBox: false }]
|
|
|
|
})))
|
2015-08-23 06:28:48 +02:00
|
|
|
.pipe(gulp.dest(dist + '/assets/img/'))
|
2015-06-07 00:33:03 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Copy fonts
|
|
|
|
//
|
|
|
|
gulp.task('fonts', function() {
|
2015-06-08 19:29:04 +02:00
|
|
|
return gulp.src(src + '/_assets/fonts/**/*')
|
|
|
|
.pipe(gulp.dest(dist + '/assets/fonts/'))
|
2015-06-07 00:33:03 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Copy media
|
|
|
|
//
|
|
|
|
gulp.task('media', function() {
|
2015-06-08 19:29:04 +02:00
|
|
|
return gulp.src(src + '/_media/**/*')
|
|
|
|
.pipe(gulp.dest(dist + '/media/'))
|
2015-06-07 00:33:03 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Revision static assets
|
|
|
|
//
|
2015-08-30 14:02:02 +02:00
|
|
|
gulp.task('rev', function() {
|
2015-06-07 20:53:49 +02:00
|
|
|
return gulp.src(dist + '/assets/**/*.{css,js,png,jpg,jpeg,svg,eot,ttf,woff}')
|
2015-08-30 15:05:08 +02:00
|
|
|
.pipe($.if(isProduction, $.rev()))
|
2015-06-07 00:33:03 +02:00
|
|
|
.pipe(gulp.dest(dist + '/assets/'))
|
|
|
|
// output rev manifest for next replace task
|
2015-08-30 15:05:08 +02:00
|
|
|
.pipe($.if(isProduction, $.rev.manifest()))
|
2015-08-23 06:28:48 +02:00
|
|
|
.pipe(gulp.dest(dist + '/assets/'))
|
2015-06-07 00:33:03 +02:00
|
|
|
});
|
|
|
|
|
2015-06-07 20:53:49 +02:00
|
|
|
|
2015-06-07 00:33:03 +02:00
|
|
|
//
|
|
|
|
// Replace all links to assets in files
|
|
|
|
// from a manifest file
|
|
|
|
//
|
2015-08-30 14:02:02 +02:00
|
|
|
gulp.task('rev:replace', function() {
|
2015-06-07 00:33:03 +02:00
|
|
|
|
|
|
|
var manifest = gulp.src(dist + '/assets/rev-manifest.json');
|
|
|
|
|
2015-06-07 20:53:49 +02:00
|
|
|
return gulp.src(dist + '/**/*.{html,xml,txt,json,css,js,png,jpg,jpeg,svg,eot,ttf,woff}')
|
2015-08-30 15:05:08 +02:00
|
|
|
.pipe($.if(isProduction, $.revReplace({ manifest: manifest })))
|
2015-08-23 06:28:48 +02:00
|
|
|
.pipe(gulp.dest(dist))
|
2015-06-07 00:33:03 +02:00
|
|
|
});
|
|
|
|
|
2015-06-07 03:11:46 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// CDN url injection
|
|
|
|
//
|
2015-06-08 19:29:04 +02:00
|
|
|
gulp.task('cdn', function() {
|
2015-08-23 20:34:08 +02:00
|
|
|
return gulp.src([
|
|
|
|
dist + '/**/*.html',
|
|
|
|
dist + '/assets/css/*.css'
|
|
|
|
], { base: dist })
|
2015-06-07 20:53:49 +02:00
|
|
|
.pipe($.replace('/assets/css/', cdn + '/assets/css/'))
|
2015-06-07 03:11:46 +02:00
|
|
|
.pipe($.replace('/assets/js/', cdn + '/assets/js/'))
|
2015-06-11 00:57:58 +02:00
|
|
|
//.pipe($.replace('/assets/img/', cdn + '/assets/img/'))
|
2015-06-07 03:11:46 +02:00
|
|
|
.pipe($.replace('/media/', cdn + '/media/'))
|
|
|
|
.pipe($.replace('https://kremalicious.com' + cdn + '/media/', 'https://kremalicious.com/media/'))
|
|
|
|
.pipe($.replace('../', cdn + '/assets/'))
|
2015-08-23 06:28:48 +02:00
|
|
|
.pipe(gulp.dest(dist))
|
2015-06-07 03:11:46 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
|
2015-08-23 09:45:57 +02:00
|
|
|
//
|
|
|
|
// Assets uploading to S3
|
|
|
|
//
|
2015-08-23 20:34:08 +02:00
|
|
|
gulp.task('s3:assets', function() {
|
2015-08-23 09:45:57 +02:00
|
|
|
var publisher = $.awspublish.create({
|
|
|
|
params: {
|
|
|
|
'Bucket': s3bucket
|
|
|
|
},
|
|
|
|
'accessKeyId': process.env.AWS_ACCESS_KEY_ID,
|
|
|
|
'secretAccessKey': process.env.AWS_SECRET_ACCESS_KEY,
|
|
|
|
'region': s3region
|
|
|
|
});
|
|
|
|
|
|
|
|
// define custom headers
|
|
|
|
var headers = {
|
|
|
|
'Cache-Control': 'max-age=315360000, no-transform, public',
|
|
|
|
'x-amz-acl': 'public-read'
|
|
|
|
};
|
|
|
|
|
|
|
|
var assets = gulp.src(dist + '/assets/**/*', { base: dist + '/' }),
|
|
|
|
media = gulp.src(dist + '/media/**/*', { base: dist + '/' });
|
|
|
|
|
|
|
|
return merge(assets, media)
|
|
|
|
.pipe($.rename(function (path) {
|
|
|
|
// This is weird, but is needed to make the file use the relative path...
|
|
|
|
}))
|
|
|
|
.pipe($.awspublish.gzip({ ext: '' })) // gzip all the things
|
|
|
|
.pipe(parallelize(publisher.publish(headers), 10))
|
|
|
|
//.pipe(publisher.sync()) // delete files in bucket that are not in local folder
|
|
|
|
.pipe($.awspublish.reporter({
|
|
|
|
states: ['create', 'update', 'delete']
|
|
|
|
}));
|
|
|
|
});
|
|
|
|
|
|
|
|
|
2015-06-07 00:33:03 +02:00
|
|
|
//
|
|
|
|
// Dev Server
|
|
|
|
//
|
|
|
|
gulp.task('connect', function() {
|
|
|
|
return $.connect.server({
|
|
|
|
root: [dist],
|
|
|
|
livereload: true,
|
|
|
|
port: 1337
|
2015-08-23 06:28:48 +02:00
|
|
|
})
|
2015-06-07 00:33:03 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
//
|
|
|
|
// Watch task
|
|
|
|
//
|
|
|
|
gulp.task('watch', function() {
|
2015-08-23 06:28:48 +02:00
|
|
|
gulp.watch([src + '/_assets/styl/**/*.styl'], ['css'])
|
2015-08-30 14:02:02 +02:00
|
|
|
gulp.watch([src + '/_assets/js/*.js'], ['js'])
|
2015-08-23 06:28:48 +02:00
|
|
|
gulp.watch([src + '/_assets/img/**/*.{png,jpg,jpeg,gif}'], ['images'])
|
|
|
|
gulp.watch([src + '/_assets/img/**/*.{svg}'], ['icons'])
|
|
|
|
gulp.watch([src + '/_media/**/*'], ['media'])
|
2015-08-30 14:02:02 +02:00
|
|
|
gulp.watch([src + '/**/*.{html,xml,json,txt,md}'], ['jekyll'])
|
2015-06-07 00:33:03 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
// Task sequences
|
|
|
|
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2015-06-08 10:53:12 +02:00
|
|
|
|
2015-06-07 00:33:03 +02:00
|
|
|
//
|
|
|
|
// Dev Server
|
|
|
|
//
|
2015-06-08 19:29:04 +02:00
|
|
|
gulp.task('default', function(cb) {
|
2015-06-07 00:33:03 +02:00
|
|
|
runSequence(
|
2015-08-30 14:02:02 +02:00
|
|
|
'build',
|
|
|
|
['watch', 'connect'],
|
2015-06-07 00:33:03 +02:00
|
|
|
cb
|
|
|
|
);
|
|
|
|
});
|
|
|
|
|
2015-08-30 14:02:02 +02:00
|
|
|
|
2015-06-07 00:33:03 +02:00
|
|
|
//
|
2015-08-30 14:02:02 +02:00
|
|
|
// Full build
|
2015-06-07 00:33:03 +02:00
|
|
|
//
|
|
|
|
gulp.task('build', function(cb) {
|
2015-08-30 14:02:02 +02:00
|
|
|
|
|
|
|
console.log(chalk.green('Building ' + ($.util.env.production ? 'production' : 'dev') + ' version...'));
|
|
|
|
|
2015-06-07 00:33:03 +02:00
|
|
|
runSequence(
|
|
|
|
'clean',
|
2015-08-30 14:02:02 +02:00
|
|
|
'jekyll',
|
2015-08-30 15:05:08 +02:00
|
|
|
['html', 'css', 'js', 'images', 'icons', 'fonts', 'media'],
|
|
|
|
'rev',
|
|
|
|
'rev:replace',
|
2015-06-07 00:33:03 +02:00
|
|
|
cb
|
|
|
|
);
|
|
|
|
});
|