mirror of
https://github.com/XFox111/easylogon-web.git
synced 2026-07-02 19:52:45 +03:00
build(deps): migration from yarn to npm
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
|
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
|
||||||
"features": {
|
"features": {
|
||||||
"ghcr.io/devcontainers/features/docker-in-docker:2": {
|
"ghcr.io/devcontainers/features/docker-in-docker:2": {
|
||||||
"installDockerBuildx": true,
|
"installDockerBuildx": false,
|
||||||
"version": "latest",
|
"version": "latest",
|
||||||
"dockerDashComposeVersion": "latest"
|
"dockerDashComposeVersion": "latest"
|
||||||
}
|
}
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
// "forwardPorts": [],
|
// "forwardPorts": [],
|
||||||
|
|
||||||
// Use 'postCreateCommand' to run commands after the container is created.
|
// Use 'postCreateCommand' to run commands after the container is created.
|
||||||
"postCreateCommand": "yarn install",
|
"postCreateCommand": "npm install",
|
||||||
|
|
||||||
// Configure tool-specific properties.
|
// Configure tool-specific properties.
|
||||||
"customizations": {
|
"customizations": {
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- run: yarn install
|
- run: npm install
|
||||||
- run: yarn audit
|
- run: npm audit
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
+4
-5
@@ -10,22 +10,21 @@ WORKDIR /app
|
|||||||
|
|
||||||
# Copy the package.json and yarn.lock files to the working directory
|
# Copy the package.json and yarn.lock files to the working directory
|
||||||
COPY package.json ./
|
COPY package.json ./
|
||||||
COPY yarn.lock ./
|
COPY package-lock.json ./
|
||||||
|
|
||||||
# Install the app dependencies
|
# Install the app dependencies
|
||||||
RUN yarn install
|
RUN npm install
|
||||||
RUN yarn audit
|
|
||||||
|
|
||||||
# Copy the app source code to the working directory
|
# Copy the app source code to the working directory
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN yarn lint
|
RUN npm run lint
|
||||||
|
|
||||||
RUN echo "VITE_SIGNALR_URL=${SIGNALR_URL}" >> .env
|
RUN echo "VITE_SIGNALR_URL=${SIGNALR_URL}" >> .env
|
||||||
RUN echo "VITE_ENDPOINT_URL=${ENDPOINT_URL}" >> .env
|
RUN echo "VITE_ENDPOINT_URL=${ENDPOINT_URL}" >> .env
|
||||||
RUN echo "VITE_COMMIT=${COMMIT}" >> .env
|
RUN echo "VITE_COMMIT=${COMMIT}" >> .env
|
||||||
|
|
||||||
# Build the app
|
# Build the app
|
||||||
RUN yarn build
|
RUN npm run build
|
||||||
|
|
||||||
FROM steebchen/nginx-spa:stable AS runner
|
FROM steebchen/nginx-spa:stable AS runner
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ This is a collection of applications, that includes password manager web applica
|
|||||||
|
|
||||||
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/)
|
||||||
|
|
||||||
|
|
||||||
@@ -54,10 +53,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
|
npm run dev # Start the development server
|
||||||
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
|
||||||
```
|
```
|
||||||
|
|
||||||
Modify endpoints in .env file:
|
Modify endpoints in .env file:
|
||||||
|
|||||||
Generated
+6436
File diff suppressed because it is too large
Load Diff
+13
-13
@@ -10,31 +10,31 @@
|
|||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fluentui/react-components": "^9.72.9",
|
"@fluentui/react-components": "^9.73.8",
|
||||||
"@fluentui/react-icons": "^2.0.316",
|
"@fluentui/react-icons": "^2.0.326",
|
||||||
"@microsoft/signalr": "^10.0.0",
|
"@microsoft/signalr": "^10.0.0",
|
||||||
"crypto-js": "^4.2.0",
|
"crypto-js": "^4.2.0",
|
||||||
"qrcode.react": "^4.2.0",
|
"qrcode.react": "^4.2.0",
|
||||||
"react": "^19.2.3",
|
"react": "^19.2.6",
|
||||||
"react-dom": "^19.2.3",
|
"react-dom": "^19.2.6",
|
||||||
"react-markdown": "^10.1.0",
|
"react-markdown": "^10.1.0",
|
||||||
"react-router-dom": "^7.11.0"
|
"react-router-dom": "^7.15.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/js": "^9.39.2",
|
"@eslint/js": "^9.39.4",
|
||||||
"@types/crypto-js": "^4.2.2",
|
"@types/crypto-js": "^4.2.2",
|
||||||
"@types/react": "^19.2.7",
|
"@types/react": "^19.2.14",
|
||||||
"@types/react-dom": "^19.2.3",
|
"@types/react-dom": "^19.2.3",
|
||||||
"@types/react-helmet": "^6.1.11",
|
"@types/react-helmet": "^6.1.11",
|
||||||
"@vitejs/plugin-react": "^5.1.2",
|
"@vitejs/plugin-react": "^5.2.0",
|
||||||
"eslint": "^9.39.2",
|
"eslint": "^9.39.4",
|
||||||
"eslint-plugin-react-hooks": "^7.0.1",
|
"eslint-plugin-react-hooks": "^7.1.1",
|
||||||
"eslint-plugin-react-refresh": "^0.4.26",
|
"eslint-plugin-react-refresh": "^0.4.26",
|
||||||
"globals": "^17.0.0",
|
"globals": "^17.6.0",
|
||||||
"scheduler": "^0.27.0",
|
"scheduler": "^0.27.0",
|
||||||
"typescript": "^5.9.3",
|
"typescript": "^5.9.3",
|
||||||
"typescript-eslint": "^8.51.0",
|
"typescript-eslint": "^8.59.3",
|
||||||
"vite": "^7.3.0",
|
"vite": "^7.3.3",
|
||||||
"vite-plugin-svgr": "^4.5.0"
|
"vite-plugin-svgr": "^4.5.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user