beardyjay.co.uk

My main website source code, uses Hugo.
Log | Files | Refs

commit 7684c07e64106170ff586a4e80060b61403abd22
parent dd0a0566dc9597f676cadd97642a9a77c7af1810
Author: beardyjay <jay@beardyjay.co.uk>
Date:   Thu,  5 Jan 2017 11:35:50 +0000

final minify

Diffstat:
M.travis.yml | 5++---
Mgulpfile.js | 4++--
2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/.travis.yml b/.travis.yml @@ -9,9 +9,8 @@ install: - sudo pip install s3cmd Pygments script: - hugo - - node_modules/.bin/gulp example - - ls -la public/dest/ - - s3cmd sync --delete-removed -P -M -r public/ s3://beardyjay.co.uk/ + - node_modules/.bin/gulp small + - s3cmd sync --delete-removed -P -M -r dest/ s3://beardyjay.co.uk/ notifications: email: on_failure: always diff --git a/gulpfile.js b/gulpfile.js @@ -1,7 +1,7 @@ var gulp = require('gulp'); var minify = require('gulp-minifier'); -gulp.task('example', function() { +gulp.task('small', function() { return gulp.src('public/**/*').pipe(minify({ minify: true, collapseWhitespace: true, @@ -12,5 +12,5 @@ gulp.task('example', function() { var m = content.match(/\/\*![\s\S]*?\*\//img); return m && m.join('\n') + '\n' || ''; } - })).pipe(gulp.dest('public/dest')); + })).pipe(gulp.dest('dest')); });