Consolidate code and conditional build #191
This massively re-organises the code around ES6 modules, to make it much simpler when built, so that:
* This just-about works on Firefox; need to do build environment variables next, and a lot of clean-up. It's a mess for any browser other than Firefox. Also the code that represents the entry points should be named appropriately (e.g. '_content.js'?) and all of the filenames need looking at. Finally, the names of exports should be looked at---should they be hardcoded, or default? * Updated tests to use rollup-generated test code (much simpler; very neat and easy :-)). * Had to disable linting the build/ dir afterwards (due to semicolons etc.); would like to re-enable that.
* Set open_at_install on the sidebar to false, so that the starting state is always known (need to use this approach until isOpen() is fixed to propogate user input blessedness for event handling). * Set minimum required Firefox version to 62 as required (partly addresses #190). * Use Firefox Developer Edition for testing (due to the requirement for Firefox 62). * Also open the Browser Console by default when using web-ext.
* Remove loadsa script inclusions from manifests. * Create cross-browser compatibility script and import. * Create cross-browser specialPages script and import. * Remove now-defo-unused code from build script. * Increase terser compress passes to two to avoid dangling strings.
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments.