Commit Graph

12 Commits

Author SHA1 Message Date
Quinn Slack
de613e92b6
use esbuild for client/web builds (#57365)
Use [esbuild](https://esbuild.github.io/) instead of Webpack for builds of `client/web`, for faster builds (dev and prod) and greater dev-prod parity. This PR completely removes all use of Webpack in this repository.

`client/web` is the last build target that still uses Webpack; all others have been recently migrated to esbuild. Most devs here have been using esbuild for local dev of `client/web` for the last 6-12 months anyway. The change here is that now our production builds will be built by esbuild.

All sg commands, integration/e2e tests, etc., continue to work as-is. The bundlesize report will take a while to stabilize because the new build products use different filenames.

## Benchmarks

Running `pnpm run generate && time pnpm -C client/web run task:gulp webBuild` and taking the `time` output from the last command:

- Webpack: 62.5s
- esbuild: 6.7s

Note: This understates esbuild's victory for 2 reasons: (1) because esbuild is building both the main and embed entrypoints, whereas Webpack only builds the main entrypoint in this benchmark) and (2) because a lot of it is in the fixed startup time of `gulp`; esbuild incremental rebuilds during local dev only take ~1s.

## Notes

We no longer use Babel to produce web builds (we use esbuild), so we don't need any Babel plugins that optimize the output or improve browser compatibility. Right now, Babel is only used by Jest (for tests) and by Bazel as an intermediate step.
2023-10-23 10:59:06 -07:00
Valery Bugakov
304acdb5da
web: migrate from yarn to pnpm (#46143)
Bazel's rules_js rely on the pnpm package manager. To simplify the integration, we're migrating to pnpm from our current package manager — yarn. Another reason to migrate is that pnpm is cool and fast. 😉
2023-01-11 19:50:09 -08:00
Chris Wendt
45efca5c47
symbols: Build in Docker (#34335) 2022-04-25 16:03:55 -06:00
davejrt
39ed379696
cleanup old vagrant tests (#29391)
* cleanup old vagrant tests

* add instructions to run e2e/qa locally
2022-01-04 11:19:37 -05:00
Valery Bugakov
179498b257
web: flatten frontend packages inside of the client folder (#19378)
* web: flattened frontend packages inside of the client folder

* web: please prettier 🙏

* web: reverted redundant changes

* web: reverted redundant whitespace changes

* Update client/README.md

Co-authored-by: Patrick Dubroy <patrick@sourcegraph.com>

* Update client/README.md

Co-authored-by: Patrick Dubroy <patrick@sourcegraph.com>

* Update client/README.md

Co-authored-by: Patrick Dubroy <patrick@sourcegraph.com>

* web: updated client/README

* Update client/README.md

Co-authored-by: Tom Ross <tom@umpox.com>

* web: changed licenses to Apache-2.0 for frontend packages

* web: reverted redudant change

* web: updated client/README

* web: added issue #

* web: added issue #

Co-authored-by: Patrick Dubroy <patrick@sourcegraph.com>
Co-authored-by: Tom Ross <tom@umpox.com>
2021-03-26 15:35:26 +08:00
Erik Seliger
c416e249b9
Use go embedded files for ui/assets and template packages (#19276)
This also led to some simplifications in the template code.

Co-authored-by: Keegan Carruthers-Smith keegan.csmith@gmail.com
2021-03-22 14:37:51 +01:00
Felix Becker
45f9839011
Move all client code into client/ folder (#14480) 2020-10-07 22:23:53 +02:00
Eric Fritz
81845676da
codeintel: Remove old typescript services (#10566) 2020-05-14 15:29:03 -05:00
Eric Fritz
bf8119e8d1
Rename lsif-server to precise-code-intel (#9376) 2020-03-31 15:59:13 -05:00
Eric Fritz
64d740c6bd
lsif-server: Reorganize project layout (#9375) 2020-03-27 12:57:00 -05:00
Stephen Gutekanst
c23f977b81
Remove the management console (#7197)
Remove the management console and merge all critical configuration automatically into the site configuration.

Instead of the management console, a file-based site configuration editing escape hatch is now available and is documented.

See [the added 3.11 migration notes](https://docs.sourcegraph.com/admin/migration/3_11) for details on the implications of this change, and ["editing your site configuration if you cannot access teh web UI"](https://docs.sourcegraph.com/admin/config/site_config#editing-your-site-configuration-if-you-cannot-access-the-web-ui) for how to use the new escape-hatch configuration file.

Fully-detailed proposal and motivations behind this change are documented in the PR description here: https://github.com/sourcegraph/sourcegraph/pull/7197

Associated PRs:

- https://github.com/sourcegraph/deploy-sourcegraph/pull/478
- https://github.com/sourcegraph/deploy-sourcegraph-docker/pull/54
2019-12-16 21:30:51 -07:00
Keegan Carruthers-Smith
6c34dfe018
server: Use Dockerfile and build script instead of godockerize (#1971)
This is a replacement which is using the same Dockerfile godockerize
generates, as well as the same build commands. It isn't that nice, but is a
good starting point for improving the Dockerfile.
2019-01-21 14:07:29 +02:00