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:
@@ -14,13 +14,10 @@
|
||||
"version": "latest",
|
||||
"pnpmVersion": "none",
|
||||
"nvmVersion": "latest"
|
||||
},
|
||||
"ghcr.io/devcontainers-extra/features/corepack:1": {
|
||||
"version": "latest"
|
||||
}
|
||||
},
|
||||
|
||||
"postCreateCommand": "corepack enable && yarn install",
|
||||
"postCreateCommand": "npm install",
|
||||
|
||||
// Configure tool-specific properties.
|
||||
"customizations": {
|
||||
|
||||
@@ -35,9 +35,8 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- run: corepack enable
|
||||
- run: yarn install
|
||||
- run: yarn npm audit
|
||||
- run: npm install
|
||||
- run: npm audit
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Vendored
+4
-4
@@ -9,7 +9,7 @@
|
||||
"isDefault": true
|
||||
},
|
||||
"problemMatcher": [],
|
||||
"label": "yarn: build",
|
||||
"label": "npm: build",
|
||||
"detail": "Build project"
|
||||
},
|
||||
{
|
||||
@@ -17,7 +17,7 @@
|
||||
"script": "install",
|
||||
"group": "build",
|
||||
"problemMatcher": [],
|
||||
"label": "yarn: install",
|
||||
"label": "npm: install",
|
||||
"detail": "Restore dependencies"
|
||||
},
|
||||
{
|
||||
@@ -28,7 +28,7 @@
|
||||
"isDefault": true
|
||||
},
|
||||
"problemMatcher": [],
|
||||
"label": "yarn: dev",
|
||||
"label": "npm: dev",
|
||||
"detail": "Start development server"
|
||||
},
|
||||
{
|
||||
@@ -36,7 +36,7 @@
|
||||
"script": "lint",
|
||||
"group": "test",
|
||||
"problemMatcher": [],
|
||||
"label": "yarn: lint",
|
||||
"label": "npm: lint",
|
||||
"detail": "Run ESLint"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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
@@ -7,9 +7,8 @@ RUN apk add --no-cache libc6-compat
|
||||
WORKDIR /app
|
||||
|
||||
# Install dependencies
|
||||
COPY package.json yarn.lock .yarnrc.yml ./
|
||||
RUN corepack enable
|
||||
RUN yarn install
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm install
|
||||
|
||||
# Rebuild the source code only when needed
|
||||
FROM base AS builder
|
||||
@@ -17,15 +16,13 @@ WORKDIR /app
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
|
||||
RUN corepack enable
|
||||
|
||||
# Next.js collects completely anonymous telemetry data about general usage.
|
||||
# Learn more here: https://nextjs.org/telemetry
|
||||
# Uncomment the following line in case you want to disable telemetry during the build.
|
||||
# ENV NEXT_TELEMETRY_DISABLED 1
|
||||
|
||||
RUN yarn lint
|
||||
RUN yarn build
|
||||
RUN npm run lint
|
||||
RUN npm run build
|
||||
|
||||
# Production image, copy all the files and run next
|
||||
FROM base AS runner
|
||||
|
||||
@@ -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:
|
||||
- [Node.js](https://nodejs.org/en/)
|
||||
- [Yarn](https://yarnpkg.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:
|
||||
```bash
|
||||
yarn install # Install dependencies
|
||||
yarn dev # Start the development server at http://localhost:3000
|
||||
yarn lint # Lint the project with ESLint
|
||||
yarn build # Build the project for production
|
||||
npm install # Install dependencies
|
||||
npm run dev # Start the development server at http://localhost:3000
|
||||
npm run lint # Lint the project with ESLint
|
||||
npm run build # Build the project for production
|
||||
```
|
||||
|
||||
To build a Docker image, run:
|
||||
|
||||
@@ -66,7 +66,7 @@ const experience: WorkplaceEntry[] =
|
||||
year: "2025",
|
||||
description: <>
|
||||
<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>
|
||||
<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>
|
||||
|
||||
Generated
+23103
File diff suppressed because it is too large
Load Diff
+1
-2
@@ -44,6 +44,5 @@
|
||||
"sass": "^1.95.1",
|
||||
"typescript": "^5.9.3",
|
||||
"typescript-eslint": "^8.49.0"
|
||||
},
|
||||
"packageManager": "yarn@4.9.2"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user