58 lines
1.7 KiB
JSON
58 lines
1.7 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "frontend build",
|
|
"type": "shell",
|
|
"command": "cd ${workspaceFolder}\\frontend && npm run build",
|
|
"windows": {
|
|
"options": {
|
|
"shell": {
|
|
"executable": "cmd.exe",
|
|
"args": ["/d", "/c"]
|
|
}
|
|
}
|
|
},
|
|
"problemMatcher": [
|
|
"$tsc"
|
|
]
|
|
},
|
|
{
|
|
"label": "dist copy",
|
|
"type": "shell",
|
|
"command": "xcopy \"${workspaceFolder}\\frontend\\dist\\*\" \"${workspaceFolder}\\backend\\frontend\" /s /e /y /q",
|
|
"problemMatcher": [
|
|
"$tsc"
|
|
],
|
|
// "dependsOn": [
|
|
// "frontend build"
|
|
// ]
|
|
},
|
|
{
|
|
"label": "Git Commit & Push",
|
|
"type": "shell",
|
|
"command": "cd ${workspaceFolder} && git add . && git commit -m \"%date% %time%\" && git push",
|
|
"problemMatcher": [
|
|
"$tsc"
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"dependsOn": [
|
|
"dist copy"
|
|
]
|
|
},
|
|
{
|
|
"label": "curl webhook",
|
|
"type": "shell",
|
|
"command": "python -c \\\"import requests; r=requests.post('https://47.112.174.207:8989/hook?access_key=q1kbVssnJzhWrrW7T1CDefq58wKs9DL70gWHznYNFH8TBwI9', verify=False); print(r.status_code)\\\"",
|
|
"problemMatcher": [
|
|
"$tsc"
|
|
],
|
|
// "dependsOn": [
|
|
// "Git Commit & Push"
|
|
// ]
|
|
}
|
|
]
|
|
|
|
} |