August 3, 2016 in Developer Connection
Why aren't hooks added to hooks.json when they are created?
I've always found this one weird as it effects portability (I work from my laptop and desktop and switch between the two frequently and i use a remote git repo to keep the two synced to each other). There have been times, where i have forgotten to run "build" before i push to git, and the hook file gets pushed, but the hooks.json is lacking the "install". I have a plugin installed that handles this for me, but I would prefer this to be baked into the framework (not my plugin, but the hooks being added too hooks.json when they are created) or a rational reason why this is a bad thing?
I've committed a change that will rewrite the hooks.json file automatically when application hooks are added/edited/deleted. This may or may not make it into 4.1.16. Thanks for the suggestion!
I appreciate it, as it's been a pain a lot (as i don't always have the plugin installed on all my dev boards). this will greatly improve portability of the code from one machine to another
This topic is now archived and is closed to further replies.
Started November 13
Started August 15
Started 6 hours ago