On Sun, Jan 11, 2015 at 11:40 PM, Terence M. Bandoian <tere...@tmbsw.com>
wrote:

> Creating directories and downloading and installing files is a lot of
> "magic" that may not be desired. Here's another Git example:
>

Compiling on android downloads & creates a bunch of files, but it  is what
you want it to do. When would this not be desired? It's an easily undo-able
operation.

With git, it's actually really important that you know what each command
does. With cordova, I don't think it's as important that you understand how
it works. You can get by with the fact that it does work.



>
> $ git commit -m "commit test."
> On branch development
> Changes not staged for commit:
>         modified:   html/data/topics.json
>         modified:   html/topics.html
>
> no changes added to commit
>
> $ git status
> On branch development
> Changes not staged for commit:
>   (use "git add <file>..." to update what will be committed)
>   (use "git checkout -- <file>..." to discard changes in working directory)
>
>         modified:   html/data/topics.json
>         modified:   html/topics.html
>
> no changes added to commit (use "git add" and/or "git commit -a")
>
> On a related note, is there a diagram somewhere of all the cordova-cli
> commands and their associated options?
>
> -Terence
>
>
>
> On 1/10/2015 7:38 PM, Andrew Grieve wrote:
>
>> "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
>>>>
>>>>
>>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
> For additional commands, e-mail: dev-h...@cordova.apache.org
>
>

Reply via email to