cordova-cli icon indicating copy to clipboard operation
cordova-cli copied to clipboard

`cordova run --list --emulator` could also work outside of Cordova project

Open janpio opened this issue 6 years ago • 2 comments

Currently:

λ cordova run --list --emulator
Current working directory is not a Cordova-based project.

Is there a reason this shouldn't also work outside of a Cordova project?

janpio avatar Apr 12 '19 19:04 janpio

It uses the ios-sim module that is only available in the iOS platform module. You would need to create a project and add the platform just to have the dependency.

erisu avatar Apr 13 '19 01:04 erisu

Oh ok. Does it use anything else from the iOS platform besides that dependency? Or is this even running platform code, but just not obvious because the ios is somehow a default?

janpio avatar Apr 13 '19 13:04 janpio