Add script to produce source code zip of browser extension
Created by: marekweb
Background
For publishing our extensions, we need to provide source code for review. The Firefox add-on registry requires this before publishing. An outline of these requirements is described in #12918 (closed)
Until now the process of producing a source code zip was manual.
Implementation
This introduces a script: yarn run create-source-zip
which produces sourcegraph.zip
as an output.
The script's configuration specifies the particular commit of sourcegraph/sourcegraph
to use, which is fetched from the repository.
By default the script also fetches and includes sourcegraph/code-intel-extensions
for bundling in the Firefox build.
Related issues
Closes #12918 (closed) because this PR implements most of the scope of that issue.
The only remaining scope is automating this process in CI, which has been previously filed under #11370.