Restructure project to root layout

This commit is contained in:
beatz174-bit committed 2025-11-21 16:10:41 +10:00
1 parent e0e26a34ab
commit 3ffe9bbf99
51 files changed
+16 -12

No files matched your search

File renamed without changes.
+2 -3
View File
@@ -1,4 +1,3 @@
node_modules node_modules
app/node_modules dist
app/dist .vite
app/.vite
+2 -2
View File
@@ -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"
} }
] ]
+2 -4
View File
@@ -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",
+10 -3
View File
@@ -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).
------------------------------------------------------------------------ ------------------------------------------------------------------------
View File
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
View File
File renamed without changes.
View File
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
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.
View File
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.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.