Commit 5cce365f authored by Evonne Cheung's avatar Evonne Cheung Committed by Robert Lyon
Browse files

Adding in the mahara theme - work done by Evonne



behatnotneeded

Change-Id: I59225b90eaab72dcf087c9c11d427354d6cbe8c2
Signed-off-by: default avatarRobert Lyon <robertl@learn-design.catalyst.net.nz>
parent fb51a0d1
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
// Include gulp
var gulp = require('gulp');
// Include Our Plugins
var sass = require('gulp-sass');
var postcss = require('gulp-postcss');
var path = require('path');
var minifyCSS = require('gulp-minify-css');
var autoprefixer = require('autoprefixer-core');
// Turn sass into css
gulp.task('sass', function () {
return gulp.src('sass/**/*.scss')
.pipe(sass({
paths: [ path.join(__dirname, 'sass', 'includes') ]
}))
.on('error', function(err){
console.log(err); // catch and log the error, don't kill the process
this.emit('end');
})
.pipe(gulp.dest('style/'));
});
// Prefix and minify css files
// this will first run the 'sass' task above, then this one
gulp.task('css', ['sass'], function () {
return gulp.src('style/*.css')
.pipe(postcss([ autoprefixer({ browsers: ['last 4 version'] }) ]))
.on('error', function(err){
console.log(err); // catch and log the error, don't kill the process
this.emit('end');
})
.pipe(minifyCSS())
.pipe(gulp.dest('style/'));
});
// Watch Files For Changes
gulp.task('watch', function() {
gulp.watch(['sass/**/*.scss', '../raw/sass/**/*.scss'], ['css']);
});
// Default Task
gulp.task('default', ['watch']);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment