feat: enhance dev server configuration and command handling

- Updated the `/start-dev` route to accept a custom development command from project settings, allowing for greater flexibility in starting dev servers.
- Implemented a new `parseCustomCommand` method in the `DevServerService` to handle custom command parsing, including support for quoted strings.
- Added a new `DevServerSection` component in the UI for configuring the dev server command, featuring quick presets and auto-detection options.
- Updated project settings interface to include a `devCommand` property for storing custom commands.

This update improves the user experience by allowing users to specify custom commands for their development servers, enhancing the overall development workflow.
This commit is contained in:
Shirone
2026-01-22 17:13:16 +01:00
parent 41b127ebf3
commit e110c058a2
8 changed files with 375 additions and 22 deletions

View File

@@ -1190,6 +1190,14 @@ export interface ProjectSettings {
*/
testCommand?: string;
// Dev Server Configuration
/**
* Custom command to start the development server for this project.
* If not specified, auto-detection will be used based on project structure.
* Examples: "npm run dev", "yarn dev", "pnpm dev", "cargo watch", "go run ."
*/
devCommand?: string;
// Phase Model Overrides (per-project)
/**
* Override phase model settings for this project.