fix theme navigation and improve project scaffolding

This commit is contained in:
2026-07-12 16:26:06 +05:30
parent ee98026cc5
commit b21e298d85
33 changed files with 143 additions and 26 deletions
+1
View File
@@ -250,6 +250,7 @@ export const POST = async (ctx) => {
\`\`\`
wrnexus dev . # dev server + HMR
wrnexus build . # production build → dist/server.js
bun dist/server.js # run the production server (or npm start)
wrnexus create <name> # scaffold a new app
wrnexus generate page <Name> # scaffold a page (aliases: g p)
wrnexus generate component <name> | api <path> | schema <name>
+47
View File
@@ -14,6 +14,51 @@ const TEMPLATE: Record<string, string> = {
// AI/agent context: teaches Claude Code / Cursor / Copilot the WrNexus conventions.
"CLAUDE.md": CLAUDE_MD,
"llms.txt": AI_GUIDE,
".gitignore": `# Dependencies
node_modules/
# WRNexusJS and production builds
dist/
.wrnexus/
**/.wrnexus/
coverage/
# Environment files and local secrets
.env
.env.*
!.env.example
# Logs and runtime files
*.log
logs/
*.pid
*.pid.lock
# Local databases
*.db
*.db-shm
*.db-wal
*.sqlite
*.sqlite3
# Generated native projects
mobile/android/
mobile/ios/
mobile/.expo/
# Editors and operating systems
.idea/
.vscode/
*.swp
*.swo
.DS_Store
Thumbs.db
# TypeScript and test caches
*.tsbuildinfo
.eslintcache
.nyc_output/
`,
"package.json": `{
"name": "APP_NAME",
"version": "0.1.0",
@@ -22,6 +67,8 @@ const TEMPLATE: Record<string, string> = {
"scripts": {
"dev": "wrnexus dev .",
"build": "wrnexus build .",
"start": "bun dist/server.js",
"production": "bun run build && bun run start",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"format": "prettier . --write",