2020-12-17 21:16:04 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
main() {
|
|
|
|
cd "$(dirname "$0")/../.."
|
|
|
|
|
2021-09-08 19:05:49 +00:00
|
|
|
echo 'Installing code-server test dependencies...'
|
|
|
|
|
2021-01-21 23:39:04 +00:00
|
|
|
cd test
|
2021-09-08 19:05:49 +00:00
|
|
|
yarn install
|
2021-01-21 23:39:04 +00:00
|
|
|
cd ..
|
|
|
|
|
2021-09-08 19:05:49 +00:00
|
|
|
cd vendor
|
|
|
|
echo 'Installing vendor dependencies...'
|
2020-12-17 21:16:04 +00:00
|
|
|
|
2021-09-08 19:05:49 +00:00
|
|
|
# Ignore scripts to prevent partial install which omits development dependencies.
|
|
|
|
yarn install --modules-folder modules --ignore-scripts
|
|
|
|
yarn run postinstall
|
2020-12-17 21:16:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
main "$@"
|