Skip to content

Commit

Permalink
Update dependencies (#14)
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
lukeg90 authored Nov 2, 2023
1 parent 0b39749 commit bffaac3
Show file tree
Hide file tree
Showing 6 changed files with 8,558 additions and 5,698 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
cache: 'yarn'

- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn install --immutable

- name: Run linter
run: yarn lint
Expand Down
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,11 @@
/.parcel-cache
/coverage
/.vscode

.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
enableGlobalCache: true

nodeLinker: node-modules
15 changes: 9 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
FROM node:18.12.1-alpine AS base
FROM node:20.9.0-alpine AS base

WORKDIR /app

# identify package manager
RUN corepack enable

FROM base AS builder

# one of dependencies uses node-gyp which requires build tools
RUN apk add --update --no-cache python3 g++ make && ln -sf python3 /usr/bin/python

# install build dependencies
# @parcel/css-linux-x64-musl is not optional but marked so
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile --ignore-optional && yarn add --ignore-optional --dev @parcel/css-linux-x64-musl && yarn cache clean --all
COPY package.json yarn.lock .yarnrc.yml ./
RUN yarn install --immutable && yarn add --dev @parcel/css-linux-x64-musl && yarn cache clean --all

# get the sources and build the app
COPY src ./src
Expand All @@ -24,12 +27,12 @@ ENV PORT 3000
ENV NODE_ENV production

# get the dependencies and sources
COPY package.json yarn.lock .env ./
COPY package.json yarn.lock .yarnrc.yml .env ./
# install the production dependencies only (depends on NODE_ENV)
RUN yarn install --frozen-lockfile --ignore-optional && yarn cache clean --all
RUN yarn install --immutable && yarn cache clean --all

# carry over the built code
COPY --from=builder /app/dist dist

EXPOSE 3000
ENTRYPOINT yarn did-configuration && yarn --silent start
ENTRYPOINT yarn did-configuration && yarn start
41 changes: 21 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,37 +25,37 @@
"body-parser": "^1.20.2",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"http-status-codes": "^2.2.0",
"ky": "^0.33.3",
"http-status-codes": "^2.3.0",
"ky": "^1.1.3",
"node-cache": "^5.1.2",
"pino": "^8.15.0",
"pino-pretty": "^10.2.0",
"pino": "^8.16.1",
"pino-pretty": "^10.2.3",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/body-parser": "^1.19.2",
"@types/express": "^4.17.17",
"@types/node": "^20.5.3",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.4.1",
"@typescript-eslint/parser": "^6.4.1",
"eslint": "^8.47.0",
"@types/body-parser": "^1.19.4",
"@types/express": "^4.17.20",
"@types/node": "^20.8.10",
"@types/react": "^18.2.34",
"@types/react-dom": "^18.2.14",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"eslint": "^8.52.0",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-typescript": "^3.6.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-prettier": "^5.0.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"parcel": "^2.7.0",
"postcss": "^8.4.28",
"prettier": "^3.0.2",
"postcss": "^8.4.31",
"prettier": "^3.0.3",
"process": "^0.11.10",
"stylelint": "^15.10.3",
"stylelint": "^15.11.0",
"stylelint-config-standard": "^34.0.0",
"supervisor": "^0.12.0",
"typescript": "^5.1.6"
"typescript": "^5.2.2"
},
"targets": {
"frontend": {
Expand All @@ -76,5 +76,6 @@
"distDir": "dist/backend",
"outputFormat": "esmodule"
}
}
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit bffaac3

Please sign in to comment.