This commit is contained in:
122
src/templates/dev.json
Normal file
122
src/templates/dev.json
Normal file
@@ -0,0 +1,122 @@
|
||||
{
|
||||
"name": "dev",
|
||||
"displayName": "Development",
|
||||
"description": "Standard development environment with editor and terminals",
|
||||
"variables": [
|
||||
{
|
||||
"name": "PROJECT_DIR",
|
||||
"description": "Project root directory",
|
||||
"defaultValue": "~/projects",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"name": "EDITOR",
|
||||
"description": "Default editor command",
|
||||
"defaultValue": "vim",
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"layout": {
|
||||
"version": "1.0.0",
|
||||
"terminalType": "tmux",
|
||||
"createdAt": "2024-01-01T00:00:00.000Z",
|
||||
"updatedAt": "2024-01-01T00:00:00.000Z",
|
||||
"session": {
|
||||
"id": "s-dev",
|
||||
"name": "dev",
|
||||
"windows": [
|
||||
{
|
||||
"id": "w0",
|
||||
"index": 0,
|
||||
"name": "editor",
|
||||
"panes": [
|
||||
{
|
||||
"id": "p0",
|
||||
"index": 0,
|
||||
"layout": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"width": 60,
|
||||
"height": 40
|
||||
},
|
||||
"command": "${EDITOR} ${PROJECT_DIR}",
|
||||
"cwd": "${PROJECT_DIR}",
|
||||
"title": "Editor"
|
||||
},
|
||||
{
|
||||
"id": "p1",
|
||||
"index": 1,
|
||||
"layout": {
|
||||
"x": 60,
|
||||
"y": 0,
|
||||
"width": 40,
|
||||
"height": 40
|
||||
},
|
||||
"command": "cd ${PROJECT_DIR}",
|
||||
"cwd": "${PROJECT_DIR}",
|
||||
"title": "Terminal"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "w1",
|
||||
"index": 1,
|
||||
"name": "server",
|
||||
"panes": [
|
||||
{
|
||||
"id": "p0",
|
||||
"index": 0,
|
||||
"layout": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"width": 50,
|
||||
"height": 24
|
||||
},
|
||||
"command": "cd ${PROJECT_DIR} && npm run dev",
|
||||
"cwd": "${PROJECT_DIR}",
|
||||
"title": "Dev Server"
|
||||
},
|
||||
{
|
||||
"id": "p1",
|
||||
"index": 1,
|
||||
"layout": {
|
||||
"x": 50,
|
||||
"y": 0,
|
||||
"width": 50,
|
||||
"height": 24
|
||||
},
|
||||
"command": "cd ${PROJECT_DIR} && npm run logs",
|
||||
"cwd": "${PROJECT_DIR}",
|
||||
"title": "Logs"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "w2",
|
||||
"index": 2,
|
||||
"name": "git",
|
||||
"panes": [
|
||||
{
|
||||
"id": "p0",
|
||||
"index": 0,
|
||||
"layout": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"width": 100,
|
||||
"height": 24
|
||||
},
|
||||
"command": "cd ${PROJECT_DIR} && git status",
|
||||
"cwd": "${PROJECT_DIR}",
|
||||
"title": "Git Status"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"activeWindowIndex": 0
|
||||
},
|
||||
"metadata": {
|
||||
"description": "Standard development setup",
|
||||
"tags": ["development", "dev", "editor"]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user