2020-04-30 14:52:54 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
|
2021-09-08 22:05:49 +03:00
|
|
|
# Builds vscode into vendor/modules/code-oss-dev/out-vscode.
|
2020-04-30 14:52:54 +03:00
|
|
|
|
|
|
|
# MINIFY controls whether a minified version of vscode is built.
|
|
|
|
MINIFY=${MINIFY-true}
|
|
|
|
|
|
|
|
main() {
|
|
|
|
cd "$(dirname "${0}")/../.."
|
2021-09-08 22:05:49 +03:00
|
|
|
|
|
|
|
cd vendor/modules/code-oss-dev
|
2020-04-30 14:52:54 +03:00
|
|
|
|
2021-10-28 23:27:17 +03:00
|
|
|
# extensions-ci compiles extensions and includes their media.
|
|
|
|
# compile-web compiles web extensions. TODO: Unsure if used.
|
|
|
|
yarn gulp extensions-ci compile-web "vscode-server${MINIFY:+-min}"
|
2020-04-30 14:52:54 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
main "$@"
|