Skip to content

Instantly share code, notes, and snippets.

@sapegin
Created November 19, 2014 18:10
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 sapegin/0f21fa981f3befde2aa7 to your computer and use it in GitHub Desktop.
Save sapegin/0f21fa981f3befde2aa7 to your computer and use it in GitHub Desktop.
var gulp = require('gulp');
var livereload = require('gulp-livereload');
var stylus = require('gulp-stylus');
var autoprefixer = require('gulp-autoprefixer');
gulp.task('styles', function() {
return gulp.src('styles/task*.styl')
.pipe(stylus())
.pipe(autoprefixer('last 2 versions', 'ie 9', 'android 2.3'))
.pipe(gulp.dest('build/'));
});
gulp.task('watch', function() {
livereload.listen();
gulp.watch('styles/*.styl', ['styles']);
gulp.watch('build/**').on('change', livereload.changed);
});
gulp.task('default', ['styles']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment