mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Migrate from yarn to bun
This commit is contained in:
parent
dc3aa20feb
commit
97fb5053c1
@ -69,7 +69,6 @@ services:
|
|||||||
dockerfile: Dockerfile.dev
|
dockerfile: Dockerfile.dev
|
||||||
volumes:
|
volumes:
|
||||||
- ./front:/app
|
- ./front:/app
|
||||||
- /app/.yarn
|
|
||||||
- /app/node_modules
|
- /app/node_modules
|
||||||
- /app/apps/mobile/node_modules
|
- /app/apps/mobile/node_modules
|
||||||
- /app/apps/web/.next/
|
- /app/apps/web/.next/
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
nodeLinker: node-modules
|
|
||||||
|
|
||||||
packageExtensions:
|
|
||||||
"@expo/cli@*":
|
|
||||||
dependencies:
|
|
||||||
expo-modules-autolinking: "*"
|
|
||||||
babel-preset-expo@*:
|
|
||||||
dependencies:
|
|
||||||
"@babel/core": "*"
|
|
||||||
expo-asset@*:
|
|
||||||
dependencies:
|
|
||||||
expo: "*"
|
|
||||||
react-native-codegen@*:
|
|
||||||
peerDependenciesMeta:
|
|
||||||
"@babel/preset-env":
|
|
||||||
optional: true
|
|
||||||
|
|
||||||
plugins:
|
|
||||||
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
|
|
||||||
spec: "@yarnpkg/plugin-workspace-tools"
|
|
||||||
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
|
|
||||||
spec: "@yarnpkg/plugin-interactive-tools"
|
|
||||||
|
|
||||||
yarnPath: .yarn/releases/yarn-3.2.4.cjs
|
|
@ -1,19 +1,17 @@
|
|||||||
FROM node:18-alpine AS builder
|
FROM node:18-alpine AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY .yarn ./.yarn
|
COPY package.json bun.lockb ./
|
||||||
COPY .yarnrc.yml ./
|
|
||||||
COPY package.json yarn.lock ./
|
|
||||||
COPY apps/web/package.json apps/web/package.json
|
COPY apps/web/package.json apps/web/package.json
|
||||||
COPY apps/mobile/package.json apps/mobile/package.json
|
COPY apps/mobile/package.json apps/mobile/package.json
|
||||||
COPY packages/ui/package.json packages/ui/package.json
|
COPY packages/ui/package.json packages/ui/package.json
|
||||||
COPY packages/primitives/package.json packages/primitives/package.json
|
COPY packages/primitives/package.json packages/primitives/package.json
|
||||||
COPY packages/models/package.json packages/models/package.json
|
COPY packages/models/package.json packages/models/package.json
|
||||||
RUN yarn --immutable
|
RUN bun --frozen-lockfile
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
ENV NEXT_TELEMETRY_DISABLED=1
|
ENV NEXT_TELEMETRY_DISABLED=1
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
RUN yarn build:web
|
RUN bun run build:web
|
||||||
|
|
||||||
|
|
||||||
FROM node:18-alpine
|
FROM node:18-alpine
|
||||||
|
@ -1,17 +1,15 @@
|
|||||||
FROM node:18-alpine
|
FROM node:18-alpine
|
||||||
RUN apk add git bash
|
RUN apk add git bash
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY .yarn ./.yarn
|
COPY package.json bun.lockb ./
|
||||||
COPY .yarnrc.yml ./
|
|
||||||
COPY package.json yarn.lock ./
|
|
||||||
COPY apps/web/package.json apps/web/package.json
|
COPY apps/web/package.json apps/web/package.json
|
||||||
COPY apps/mobile/package.json apps/mobile/package.json
|
COPY apps/mobile/package.json apps/mobile/package.json
|
||||||
COPY packages/ui/package.json packages/ui/package.json
|
COPY packages/ui/package.json packages/ui/package.json
|
||||||
COPY packages/primitives/package.json packages/primitives/package.json
|
COPY packages/primitives/package.json packages/primitives/package.json
|
||||||
COPY packages/models/package.json packages/models/package.json
|
COPY packages/models/package.json packages/models/package.json
|
||||||
RUN yarn --immutable
|
RUN bun install --frozen-lockfile
|
||||||
|
|
||||||
ENV NEXT_TELEMETRY_DISABLED=1
|
ENV NEXT_TELEMETRY_DISABLED=1
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
EXPOSE 8081
|
EXPOSE 8081
|
||||||
ENTRYPOINT ["yarn", "dev"]
|
ENTRYPOINT ["bun", "dev"]
|
||||||
|
BIN
front/bun.lockb
Executable file
BIN
front/bun.lockb
Executable file
Binary file not shown.
@ -2,14 +2,14 @@
|
|||||||
"name": "kyoo",
|
"name": "kyoo",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "yarn workspaces foreach -pi run dev",
|
"dev": "bun --filter '*' run dev",
|
||||||
"web": "yarn workspace web dev",
|
"web": "bun --cwd apps/web dev",
|
||||||
"mobile": "yarn workspace mobile dev",
|
"mobile": "bun --cwd apps/mobile dev",
|
||||||
"build:web": "yarn workspace web build",
|
"build:web": "bun --cwd apps/web build",
|
||||||
"build:mobile": "yarn workspace mobile build",
|
"build:mobile": "bun --cwd apps/mobile build",
|
||||||
"build:mobile:apk": "yarn workspace mobile build:apk",
|
"build:mobile:apk": "bun --cwd apps/mobile build:apk",
|
||||||
"build:mobile:dev": "yarn workspace mobile build:dev",
|
"build:mobile:dev": "bun --cwd apps/mobile build:dev",
|
||||||
"update": "yarn workspace mobile update",
|
"update": "bun --cwd apps/mobile update",
|
||||||
"lint": "biome lint .",
|
"lint": "biome lint .",
|
||||||
"lint:fix": "biome lint . --apply",
|
"lint:fix": "biome lint . --apply",
|
||||||
"format": "biome format .",
|
"format": "biome format .",
|
||||||
@ -22,6 +22,5 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@biomejs/biome": "1.9.4",
|
"@biomejs/biome": "1.9.4",
|
||||||
"typescript": "5.6.3"
|
"typescript": "5.6.3"
|
||||||
},
|
}
|
||||||
"packageManager": "yarn@3.2.4"
|
|
||||||
}
|
}
|
||||||
|
15184
front/yarn.lock
15184
front/yarn.lock
File diff suppressed because it is too large
Load Diff
@ -25,7 +25,6 @@ in
|
|||||||
pkgs.mkShell {
|
pkgs.mkShell {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
nodejs-18_x
|
nodejs-18_x
|
||||||
nodePackages.yarn
|
|
||||||
nodePackages.eas-cli
|
nodePackages.eas-cli
|
||||||
nodePackages.expo-cli
|
nodePackages.expo-cli
|
||||||
dotnet
|
dotnet
|
||||||
@ -44,6 +43,7 @@ in
|
|||||||
sqlc
|
sqlc
|
||||||
go-swag
|
go-swag
|
||||||
robotframework-tidy
|
robotframework-tidy
|
||||||
|
bun
|
||||||
];
|
];
|
||||||
|
|
||||||
DOTNET_ROOT = "${dotnet}";
|
DOTNET_ROOT = "${dotnet}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user