You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Audrey So (JIRA)" <ji...@apache.org> on 2016/11/30 17:56:59 UTC

[jira] [Comment Edited] (CB-11978) [--fetch] adding platforms/plugins via localpath should go through cordova-fetch

    [ https://issues.apache.org/jira/browse/CB-11978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15709265#comment-15709265 ] 

Audrey So edited comment on CB-11978 at 11/30/16 5:56 PM:
----------------------------------------------------------

How should this look in package.json? Should the spec go into the dependencies?

   "cordova": {
        "platforms": [
            "ios"
        ],
        "plugins": {
            "cordova-plugin-geolocation": {}
        }
    },
    "dependencies": {
        "cordova-plugin-geolocation": "../../cordova-plugin-geolocation"
    }


was (Author: auso):
How should this look in package.json? Should the spec go into the dependencies?

```     "cordova": {
        "platforms": [
            "ios"
        ],
        "plugins": {
            "cordova-plugin-geolocation": {}
        }
    },
    "dependencies": {
        "cordova-plugin-geolocation": "../../cordova-plugin-geolocation"
    } ```

> [--fetch] adding platforms/plugins via localpath should go through cordova-fetch
> --------------------------------------------------------------------------------
>
>                 Key: CB-11978
>                 URL: https://issues.apache.org/jira/browse/CB-11978
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: cordova-fetch, CordovaLib
>    Affects Versions: 6.3.0
>            Reporter: Steve Gill
>              Labels: cordova-7.0.0
>
> cordova plugin add localPath --save --fetch
> * currently, doesn’t add this to `package.json`
> * in config.xml, adds `<plugin name="cordova-plugin-geolocation" spec="../../cordova-plugin-geolocation" />`
> * `npm install localpath —save` adds `"cordova-plugin-geolocation": "file:///Users/steveng/repo/cordova/cordova-plugin-geolocation”` in `package.json`
> Need to make local paths go through fetch so they get saved in package.json too. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org