sourcemint-platform-mozilla-addon-sdk

0.1.1 • Public • Published

Sourcemint Mozilla Add-on SDK Platform

Status: ALPHA

Everything needed to use the Sourcemint Ecosystem (including the Sourcemint JavaScript Loader) with the Mozilla Add-on SDK.

Usage

Install

git clone git://github.com/sourcemint/platform-mozilla-addon-sdk.git sourcemint-platform-mozilla-addon-sdk
cd sourcemint-platform-mozilla-addon-sdk
git submodule update --init --recursive
npm install
npm test

Activate add-on SDK:

cd ./support/mozilla-addon-sdk
source bin/activate
cd ../..

Examples

Run all examples with:

npm test

Look for how individual examples can be run in the test output.

In your own Add-on

Link ./extension into the packages/ directory of your extension and add dependency to package.json:

{
    "dependencies": "sourcemint-platform-mozilla-addon-sdk"
}

See here for more information.

Boot a program in a sandbox:

var LOADER = require("sourcemint-platform-mozilla-addon-sdk/loader");

LOADER.sandbox(uri, function(sandbox)
{
    sandbox.main();
});

More examples and documentation will be available in time.

/sourcemint-platform-mozilla-addon-sdk/

    Package Sidebar

    Install

    npm i sourcemint-platform-mozilla-addon-sdk

    Weekly Downloads

    1

    Version

    0.1.1

    License

    none

    Last publish

    Collaborators

    • cadorn