🔧 Set up node monorepo (#2095)

This commit is contained in:
Alejandra
2026-01-20 21:28:09 +01:00
committed by GitHub
parent 92460ee1fe
commit 7201b88628
10 changed files with 6751 additions and 10401 deletions

View File

@@ -33,7 +33,6 @@ jobs:
enable-cache: true
- name: Install dependencies
run: npm ci
working-directory: frontend
- run: uv sync
working-directory: backend
- run: uv run bash scripts/generate-client.sh

View File

@@ -99,7 +99,6 @@ jobs:
node-version: 20
- name: Install dependencies
run: npm ci
working-directory: frontend
- name: Download blob reports from GitHub Actions Artifacts
uses: actions/download-artifact@v7
with:

View File

@@ -21,7 +21,7 @@ repos:
hooks:
- id: local-biome-check
name: biome check
entry: bash -c 'cd frontend && npm run lint'
entry: npm run lint
language: system
types: [text]
files: ^frontend/

View File

@@ -63,7 +63,6 @@ docker compose stop frontend
And then start the local frontend development server:
```bash
cd frontend
npm run dev
```

View File

@@ -10,11 +10,6 @@ Before you begin, ensure that you have either the Node Version Manager (nvm) or
* After installing either nvm or fnm, proceed to the `frontend` directory:
```bash
cd frontend
```
* If the Node.js version specified in the `.nvmrc` file isn't installed on your system, you can install it using the appropriate command:
```bash
# If using fnm
fnm install

10390
frontend/package-lock.json generated

File diff suppressed because it is too large Load Diff

6737
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

11
package.json Normal file
View File

@@ -0,0 +1,11 @@
{
"name": "fastapi-full-stack-template",
"private": true,
"workspaces": [
"frontend"
],
"scripts": {
"dev": "npm run dev -w frontend",
"lint": "npm run lint --ws"
}
}

View File

@@ -7,5 +7,5 @@ cd backend
python -c "import app.main; import json; print(json.dumps(app.main.app.openapi()))" > ../openapi.json
cd ..
mv openapi.json frontend/
cd frontend
npm run generate-client
npm run -w frontend generate-client
npm run lint