Restructure project to root layout
This commit is contained in:
1 parent
e0e26a34ab
commit
3ffe9bbf99
51 files changed
+16
-12
No files matched your search
File renamed without changes.
+2
-3
@@ -1,4 +1,3 @@
|
||||
node_modules
|
||||
app/node_modules
|
||||
app/dist
|
||||
app/.vite
|
||||
dist
|
||||
.vite
|
||||
Vendored
+2
-2
@@ -6,7 +6,7 @@
|
||||
"type": "pwa-chrome",
|
||||
"request": "launch",
|
||||
"url": "http://localhost:5173/",
|
||||
"webRoot": "${workspaceFolder}/app/src",
|
||||
"webRoot": "${workspaceFolder}/src",
|
||||
"preLaunchTask": "npm: dev server"
|
||||
},
|
||||
{
|
||||
@@ -14,7 +14,7 @@
|
||||
"type": "pwa-chrome",
|
||||
"request": "launch",
|
||||
"url": "http://localhost:4173/",
|
||||
"webRoot": "${workspaceFolder}/app/src",
|
||||
"webRoot": "${workspaceFolder}/src",
|
||||
"preLaunchTask": "npm: preview server"
|
||||
}
|
||||
]
|
||||
|
||||
Vendored
+2
-4
@@ -5,9 +5,8 @@
|
||||
"label": "npm: dev server",
|
||||
"type": "npm",
|
||||
"script": "dev",
|
||||
"path": "app",
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}/app"
|
||||
"cwd": "${workspaceFolder}"
|
||||
},
|
||||
"problemMatcher": {
|
||||
"owner": "vite-dev",
|
||||
@@ -31,9 +30,8 @@
|
||||
"label": "npm: preview server",
|
||||
"type": "npm",
|
||||
"script": "preview",
|
||||
"path": "app",
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}/app"
|
||||
"cwd": "${workspaceFolder}"
|
||||
},
|
||||
"problemMatcher": {
|
||||
"owner": "vite-preview",
|
||||
|
||||
@@ -32,9 +32,13 @@ All data stays local to the device.
|
||||
|
||||
## 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
|
||||
/components
|
||||
/screens
|
||||
@@ -61,11 +65,14 @@ Codex must always generate files within this structure:
|
||||
main.tsx
|
||||
Dockerfile
|
||||
docker-compose.yml
|
||||
nginx.conf
|
||||
vite.config.ts
|
||||
AGENTS.md
|
||||
/.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).
|
||||
|
||||
------------------------------------------------------------------------
|
||||
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user