Created
April 16, 2014 10:18
-
-
Save cxyokk/10847728 to your computer and use it in GitHub Desktop.
gulp compass
This file contains hidden or 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
gulp = require 'gulp' | |
gutil = require 'gulp-util' | |
cp = require 'child_process' | |
q = require 'q' | |
gulp.task 'compass', -> | |
compassCmd = 'bundle exec compass compile --config compass.rb' | |
deferred = q.defer() | |
cp.exec compassCmd, (err, stdout, stderr)-> | |
if err | |
gutil.log gutil.colors.red(stderr) | |
else | |
gutil.log gutil.colors.green(stdout) | |
deferred.resolve() | |
return deferred.promise |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment