CordovaFirefoxOS: Difference between revisions

Jump to navigation Jump to search
updated to cordova from registry
(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>$ ./cordova-cli/bin/cordova create fxos-app</pre>
<pre>$ cordova create fxos-app</pre>
You need to tell cordova to use the local firefoxos platform. Do this
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-cli/bin/cordova platform add firefoxos
$ cordova platform add firefoxos
</pre>
</pre>
Add plugins from github or local disk
Add plugins from github or local disk
<pre>
<pre>
$ ../cordova-cli/bin/cordova plugin add https://github.com/jlongster/cordova-plugin-device.git
$ cordova plugin add https://github.com/jlongster/cordova-plugin-device.git
$ ../cordova-cli/bin/cordova plugin add ../cordova-plugin-device
$ cordova plugin add ../cordova-plugin-device
</pre>
</pre>
Prepare as usual
Prepare as usual
<pre>
<pre>
$ ../cordova-cli/bin/cordova prepare
$ cordova prepare
</pre>
</pre>
Confirmed users
514

edits

Navigation menu