Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
feat: migrate to yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
kclejeune committed Oct 29, 2021
1 parent f109b63 commit 5b434fd
Show file tree
Hide file tree
Showing 10 changed files with 5,318 additions and 3,066 deletions.
11 changes: 10 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
/*
!/*.json
!/*.lock
!.yarnrc.yml
!/*.config.cjs
!/*.config.js
!/src
!/static
!/static
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,10 @@ node_modules
/build
/.svelte-kit
/package
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
363 changes: 363 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Large diffs are not rendered by default.

768 changes: 768 additions & 0 deletions .yarn/releases/yarn-3.1.0.cjs

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"

yarnPath: .yarn/releases/yarn-3.1.0.cjs
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:lts-alpine AS build
WORKDIR /app
COPY package*.json .
RUN npm ci --no-audit
COPY package.json yarn.lock .yarnrc.yml .
COPY .yarn/ .yarn/
RUN yarn install --immutable --check-cache

COPY . .
RUN npm run build
RUN npm ci --production --no-audit
RUN yarn build && yarn workspaces focus --all --production

FROM node:lts-alpine AS deploy
WORKDIR /app
Expand All @@ -15,4 +15,4 @@ COPY --from=build /app/svelte.config.js .
COPY --from=build /app/package.json .

ENV PORT=3000
CMD [ "node", "./build" ]
CMD [ "node", "./build" ]
Loading

0 comments on commit 5b434fd

Please sign in to comment.