14 lines
500 B
CoffeeScript
14 lines
500 B
CoffeeScript
gulp = require 'gulp'
|
|
|
|
gulp.task 'images', -> gulp.start 'copy-images', 'meetup-thumbnails'
|
|
|
|
gulp.task 'meetup-thumbnails', ->
|
|
gulp.src gulp.config.assetsDir + '/images/meetups/originals/*'
|
|
.pipe gulp.plugins.imageResize height: '80'
|
|
.pipe gulp.dest gulp.config.outputDir + '/images/meetups/thumbnails'
|
|
|
|
gulp.task 'copy-images', ->
|
|
gulp.src gulp.config.assetsDir + '/images/**/*'
|
|
.pipe gulp.plugins.imagemin()
|
|
.pipe gulp.dest gulp.config.outputDir + '/images'
|