I recently released a little tool to help developing WebExtensions add-ons. It’s called weh (for WebExtensions Helper) and is available at https://github.com/mi-g/weh
To make it short, it’s a set of different things that you can use (or not) independently:
- a build system that maintains in live a ready-to-load directory distinct from your source code, modifying on the fly manifest.json and .html files:
- allow using typescript, coffeescript and/or JSX as an alternative to Javascript for both background and content
- allow using Sass (.scss), Less and/or Stylus as an alternative for CSS
- provide optional concatenation of scripts and stylesheets, and minification for scripts, styles and html
- initial pre-processing of any text file through EJS if desired
- a preference system that produces automatically the settings edition tab from a formal parameter definition including constraints
- a translation system that allows the user to modify any locale strings from the add-on in her profile
- a simplified method to communicate between the background and content scripts
- a separate add-on to debug other weh-based extensions (Chrome/Opera only as some APIs are missing in Firefox):
- monitor background/content messages (if messaging feature is used)
- read/write preferences
- read HTML5 and WebExtensions storage
- ability to generate a working skeleton add-on with ReactJS UI in one command
- tested successfully on Firefox, Chrome, Opera and Edge
Just wanted to share in case anyone is interested in using or contributing.