github-contribution-color-graph icon indicating copy to clipboard operation
github-contribution-color-graph copied to clipboard

replace grunt with web-ext

Open shinenelson opened this issue 4 years ago • 0 comments

web-ext is a tool that is designed specifically for the development of web extensions. It provides functionality like auto-loading the web extension in the browser and watching the source file for changes and automatically reloading the web extension in the browser.

This supersedes the dependency on grunt because grunt cannot handle the automatic loading of the web-extension into the browser. And that is obviously because grunt is a generic tool.

When there is a tool that is designed specifically for the purpose of development of web extensions that provides better functionality, we should migrate to it.

web-ext has additional features that can be utilized, but I was only targeting existing feature-parity.

For example, it has an option where the path to a browser binary can be provided and the tool will attempt to open the web extension with that binary. This could be useful when one wants to test on other chromium-based browsers like Opera, Edge Chromium, Brave, Vivaldi, etc. I think using the chromiumBinary option would probably work, but I have not tested it ( that is also why I have not changed the Opera and Edge Chromium sections in the CONTRIBUTING document )

shinenelson avatar Apr 14 '21 20:04 shinenelson