Improved Windows instructions. Added reference to active-platform
fix link label
|Deletions are marked like this.||Additions are marked like this.|
|Line 31:||Line 31:|
|. See [[http://cordova.apache.org/docs/en/edge/guide_platforms_index.md.html#Platform%20Guides%20Platform%20Guides|http://cordova.apache.org/docs/en/edge/guide_platforms_index.md.html#Platform%20Guides Platform Guides]] for information on installing SDKs for target platforms.||. See [[http://cordova.apache.org/docs/en/edge/guide_platforms_index.md.html#Platform%20Guides%20Platform%20Guides|Platform Guides]] for information on installing SDKs for target platforms.|
The following host platforms are supported, if you aren't on one of them, things may work, or they may not. If they do, please feel free to update this list. If things don't work on a supported platform, please File a bug.
- Mac OS X
- Windows (XP+)
Setting up Cordova
You need git, node, and npm to be in your path for the rest of the page.
All paths below use / as the path separator (to reduce duplication), if you're on Windows, you should be able to change them to \.
Retrieving Cordova sources
git clone https://git-wip-us.apache.org/repos/asf/cordova-coho.git cd cordova-coho npm install cd .. node cordova-coho/coho repo-clone -r cli -r js -r plugman -r plugins -r mobile-spec cd cordova-cli npm install cd .. node cordova-coho/coho repo-clone -r active-platform
Using active-platform will install the main Cordova platforms. There are a number of magic .values for repo-clone, see cordova-coho/coho list-repos for a complete list. You can add additional/substitute platforms by listing each platform after an -r as in -r ios after/in place of -r active-platform.
See Platform Guides for information on installing SDKs for target platforms.
At this point, you should have a number of git repositories, all similar.
Set up Github remote
If you'd like to be able to push to github, you can set up a github remote by doing the following, where $USER is your github.com username.
This assumes that you will go to https://github.com/apache/cordova-X and click fork to create your https://github.com/$USER/cordova-X repository for a given repository.
cordova-coho/coho foreach "git remote add github https://github.com/$USER/\\\$(basename \\\$(pwd))"