GitHub user sgrebnov opened a pull request: https://github.com/apache/cordova-plugman/pull/74
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 https://github.com/MSOpenTech/cordova-plugman plugin-hooks Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cordova-plugman/pull/74.patch 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 <v-seg...@microsoft.com> 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---