Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-mozilla-addon-sdk

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-mozilla-addon-sdk

Download and Run Mozilla Addon SDK

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

grunt-mozilla-addon-sdk

Download and Run Mozilla Addon SDK

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-mozilla-addon-sdk --save-dev

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

grunt.loadNpmTasks('grunt-mozilla-addon-sdk');

The "mozilla-addon-sdk" tasks

Overview

In your project's Gruntfile, add a section named mozilla-addon-sdk to the data object passed into grunt.initConfig().

grunt.initConfig({
  "mozilla-addon-sdk": {
    download: {
      options: {
        revision: "firefox26"
      },
    }
    xpi: {
      options: {
        extension_dir: "ff_extension",
        dist_dir: "tmp/dist"
      }
    },
  },
})

Options

download.options.revision

Type: String Default value: 'master'

A string value that is used as the Mozilla Addon SDK revision to download and use to build addon xpi.

xpi.options.extension_dir

Type: String Default value: null

A string value that is used as the path which contains the addon extension to build.

xpi.options.dist_dir

Type: String Default value: null

A string value that is used as the path where the generated addon xpi should be moved.

Usage Examples

Download and unpack Mozilla Addon SDK:
$ grunt mozilla-addon-sdk:download
Running "mozilla-addon-sdk:download" (mozilla-addon-sdk) task
Downloading: https://github.com/mozilla/addon-sdk/archive/master.tar.gz

Done, without errors.
Generate addon XPI
$ grunt mozilla-addon-sdk:xpi
Running "mozilla-addon-sdk:xpi" (mozilla-addon-sdk) task
Creating dist dir '/home/rpl/PROJECTS/MOZILLA/grunt-mozilla-addon-sdk/tmp/dist'...
Creating xpi...

Done, without errors.

Release History

  • 0.1.0 - initial release (download and xpi sub-tasks)

Keywords

FAQs

Package last updated on 14 Sep 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc