mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 19:21:50 +00:00
Part of https://github.com/sourcegraph/sourcegraph/issues/62448 Linear issue [SRCH-573](https://linear.app/sourcegraph/issue/SRCH-573/integrate-cody-web-package-into-the-sourcegraph-ui) This is highly experimental usage of the new (not currently merged but published in NPM `cody-web-experimental`) package ## How to run it - (Optional) if you previously linked any local packages make sure they don't exist in your node_modules anymore, `rm -rf node_modules` in the root then `pnpm install` - Run standard `sg start web-standalone` - Turn on `newCodyWeb: true` in your `experimentalFeatures` ## How to run it locally with prototype PR in Cody repository - Open Cody repository on the `vk/integrate-cody-web-chat-2` branch - At the root of the repo, run `pnpm install` to make sure you're up to date with all of the dependencies. - Go to the web package (`cd web`) - Build it with `pnpm build` - Create a global link with `pnpm link --global` (Ignore the warning message about no binary) - Open sourcegraph/sourcegraph repository on this PR branch - Make sure you are in the root of the repo. - Run `pnpm link --global cody-web-experimental` - Run `sg start web-standalone` to bundle the web app and launch an instance that uses S2 for the backend. You'll need to create a login on S2 that is not federated by GitHub. - Turn on `newCodyWeb: true` in your `experimentalFeatures` - Have fun experimenting! ## Test plan - Check that old version of Cody has got no regressions |
||
|---|---|---|
| .. | ||
| src | ||
| .eslintignore | ||
| BUILD.bazel | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
Build config
Shared build configuration.