Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gulp support #1

Open
robballou opened this issue Feb 24, 2015 · 1 comment
Open

Gulp support #1

robballou opened this issue Feb 24, 2015 · 1 comment

Comments

@robballou
Copy link
Owner

Integrate with gulp somehow? I haven't made a gulp plugin before and so I'm unsure the steps needed to make this work (or what changes to the code may need to happen).

Initial thought of how this look code-wise:

gulp.task('rotate', function() {
    gulp.src('.')
      .pipe(rotatelib.pipe({
        before: '-2 weeks'
      })
      .pipe(rotatelib.removeItems());
});
@robballou
Copy link
Owner Author

  • This may not make sense for a gulp plugin. It can happen within a gulp task if needed without it.
  • Globbing may be an interesting thing, though (allowing more than one directory with a glob instead of an array of locations). It would also add a way of potentially filtering without using rotatelib's criteria.

So ... still thinking about this one! 💭

If you have opinions, speak up, let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant