grunt-firefoxos

0.1.2 • Public • Published

grunt-firefoxos

Firefox OS tasks for Grunt.

You may also be interested in generator-firefoxos, a Firefox OS app generator for Yeoman.

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.

Usage:

$ grunt ffoslog

Release History

  • 26-June-2013: First version.

Readme

Keywords

Package Sidebar

Install

npm i grunt-firefoxos

Weekly Downloads

2

Version

0.1.2

License

none

Last publish

Collaborators

  • ladybenko