Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

sourcemint-platform-mozilla-addon-sdk

cadorn50.1.1

null

readme

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.