Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
remove deprecated deps and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
minamarkham committed May 15, 2016
1 parent 11797ee commit aef3e78
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
21 changes: 11 additions & 10 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
var gulp = require('gulp'),
sass = require('gulp-sass'),
rename = require('gulp-rename'),
cssmin = require('gulp-minify-css'),
cleanCSS = require('gulp-clean-css'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
jshint = require('gulp-jshint'),
prefix = require('gulp-autoprefixer'),
browserSync = require('browser-sync'),
reload = browserSync.reload,
minifyHTML = require('gulp-minify-html'),
htmlmin = require('gulp-htmlmin'),
size = require('gulp-size'),
imagemin = require('gulp-imagemin'),
pngquant = require('imagemin-pngquant'),
Expand Down Expand Up @@ -97,7 +97,10 @@ gulp.task('styles', function() {
.pipe(rename('styles.css'))
.pipe(gulp.dest(bases.dist + 'css'))
.pipe(reload({stream:true}))
.pipe(cssmin())
.pipe(cleanCSS({debug: true}, function(details) {
console.log(details.name + ': ' + details.stats.originalSize);
console.log(details.name + ': ' + details.stats.minifiedSize);
}))
.pipe(size({ gzip: true, showFiles: true }))
.pipe(rename({ suffix: '.min' }))
.pipe(gulp.dest(bases.dist + 'css'))
Expand All @@ -112,7 +115,10 @@ gulp.task('themes', function() {
.pipe(prefix(prefixerOptions))
.pipe(gulp.dest(bases.dist + 'css/themes'))
.pipe(reload({stream:true}))
.pipe(cssmin())
.pipe(cleanCSS({debug: true}, function(details) {
console.log(details.name + ': ' + details.stats.originalSize);
console.log(details.name + ': ' + details.stats.minifiedSize);
}))
.pipe(size({ gzip: true, showFiles: true }))
.pipe(rename({ suffix: '.min' }))
.pipe(gulp.dest(bases.dist + 'css/themes'))
Expand Down Expand Up @@ -180,13 +186,8 @@ gulp.task('sass-lint', function() {
});

gulp.task('minify-html', function() {
var opts = {
comments:true,
spare:true
};

gulp.src(bases.app + './*.html')
.pipe(minifyHTML(opts))
.pipe(htmlmin({collapseWhitespace: true}))
.pipe(gulp.dest(bases.dist))
.pipe(reload({stream:true}));
});
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"name": "Mina Markham",
"url": "https://github.com/minamarkham"
},
"version": "2.0.0",
"version": "2.1.0",
"license": "MIT",
"repository": {
"type": "git",
Expand All @@ -32,12 +32,12 @@
"del": "^2.0.2",
"gulp": "^3.9.0",
"gulp-autoprefixer": "^2.1.0",
"gulp-clean-css": "^2.0.7",
"gulp-concat": "^2.4.3",
"gulp-gh-pages": "^0.4.0",
"gulp-htmlmin": "^2.0.0",
"gulp-imagemin": "^2.1.0",
"gulp-jshint": "^1.9.0",
"gulp-minify-css": "^0.3.12",
"gulp-minify-html": "^0.1.8",
"gulp-notify": "^2.2.0",
"gulp-plumber": "^0.6.6",
"gulp-rename": "^1.2.0",
Expand Down

0 comments on commit aef3e78

Please sign in to comment.