FreeAllMedia/stimpak

Change `.transform` to `.filter`?

dcrockwell opened this issue · 3 comments

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

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

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

Also see this: #19

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