grunt-firefoxos

Getting Started

This plugin requires Grunt ~0.4.1

If you haven't used Grunt before, be sure to
check out the Getting Started
guide, as it explains how to create a
Gruntfile as well as install and
use Grunt plugins. Once you're familiar with that process, you may
install this plugin with this command:

$ npm install grunt-firefoxos --save-dev

Once the plugin has been installed, it may be enabled inside your
Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-firefoxos');

The tasks

Install an app (ffospush)

This task will push the app to a Firefox OS device, installing it like
if it were an app from the Marketplace.

grunt.initConfig({

ffospush:{

app:{

appId:'your-app-id',// unique app identifier

zip:'application.zip'// zip with your app

}

},

});

Then run the task with:

$ grunt ffospush

Note that you can have several targets for this task:

grunt.initConfig({

ffospush:{

rc:{

appId:'your-app-rc',

zip:'application-rc.zip'

},

stable:{

appId:'your-app-stable',

zip:'application-stable.zip'

}

}

});

Reboot the device (ffosreset)

You can reboot B2G with ffosreset. Note that this task does not have
targets or config options.

Usage:

$ grunt ffosreset

Output the log (ffoslog)

This will output the device's log (the content from adb logcat). This
task does not have targets or config options.