cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joseph-onsip <...@git.apache.org>
Subject [GitHub] cordova-lib pull request: CB-7278 Allow plugin modules to be .json...
Date Fri, 08 Aug 2014 19:21:31 GMT
Github user joseph-onsip commented on the pull request:

    https://github.com/apache/cordova-lib/pull/71#issuecomment-51646216
  
    Sure, I work on a [project](https://github.com/onsip/SIP.js) that [requires its package.json](https://github.com/onsip/SIP.js/blob/817c7038c0be0d66a68d4c1f5d5e99678017186b/src/SIP.js#L10-L19).
In order to make the project usable as a Cordova plugin, I had to copy the relevant portions
of package.json into a separate file, [cordova_package.json.js](https://github.com/onsip/SIP.js/commit/0862df7c825b27f90a5665f584334b232eddf644#diff-0),
then [specify *that* file as the src of the "package.json" module](https://github.com/onsip/SIP.js/commit/0862df7c825b27f90a5665f584334b232eddf644#diff-53f390d375398624afe1cfe1125f42bfR7).
    
    If plugin modules could be .json files, I could just specify package.json as the src of
the module, instead of needing to manually synchronize cordova_package.json.js with package.json.
    
    I opened [CB-7278](https://issues.apache.org/jira/browse/CB-7278) on JIRA, as well.


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

Mime
View raw message