FreeAllMedia / stimpak

An easy-to-use system for defining, discovering, and re-using code, text, and workflow patterns
http://stimpak.io
MIT License
8 stars 1 forks source link

Change `.transform` to `.filter`? #35

Open dcrockwell opened 8 years ago

dcrockwell commented 8 years ago

This would force 0.2.0 as it would break any integrations currently using .transform.

To avoid this, we could add .transformFile or .alter

dcrockwell commented 8 years ago
stimpak
.test
.render("**/*", `${__dirname}/templates`)
.alter((stim, file, callback) => {
    file.contents = new Buffer("NEW Content!");
    callback(null, file);
});
dcrockwell commented 8 years ago

Also see this: https://github.com/FreeAllMedia/stimpak/issues/19

dcrockwell commented 8 years ago

I'm leaning towards changing .transform to .filter and adding .transform as the file changing method