Change cordova-lib to execute plugin hooks without the need of Cordova project structure#236
Change cordova-lib to execute plugin hooks without the need of Cordova project structure#236galexandrov wants to merge 2 commits intoapache:masterfrom
Conversation
7066b38 to
9c1936b
Compare
|
What's the reason behind this proposed change ? What use case does this fulfill ? |
|
In our case we don't use the Cordova CLI we use cordova-{platform} scripts for project creation and that's why we don't have the Cordova CLI Project structure. But it seems that the hooks execution is tightly bound with the Cordova Project structure and more specific with the existence of cordova folder. |
9c1936b to
0763f9b
Compare
|
ping @omefire |
|
@galexandrov , will take a look when possible... |
cordova-lib/src/hooks/HooksRunner.js
Outdated
There was a problem hiding this comment.
:nit please use if (...) { } else { } (with curly braces).
|
I feel like the plugman changes ( |
|
I'd like to revive this PR. Hooks should run when using create scripts + plugman. |
Change cordova-lib to execute plugin hooks defined in plugin.xml without the need of Cordova project structure and extend Plugman with extra command argument (--nohooks) for preventing plugin hooks execution. By default the hooks will be executed.