This web extension adds a Dev Spaces
button on every GitHub repository page that starts a new workspace based on the current repository.
By default, the new workspace is created on the Eclipse Che® hosted by Red Hat instance.
Additional Dev Spaces (and upstream Eclipse Che®) instances can configured from the extension's options.
Chromium-based browsers | Safari | Firefox |
---|---|---|
Requires storage
permissions to leverage the Storage API to allow your options to be saved locally and synced across devices.
Requires scripting
permissions to allow the background script to inject the content script based on new conditions set by the user. More specifically, when setting new GitHub Enterprise instances from the extension options page, the extension needs scripting permissions to inject the "Dev Spaces" button on the user-provided GitHub Enterprise instances.
Access to your data on github.com
(and GitHub Enterprise domains if applicable). This is required to determine the factory url for the button, and for injecting the button element into the webpage.
The extension can be built for both Chromium based browsers and for Firefox/Safari. There are two builds because the two platforms have different manifest V3 definitions.
Download dependencies.
$ yarn
Run the build.
To build for Chromium-based browsers:
$ yarn build
To build for Safari:
$ yarn build:safari
To build for Firefox:
$ yarn build:firefox
Once complete, the built extension will be located in either dist/chromium
or dist/safari
or dist/firefox
.
For development, run yarn watch
, yarn watch:safari
, or yarn watch:firefox
to watch the source files to recompile on changes.
dist
folder into your web browser.
For instructions for different web browsers, refer to CONTRIBUTING.md.yarn build:prod
The built location is located in dist/chromium
.
# the built extension is located in dist/safari-firefox
yarn build:prod-safari
The built location is located in dist/safari-firefox
.
# the built extension is located in dist/firefox
yarn build:prod-firefox
The built location is located in dist/safari-firefox
.
Refer to CONTRIBUTING.md.
Run the following command to build and create a zip file required when uploading to the Chrome Web Store and the Firefox Add-on Marketplace.
The Chromium extension zip file will be generated under zip/chromium.zip
and the Firefox add-on zip will be generated under zip/firefox.zip
.
yarn build:zip
$ yarn test