cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-11042) Add cordova run option to skip prepare
Date Wed, 13 Apr 2016 18:23:25 GMT

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

ASF GitHub Bot commented on CB-11042:
-------------------------------------

Github user nikhilkh commented on a diff in the pull request:

    https://github.com/apache/cordova-cli/pull/244#discussion_r59599203
  
    --- Diff: doc/readme.md ---
    @@ -464,29 +464,31 @@ cordova build [<platform> [...]]
     
     ### Synopsis
     
    -Prepares, builds (unless `--nobuild` is specified) and deploys app on specified platform
devices/emulators. If a device is connected it will be used, unless an eligible emulator is
already running.
    +Prepares, builds, and deploys app on specified platform devices/emulators. If a device
is connected it will be used, unless an eligible emulator is already running.
     
     ###Syntax
     
     ```bash
     cordova run [<platform> [...]]
    -    [--list | --nobuild ]
    +    [--list | --debug | --release]
    +    [--noprepare] [--nobuild]
         [--device|--emulator|--target=<targetName>]
         [--buildConfig=<configfile>]
         [--browserify]
         [-- <platformOpts>]
     ```
     
    -| Option     | Description
    -|------------|------------------
    +| Option      | Description
    +|-------------|------------------
     | `<platform> [..]` | Platform name(s) to run. If not specified, all platforms
are run.
    -|--nobuild   | Skip building
    -|--debug     | Deploy a debug build. This is the default behavior unless `--release`
is specified.
    -|--release   | Deploy a release build
    -|--device    | Deploy to a device
    -|--emulator  | Deploy to an emulator
    -|--target    | Deploy to a specific target emulator/device. Use `--list` to display target
options
    -| --list     | Lists available targets. Displays both device and emulator deployment
targets unless specified
    +| --list      | Lists available targets. Displays both device and emulator deployment
targets unless specified
    +| --debug     | Deploy a debug build. This is the default behavior unless `--release`
is specified.
    +| --release   | Deploy a release build
    +| --noprepare | Skip preparing
    --- End diff --
    
    One slight caveat - just mention something like: [Available in cordova CLI 6.2 and above]
    
    Since we have a 6.x version of the docs - new features, flags need to be versioned inline.


> Add cordova run option to skip prepare
> --------------------------------------
>
>                 Key: CB-11042
>                 URL: https://issues.apache.org/jira/browse/CB-11042
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: CordovaLib
>            Reporter: Jason Ginchereau
>            Assignee: Jason Ginchereau
>
> The 'cordova run' command currently always does a "prepare" operation for the target
platform before launching the app. There is a --nobuild option (to skip building the native
project), but there isn't a --noprepare option.
> This option will be helpful to optimize build-and-run scenarios in the Visual Studio
tools for Cordova. VS always ensures the project is fully prepared and built before trying
to launch. So by the time it calls 'cordova run' there is no need to do the prepare step,
and it just causes the developer to wait extra seconds for every iteration of the inner loop.



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


Mime
View raw message