Merge pull request #50 from bartvdbraak/feat/pnpm-package-manager

Change package manager to `pnpm`
This commit is contained in:
Bart van der Braak 2023-06-13 23:34:32 +02:00 committed by GitHub
commit 02fb2cecc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 4406 additions and 4061 deletions

View file

@ -21,6 +21,9 @@ jobs:
env: env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps: steps:
- name: Sticky Comment on Pull Request - name: Sticky Comment on Pull Request
uses: marocchino/sticky-pull-request-comment@v2.6.2 uses: marocchino/sticky-pull-request-comment@v2.6.2
@ -31,16 +34,22 @@ jobs:
![Loading](https://github.com/bartvdbraak/omnidash/assets/3996360/8e85bc78-53ac-41de-bdb6-bedfe8c6d8c1) ![Loading](https://github.com/bartvdbraak/omnidash/assets/3996360/8e85bc78-53ac-41de-bdb6-bedfe8c6d8c1)
- name: Check out - name: Checkout Git repository
uses: actions/checkout@v3.5.3 uses: actions/checkout@v3.5.3
- name: Set up Node.js - name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: 8.6.2
- name: Setup Node.js
uses: actions/setup-node@v3.6.0 uses: actions/setup-node@v3.6.0
with: with:
node-version: 18 node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install Dependencies - name: Install Dependencies
run: yarn global add @unlighthouse/cli puppeteer run: pnpm add -g @unlighthouse/cli puppeteer
- name: Retrieve Vercel Preview URL - name: Retrieve Vercel Preview URL
uses: zentered/vercel-preview-url@v1.1.9 uses: zentered/vercel-preview-url@v1.1.9
@ -56,7 +65,7 @@ jobs:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
with: with:
deployment-url: ${{ steps.vercel_preview_url.outputs.preview_url }} deployment-url: ${{ steps.vercel_preview_url.outputs.preview_url }}
timeout: 60 timeout: 120
- name: Build Unlighthouse report - name: Build Unlighthouse report
run: | run: |

View file

@ -16,18 +16,26 @@ jobs:
run-checks: run-checks:
name: Run checks name: Run checks
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
steps: steps:
- name: Check out Git repository - name: Checkout Git repository
uses: actions/checkout@v3.5.3 uses: actions/checkout@v3.5.3
- name: Set up Node.js - name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: 8.6.2
- name: Setup Node.js
uses: actions/setup-node@v3.6.0 uses: actions/setup-node@v3.6.0
with: with:
node-version: 18 node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install Node.js dependencies - name: Install Node.js dependencies
run: yarn install --frozen-lockfile run: pnpm install --frozen-lockfile
- name: Run linters - name: Run linters
uses: wearerequired/lint-action@v2.3.0 uses: wearerequired/lint-action@v2.3.0

2
.gitignore vendored
View file

@ -22,7 +22,9 @@
# debug # debug
npm-debug.log* npm-debug.log*
yarn-debug.log* yarn-debug.log*
pnpm-debug.log*
yarn-error.log* yarn-error.log*
pnpm-error.log*
# local env files # local env files
.env*.local .env*.local

View file

@ -2,6 +2,7 @@ cache
.cache .cache
package.json package.json
package-lock.json package-lock.json
pnpm-lock.yaml
public public
CHANGELOG.md CHANGELOG.md
.yarn .yarn

View file

@ -17,15 +17,15 @@
To install the project and its dependencies, follow these steps: To install the project and its dependencies, follow these steps:
1. Ensure you have `yarn` installed on your system. If not, you can install it by running: 1. Ensure you have `pnpm` installed on your system. If not, you can install it by running:
```sh-session ```sh-session
npm install -g yarn npm install -g pnpm
``` ```
2. Run the following command to install the project dependencies: 2. Run the following command to install the project dependencies:
```sh-session ```sh-session
yarn install pnpm install
``` ```
### Environment Variables ### Environment Variables
@ -43,7 +43,7 @@ After setting up the required services, you need to set the corresponding enviro
To build the project, execute the following command: To build the project, execute the following command:
```sh-session ```sh-session
yarn build pnpm build
``` ```
## Run ## Run
@ -51,5 +51,5 @@ yarn build
To run the project locally, use the following command: To run the project locally, use the following command:
```sh-session ```sh-session
yarn dev pnpm turbo run dev
``` ```

View file

@ -14,7 +14,8 @@
"preview": "next build && next start", "preview": "next build && next start",
"typecheck": "tsc --noEmit", "typecheck": "tsc --noEmit",
"format:write": "prettier . --write --cache", "format:write": "prettier . --write --cache",
"format:check": "prettier . --check --cache" "format:check": "prettier . --check --cache",
"deps:check": "depcheck"
}, },
"dependencies": { "dependencies": {
"@clerk/clerk-react": "^4.19.0", "@clerk/clerk-react": "^4.19.0",

4369
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load diff

4045
yarn.lock

File diff suppressed because it is too large Load diff