sourcegraph/client/browser/assets
Valery Bugakov 59ce236cca
bazel: Bazel build browser extension + code-intel-extensions (#51135)
1. Adds `//client/browser:bundle` for the browser extension build.
2. Adds `//client/browser:code-intel-extensions` for the inlined code
extension logic.
3. Adds `//client/browser:integration-assets` for the browser extension
integration assets which should be added to each sourcegraph image.
4. Adds `client/browser/config/webpack/base.config.bazel.ts` in the same
way we do it for the web application — duplicated webpack config
specifically for Bazel with the idea to delete non-Bazel one later.
5. Restructures browser extension `config` folder to make it
Bazel-friendly.
6. Instead of
[sourcegraph-extension-bundles-revision.txt](https://github.com/sourcegraph/sourcegraph/pull/51135/files#diff-eed06bee70ccc222acfa612bdcd09a2417f01072da91b3de1a76611b2ef44d53)
we now use function arguments for revision numbers.
7. Adds browser integration assets target to UI assets.

## Test plan

1. CI
2. `bazel build //client/browser:bundle`
3. `bazel build //client/browser:integration-asssets`
4. `bazel build //ui/assets/oss:copy_bundle`
5. `bazel build //ui/assets/enterprise:copy_bundle`
2023-05-02 03:33:52 -07:00
..
img bazel: Bazel build browser extension + code-intel-extensions (#51135) 2023-05-02 03:33:52 -07:00
BUILD.bazel bazel: Bazel build browser extension + code-intel-extensions (#51135) 2023-05-02 03:33:52 -07:00