From 9b3c169e3b1fef6c51d9c8bfe6fabf362fbed26c Mon Sep 17 00:00:00 2001 From: victorjourne Date: Tue, 13 Feb 2024 16:24:20 +0100 Subject: [PATCH] WP: build frontend --- frontend/Dockerfile | 10 ++++----- frontend/package.json | 48 +++++++++++++++++++++---------------------- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index ad37e37..0e2913b 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -15,10 +15,10 @@ RUN npm install # ViewerJS ARG VIEWERJS_VERSION -RUN wget "https://viewerjs.org/releases/viewerjs-${VIEWERJS_VERSION}.zip" -RUN mkdir ViewerJS -RUN unzip viewerjs-${VIEWERJS_VERSION}.zip -RUN mv viewerjs-${VIEWERJS_VERSION}/* ViewerJS +# RUN wget "https://viewerjs.org/releases/viewerjs-${VIEWERJS_VERSION}.zip" +# RUN mkdir ViewerJS +# RUN unzip viewerjs-${VIEWERJS_VERSION}.zip +# RUN mv viewerjs-${VIEWERJS_VERSION}/* ViewerJS #DSFR (Design de l'Etat) RUN mkdir -p static/dsfr \ @@ -59,6 +59,6 @@ WORKDIR /app COPY --from=build --chown=node:node /app/__sapper__/build ./__sapper__/build COPY --from=build --chown=node:node /app/static ./static COPY --from=build --chown=node:node /app/node_modules ./node_modules -COPY --from=base --chown=node:node /app/ViewerJS ./ViewerJS +# COPY --from=base --chown=node:node /app/ViewerJS ./ViewerJS COPY --chown=node:node package.json . CMD ["node","__sapper__/build"] \ No newline at end of file diff --git a/frontend/package.json b/frontend/package.json index ec8a82d..ec77f38 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -13,38 +13,38 @@ "test": "run-p --race dev cy:run" }, "dependencies": { - "@gouvfr/dsfr": "^1.0.0", - "compression": "^1.7.1", - "marked": "^0.7.0", - "polka": "next", + "@gouvfr/dsfr": "1.10.2", + "compression": "1.7.4", + "marked": "0.7.0", + "polka": "1.0.0-next.24", + "rollup": "2.79.1", "simple-svelte-autocomplete": "1.2.4", - "sirv": "^0.4.0", - "svelte-tags-input": "^2.6.5", - "pdfjs-dist": "^4.0.3" + "svelte-paginate": "0.0.1", + "svelte-tags-input": "2.9.2" }, "devDependencies": { - "npm-run-all": "^4.1.5", - "sapper": "^0.27.0", - "svelte": "^3.32.3", - "@babel/core": "^7.0.0", - "@babel/plugin-syntax-dynamic-import": "^7.0.0", - "@babel/plugin-transform-runtime": "^7.0.0", - "@babel/preset-env": "^7.0.0", - "@babel/runtime": "^7.0.0", - "@rollup/plugin-babel": "^5.0.0", - "@rollup/plugin-commonjs": "^12.0.0", - "@rollup/plugin-node-resolve": "^8.0.0", - "@rollup/plugin-replace": "^2.2.0", - "rollup": "^2.3.4", - "rollup-plugin-svelte": "^5.0.1", - "rollup-plugin-terser": "^5.3.0", + "npm-run-all": "4.1.5", + "sapper": "0.27.16", + "svelte": "3.59.2", + "@babel/core": "7.23.5", + "@babel/plugin-syntax-dynamic-import": "7.0.0", + "@babel/plugin-transform-runtime": "7.23.4", + "@babel/preset-env": "7.23.5", + "@babel/runtime": "7.0.0", + "@rollup/plugin-babel": "5.3.1", + "@rollup/plugin-commonjs": "12.0.0", + "@rollup/plugin-node-resolve": "8.4.0", + "@rollup/plugin-replace": "2.4.2", + "rollup": "2.3.4", + "rollup-plugin-svelte": "5.2.3", + "rollup-plugin-terser": "5.3.1", "postcss": "8.0.3", "postcss-cli": "7.1.2", - "svelte-preprocess": "4.6.x", + "svelte-preprocess": "4.6.9", "tailwindcss": "1.8.10", "svelte-paginate": "0.0.1" }, "peerDependencies": { "postcss": "^8.0.0" } -} +} \ No newline at end of file