Skip to content
This repository was archived by the owner on Dec 5, 2022. It is now read-only.

Conversation

@EddyVerbruggen
Copy link
Contributor

Many plugins use hooks to run before/after prepare scripts. Firebase being one of those. This change copies the hooks folder (if any) to the dist folder. Without this change, the Firebase plugin will not run at all on Android and have trouble with certain features on iOS.

Also, users can now add their own hooks to the root /hooks folder, and those are picked up as well.

Note that this feature was added in #6, but it seems it got lost in recent refactorings.

…being one of those. This change copies the hooks folder (if any) to the dist folder. Without this change, the Firebase plugin will not run at all on Android, and have trouble with certain features on iOS.

Also, users can now add their own hooks to the root /hooks folder, and those are picked up as well.
@championswimmer
Copy link
Contributor

+1
Really needed !

@lewebsimple
Copy link
Contributor

The hooks folder is usually created / populated when the plugin is installed (i.e. postinstall hook) so it should get created when the dist folder is prepared. The problem right now is dist is not re-prepared when adding plugin, which should be fixed in the 0.3.0 branch.

I'm not against committing this against the master branch, but it would be good to move forward to 0.3.0 someday..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants