You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Staci Cooper (JIRA)" <ji...@apache.org> on 2014/11/05 19:40:35 UTC
[jira] [Commented] (CB-7949) Cli command/documentation for workflow
with multiple versions of cordova
[ https://issues.apache.org/jira/browse/CB-7949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14198823#comment-14198823 ]
Staci Cooper commented on CB-7949:
----------------------------------
https://github.com/apache/cordova-cli/pull/196
>From the README:
"The cordova-local utility enables a developer to easily switch between multiple local installations of cordova with a single command. It is meant to be installed globally with 'npm install -g cordova-local'.
To use the utility, use the command 'cordova-local' in place of 'cordova' in your regular cordova workflow. This will call the globally installed cordova-local command, which invokes the closest local installation of cordova in the current directory or its ancestors.
If the '--inclglobal' flag is added, cordova-local will attempt to invoke a global installation of cordova in the event that no local installation is found."
> Cli command/documentation for workflow with multiple versions of cordova
> ------------------------------------------------------------------------
>
> Key: CB-7949
> URL: https://issues.apache.org/jira/browse/CB-7949
> Project: Apache Cordova
> Issue Type: New Feature
> Components: CLI
> Reporter: Staci Cooper
> Assignee: Staci Cooper
> Priority: Minor
>
> Not sure if this is correctly categorized...
> Current suggested workflow when using multiple versions of cordova on the same machine is described here: http://www.mooreds.com/wordpress/archives/1379. Basically, use local installations of cordova and then run cordova with "./node_modules/cordova/bin/cordova", or a bunch of corresponding aliases.
> I want to add a command to the cli, something like 'cordova-local', which can be run anywhere instead of 'cordova', and finds the closest local installation of cordova in your directory's ancestors and passes its arguments to it. Basically it would mirror the workflow of grunt-cli.
> There's also nothing in the official docs about this workflow. That blog post was the only reference I could find.
--
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