1
0
mirror of https://github.com/XFox111/my-website.git synced 2026-04-22 07:28:01 +03:00

feat(dev): migrated from yarn to npm

This commit is contained in:
2025-12-11 05:52:27 +00:00
parent 57b3a72fa2
commit adb0b4b1b2
10 changed files with 23120 additions and 9098 deletions
+1 -4
View File
@@ -14,13 +14,10 @@
"version": "latest", "version": "latest",
"pnpmVersion": "none", "pnpmVersion": "none",
"nvmVersion": "latest" "nvmVersion": "latest"
},
"ghcr.io/devcontainers-extra/features/corepack:1": {
"version": "latest"
} }
}, },
"postCreateCommand": "corepack enable && yarn install", "postCreateCommand": "npm install",
// Configure tool-specific properties. // Configure tool-specific properties.
"customizations": { "customizations": {
+2 -3
View File
@@ -35,9 +35,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- run: corepack enable - run: npm install
- run: yarn install - run: npm audit
- run: yarn npm audit
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
+4 -4
View File
@@ -9,7 +9,7 @@
"isDefault": true "isDefault": true
}, },
"problemMatcher": [], "problemMatcher": [],
"label": "yarn: build", "label": "npm: build",
"detail": "Build project" "detail": "Build project"
}, },
{ {
@@ -17,7 +17,7 @@
"script": "install", "script": "install",
"group": "build", "group": "build",
"problemMatcher": [], "problemMatcher": [],
"label": "yarn: install", "label": "npm: install",
"detail": "Restore dependencies" "detail": "Restore dependencies"
}, },
{ {
@@ -28,7 +28,7 @@
"isDefault": true "isDefault": true
}, },
"problemMatcher": [], "problemMatcher": [],
"label": "yarn: dev", "label": "npm: dev",
"detail": "Start development server" "detail": "Start development server"
}, },
{ {
@@ -36,7 +36,7 @@
"script": "lint", "script": "lint",
"group": "test", "group": "test",
"problemMatcher": [], "problemMatcher": [],
"label": "yarn: lint", "label": "npm: lint",
"detail": "Run ESLint" "detail": "Run ESLint"
}, },
{ {
-5
View File
@@ -1,5 +0,0 @@
nodeLinker: node-modules
logFilters:
- level: discard
pattern: "react is listed by your project with version * (*), which doesn't satisfy what @fluentui/react-icons and other dependencies request*"
+4 -7
View File
@@ -7,9 +7,8 @@ RUN apk add --no-cache libc6-compat
WORKDIR /app WORKDIR /app
# Install dependencies # Install dependencies
COPY package.json yarn.lock .yarnrc.yml ./ COPY package.json package-lock.json ./
RUN corepack enable RUN npm install
RUN yarn install
# Rebuild the source code only when needed # Rebuild the source code only when needed
FROM base AS builder FROM base AS builder
@@ -17,15 +16,13 @@ WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules COPY --from=deps /app/node_modules ./node_modules
COPY . . COPY . .
RUN corepack enable
# Next.js collects completely anonymous telemetry data about general usage. # Next.js collects completely anonymous telemetry data about general usage.
# Learn more here: https://nextjs.org/telemetry # Learn more here: https://nextjs.org/telemetry
# Uncomment the following line in case you want to disable telemetry during the build. # Uncomment the following line in case you want to disable telemetry during the build.
# ENV NEXT_TELEMETRY_DISABLED 1 # ENV NEXT_TELEMETRY_DISABLED 1
RUN yarn lint RUN npm run lint
RUN yarn build RUN npm run build
# Production image, copy all the files and run next # Production image, copy all the files and run next
FROM base AS runner FROM base AS runner
+4 -5
View File
@@ -33,7 +33,6 @@ This repository contains the source code for my personal website, built using Ne
For development you can use [Dev Containers](https://devcontainers.io/) or [GitHub Codespaces](https://github.com/features/codespaces). Otherwise you will need to install following tools: For development you can use [Dev Containers](https://devcontainers.io/) or [GitHub Codespaces](https://github.com/features/codespaces). Otherwise you will need to install following tools:
- [Node.js](https://nodejs.org/en/) - [Node.js](https://nodejs.org/en/)
- [Yarn](https://yarnpkg.com/)
- [Docker](https://www.docker.com/) - [Docker](https://www.docker.com/)
@@ -41,10 +40,10 @@ For development you can use [Dev Containers](https://devcontainers.io/) or [GitH
Here're some commonly used commands: Here're some commonly used commands:
```bash ```bash
yarn install # Install dependencies npm install # Install dependencies
yarn dev # Start the development server at http://localhost:3000 npm run dev # Start the development server at http://localhost:3000
yarn lint # Lint the project with ESLint npm run lint # Lint the project with ESLint
yarn build # Build the project for production npm run build # Build the project for production
``` ```
To build a Docker image, run: To build a Docker image, run:
+1 -1
View File
@@ -66,7 +66,7 @@ const experience: WorkplaceEntry[] =
year: "2025", year: "2025",
description: <> description: <>
<p>Designing and implementing large-scale distributed WLAN controller system</p> <p>Designing and implementing large-scale distributed WLAN controller system</p>
<p className="hl">Stack: ASP.NET (RESTFul API), MongoDB, Postges (EF Core), RabbitMQ (MassTransit), MQTT, Docker.</p> <p className="hl">Stack: React, ASP.NET (RESTFul API), MongoDB, Postges (EF Core), RabbitMQ (MassTransit), MQTT, Docker.</p>
<ul> <ul>
<li>Designed an architecture of a new event-driven microservice-based system to replace legacy monolith from scratch (HLD + LLD).</li> <li>Designed an architecture of a new event-driven microservice-based system to replace legacy monolith from scratch (HLD + LLD).</li>
<li>Wrote a comprehensive techref for each of 16 components.</li> <li>Wrote a comprehensive techref for each of 16 components.</li>
+23103
View File
File diff suppressed because it is too large Load Diff
+1 -2
View File
@@ -44,6 +44,5 @@
"sass": "^1.95.1", "sass": "^1.95.1",
"typescript": "^5.9.3", "typescript": "^5.9.3",
"typescript-eslint": "^8.49.0" "typescript-eslint": "^8.49.0"
}, }
"packageManager": "yarn@4.9.2"
} }
-9067
View File
File diff suppressed because it is too large Load Diff