Restructure project to root layout
This commit is contained in:
+2
-3
@@ -1,4 +1,3 @@
|
|||||||
node_modules
|
node_modules
|
||||||
app/node_modules
|
dist
|
||||||
app/dist
|
.vite
|
||||||
app/.vite
|
|
||||||
|
|||||||
Vendored
+2
-2
@@ -6,7 +6,7 @@
|
|||||||
"type": "pwa-chrome",
|
"type": "pwa-chrome",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"url": "http://localhost:5173/",
|
"url": "http://localhost:5173/",
|
||||||
"webRoot": "${workspaceFolder}/app/src",
|
"webRoot": "${workspaceFolder}/src",
|
||||||
"preLaunchTask": "npm: dev server"
|
"preLaunchTask": "npm: dev server"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
"type": "pwa-chrome",
|
"type": "pwa-chrome",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"url": "http://localhost:4173/",
|
"url": "http://localhost:4173/",
|
||||||
"webRoot": "${workspaceFolder}/app/src",
|
"webRoot": "${workspaceFolder}/src",
|
||||||
"preLaunchTask": "npm: preview server"
|
"preLaunchTask": "npm: preview server"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Vendored
+2
-4
@@ -5,9 +5,8 @@
|
|||||||
"label": "npm: dev server",
|
"label": "npm: dev server",
|
||||||
"type": "npm",
|
"type": "npm",
|
||||||
"script": "dev",
|
"script": "dev",
|
||||||
"path": "app",
|
|
||||||
"options": {
|
"options": {
|
||||||
"cwd": "${workspaceFolder}/app"
|
"cwd": "${workspaceFolder}"
|
||||||
},
|
},
|
||||||
"problemMatcher": {
|
"problemMatcher": {
|
||||||
"owner": "vite-dev",
|
"owner": "vite-dev",
|
||||||
@@ -31,9 +30,8 @@
|
|||||||
"label": "npm: preview server",
|
"label": "npm: preview server",
|
||||||
"type": "npm",
|
"type": "npm",
|
||||||
"script": "preview",
|
"script": "preview",
|
||||||
"path": "app",
|
|
||||||
"options": {
|
"options": {
|
||||||
"cwd": "${workspaceFolder}/app"
|
"cwd": "${workspaceFolder}"
|
||||||
},
|
},
|
||||||
"problemMatcher": {
|
"problemMatcher": {
|
||||||
"owner": "vite-preview",
|
"owner": "vite-preview",
|
||||||
|
|||||||
@@ -32,9 +32,13 @@ All data stays local to the device.
|
|||||||
|
|
||||||
## 2. Directory Structure
|
## 2. Directory Structure
|
||||||
|
|
||||||
Codex must always generate files within this structure:
|
Codex must always generate files within this structure (project root is
|
||||||
|
where `package.json` lives and all npm commands run from there):
|
||||||
|
|
||||||
/app
|
/
|
||||||
|
/public
|
||||||
|
manifest.json (copied from src/pwa)
|
||||||
|
service-worker.js (copied from src/pwa)
|
||||||
/src
|
/src
|
||||||
/components
|
/components
|
||||||
/screens
|
/screens
|
||||||
@@ -61,11 +65,14 @@ Codex must always generate files within this structure:
|
|||||||
main.tsx
|
main.tsx
|
||||||
Dockerfile
|
Dockerfile
|
||||||
docker-compose.yml
|
docker-compose.yml
|
||||||
|
nginx.conf
|
||||||
vite.config.ts
|
vite.config.ts
|
||||||
AGENTS.md
|
AGENTS.md
|
||||||
/.vscode (workspace-level editor settings and launch/task config)
|
/.vscode (workspace-level editor settings and launch/task config)
|
||||||
|
|
||||||
Codex must not introduce alternative or conflicting structures.
|
Codex must not introduce alternative or conflicting structures, and all
|
||||||
|
commands such as `npm install`, `npm run dev`, and `npm run build` must
|
||||||
|
execute from the project root (not a nested `app` folder).
|
||||||
|
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 661 B After Width: | Height: | Size: 661 B |
Reference in New Issue
Block a user