Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Some Cordova users need a way to prevent hooks from being executed for various reasons. One example is a security issue.
A new CLI option "--nohooks" can be introduced for those Cordova users.
This option takes a string as the pattern for disabling hooks.
For example,
cordova plugin --nohooks before_plugin_add
cordova platform --nohooks before*
cordova prepare --nohooks before_prepare --nohooks after*
cordova build --nohooks .
--nohooks can be repeated for multiple hook patterns.
All pattern strings are automatically converted to RegExp.
The last example disables all hooks.
We need this feature in Intel XDK.