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 task #42

Closed
nevf opened this issue Jan 31, 2016 · 3 comments
Closed

Gulp task #42

nevf opened this issue Jan 31, 2016 · 3 comments

Comments

@nevf
Copy link

nevf commented Jan 31, 2016

Are there any plans to wrap this so it can be used as a gulp task? Unfortunately gulp-rysnc https://www.npmjs.com/package/gulp-rsync seems dead.

@jedrichards
Copy link
Owner

No plans on my part. I've more or less fully transitioned to using npm scripts and plain cli tools for my build processes now ... the main reason being your only dependencies are the tools themselves, rather than adding a task runner like Grunt or Gulp, plus a plugin project for every tool as well.

That said, from taking a quick look at gulp-rsync I think rsyncwrapper would work pretty well wrapped into a minimal gulp task that handled the file streams etc.

I'd certainly merge any pull requests that made rsyncwrapper more compatible with that use case, or fixed bugs etc.

Although I'm not sure using rsync from Gulp brings you much benefit, since rsync can't understand file streams afaiu the task would just be unpacking the stream into string arguments for rsync anyway? Can't you just do something like this?

gulp do-gulp-things && rsync ./src ./dest/ --recursive

@nevf
Copy link
Author

nevf commented Feb 2, 2016

@jedrichards Thanks for the reply. I understand there is a move to using npm scripts, but I haven't looked at this yet and have to say that overall I'm pretty happy with gulp.

I've ended up using rsync-slim https://www.npmjs.com/package/rsync-slim in gulp and it does just what I need. I was using shipit up until now, which uses rsync, however having all build and deploy tasks in gulp is simpler and streamlines my work-flow.

@jedrichards
Copy link
Owner

Ah cool, glad you got it to work!

Fwiw rsyncwrapper and rsync-slim are very similar projects, the API is basically the same, you could use rsyncwrapper in a Gulp task in the same way. rsyncwrapper gets about 8K downloads a month and is fully tested ... rsync-slim gets about 200 and has no tests :)

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

No branches or pull requests

2 participants