mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-04-29 08:21:20 +00:00
Merge pull request #50 from bartvdbraak/feat/pnpm-package-manager
Change package manager to `pnpm`
This commit is contained in:
commit
02fb2cecc4
8 changed files with 4406 additions and 4061 deletions
17
.github/workflows/lighthouse-report.yaml
vendored
17
.github/workflows/lighthouse-report.yaml
vendored
|
@ -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:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- name: Check out
|
- name: Checkout Git repository
|
||||||
uses: actions/checkout@v3.5.3
|
uses: actions/checkout@v3.5.3
|
||||||
|
|
||||||
|
- name: Setup pnpm
|
||||||
|
uses: pnpm/action-setup@v2.2.4
|
||||||
|
with:
|
||||||
|
version: 8.6.2
|
||||||
|
|
||||||
- name: Setup Node.js
|
- 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: |
|
||||||
|
|
14
.github/workflows/lint-deps-check.yaml
vendored
14
.github/workflows/lint-deps-check.yaml
vendored
|
@ -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: Checkout Git repository
|
- name: Checkout Git repository
|
||||||
uses: actions/checkout@v3.5.3
|
uses: actions/checkout@v3.5.3
|
||||||
|
|
||||||
|
- name: Setup pnpm
|
||||||
|
uses: pnpm/action-setup@v2.2.4
|
||||||
|
with:
|
||||||
|
version: 8.6.2
|
||||||
|
|
||||||
- name: Setup Node.js
|
- 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
2
.gitignore
vendored
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
10
README.md
10
README.md
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
|
@ -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
4369
pnpm-lock.yaml
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue