Skip to content

Instantly share code, notes, and snippets.

@jessehattabaugh
Created May 2, 2014 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jessehattabaugh/54075f65152042206fc6 to your computer and use it in GitHub Desktop.
Save jessehattabaugh/54075f65152042206fc6 to your computer and use it in GitHub Desktop.
var gulp = require('gulp');
gulp.task('default', ['stylus']);
/* Stylus
-------------------------------------*/
var stylus = require('gulp-stylus');
var nib = require('nib');
gulp.task('stylus', function() {
return gulp.src('source/*.styl')
.pipe(stylus({
errors: true,
use: [nib()]
}))
.pipe(gulp.dest('./build/www/'));
});
/* Watch
--------------------------------------*/
gulp.task('watch', function () {
gulp.watch('source/*.styl', ['stylus']);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment