Skip to content

Instantly share code, notes, and snippets.

@frekw
Created March 24, 2014 13:24
Show Gist options
  • Save frekw/9739988 to your computer and use it in GitHub Desktop.
Save frekw/9739988 to your computer and use it in GitHub Desktop.
gulp.task('styleguide-sass', function(){
return gulp.src(['static/sass/styleguide.scss'])
.pipe(sass().on('error', errhandler))
.pipe(rename('style.css'))
.pipe(gulp.dest('styleguide/public'));
});
gulp.task('kss', function(){
return gulp.src(['static/sass/*.scss'])
.pipe(kss({
overview: __dirname + '/static/sass/styleguide.md',
kssOpts: {
sass: 'static/sass/styleguide.scss'
}
}))
.pipe(gulp.dest('styleguide/'));
});
gulp.task('watch', ['serve'], function(){
gulp.watch('static/sass/**/*.scss', ['sass', 'styleguide']).on('error', errhandler);
});
{
"devDependencies": {
"gulp-sass": "~0.6.0",
"gulp-kss": "0.0.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment