"cordova run" already builds before running (unless you add --nobuild). I think it'd be pretty annoying if we had run fail with a "you need to build first" kind of message.
In my mind, cordova-cli's purpose is to add magic. Otherwise, you would just use plugman+platform scripts (and yes, some people do and that is okay). I think it would be awesome if you could clone a project, type "cordova run ios" and have it do everything necessary to run the app (install, build, and deploy). On Fri, Jan 9, 2015 at 8:13 PM, Jesse <purplecabb...@gmail.com> wrote: > what does `cordova run ios` do in windows? > or: > `cordova run wp8` in mac? > > Note that recent changes allow you to `platform add ios` in windows, but > run will always be an error. > Personally, I am with Terrance on this. Magic should be used very > carefully. > > -------------- > $ git on up > git: 'on' is not a git command. See 'git --help'. > > Did you mean one of these? > clone > log > notes > svn > > > > @purplecabbage > risingj.com > > On Fri, Jan 9, 2015 at 4:53 PM, Terence M. Bandoian <tere...@tmbsw.com> > wrote: > > > Seems to me that: > > > > cordova run ios > > > > should do just that. If the platform has not been added, I'd suggest > that > > it fail with an informative message that could include the command to run > > to resolve the problem (similar to Git bash). At this level, deducing > the > > user's intentions has the potential to get messy in a hurry both in the > > code and for the user. > > > > -Terence Bandoian > > > > > > > > On 1/9/2015 12:47 PM, Michal Mocny wrote: > > > >> I'd like to have cordova-cli automatically install missing platforms > when > >> it is obvious that the platform is required. i.e.: > >> > >> cordova create Foo && cd Foo > >>> cordova run ios > >>> > >> ..should just `cordova platform add ios` automatically. > >> > >> It appears that this was already added to phonegap-cli. Would Adobe > mind > >> donating this to cordova-cli, or is it different enough for me to just > >> start from scratch? Should be easy, but don't want to duplicate effort. > >> > >> Filed: https://issues.apache.org/jira/browse/CB-8283 > >> > >> -Michal > >> > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org > > For additional commands, e-mail: dev-h...@cordova.apache.org > > > > >