2020-04-30 13:52:54 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
|
2021-09-08 21:05:49 +02:00
|
|
|
# Builds vscode into vendor/modules/code-oss-dev/out-vscode.
|
2020-04-30 13:52:54 +02:00
|
|
|
|
|
|
|
# MINIFY controls whether a minified version of vscode is built.
|
|
|
|
MINIFY=${MINIFY-true}
|
|
|
|
|
|
|
|
main() {
|
|
|
|
cd "$(dirname "${0}")/../.."
|
2021-09-08 21:05:49 +02:00
|
|
|
|
|
|
|
cd vendor/modules/code-oss-dev
|
2020-04-30 13:52:54 +02:00
|
|
|
|
2021-09-30 05:14:56 +02:00
|
|
|
yarn gulp compile-build compile-extensions-build compile-extension-media compile-web
|
|
|
|
|
2020-04-30 13:52:54 +02:00
|
|
|
yarn gulp optimize --gulpfile ./coder.js
|
2021-09-30 05:14:56 +02:00
|
|
|
|
2020-04-30 13:52:54 +02:00
|
|
|
if [[ $MINIFY ]]; then
|
|
|
|
yarn gulp minify --gulpfile ./coder.js
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
main "$@"
|