gulp-community / gulp-haml

gulp plugin for Haml
MIT License
25 stars 20 forks source link

Integration with gulp-changed #6

Closed chaffeqa closed 10 years ago

chaffeqa commented 10 years ago

Would it make sense to document the optimization of gulp-changed:

var gulp = require('gulp');
var haml = require('gulp-haml');
var changed = require('gulp-changed');

// Get and render all .haml files recursively 
gulp.task('haml', function () {
  gulp.src('./app/**/*.haml')
    // Only call haml() on the changed files
    .pipe(changed('./app', {extension: '.html'}))
    .pipe(haml())
    .pipe(gulp.dest('./app'));
});

If so, I'm fine with submitting a pull request

stephenlacy commented 10 years ago

It is not that necessary as the gulp-changed docs do have examples.

I would accept a PR with gulp-changed if you add a README to the example folder with it and whatever other usage you like: https://github.com/stevelacy/gulp-haml/blob/master/examples