feat: Refactor service management scripts to use a unified dev script
- Added package.json to manage development scripts. - Updated restart-services.ps1 to call the new dev script for starting services. - Refactored start-admin.ps1, start-backend.ps1, start-frontend.ps1, and start-mcp.ps1 to utilize the dev script for starting respective services. - Enhanced stop-services.ps1 to improve process termination logic by matching command patterns.
This commit is contained in:
14
package.json
Normal file
14
package.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "termi-blog-workspace",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "powershell -ExecutionPolicy Bypass -File ./dev.ps1",
|
||||
"dev:mcp": "powershell -ExecutionPolicy Bypass -File ./dev.ps1 -WithMcp",
|
||||
"dev:frontend": "powershell -ExecutionPolicy Bypass -File ./dev.ps1 -Only frontend",
|
||||
"dev:admin": "powershell -ExecutionPolicy Bypass -File ./dev.ps1 -Only admin",
|
||||
"dev:backend": "powershell -ExecutionPolicy Bypass -File ./dev.ps1 -Only backend",
|
||||
"dev:mcp-only": "powershell -ExecutionPolicy Bypass -File ./dev.ps1 -Only mcp",
|
||||
"stop": "powershell -ExecutionPolicy Bypass -File ./stop-services.ps1",
|
||||
"restart": "powershell -ExecutionPolicy Bypass -File ./restart-services.ps1"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user