Change `.transform` to `.filter`?
dcrockwell opened this issue · 3 comments
dcrockwell commented
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
stimpak
.test
.render("**/*", `${__dirname}/templates`)
.alter((stim, file, callback) => {
file.contents = new Buffer("NEW Content!");
callback(null, file);
});
dcrockwell commented
Also see this: #19
dcrockwell commented
I'm leaning towards changing .transform
to .filter
and adding .transform
as the file changing method