Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change .transform to .filter? #35

Open
dcrockwell opened this issue Jul 7, 2016 · 3 comments
Open

Change .transform to .filter? #35

dcrockwell opened this issue Jul 7, 2016 · 3 comments
Labels

Comments

@dcrockwell
Copy link
Contributor

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
Copy link
Contributor Author

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

@dcrockwell
Copy link
Contributor Author

Also see this: #19

@dcrockwell
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant