Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8455

suppress hooks with command line options

    XMLWordPrintableJSON

Details

    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.

      Attachments

        Activity

          People

            bso Byoungro So
            bso Byoungro So
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: