WebExtension Experiment Utils
June 25, 2018 ยท View on GitHub
Tools for rapid development of WebExtension Experiments based on a schema.json API definition.
- generateStubApi - generates a stub api.js based on
schema.json - documentSchema - generates documentation in Markdown based on
schema.json - verifyWeeSchema - verifies that
schema.jsonis a valid WebExtension Experiments schema
For a usage example, see the npm run generate command in ./package.json and the example files in ./example/.
Installation
npm install --save-dev motin/webext-experiment-utils#develop
Hints
- Put all the privileged code of your add-on in
src/privilegedas a best practice - The 'Firefox privileged' modules cannot use WebExtension apis (
browserAction,management, etc.). Use abackground.jsscript (using messages and events) to co-ordinate multiple privileged modules.