build(deps): remove refactor nodejs dependencies

Separate dev dependencies like prettier to prevent them from being
installed to build the site, unnecessarily.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2024-02-01 09:41:46 +01:00
parent a1102d1a35
commit 6aced2fc9d
4 changed files with 72 additions and 361 deletions

View File

@ -9,7 +9,8 @@ RUN apk --update add nodejs npm git gcompat
FROM base as node
COPY package*.json .
RUN npm install && npm cache clean --force
ENV NODE_ENV=production
RUN npm install
FROM base as hugo
ARG HUGO_VERSION=0.122.0

View File

@ -3,6 +3,7 @@ publish = "public"
[context.deploy-preview.environment]
NODE_VERSION = "20"
NODE_ENV = "production"
HUGO_VERSION = "0.122.0"
HUGO_ENABLEGITINFO = "true"
HUGO_ENVIRONMENT = "preview"

419
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -13,7 +13,7 @@
"url": "https://github.com/docker/docs/issues"
},
"homepage": "https://docs.docker.com/",
"devDependencies": {
"dependencies": {
"@alpinejs/collapse": "^3.11.1",
"@docsearch/js": "^3.5.2",
"@material-symbols/svg-400": "^0.14.6",
@ -21,13 +21,15 @@
"@tailwindcss/typography": "^0.5.8",
"alpinejs": "^3.12.3",
"autoprefixer": "^10.4.14",
"markdownlint": "^0.27.0",
"mermaid": "^10.3.1",
"postcss": "^8.4.19",
"postcss-cli": "^10.1.0",
"postcss-import": "^15.1.0",
"prettier": "^3.0.0",
"prettier-plugin-tailwindcss": "^0.5.3",
"tailwindcss": "^3.2.4"
},
"devDependencies": {
"markdownlint": "^0.27.0",
"prettier": "^3.0.0",
"prettier-plugin-tailwindcss": "^0.5.3"
}
}