Last active
August 29, 2015 14:09
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// _ __ _ _ | |
// | | / _(_) | | |
// __ _ _ _| |_ __ | |_ _| | ___ | |
// / _` | | | | | '_ \| _| | |/ _ \ | |
// | (_| | |_| | | |_) | | | | | __/ | |
// \__, |\__,_|_| .__/|_| |_|_|\___| | |
// __/ | | | | |
// |___/ |_| | |
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