Scripts that can be used in cordova-cli hook calls
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
after_prepare
before_platform_add
.DS_Store
LICENSE
README.md

README.md

cordova-hooks

Warning: These are the first iterations of the scripts. They can definitely be optimized and enhanced.

Since you are using cordova-cli, this means you already have node and npm installed.

These scripts take advantage of shell commands, so in order to run these, you must install shelljs:

npm install -g shelljs

Installation

Copy the files in their corresponding directories found under .cordova/hooks in your project root directory.

Usage

Whenever you execute a specific cordova command, the appropriate hook script will be executed at the proper time.

License

cordova-hooks is provided under the terms of the Unlicense license.