0.1.1 • Published 12 years ago

sourcemint-platform-mozilla-addon-sdk v0.1.1

Weekly downloads
5
License
-
Repository
-
Last release
12 years ago

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.