Skip to content

Instantly share code, notes, and snippets.

@remyzv
Created February 20, 2015 08:54
Show Gist options
  • Save remyzv/28fe682de63bbdf0afa9 to your computer and use it in GitHub Desktop.
Save remyzv/28fe682de63bbdf0afa9 to your computer and use it in GitHub Desktop.
Simple Gulpfile with bourbon
var gulp = require('gulp'),
sass = require('gulp-sass'),
bourbon = require('node-bourbon'),
watch = require('gulp-watch');
var paths = {
scss: './scss/*'
};
gulp.task('styles', function () {
return gulp.src(paths.scss)
.pipe(sass({
includePaths: require('node-bourbon').includePaths
}))
.pipe(gulp.dest('./css'));
});
gulp.task('build',function(){
gulp.start('styles');
});
gulp.task('default',function(){
gulp.start('build');
});
gulp.task('watch', function() {
watch('scss/**/*.scss', function () {
gulp.start('styles');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment