Chore: add Python requirements and prettier to devcontaier (#2878)

pull/2890/head
Florian Hye 3 months ago committed by GitHub
parent eda5b0f0cf
commit 187291eeca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -3,4 +3,10 @@ FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:${VARIANT}
RUN npm install -g pnpm RUN npm install -g pnpm
RUN apt-get update \
&& apt-get -y install --no-install-recommends \
python3-pip \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
ENV PATH="${PATH}:./node_modules/.bin" ENV PATH="${PATH}:./node_modules/.bin"

@ -3,8 +3,8 @@
"build": { "build": {
"dockerfile": "Dockerfile", "dockerfile": "Dockerfile",
"args": { "args": {
"VARIANT": "18-bullseye" "VARIANT": "18-bullseye",
} },
}, },
"customizations": { "customizations": {
"vscode": { "vscode": {
@ -12,16 +12,15 @@
"dbaeumer.vscode-eslint", "dbaeumer.vscode-eslint",
"mhutchie.git-graph", "mhutchie.git-graph",
"streetsidesoftware.code-spell-checker", "streetsidesoftware.code-spell-checker",
"esbenp.prettier-vscode",
], ],
"settings": { "settings": {
"eslint.format.enable": true, "eslint.format.enable": true,
"eslint.lintTask.enable": true, "eslint.lintTask.enable": true,
"eslint.packageManager": "pnpm" "eslint.packageManager": "pnpm",
} },
} },
}, },
"postCreateCommand": ".devcontainer/setup.sh", "postCreateCommand": ".devcontainer/setup.sh",
"forwardPorts": [ "forwardPorts": [3000],
3000
]
} }

@ -3,6 +3,8 @@
# Install Node packages # Install Node packages
pnpm install pnpm install
python3 -m pip install -r requirements.txt
# Copy in skeleton configuration if there is no existing configuration # Copy in skeleton configuration if there is no existing configuration
if [ ! -d "config/" ]; then if [ ! -d "config/" ]; then
echo "Adding skeleton config" echo "Adding skeleton config"

Loading…
Cancel
Save