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

Call in reverse #57

Open
wmertens opened this issue Mar 20, 2018 · 6 comments
Open

Call in reverse #57

wmertens opened this issue Mar 20, 2018 · 6 comments

Comments

@wmertens
Copy link
Contributor

Is there a way to call all taps of a hook in reverse?

@ooflorent
Copy link
Member

ooflorent commented Mar 20, 2018

You could try using an interceptor to add before to insert the hooks in reverse order but the best option is to create your own hook type.

@wmertens
Copy link
Contributor Author

Oh of course, that's a good idea, it would also help solve #47.

Would you accept a PR for this?

@hipstersmoothie
Copy link

hipstersmoothie commented Oct 26, 2018

@ooflorent would this be something you would be open to a PR for?

I'm thinking something along the lines of:

myClass.hooks.myHook.tapBefore('MyThing', () => {})

@ooflorent
Copy link
Member

@hipstersmoothie Not sure. IMHO it's better to create a custom hook that fits to your needs.

@Bhavik-Ardeshna
Copy link

Hey how run tapable project in my local machine to test my work ??
I am new to this ?? Plz Help :)

@wmertens
Copy link
Contributor Author

wmertens commented Nov 8, 2020

@Bhavik-Ardeshna I made something like tapable with roughly the same api but simpler: https://github.com/StratoKit/strato-runner/blob/new-new-config/packages/launcher/src/tapable.js

I should put it in a package, give it a different name.

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

No branches or pull requests

4 participants