chore: update Dockerfile and devcontainer configuration to include NX version and enhance VSCode settings

This commit is contained in:
Denys Vuika
2026-07-07 15:02:30 +00:00
parent dd0905da28
commit 720b2320c5
2 changed files with 29 additions and 4 deletions
+9 -1
View File
@@ -2,7 +2,15 @@ ARG VARIANT=24-bookworm
FROM mcr.microsoft.com/devcontainers/javascript-node:${VARIANT}
ARG PNPM_VERSION=11.5.0
ARG NX_VERSION=22.7.4
ENV PNPM_HOME=/home/node/.local/share/pnpm
ENV PNPM_GLOBAL_BIN=/home/node/.local/share/pnpm/bin
ENV PATH=${PNPM_HOME}:${PNPM_GLOBAL_BIN}:${PATH}
# Configure Corepack-managed pnpm globally at image build time.
RUN corepack enable \
&& corepack prepare pnpm@${PNPM_VERSION} --activate
&& corepack prepare pnpm@${PNPM_VERSION} --activate \
&& mkdir -p ${PNPM_HOME} ${PNPM_GLOBAL_BIN} \
&& chown -R node:node /home/node/.local \
&& su node -c "pnpm config set global-bin-dir ${PNPM_GLOBAL_BIN} && pnpm add --global nx@${NX_VERSION}"
+20 -3
View File
@@ -8,7 +8,8 @@
"context": "..",
"args": {
"VARIANT": "24-bookworm",
"PNPM_VERSION": "11.5.0"
"PNPM_VERSION": "11.5.0",
"NX_VERSION": "22.7.4"
}
},
@@ -22,8 +23,24 @@
"customizations": {
"vscode": {
"settings": {},
"extensions": ["streetsidesoftware.code-spell-checker"]
"settings": {
"stylelint.enable": true,
"css.validate": false,
"scss.validate": false,
"stylelint.configFile": "${workspaceFolder}/.stylelintrc.json",
"stylelint.configBasedir": "${workspaceFolder}",
"stylelint.validate": ["css", "less", "postcss", "scss"],
"editor.guides.indentation": true
},
"extensions": [
"streetsidesoftware.code-spell-checker",
"dbaeumer.vscode-eslint",
"angular.ng-template",
"esbenp.prettier-vscode",
"nrwl.angular-console",
"editorconfig.editorconfig",
"stylelint.vscode-stylelint"
]
}
},