🔧 Set up node monorepo (#2095)
This commit is contained in:
1
.github/workflows/generate-client.yml
vendored
1
.github/workflows/generate-client.yml
vendored
@@ -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
|
||||
|
||||
1
.github/workflows/playwright.yml
vendored
1
.github/workflows/playwright.yml
vendored
@@ -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:
|
||||
|
||||
@@ -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/
|
||||
|
||||
@@ -63,7 +63,6 @@ docker compose stop frontend
|
||||
And then start the local frontend development server:
|
||||
|
||||
```bash
|
||||
cd frontend
|
||||
npm run dev
|
||||
```
|
||||
|
||||
|
||||
@@ -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
10390
frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
6737
package-lock.json
generated
Normal file
6737
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
11
package.json
Normal file
11
package.json
Normal 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"
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user