🔧 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
|
enable-cache: true
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
working-directory: frontend
|
|
||||||
- run: uv sync
|
- run: uv sync
|
||||||
working-directory: backend
|
working-directory: backend
|
||||||
- run: uv run bash scripts/generate-client.sh
|
- 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
|
node-version: 20
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
working-directory: frontend
|
|
||||||
- name: Download blob reports from GitHub Actions Artifacts
|
- name: Download blob reports from GitHub Actions Artifacts
|
||||||
uses: actions/download-artifact@v7
|
uses: actions/download-artifact@v7
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: local-biome-check
|
- id: local-biome-check
|
||||||
name: biome check
|
name: biome check
|
||||||
entry: bash -c 'cd frontend && npm run lint'
|
entry: npm run lint
|
||||||
language: system
|
language: system
|
||||||
types: [text]
|
types: [text]
|
||||||
files: ^frontend/
|
files: ^frontend/
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ docker compose stop frontend
|
|||||||
And then start the local frontend development server:
|
And then start the local frontend development server:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd frontend
|
|
||||||
npm run dev
|
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:
|
* 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
|
```bash
|
||||||
# If using fnm
|
# If using fnm
|
||||||
fnm install
|
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
|
python -c "import app.main; import json; print(json.dumps(app.main.app.openapi()))" > ../openapi.json
|
||||||
cd ..
|
cd ..
|
||||||
mv openapi.json frontend/
|
mv openapi.json frontend/
|
||||||
cd frontend
|
npm run -w frontend generate-client
|
||||||
npm run generate-client
|
npm run lint
|
||||||
|
|||||||
Reference in New Issue
Block a user