You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2012/11/28 19:16:23 UTC

[6/50] git commit: Example hook from @dpogue, thanks buddy. Fixes #70.

Example hook from @dpogue, thanks buddy. Fixes #70.


Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/c0aa6d98
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/c0aa6d98
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/c0aa6d98

Branch: refs/heads/master
Commit: c0aa6d985d68b575775b7c9f7c0b7d5e48f3cade
Parents: 4b1e43a
Author: Fil Maj <ma...@gmail.com>
Authored: Tue Nov 20 12:16:16 2012 -0800
Committer: Fil Maj <ma...@gmail.com>
Committed: Tue Nov 20 12:16:16 2012 -0800

----------------------------------------------------------------------
 README.md |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/c0aa6d98/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index b36f46d..6ea3015 100644
--- a/README.md
+++ b/README.md
@@ -89,6 +89,10 @@ Projects created by cordova-client have `before` and `after` hooks for each [pro
 
 These are located under the `.cordova/hooks` directory in the root of your cordova project. Any scripts you add to these directories will be executed before and after the appropriate commands. Useful for integrating your own build systems or integrating with version control systems. __Remember__: make your scripts executable.
 
+### Examples
+
+- [`before_build` hook for jade template compiling](https://gist.github.com/4100866) courtesy of [dpogue](http://github.com/dpogue)
+
 ## Module-level Hooks
 
 If you are using cordova-client as a module within a larger node application, you can also use the standard `EventEmitter` methods to attach to the events. The events include `before_build`, `before_docs`, `before_emulate`, `before_platform_add`, `before_platform_ls`, `before_platform_rm`, `before_plugin_add`, `before_plugin_ls` and `before_plugin_rm`. Additionally, there are `after_` flavours of all the above events.