mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-05-04 00:20:08 -05:00
chore(frontend/app): switch to pnpm (#36)
This commit is contained in:
@@ -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
@@ -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`
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Generated
-8380
File diff suppressed because it is too large
Load Diff
Generated
+5595
File diff suppressed because it is too large
Load Diff
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user