Gulp-esque streams and operation piping. #3536
Replies: 6 comments
-
I'm not familiar with Gulp but will read the link you provided and digest it 😄 |
Beta Was this translation helpful? Give feedback.
-
It's a very popular, if not defacto, build system in the JavaScript community. Has a lot of neat ideas. |
Beta Was this translation helpful? Give feedback.
-
I think it looks neat 😄 Something like this could be used as a generic file/stream transformation mechanism in Cake. |
Beta Was this translation helpful? Give feedback.
-
Absolutely. I don't think there's anything here that requires cake level support. |
Beta Was this translation helpful? Give feedback.
-
Here's an example implementation: It's still a rough work-in-progress. Would love opinions or feedback> Edit: Like on idea would be to add a var memoryStream = new MemoryStream();
var writer = new StreamWriter(memoryStream, new UTF8Encoding(true, false), 1024, false);
// becomes
var writer = memoryStream.ToWriter(); Edit: Edit: Edit: Also |
Beta Was this translation helpful? Give feedback.
-
You could also take a look at PVC if you want some inspiration for a streaming build-system in C# 😉 |
Beta Was this translation helpful? Give feedback.
-
See: https://github.com/gulpjs/gulp/blob/master/docs/API.md#gulpsrcglobs-options.
This:
With this new Alias:
Still chewing on how ICakePipe would function, how files are passed to stream Aliases, and other such things. Would follow the general idea that the functions would either be called for each file in the globbed file collection, or would return a func that accepts a file stream. The latter would change
.Pipe(Jade)
to.Pipe(Jade())
, and would allow options to be passed to aliases.Comments, opinions, etc?
Beta Was this translation helpful? Give feedback.
All reactions