Frontend contribution guidelines
To work on most frontend issues, it is necessary to run three applications locally:
- The web app in the client/web directory.
- Storybook (client/storybook)
- The browser extension (client/browser)
- Clone the repo:
git clone https://github.com/sourcegraph/sourcegraph/.
- Make sure your node environment is running version
- Go through the local development section here.
CI checks to run locally
# Generate Typescript types yarn generate # Verify Typescript build yarn build-ts
sh yarn lint:js:all yarn lint:css:all yarn lint:graphql yarn format:check
# Run unit tests yarn test
# Prepare web application for integration tests ENTERPRISE=1 DISABLE_TYPECHECKING=true yarn run build-web # Run integration tests yarn test-integration
Relevant development docs
Getting applications up and running
- Developing the Sourcegraph web app
- Table of contents related to the web app
- Configuring backend services locally is not required for most frontend issues. However, a guide on how to do this can be found here.