dvlyadmin_pro/.vscode/tasks.json

43 lines
1.4 KiB
JSON

{
"version": "2.0.0",
"tasks": [
{
"label": "frontend build",
"type": "shell",
"command": "cd D:\\dvlyadmin_pro\\dvlyadmin_pro\\frontend;d:;npm run build",
"problemMatcher": [
"$tsc"
]
},
{
"label": "dist copy",
"type": "shell",
"command": "xcopy 'D:\\dvlyadmin_pro\\dvlyadmin_pro\\frontend\\dist\\*' 'D:\\dvlyadmin_pro\\dvlyadmin_pro\\backend\\frontend' /s /e /y /q ",
"problemMatcher": [
"$tsc"
],
"dependsOn": ["frontend build"]
},
{
"label": "Git Commit & Push",
"type": "shell",
"command": "cd D:\\dvlyadmin_pro\\dvlyadmin_pro; git add . ; git commit -m \\\"$(Get-Date -Format 'yyyy-MM-dd HH:mm:ss') vscode task自动提交\\\"; git push",
"problemMatcher": ["$tsc"],
"options": {
"cwd": "${workspaceFolder}"
},
"dependsOn": ["dist copy"]
},
{
"label": "curl webhook",
"type": "shell",
"command": "python",
"args": [
"-c", "import requests; r=requests.post('https://47.112.174.207:8989/hook?access_key=q1kbVssnJzhWrrW7T1CDefq58wKs9DL70gWHznYNFH8TBwI9'); "
],
"problemMatcher": ["$tsc"],
"dependsOn": ["Git Commit & Push"]
}
]
}