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:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- name: Sticky Comment on Pull Request
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)
- name: Check out
- name: Checkout Git repository
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
with:
node-version: 18
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install Dependencies
run: yarn global add @unlighthouse/cli puppeteer
run: pnpm add -g @unlighthouse/cli puppeteer
- name: Retrieve Vercel Preview URL
uses: zentered/vercel-preview-url@v1.1.9
@ -56,7 +65,7 @@ jobs:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
with:
deployment-url: ${{ steps.vercel_preview_url.outputs.preview_url }}
timeout: 60
timeout: 120
- name: Build Unlighthouse report
run: |

View file

@ -16,18 +16,26 @@ jobs:
run-checks:
name: Run checks
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
steps:
- name: Check out Git repository
- name: Checkout Git repository
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
with:
node-version: 18
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install Node.js dependencies
run: yarn install --frozen-lockfile
run: pnpm install --frozen-lockfile
- name: Run linters
uses: wearerequired/lint-action@v2.3.0

2
.gitignore vendored
View file

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

View file

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

View file

@ -17,15 +17,15 @@
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
npm install -g yarn
npm install -g pnpm
```
2. Run the following command to install the project dependencies:
```sh-session
yarn install
pnpm install
```
### 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:
```sh-session
yarn build
pnpm build
```
## Run
@ -51,5 +51,5 @@ yarn build
To run the project locally, use the following command:
```sh-session
yarn dev
pnpm turbo run dev
```

View file

@ -14,7 +14,8 @@
"preview": "next build && next start",
"typecheck": "tsc --noEmit",
"format:write": "prettier . --write --cache",
"format:check": "prettier . --check --cache"
"format:check": "prettier . --check --cache",
"deps:check": "depcheck"
},
"dependencies": {
"@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