|
|
Line 151: |
Line 151: |
|
| |
|
| Create your app: | | Create your app: |
| <pre>$ cordova create fxos-app</pre>
| |
| If you want to use the local firefoxos platform. Configure Cordova
| |
| by editing .cordova/config.json in the fxos-app folder. Add the "lib"
| |
| property, like this:
| |
| <pre>
| |
| {
| |
| "id": "io.cordova.hellocordova", "name":"HelloCordova",
| |
| "lib": {
| |
| "firefoxos": {
| |
| "uri": "/Users/james/projects/mozilla/tmp/cordova-firefoxos",
| |
| "version": "dev",
| |
| "id": "cordova-firefoxos-dev"
| |
| }
| |
| }
| |
| }</pre>
| |
| Just change `uri` to make it point to your computer.
| |
| Now you can add the platform
| |
| <pre> | | <pre> |
| | $ cordova create fxos-app |
| $ cordova platform add firefoxos | | $ cordova platform add firefoxos |
| </pre> | | </pre> |