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

Function hooks #164

Open
puria opened this issue Nov 20, 2022 · 2 comments
Open

Function hooks #164

puria opened this issue Nov 20, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@puria
Copy link

puria commented Nov 20, 2022

Let me start with "WHAT A SENSATIONAL PIECE OF SOFTWARE 😍🚀🎉"

Is your feature request related to something something in Mechanic? Please describe.

I would really love to have hooks before and after the download() and/or done()

Is your feature request related to a problem? Please describe.
What I want to achieve is to store the assets that are created by our consumers into a shared folder or something, to have track, to let them, reuse or get inspiration... actually an archive of the created visuals with mechanic (this could also be a huge feature of mechanic someday)

Describe the solution you'd like
I would rather love to add some pre/post hooks functions defined developers, into the index.js easily, that are executed at some point (done? download?)

Describe alternatives you've considered
fork the project, NAH, I didn't really considered that... I do prefer having that maintained by the core devs

Additional context
I love you all <3

@puria puria added the enhancement New feature or request label Nov 20, 2022
@puria
Copy link
Author

puria commented Nov 20, 2022

I would also rather contribute if you need dev forces, unless #161 is merged before ;p

@runemadsen
Copy link
Contributor

Hi @puria. Thanks so much for the kind comments! We have big plans of expanding Mechanic to include something like what you're describing as a native solution, but the hooks functionality seems to be a good intermediate step as an immediate solution. If you want to contribute, that would be very welcomed! If you do have time to look at this, we would suggest that you take a look and then post a quick note here on how you want to approach it, so we can have a quick discussion before you dive into the code. Let us know!

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

No branches or pull requests

2 participants