cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From csantanapr <>
Subject [GitHub] cordova-lib pull request: CB-6481 Add unified hooks support for co...
Date Tue, 12 Aug 2014 02:59:09 GMT
Github user csantanapr commented on the pull request:
    Here is a gist of a Hook I'm working on for IBM
    You can see how I'm using Context opts and requireCordovaModule
    2 Items I'm looking how to improve is:
    1.  I want to be able to use nopt module, but I can't using requireCordovaModule, because
nopt is a dep from cli not cordova-lib
    2. Getting a parser for the platform doing 
    platforms = context.requireCordovaModule('../cordova/platforms')
    parser = new platforms[platformId].parser(platformPath);
    It feels like using a private API ;-)

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 or file a JIRA ticket
with INFRA.

View raw message