Sage / streamlinejs

Asynchronous JavaScript for dummies
http://bjouhier.wordpress.com/2011/01/09/asynchronous-javascript-the-tale-of-harry/
MIT License
961 stars 56 forks source link

Gulp plugin #330

Open woubuc opened 8 years ago

woubuc commented 8 years ago

I would like to use Streamline but I can't find a good Gulp module to use. The gulp-streamlinejs module depends on 1.0.7, which appears to be a major version behind.

Is there a Gulp module available somewhere, or how would I go about implementing Steamline in my Gulp tasks?

bjouhier commented 8 years ago

Unfortunately we don't use gulp (yet) so I don't have the answer.

The big change between streamline 1.0 and 2.0 is the upgrade from babel 5 to babel 6. A lot of things changed on the babel side and I do not recommend sticking to the streamline 1.0 / babel 5 combo.

The impact of the streamline 1.0 / 2.0 upgrade on gulp-streamlinejs should be small (the 0.12 / 1.0 upgrade was much more disruptive). The gulp-streamlinejs source is less that 100 locs and it looks like only a few lines would be impacted (maybe tweaks in the options).

@calvinwiebe Any plans for a streamline 2.0 upgrade?

calvinwiebe commented 8 years ago

It seems like it should be a smooth upgrade. When I have a spare moment in the coming weeks I will take a look. Cannot jump on it immediately, unfortunately.

bjouhier commented 8 years ago

Thanks Calvin. I would have been happy to help too (nice opportunity to try out gulp) but I'm also overbooked these days.

calvinwiebe commented 8 years ago

I have updated gulp-streamlinejs to use the latest streamline. Published it to npm as v0.3.0. I didn't update any options. The tests passed, and I tried it with a few projects and everything worked. Let me know if there are any problems and I can push another update.