Skip to content

Commit

Permalink
chore: update dependencies, node, postcss
Browse files Browse the repository at this point in the history
  • Loading branch information
kernoeb committed May 1, 2022
1 parent f991490 commit 24514fa
Show file tree
Hide file tree
Showing 4 changed files with 1,131 additions and 953 deletions.
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
FROM node:16.14.2-alpine3.15 as builder
FROM node:16.15.0-alpine3.15 as build-tools
LABEL maintainer="kernoeb <[email protected]>"

RUN apk add --no-cache curl bash

# https://github.com/hadolint/hadolint/wiki/DL4006
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN npm install -g pnpm [email protected]

RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm
FROM build-tools as builder
LABEL maintainer="kernoeb <[email protected]>"

# https://github.com/duniul/clean-modules
RUN pnpm i -g [email protected]
# https://github.com/hadolint/hadolint/wiki/DL4006
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

WORKDIR /home/node/build
RUN chown -R node:node /home/node/build
Expand All @@ -25,7 +25,7 @@ COPY --chown=node:node . ./
RUN pnpm install -r --offline

# Nuxt.js build
RUN pnpm build -- --standalone
RUN pnpm build --standalone

# Now we remove the node_modules, as we only need production dependencies in the docker image
RUN rm -rf ./node_modules/
Expand All @@ -40,7 +40,7 @@ RUN ls node_modules/node-libcurl/lib/binding/
# Clean node_modules, one of the heaviest object in the universe
RUN clean-modules --yes --exclude "**/*.mustache"

FROM node:16.14.2-alpine3.15 as app
FROM node:16.15.0-alpine3.15 as app

RUN apk --no-cache add dumb-init curl bash

Expand Down
3 changes: 2 additions & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ export default {
}
}],
// https://github.com/moritzsternemann/vue-plausible
'vue-plausible'
'vue-plausible',
'@nuxt/postcss8'
],

// Modules (https://go.nuxtjs.dev/config-modules)
Expand Down
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@nuxtjs/moment": "^1.6.1",
"@nuxtjs/pwa": "^3.3.5",
"@nuxtjs/vuetify": "^1.12.3",
"axios": "^0.26.1",
"axios": "^0.27.2",
"bip39": "^3.0.4",
"body-parser": "^1.20.0",
"bree": "^7.2.0",
Expand All @@ -33,9 +33,9 @@
"connect-mongodb-session": "^3.1.1",
"cookie-parser": "^1.4.6",
"cookie-universal-nuxt": "^2.1.5",
"core-js": "^3.22.2",
"core-js": "^3.22.3",
"cors": "^2.8.5",
"express": "^4.17.3",
"express": "^4.18.1",
"express-session": "^1.17.2",
"jsdom": "^19.0.0",
"luxon": "^2.3.2",
Expand All @@ -56,20 +56,21 @@
"xml2js": "^0.4.23"
},
"devDependencies": {
"@babel/core": "^7.17.9",
"@babel/core": "^7.17.10",
"@babel/eslint-parser": "^7.17.0",
"@fullhuman/postcss-purgecss": "^3.1.3",
"@nuxt/postcss8": "^1.1.3",
"@nuxt/types": "~2.15.8",
"@nuxtjs/eslint-config": "^8.0.0",
"@nuxtjs/eslint-module": "^3.1.0",
"chai": "^4.3.6",
"css-byebye": "^3.1.0",
"css-byebye": "^3.1.1",
"eslint": "^8.14.0",
"eslint-plugin-nuxt": "^3.2.0",
"mocha": "^9.2.2",
"nodemon": "^2.0.15",
"nodemon": "^2.0.16",
"sass-loader": "10",
"supertest": "^6.2.2"
"supertest": "^6.2.3"
},
"engines": {
"node": "v16"
Expand Down
Loading

0 comments on commit 24514fa

Please sign in to comment.