sourcegraph/client
Ólafur Páll Geirsson 7fc0120a59
Packages: add RubyGems support (#42817)
* Packages: add RubyGems support

* Add metadata.gz file to the generated directory

This makes it easier to write auto-inference rules against Ruby gems.

* Fix CI errors

* Add back empty go.mod file
2022-10-17 09:48:18 +02:00
..
branded Revert search result component changes (#42965) 2022-10-14 08:57:15 +02:00
browser [SG-42488] Upgrade socket.io to fix the security vulnerability (#42916) 2022-10-14 08:41:28 +01:00
build-config codeintel: add UI for setting auto-indexing inference script (#41517) 2022-10-10 14:21:27 +00:00
client-api [SG-39284] Upgrade yarn to the latest version (#39728) 2022-08-31 20:39:53 -07:00
codeintellify [SG-39797] Enable no-console ESLint rule (#40458) 2022-10-03 07:19:17 -07:00
common Fix bug in isSafari helper method (#42826) 2022-10-11 19:00:22 +02:00
eslint-plugin-wildcard Enable eslint-plugin-wildcard globally (#30830) 2022-03-02 21:19:54 +07:00
extension-api BExt: Update repo not found hover warning (#42509) 2022-10-06 17:45:06 +00:00
extension-api-types Inline sourcegraph/code-intel-extensions (#41128) 2022-09-08 07:32:28 +00:00
http-client [SG-41656] Migration from schema.ts type usage to graphql-operations - client/search, client/http-client (#42442) 2022-10-14 08:10:41 +01:00
jetbrains JetBrains: Specify auth headers (#42692) 2022-10-14 15:29:46 +02:00
observability-client [SG-39797] Enable no-console ESLint rule (#40458) 2022-10-03 07:19:17 -07:00
observability-server [SG-39797] Enable no-console ESLint rule (#40458) 2022-10-03 07:19:17 -07:00
search [SG-41656] Migration from schema.ts type usage to graphql-operations - client/search, client/http-client (#42442) 2022-10-14 08:10:41 +01:00
search-ui web: use generated Settings type (#42987) 2022-10-16 20:43:45 -07:00
shared web: use generated Settings type (#42987) 2022-10-16 20:43:45 -07:00
storybook [SG-39797] Enable no-console ESLint rule (#40458) 2022-10-03 07:19:17 -07:00
template-parser [SG-39284] Upgrade yarn to the latest version (#39728) 2022-08-31 20:39:53 -07:00
vscode vscode: do not override regex/structural pattern type on versions older than 3.43 (#43005) 2022-10-14 16:46:51 -05:00
web Packages: add RubyGems support (#42817) 2022-10-17 09:48:18 +02:00
wildcard Combobox: Support auto scrolling for combobox keyboard navigation (#42751) 2022-10-16 11:04:58 -03:00
README.md web: remove eslint-plugin-sourcegraph references (#35990) 2022-05-25 04:06:56 +00:00

Frontend packages

List

  • web: The web application deployed to http://sourcegraph.com/
  • browser: The Sourcegraph browser extension adds tooltips to code on different code hosts.
  • vscode: The Sourcegraph VS Code extension.
  • extension-api: The Sourcegraph extension API types for the Sourcegraph extensions. Published as sourcegraph.
  • extension-api-types: The Sourcegraph extension API types for client applications that embed Sourcegraph extensions and need to communicate with them. Published as @sourcegraph/extension-api-types.
  • sandboxes: All demos-mvp (minimum viable product) for the Sourcegraph web application.
  • shared: Contains common TypeScript/React/SCSS client code shared between the browser extension and the web app. Everything in this package is code-host agnostic.
  • branded: Contains React components and implements the visual design language we use across our web app and e.g. in the options menu of the browser extension. Over time, components from shared and branded packages should be moved into the wildcard package.
  • wildcard: Package that encapsulates storybook configuration and contains our Wildcard design system components. If we're using a component in two or more different areas (e.g. web-app and browser-extension) then it should live in the wildcard package. Otherwise the components should be better colocated with the code where they're actually used.
  • search: Search-related code that may be shared between all clients, both branded (e.g. web, VS Code extension) and unbranded (e.g. browser extension)
  • search-ui: Search UI components with branded styling that are shared between clients. For example, the <SearchBox> component that is used in both the web application and VS Code extension.
  • storybook: Storybook configuration.

Further migration plan

  1. Fix circular dependency in TS project-references graph wildcard package should not rely on web and probably shared, branded too. Ideally it should be an independent self-contained package.

  2. Decide on package naming and update existing package names. Especially it should be done for a shared package because we have multiple shared folders inside of other packages. It's hard to understand from where dependency is coming from and it's not possible to refactor import paths using find-and-replace.

  3. Investigate if we can painlessly switch to npm workspaces.

  4. Content of packages shared and branded should be moved to wildcard and refactored using the latest FE rules and conventions. Having different packages clearly communicates the migration plan. Developers first should look for components in the wildcard package and then fall-back to legacy packages if wildcard doesn't have the solution to their problem yet.

  5. shared contains utility functions, types, polyfills, etc which is not a part of the Wildcard component library. These modules should be moved into utils package and other new packages: e.g. api for GraphQL client and type generators, etc.

  6. Packages should use package name (e.g. @sourcegraph/wildcard) for imports instead of the relative paths (e.g. ../../../../wildcard/src/components/Markdown) to avoid long relative-paths and make dependency graph between packages clear. (Typescript will warn if packages have circular dependencies). It's easy to refactor such isolated packages, extract functionality into new ones, or even into new repositories.

  7. build or config package should be added later to encapsulate all the configurations reused between packages which will allow removing jest.config, babel.config from the root of the repo.