From 1871cd4a71b490cf521571db268ea56a27520f21 Mon Sep 17 00:00:00 2001 From: Omar Mefire Date: Wed, 19 Aug 2015 12:47:35 -0700 Subject: [PATCH] CB-9434: Adding a ToDO. 'cordova run' should run build related hooks : 'before_build' & 'after_build' hooks. --- cordova-lib/src/cordova/run.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cordova-lib/src/cordova/run.js b/cordova-lib/src/cordova/run.js index b5c1e2762..887203584 100644 --- a/cordova-lib/src/cordova/run.js +++ b/cordova-lib/src/cordova/run.js @@ -30,6 +30,11 @@ module.exports = function run(options) { options = cordova_util.preProcessOptions(options); var hooksRunner = new HooksRunner(projectRoot); + + // ToDO: `cordova run` should also fire the 'before_build' & 'after_build' hooks + // ... since a run also does a build. + // That will require changing the current architecture of cordova-lib and cordova-platforms + // For more details, see: https://issues.apache.org/jira/browse/CB-9434?filter=-1 return hooksRunner.fire('before_run', options) .then(function() { // Run a prepare first, then shell out to run