Confirmed users
514
edits
(status updated) |
(updated to cordova from registry) |
||
Line 155: | Line 155: | ||
Create a dir (possibly a bug it should be autocreated or used from another dir) | Create a dir (possibly a bug it should be autocreated or used from another dir) | ||
<pre>$ mkdir -p ~/.cordova/lib/firefoxos/cordova-firefoxos-dev/</pre> | <pre>$ mkdir -p ~/.cordova/lib/firefoxos/cordova-firefoxos-dev/</pre> | ||
Later on run <code>cordova</code> from <code>cordova-cli/bin/cordova</code> | |||
==Running the latest stable cordova== | |||
<pre> | |||
$ npm install cordova -g | |||
</pre> | |||
Create your app: | Create your app: | ||
<pre>$ | <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" | by editing .cordova/config.json in the fxos-app folder. Add the "lib" | ||
property, like this: | property, like this: | ||
Line 174: | Line 181: | ||
Now you can add the platform | Now you can add the platform | ||
<pre> | <pre> | ||
$ | $ cordova platform add firefoxos | ||
</pre> | </pre> | ||
Add plugins from github or local disk | Add plugins from github or local disk | ||
<pre> | <pre> | ||
$ | $ cordova plugin add https://github.com/jlongster/cordova-plugin-device.git | ||
$ | $ cordova plugin add ../cordova-plugin-device | ||
</pre> | </pre> | ||
Prepare as usual | Prepare as usual | ||
<pre> | <pre> | ||
$ | $ cordova prepare | ||
</pre> | </pre> |