Skip to content

Instantly share code, notes, and snippets.

@lunelson
Last active August 29, 2015 14:09
Show Gist options
  • Save lunelson/b8b9342f764e133dc0d2 to your computer and use it in GitHub Desktop.
Save lunelson/b8b9342f764e133dc0d2 to your computer and use it in GitHub Desktop.
Configuration to run sassc on a single file in test subdir of libsass/sassc in libsass repo
// _ __ _ _
// | | / _(_) |
// __ _ _ _| |_ __ | |_ _| | ___
// / _` | | | | | '_ \| _| | |/ _ \
// | (_| | |_| | | |_) | | | | | __/
// \__, |\__,_|_| .__/|_| |_|_|\___|
// __/ | | |
// |___/ |_|
var gulp = require('gulp');
var run = require('gulp-run');
var rename = require("gulp-rename");
gulp.task('sassc', function () {
gulp.src('test.scss')
.pipe(run('../bin/sassc -s', {verbosity: 1}))
.on('error', function (err) { this.end(); })
.pipe(rename(function (path) { path.extname = ".css"; }))
.pipe(gulp.dest('.'))
});
gulp.task('watch', function () {
gulp.watch('test.scss', ['sassc']);
});
gulp.task('default', ['watch']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment