When you create a project using the CLI, there is a hidden folder called
".cordova", in it is a folder called "hooks" which contain hook folders
that you can add scripts to. See example:
https://github.com/SpiderOak/SpiderOakMobileClient/tree/master/.cordova/hooks


On Wed, Jan 29, 2014 at 10:02 AM, Ian Clelland <[email protected]>wrote:

> Hooks are scripts that can be run at various times in the cordova build
> process. There is a directory for them, with subdirectories for each time:
> pre-prepare, post-prepare, pre-build, post-build, etc.
>
> They're part of cordova-cli, which runs them automatically. I don't know if
> they're properly documented anywhere.
>
>
>
>
> On Wed, Jan 29, 2014 at 12:59 PM, John M. Wargo <[email protected]>
> wrote:
>
> > So, what exactly are hooks?
> >
> > --
> > John M. Wargo
> > @johnwargo <http://twitter.com/johnwargo>
> > www.johnwargo.com <http://www.johnwargo.com>
> > ------------------------------------------------------------
> > ------------------------------------------------------------
> > ------------------------------------------------------------
> > ------------------------------------------------------------
> > ------------------------------------------------------------
> > ------------------------------------------------------------
> > ------------------------------------------------------------
> > ------------------------------------------------------------
> > ------------------------------------------------------------
> > ------------------------------------------------------------
> > ------------------------------------------------------------
> > ------------------------------------------------------------
> > ------------------------------------------------------------
> > ------------------------------------------------------------
> > ------------------------------------------------------------
> > ------------------------------------------------------------
> > ------------------------------
> >
>

Reply via email to