Github user sgrebnov commented on the pull request:

    https://github.com/apache/cordova-plugman/pull/74#issuecomment-40968416
  
    Created issue CB-6481 to cover this work.
    Switched to nodejs module loader.
    Sample hook file implementation with async functionality:
    
    ```
    var Q = require('./q');
    
    module.exports = function(platform, projectDir, pluginDir, cmdLine) {
        console.log('hook.js: ' + platform);
        console.log('hook.js: ' + projectDir);
        console.log('hook.js: ' + pluginDir);
        console.log('hook.js: ' + cmdLine);
    
        var deferral = new Q.defer();
    
        setTimeout(function(){
            deferral.resolve();
        }, 1000);
    
        return deferral.promise;
    }
    ```


---
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.
---

Reply via email to