This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
oliverdavies.uk-old-sculpin/gulpfile.js

30 lines
712 B
JavaScript
Raw Normal View History

2016-01-04 11:36:14 +00:00
'use strict';
var gulp = require('gulp'),
2016-01-04 12:20:00 +00:00
compass = require('gulp-compass'),
minify_css = require('gulp-minify-css'),
2016-01-04 11:36:14 +00:00
imagemin = require('gulp-imagemin');
2016-01-04 12:20:00 +00:00
gulp.task('compass', function () {
gulp.src('./sass')
.pipe(compass({
config_file: './config.rb',
css: './source/assets/css'
}))
.pipe(minify_css())
.pipe(gulp.dest('./source/assets/css'));
});
2016-01-04 11:36:14 +00:00
gulp.task('image', function () {
2016-01-04 11:38:34 +00:00
// Minify images.
2016-01-04 11:36:14 +00:00
gulp.src('./source/assets/images/*')
.pipe(imagemin())
.pipe(gulp.dest('./source/assets/images'));
});
2016-01-04 12:20:00 +00:00
gulp.task('watch', function () {
gulp.watch('./sass/**/*.scss', ['compass']);
});
2016-01-04 11:36:14 +00:00
gulp.task('default', []);