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.
- Copyright: 2012 Christoph Dorn
- Code License: MIT License
- Docs License: Creative Commons Attribution-NonCommercial-ShareAlike 3.0
- Sponsor: Sourcemint
- Mailing list: groups.google.com/group/sourcemint
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 testActivate add-on SDK:
cd ./support/mozilla-addon-sdk
source bin/activate
cd ../..Examples
Run all examples with:
npm testLook 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.