chore(frontend/app): switch to pnpm (#36)

This commit is contained in:
Luca Steeb
2023-12-31 20:36:41 +07:00
committed by GitHub
parent d66a2da824
commit 2bd5677252
6 changed files with 5616 additions and 8391 deletions
+17 -7
View File
@@ -6,14 +6,19 @@ jobs:
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: npm
cache-dependency-path: frontend/app/package-lock.json
cache: pnpm
cache-dependency-path: frontend/app/pnpm-lock.yaml
- name: Install dependencies
working-directory: frontend/app
run: npm ci
run: pnpm install --frozen-lockfile
- name: Lint
working-directory: frontend/app
run: npm run lint:check
@@ -23,14 +28,19 @@ jobs:
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: npm
cache-dependency-path: frontend/app/package-lock.json
cache: pnpm
cache-dependency-path: frontend/app/pnpm-lock.yaml
- name: Install dependencies
working-directory: frontend/app
run: npm ci
- name: Lint
run: pnpm install --frozen-lockfile
- name: Build
working-directory: frontend/app
run: npm run build
+1 -1
View File
@@ -15,7 +15,7 @@
1. Spin up Postgres and RabbitMQ: `docker-compose up -d`
2. Run `npm install` inside of `./frontend/app`.
2. Run `pnpm install` inside of `./frontend/app`.
3. Generate certificates needed for communicating between the Hatchet client and engine: `task generate-certs`
+2 -2
View File
@@ -1,8 +1,8 @@
FROM node:18-alpine as build
WORKDIR /app
COPY ./frontend/app/package.json ./frontend/app/package-lock.json ./
RUN npm ci
COPY ./frontend/app/package.json ./frontend/app/pnpm-lock.yaml ./
RUN pnpm install
COPY ./frontend/app ./
RUN npm run build
-8380
View File
File diff suppressed because it is too large Load Diff
+5595
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -14,7 +14,7 @@ Click the button to clone this repository and deploy it on Vercel:
## Local Development
First, run `pnpm i` to install the dependencies.
First, run `pnpm install` to install the dependencies.
Then, run `pnpm dev` to start the development server and visit localhost:3000.