Archived
1
0

Add vscode via vendor package.

- Use yarn for vscode vendoring.
- Grab hash from package.
This commit is contained in:
Teffen Ellis
2021-09-08 15:05:49 -04:00
committed by Teffen Ellis
parent 28ba59ab3c
commit f885b29675
32 changed files with 1544 additions and 251 deletions

View File

@ -3,17 +3,28 @@ set -euo pipefail
main() {
cd "$(dirname "$0")/../.."
source ./ci/lib.sh
# This installs the dependencies needed for testing
echo 'Installing code-server test dependencies...'
cd test
yarn
yarn install
cd ..
cd lib/vscode
yarn ${CI+--frozen-lockfile}
cd vendor
echo 'Installing vendor dependencies...'
symlink_asar
# * We install in 'modules' instead of 'node_modules' because VS Code's extensions
# use a webpack config which cannot differentiate between its own node_modules
# and itself being in a directory with the same name.
#
# * We ignore scripts because NPM/Yarn's default behavior is to assume that
# devDependencies are not needed, and that even git repo based packages are
# assumed to be compiled. Because the default behavior for VS Code's `postinstall`
# assumes we're also compiled, this needs to be ignored.
yarn install --modules-folder modules --ignore-scripts --frozen-lockfile
# Finally, run the vendor `postinstall`
yarn run postinstall
}
main "$@"