mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 09:23:52 -05:00
15 lines
442 B
Bash
Executable File
15 lines
442 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eo pipefail
|
|
|
|
# when in a VS Code or GitHub Codespaces devcontainer
|
|
if [ -n "${REMOTE_CONTAINERS}" ] || [ -n "${CODESPACES}" ]; then
|
|
this_dir=$(cd -P -- "$(dirname -- "$(command -v -- "$0")")" && pwd -P)
|
|
workspace_root=$(realpath ${this_dir}/..)
|
|
|
|
# perform additional one-time setup just after
|
|
# the devcontainer is created
|
|
npm install --prefix "${workspace_root}" # install node dependencies
|
|
|
|
fi
|