cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sgrebnov <>
Subject [GitHub] cordova-plugman pull request: adds plugin level hooks support
Date Fri, 18 Apr 2014 00:14:41 GMT
GitHub user sgrebnov opened a pull request:

    adds plugin level hooks support

    1.Support of **js script files only** (nodejs is used to run script file)
    2.Support of the following **hook types**
    *  beforeinstall/preinstall – run before plugin is installed
    *  install/postinstall/afterinstall – run after plugin is installed
    *  uninstall – run after plugin is uninstalled
        <script type="postinstall" src="scripts/postinstall.js" />
        <script type="preinstall" src="scripts/preinstall.js" />
        <script type="install" src="scripts/install.js" />
    3.To retrieve execution parameters **inside hook file**
    console.log ('\tCORDOVA_PLATFORM: ' + process.env.CORDOVA_PLATFORM);
    console.log ('\tCORDOVA_PROJECT_DIR: ' + process.env.CORDOVA_PROJECT_DIR);
    console.log ('\tCORDOVA_PLUGIN_DIR: ' + process.env.CORDOVA_PLUGIN_DIR);
    console.log ('\tCORDOVA_CMDLINE: ' + process.env.CORDOVA_CMDLINE);

You can merge this pull request into a Git repository by running:

    $ git pull plugin-hooks

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #74
commit 6197e43911e2ffb66a0bed4c56ba35fb365c5c8a
Author: sgrebnov <>
Date:   2014-04-18T00:08:01Z

    adds plugin level hooks support


If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message