diff options
-rw-r--r-- | .vscode/tasks.json | 12 | ||||
-rwxr-xr-x | continuedev/install-dependencies.sh | 16 | ||||
-rwxr-xr-x | install-dependencies.sh | 18 |
3 files changed, 41 insertions, 5 deletions
diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 3b6b62e8..808b6d1f 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -49,10 +49,12 @@ "revealProblems": "onProblem", "clear": true, }, - "group": { - "kind": "build", - "isDefault": true - } - } + }, + // Install or update all dependencies for all projects in the monrepo + { + "label": "install-all-dependencies", + "type": "shell", + "command": "./install-dependencies.sh", + }, ] }
\ No newline at end of file diff --git a/continuedev/install-dependencies.sh b/continuedev/install-dependencies.sh new file mode 100755 index 00000000..8f1b5d27 --- /dev/null +++ b/continuedev/install-dependencies.sh @@ -0,0 +1,16 @@ + +#!/bin/bash + +# Check if Poetry is installed +if ! command -v poetry &> /dev/null +then + echo "Poetry not found, installing..." + curl -sSL https://install.python-poetry.org | python3 - +fi + +# Install or update dependencies & create .venv if it doesn't exist +echo "Installing dependencies..." +poetry install + +echo "Running type generation..." +poetry run typegen diff --git a/install-dependencies.sh b/install-dependencies.sh new file mode 100755 index 00000000..a913f971 --- /dev/null +++ b/install-dependencies.sh @@ -0,0 +1,18 @@ + +#!/bin/bash +# This is used in a task in .vscode/tasks.json +# Start developing with: +# - Run Task -> Install Dependencies +# - Debug -> Server + Extension + +# Server +echo "Installing server dependencies..." +pushd continuedev || exit +./install-dependencies.sh +popd || exit + +# VSCode Extension (will also package GUI) +echo "Installing VSCode extension dependencies..." +pushd extension || exit +# This does way too many things inline but is the common denominator between many of the scripts +npm run package
\ No newline at end of file |