Remove references to yarn and replace them with pnpm

This commit is contained in:
Luke Vella 2025-04-26 20:03:24 +01:00
parent 3552a5e3aa
commit 880cc07c79
No known key found for this signature in database
GPG key ID: 469CAD687F0D784C
12 changed files with 27 additions and 2073 deletions

View file

@ -8,7 +8,7 @@ inputs:
cache: cache:
description: "Package manager for caching" description: "Package manager for caching"
required: false required: false
default: "yarn" default: "pnpm"
runs: runs:
using: "composite" using: "composite"
steps: steps:

View file

@ -1,8 +1,8 @@
name: "Yarn Install" name: "Pnpm Install"
description: "Runs yarn install with --frozen-lockfile" description: "Runs pnpm install with --frozen-lockfile"
runs: runs:
using: "composite" using: "composite"
steps: steps:
- name: Run yarn install - name: Run pnpm install
run: yarn install --frozen-lockfile run: pnpm install --frozen-lockfile
shell: bash shell: bash

View file

@ -18,10 +18,10 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: ./.github/actions/setup-node - uses: ./.github/actions/setup-node
- uses: ./.github/actions/yarn-install - uses: ./.github/actions/pnpm-install
- name: Check types - name: Check types
run: yarn type-check run: pnpm type-check
sherif: sherif:
name: Sherif name: Sherif
@ -39,10 +39,10 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: ./.github/actions/setup-node - uses: ./.github/actions/setup-node
- uses: ./.github/actions/yarn-install - uses: ./.github/actions/pnpm-install
- name: Check linting rules - name: Check linting rules
run: yarn lint run: pnpm lint
unit-tests: unit-tests:
name: Unit tests name: Unit tests
@ -50,10 +50,10 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: ./.github/actions/setup-node - uses: ./.github/actions/setup-node
- uses: ./.github/actions/yarn-install - uses: ./.github/actions/pnpm-install
- name: Run tests - name: Run tests
run: yarn test:unit run: pnpm test:unit
# Label of the container job # Label of the container job
integration-tests: integration-tests:
@ -66,25 +66,25 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: ./.github/actions/setup-node - uses: ./.github/actions/setup-node
- uses: ./.github/actions/yarn-install - uses: ./.github/actions/pnpm-install
- name: Install system dependencies - name: Install system dependencies
run: sudo apt-get update run: sudo apt-get update
- name: Install playwright dependencies - name: Install playwright dependencies
run: yarn playwright install --with-deps chromium run: pnpm playwright install --with-deps chromium
- name: Create production build - name: Create production build
run: yarn turbo build:test --filter=@rallly/web run: pnpm turbo build:test --filter=@rallly/web
- name: Start services - name: Start services
run: yarn docker:up run: pnpm docker:up
- name: Setup database - name: Setup database
run: yarn db:deploy run: pnpm db:deploy
- name: Run tests - name: Run tests
run: yarn turbo test:integration run: pnpm turbo test:integration
- name: Upload artifact playwright-report - name: Upload artifact playwright-report
if: ${{ success() || failure() }} if: ${{ success() || failure() }}

2
.gitignore vendored
View file

@ -21,8 +21,6 @@ node_modules
# debug # debug
npm-debug.log* npm-debug.log*
yarn-debug.log*
yarn-error.log*
# local env files # local env files
.env .env

View file

@ -38,7 +38,7 @@ The following instructions are for running the project locally for development.
2. Install dependencies 2. Install dependencies
```bash ```bash
yarn pnpm install
``` ```
3. Setup environment variables 3. Setup environment variables
@ -54,7 +54,7 @@ The following instructions are for running the project locally for development.
4. Generate Prisma client 4. Generate Prisma client
```bash ```bash
yarn db:generate pnpm db:generate
``` ```
5. Setup database 5. Setup database
@ -64,13 +64,13 @@ The following instructions are for running the project locally for development.
To start the database, run: To start the database, run:
```bash ```bash
yarn docker:up pnpm docker:up
``` ```
Next run the following command to setup the database: Next run the following command to setup the database:
```bash ```bash
yarn db:reset pnpm db:reset
``` ```
This will: This will:
@ -82,7 +82,7 @@ The following instructions are for running the project locally for development.
6. Start the Next.js server 6. Start the Next.js server
```bash ```bash
yarn dev pnpm dev
``` ```
## Contributors ## Contributors

View file

