Merge pull request #1898 from freqtrade/migrate/pnpm

Migrate to pnpm
This commit is contained in:
Matthias 2024-05-24 18:06:27 +02:00 committed by GitHub
commit 5626f0122c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 3540 additions and 6080 deletions

View File

@ -38,5 +38,5 @@
]
}
},
"postCreateCommand": "yarn install"
"postCreateCommand": "pnpm install"
}

View File

@ -26,27 +26,33 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- run: yarn install
- run: pnpm install
- name: Run Lint
run: yarn lint-ci
run: pnpm run lint-ci
- name: Run type check
run: yarn check-types
run: pnpm run check-types
- name: Run Tests
run: yarn test:unit
run: pnpm run test:unit
# Playwright section
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
run: pnpm exec playwright install --with-deps
- name: Run Playwright tests
run: yarn playwright test
run: pnpm exec playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
@ -58,7 +64,7 @@ jobs:
# End Playwright section
- name: Build build
run: yarn build
run: pnpm run build
- name: Archive artifacts
uses: actions/upload-artifact@v4

File diff suppressed because one or more lines are too long

View File

@ -1,7 +0,0 @@
compressionLevel: mixed
enableGlobalCache: false
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-4.1.1.cjs

View File

@ -1,19 +1,19 @@
FROM node:22.2.0-alpine as ui-builder
RUN mkdir /app
RUN mkdir /app \
&& corepack enable
WORKDIR /app
COPY package.json yarn.lock .yarnrc.yml /app/
COPY .yarn/releases/ /app/.yarn/releases/
COPY package.json pnpm-lock.yaml /app/
RUN apk add --update --no-cache g++ make\
&& yarn install\
RUN apk add --update --no-cache g++ make git \
&& pnpm install --frozen-lockfile \
&& apk del g++ make
COPY . /app
RUN yarn build
RUN pnpm run build
FROM nginx:1.26.0-alpine
COPY --from=ui-builder /app/dist /etc/nginx/html

View File

@ -26,25 +26,25 @@ Ports can vary, so check the URL you're using.
### Project setup
```
yarn install
pnpm run install
```
### Compiles and hot-reloads for development
```
yarn dev
pnpm run dev
```
### Compiles and minifies for production
```
yarn build
pnpm run build
```
### Lints and fixes files
```
yarn lint
pnpm run lint
```
### Build and run docker version
@ -79,7 +79,7 @@ docker-compose exec web /bin/bash
then
```
yarn dev
pnpm run dev
```
## Project setup for vscode and docker (developing inside dev container) on Linux
@ -97,7 +97,7 @@ View > Command palette > Enter: Remote-Containers rebuild container
### Serve your local server
```
yarn dev
pnpm run dev
```
You now have useful vscode extensions, git support, your command history of the project.

View File

@ -11,9 +11,9 @@
"check-types": "vue-tsc --noEmit",
"lint": "eslint src tests e2e",
"lint-ci": "eslint --no-fix src tests e2e",
"test:e2e": "yarn playwright test",
"test:e2e-chromium": "yarn playwright test --project=chromium",
"test:e2e-msedge": "yarn playwright test --project=msedge"
"test:e2e": "playwright test",
"test:e2e-chromium": "playwright test --project=chromium",
"test:e2e-msedge": "playwright test --project=msedge"
},
"dependencies": {
"@noction/vue-draggable-grid": "1.9.16",
@ -71,5 +71,5 @@
"vitest": "^1.6.0",
"vue-tsc": "^2.0.19"
},
"packageManager": "yarn@4.1.1"
"packageManager": "pnpm@8.15.6"
}

View File

@ -73,7 +73,7 @@ export default defineConfig({
/* Run your local dev server before starting the tests */
webServer: {
command: 'yarn dev',
command: 'pnpm run dev',
url: 'http://localhost:3000',
reuseExistingServer: !process.env.CI,
},

3509
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load Diff

5155
yarn.lock

File diff suppressed because it is too large Load Diff