chore: resolve merge conflicts with PHP template
This commit is contained in:
parent
13a1816ed9
commit
749739f221
@ -36,11 +36,6 @@ export default function RunButtonModal({
|
|||||||
}
|
}
|
||||||
}, [terminals, isRunning])
|
}, [terminals, isRunning])
|
||||||
// commands to run in the terminal
|
// commands to run in the terminal
|
||||||
const COMMANDS = {
|
|
||||||
streamlit: "./venv/bin/streamlit run main.py --server.runOnSave true",
|
|
||||||
php: "echo http://localhost:80 && npx vite",
|
|
||||||
default: "npm run dev",
|
|
||||||
} as const
|
|
||||||
const handleRun = async () => {
|
const handleRun = async () => {
|
||||||
if (isRunning && lastCreatedTerminalRef.current) {
|
if (isRunning && lastCreatedTerminalRef.current) {
|
||||||
await closeTerminal(lastCreatedTerminalRef.current)
|
await closeTerminal(lastCreatedTerminalRef.current)
|
||||||
|
@ -244,5 +244,47 @@ export interface TemplateConfig {
|
|||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
// PHP template config
|
||||||
|
php: {
|
||||||
|
id: "php",
|
||||||
|
name: "PHP",
|
||||||
|
runCommand: "echo http://localhost:80 && npx vite",
|
||||||
|
fileStructure: {
|
||||||
|
"index.php": {
|
||||||
|
purpose: "entry",
|
||||||
|
description: "Main PHP entry point"
|
||||||
|
},
|
||||||
|
"package.json": {
|
||||||
|
purpose: "config",
|
||||||
|
description: "Frontend dependencies and scripts"
|
||||||
|
},
|
||||||
|
"package-lock.json": {
|
||||||
|
purpose: "config",
|
||||||
|
description: "Locked dependency versions"
|
||||||
|
},
|
||||||
|
"vite.config.js": {
|
||||||
|
purpose: "config",
|
||||||
|
description: "Vite configuration for frontend assets"
|
||||||
|
},
|
||||||
|
"node_modules/": {
|
||||||
|
purpose: "dependencies",
|
||||||
|
description: "Frontend dependency files"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
conventions: [
|
||||||
|
"Follow PSR-12 coding standards",
|
||||||
|
"Use modern PHP 8+ features",
|
||||||
|
"Organize assets with Vite",
|
||||||
|
"Keep PHP logic separate from presentation"
|
||||||
|
],
|
||||||
|
dependencies: {
|
||||||
|
"vite": "^5.0.0"
|
||||||
|
},
|
||||||
|
scripts: {
|
||||||
|
"dev": "vite",
|
||||||
|
"build": "vite build",
|
||||||
|
"preview": "vite preview"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user