@ -13,7 +13,7 @@ To preview your changes locally, you can use the [mintlify cli](https://mintlify
Install the cli globally: Install the cli globally:
```bash ```bash
yarn global add mintlify pnpm install --global mintlify
``` ```
Navigate to this directory (where you can find `mint.json`): Navigate to this directory (where you can find `mint.json`):

View file

@ -1,5 +1,5 @@
{ {
"installCommand": "yarn install", "installCommand": "pnpm install",
"buildCommand": "cd ../.. && yarn db:generate && yarn build:landing", "buildCommand": "cd ../.. && pnpm db:generate && pnpm build:landing",
"outputDirectory": ".next" "outputDirectory": ".next"
} }

View file

@ -13,7 +13,6 @@
"i18n:scan": "i18next-scanner --config i18next-scanner.config.js", "i18n:scan": "i18next-scanner --config i18next-scanner.config.js",
"test:integration": "NODE_ENV=test playwright test", "test:integration": "NODE_ENV=test playwright test",
"test:unit": "vitest run", "test:unit": "vitest run",
"test": "yarn test:unit && yarn test:e2e",
"test:codegen": "playwright codegen http://localhost:3000", "test:codegen": "playwright codegen http://localhost:3000",
"docker:start": "./scripts/docker-start.sh" "docker:start": "./scripts/docker-start.sh"
}, },

View file

@ -1,5 +1,5 @@
{ {
"installCommand": "yarn install", "installCommand": "pnpm install",
"buildCommand": "cd ../.. && yarn db:generate && yarn build:web && yarn db:deploy", "buildCommand": "cd ../.. && pnpm db:generate && pnpm build:web && pnpm db:deploy",
"outputDirectory": ".next" "outputDirectory": ".next"
} }

View file

@ -1,27 +0,0 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
"@prisma/client@^4.10.1":
version "4.10.1"
resolved "https://registry.yarnpkg.com/@prisma/client/-/client-4.10.1.tgz#c47fd54661ee74b174cee63e9dc418ecf57a6ccd"
integrity sha512-VonXLJZybdt8e5XZH5vnIGCRNnIh6OMX1FS3H/yzMGLT3STj5TJ/OkMcednrvELgk8PK89Vo3aSh51MWNO0axA==
dependencies:
"@prisma/engines-version" "4.10.1-2.aead147aa326ccb985dcfed5b065b4fdabd44b19"
"@prisma/engines-version@4.10.1-2.aead147aa326ccb985dcfed5b065b4fdabd44b19":
version "4.10.1-2.aead147aa326ccb985dcfed5b065b4fdabd44b19"
resolved "https://registry.yarnpkg.com/@prisma/engines-version/-/engines-version-4.10.1-2.aead147aa326ccb985dcfed5b065b4fdabd44b19.tgz#312359d9d00e39e323136d0270876293d315658e"
integrity sha512-tsjTho7laDhf9EJ9EnDxAPEf7yrigSMDhniXeU4YoWc7azHAs4GPxRi2P9LTFonmHkJLMOLjR77J1oIP8Ife1w==
"@prisma/engines@4.10.1":
version "4.10.1"
resolved "https://registry.yarnpkg.com/@prisma/engines/-/engines-4.10.1.tgz#c7062747f254e5d5fce98a8cae566c25f9f29fb2"
integrity sha512-B3tcTxjx196nuAu1GOTKO9cGPUgTFHYRdkPkTS4m5ptb2cejyBlH9X7GOfSt3xlI7p4zAJDshJP4JJivCg9ouA==
prisma@^4.10.1:
version "4.10.1"
resolved "https://registry.yarnpkg.com/prisma/-/prisma-4.10.1.tgz#88084695d7b364ae6bebf93d5006f84439c4e7d1"
integrity sha512-0jDxgg+DruB1kHVNlcspXQB9au62IFfVg9drkhzXudszHNUAQn0lVuu+T8np0uC2z1nKD5S3qPeCyR8u5YFLnA==
dependencies:
"@prisma/engines" "4.10.1"

View file

@ -1,27 +0,0 @@
# React Email Starter
A live preview right in your browser so you don't need to keep sending real emails during development.
## Getting Started
First, install the dependencies:
```sh
npm install
# or
yarn
```
Then, run the development server:
```sh
npm run dev
# or
yarn dev
```
Open [localhost:3000](http://localhost:3000) with your browser to see the result.
## License
MIT License

File diff suppressed because it is too large Load diff