web: revised package.json (#5612)
* FOUND: Revise the package.json file Reviewed the package.json file and separated out the dependencies from the devDependencies. Normally, this doesn't make a difference, but when deployed as libraries the devDependencies don't normally get considered by the deploying aplication. * FIX Undo overrides and work-arounds for bad upstream postgres build. * 5171: Fixed README to comply with Prettier rules. I'm pretty impressed that that worked. Good on Jens for having that in the prettier rules. * web: revised package.json Removed the migration and web/README.md file. The former should not have been included; the latter is currently unprofessional in tone. * fix docker build failing as we set NODE_ENV but need dev dependencies to build Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io> Co-authored-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
557aadecc0
commit
084b3eb039
|
@ -7,7 +7,7 @@ COPY ./SECURITY.md /work/
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
WORKDIR /work/website
|
WORKDIR /work/website
|
||||||
RUN npm ci && npm run build-docs-only
|
RUN npm ci --include=dev && npm run build-docs-only
|
||||||
|
|
||||||
# Stage 2: Build webui
|
# Stage 2: Build webui
|
||||||
FROM --platform=${BUILDPLATFORM} docker.io/node:20 as web-builder
|
FROM --platform=${BUILDPLATFORM} docker.io/node:20 as web-builder
|
||||||
|
@ -17,7 +17,7 @@ COPY ./website /work/website/
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
WORKDIR /work/web
|
WORKDIR /work/web
|
||||||
RUN npm ci && npm run build
|
RUN npm ci --include=dev && npm run build
|
||||||
|
|
||||||
# Stage 3: Poetry to requirements.txt export
|
# Stage 3: Poetry to requirements.txt export
|
||||||
FROM docker.io/python:3.11.3-slim-bullseye AS poetry-locker
|
FROM docker.io/python:3.11.3-slim-bullseye AS poetry-locker
|
||||||
|
|
|
@ -4,7 +4,8 @@ FROM --platform=${BUILDPLATFORM} docker.io/node:20 as web-builder
|
||||||
COPY ./web /static/
|
COPY ./web /static/
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
RUN cd /static && npm ci && npm run build-proxy
|
WORKDIR /static
|
||||||
|
RUN npm ci --include=dev && npm run build-proxy
|
||||||
|
|
||||||
# Stage 2: Build
|
# Stage 2: Build
|
||||||
FROM docker.io/golang:1.20.4-bullseye AS builder
|
FROM docker.io/golang:1.20.4-bullseye AS builder
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -16,11 +16,6 @@
|
||||||
"background-image": "npx @squoosh/cli -d src/assets/images --resize '{\"enabled\":true,\"width\":2560,\"method\":\"lanczos3\",\"fitMethod\":\"contain\",\"premultiply\":true,\"linearRGB\":true}' --mozjpeg '{\"quality\":75,\"baseline\":false,\"arithmetic\":false,\"progressive\":true,\"optimize_coding\":true,\"smoothing\":0,\"color_space\":3,\"quant_table\":3,\"trellis_multipass\":false,\"trellis_opt_zero\":false,\"trellis_opt_table\":false,\"trellis_loops\":1,\"auto_subsample\":true,\"chroma_subsample\":2,\"separate_chroma_quality\":false,\"chroma_quality\":75}' src/assets/images/flow_background.jpg"
|
"background-image": "npx @squoosh/cli -d src/assets/images --resize '{\"enabled\":true,\"width\":2560,\"method\":\"lanczos3\",\"fitMethod\":\"contain\",\"premultiply\":true,\"linearRGB\":true}' --mozjpeg '{\"quality\":75,\"baseline\":false,\"arithmetic\":false,\"progressive\":true,\"optimize_coding\":true,\"smoothing\":0,\"color_space\":3,\"quant_table\":3,\"trellis_multipass\":false,\"trellis_opt_zero\":false,\"trellis_opt_table\":false,\"trellis_loops\":1,\"auto_subsample\":true,\"chroma_subsample\":2,\"separate_chroma_quality\":false,\"chroma_quality\":75}' src/assets/images/flow_background.jpg"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.21.8",
|
|
||||||
"@babel/plugin-proposal-decorators": "^7.21.0",
|
|
||||||
"@babel/plugin-transform-runtime": "^7.21.4",
|
|
||||||
"@babel/preset-env": "^7.21.5",
|
|
||||||
"@babel/preset-typescript": "^7.21.5",
|
|
||||||
"@codemirror/lang-html": "^6.4.3",
|
"@codemirror/lang-html": "^6.4.3",
|
||||||
"@codemirror/lang-javascript": "^6.1.8",
|
"@codemirror/lang-javascript": "^6.1.8",
|
||||||
"@codemirror/lang-python": "^6.1.2",
|
"@codemirror/lang-python": "^6.1.2",
|
||||||
|
@ -28,33 +23,17 @@
|
||||||
"@codemirror/legacy-modes": "^6.3.2",
|
"@codemirror/legacy-modes": "^6.3.2",
|
||||||
"@codemirror/theme-one-dark": "^6.1.2",
|
"@codemirror/theme-one-dark": "^6.1.2",
|
||||||
"@formatjs/intl-listformat": "^7.2.2",
|
"@formatjs/intl-listformat": "^7.2.2",
|
||||||
|
"@goauthentik/api": "^2023.4.1-1683668555",
|
||||||
"@fortawesome/fontawesome-free": "^6.4.0",
|
"@fortawesome/fontawesome-free": "^6.4.0",
|
||||||
"@goauthentik/api": "^2023.4.1-1683802980",
|
|
||||||
"@hcaptcha/types": "^1.0.3",
|
|
||||||
"@jackfranklin/rollup-plugin-markdown": "^0.4.0",
|
|
||||||
"@lingui/cli": "^4.0.0",
|
"@lingui/cli": "^4.0.0",
|
||||||
"@lingui/core": "^4.0.0",
|
"@lingui/core": "^4.0.0",
|
||||||
"@lingui/detect-locale": "^4.0.0",
|
"@lingui/detect-locale": "^4.0.0",
|
||||||
"@lingui/format-po-gettext": "^4.0.0",
|
"@lingui/format-po-gettext": "^4.0.0",
|
||||||
"@lingui/macro": "^4.0.0",
|
"@lingui/macro": "^4.0.0",
|
||||||
"@patternfly/patternfly": "^4.224.2",
|
"@patternfly/patternfly": "^4.224.2",
|
||||||
"@rollup/plugin-babel": "^6.0.3",
|
|
||||||
"@rollup/plugin-commonjs": "^25.0.0",
|
|
||||||
"@rollup/plugin-node-resolve": "^15.0.2",
|
|
||||||
"@rollup/plugin-replace": "^5.0.2",
|
|
||||||
"@rollup/plugin-typescript": "^11.1.1",
|
|
||||||
"@sentry/browser": "^7.51.2",
|
"@sentry/browser": "^7.51.2",
|
||||||
"@sentry/tracing": "^7.51.2",
|
"@sentry/tracing": "^7.51.2",
|
||||||
"@squoosh/cli": "^0.7.3",
|
|
||||||
"@trivago/prettier-plugin-sort-imports": "^4.1.1",
|
|
||||||
"@types/chart.js": "^2.9.37",
|
|
||||||
"@types/codemirror": "5.60.7",
|
|
||||||
"@types/grecaptcha": "^3.0.4",
|
|
||||||
"@typescript-eslint/eslint-plugin": "^5.59.5",
|
|
||||||
"@typescript-eslint/parser": "^5.59.5",
|
|
||||||
"@webcomponents/webcomponentsjs": "^2.8.0",
|
"@webcomponents/webcomponentsjs": "^2.8.0",
|
||||||
"babel-plugin-macros": "^3.1.0",
|
|
||||||
"babel-plugin-tsconfig-paths": "^1.0.3",
|
|
||||||
"base64-js": "^1.5.1",
|
"base64-js": "^1.5.1",
|
||||||
"chart.js": "^4.3.0",
|
"chart.js": "^4.3.0",
|
||||||
"chartjs-adapter-moment": "^1.0.1",
|
"chartjs-adapter-moment": "^1.0.1",
|
||||||
|
@ -62,17 +41,41 @@
|
||||||
"construct-style-sheets-polyfill": "^3.1.0",
|
"construct-style-sheets-polyfill": "^3.1.0",
|
||||||
"core-js": "^3.30.2",
|
"core-js": "^3.30.2",
|
||||||
"country-flag-icons": "^1.5.7",
|
"country-flag-icons": "^1.5.7",
|
||||||
|
"fuse.js": "^6.6.2",
|
||||||
|
"lit": "^2.7.4",
|
||||||
|
"mermaid": "^10.1.0",
|
||||||
|
"rapidoc": "^9.3.4",
|
||||||
|
"webcomponent-qr-code": "^1.1.1",
|
||||||
|
"yaml": "^2.2.2"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@babel/core": "^7.21.8",
|
||||||
|
"@babel/plugin-proposal-decorators": "^7.21.0",
|
||||||
|
"@babel/plugin-transform-runtime": "^7.21.4",
|
||||||
|
"@babel/preset-env": "^7.21.5",
|
||||||
|
"@babel/preset-typescript": "^7.21.5",
|
||||||
|
"@hcaptcha/types": "^1.0.3",
|
||||||
|
"@jackfranklin/rollup-plugin-markdown": "^0.4.0",
|
||||||
|
"@rollup/plugin-babel": "^6.0.3",
|
||||||
|
"@rollup/plugin-commonjs": "^25.0.0",
|
||||||
|
"@rollup/plugin-node-resolve": "^15.0.2",
|
||||||
|
"@rollup/plugin-replace": "^5.0.2",
|
||||||
|
"@rollup/plugin-typescript": "^11.1.1",
|
||||||
|
"@squoosh/cli": "^0.7.3",
|
||||||
|
"@trivago/prettier-plugin-sort-imports": "^4.1.1",
|
||||||
|
"@types/chart.js": "^2.9.37",
|
||||||
|
"@types/codemirror": "5.60.7",
|
||||||
|
"@types/grecaptcha": "^3.0.4",
|
||||||
|
"@typescript-eslint/eslint-plugin": "^5.59.5",
|
||||||
|
"@typescript-eslint/parser": "^5.59.5",
|
||||||
|
"babel-plugin-macros": "^3.1.0",
|
||||||
|
"babel-plugin-tsconfig-paths": "^1.0.3",
|
||||||
"eslint": "^8.40.0",
|
"eslint": "^8.40.0",
|
||||||
"eslint-config-google": "^0.14.0",
|
"eslint-config-google": "^0.14.0",
|
||||||
"eslint-plugin-custom-elements": "0.0.8",
|
"eslint-plugin-custom-elements": "0.0.8",
|
||||||
"eslint-plugin-lit": "^1.8.3",
|
"eslint-plugin-lit": "^1.8.3",
|
||||||
"fuse.js": "^6.6.2",
|
|
||||||
"lit": "^2.7.4",
|
|
||||||
"mermaid": "^10.1.0",
|
|
||||||
"moment": "^2.29.4",
|
|
||||||
"prettier": "^2.8.8",
|
"prettier": "^2.8.8",
|
||||||
"pyright": "^1.1.308",
|
"pyright": "^1.1.308",
|
||||||
"rapidoc": "^9.3.4",
|
|
||||||
"rollup": "^2.79.1",
|
"rollup": "^2.79.1",
|
||||||
"rollup-plugin-copy": "^3.4.0",
|
"rollup-plugin-copy": "^3.4.0",
|
||||||
"rollup-plugin-cssimport": "^1.0.3",
|
"rollup-plugin-cssimport": "^1.0.3",
|
||||||
|
@ -81,8 +84,6 @@
|
||||||
"ts-lit-plugin": "^1.2.1",
|
"ts-lit-plugin": "^1.2.1",
|
||||||
"tslib": "^2.5.0",
|
"tslib": "^2.5.0",
|
||||||
"turnstile-types": "^1.1.2",
|
"turnstile-types": "^1.1.2",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.0.4"
|
||||||
"webcomponent-qr-code": "^1.1.1",
|
|
||||||
"yaml": "^2.2.2"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue