{ "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 -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" ] } ] }