Skip to content

Instantly share code, notes, and snippets.

@hoangsvit
Last active October 12, 2023 02:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hoangsvit/a14dc326d6b84440ae84ee57ca8b0a5d to your computer and use it in GitHub Desktop.
Save hoangsvit/a14dc326d6b84440ae84ee57ca8b0a5d to your computer and use it in GitHub Desktop.
.vscode/tasks.json
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
// created by eplus.dev
"version": "2.0.0",
"tasks": [
{
"label": "backend",
"type": "shell",
"command":"composer i; php artisan ser",
"group": "build",
"options": {
"cwd": "${workspaceFolder}/backend"
},
"presentation": {
"reveal": "always",
"panel": "new",
"group": "one"
},
"runOptions": {
"runOn": "folderOpen"
}
},
{
"label": "backend without composer",
"type": "shell",
"command":"php artisan ser",
"group": "build",
"options": {
"cwd": "${workspaceFolder}/backend"
},
"presentation": {
"reveal": "always",
"panel": "new",
"group": "one"
}
},
{
"label": "queue",
"type": "shell",
"command": "php artisan queue:work",
"group": "build",
"options": {
"cwd": "${workspaceFolder}/backend"
},
"presentation": {
"reveal": "always",
"panel": "new",
"group": "one"
},
"runOptions": {
"runOn": "folderOpen"
}
},
{
"label": "migrate",
"type": "shell",
"command": "php artisan migrate",
"group": "none",
"options": {
"cwd": "${workspaceFolder}/backend"
},
"presentation": {
"reveal": "always",
"panel": "new",
"group": "one"
}
},
{
"label": "customer",
"type": "shell",
"command": "npm i; npm run dev:host",
"group": "build",
"options": {
"cwd": "${workspaceFolder}/customer"
},
"presentation": {
"reveal": "always",
"panel": "new",
"group": "one"
},
"runOptions": {
"runOn": "folderOpen"
}
},
{
"label": "customer w/o install",
"type": "shell",
"command": "npm run dev:host",
"group": "none",
"options": {
"cwd": "${workspaceFolder}/customer"
},
"presentation": {
"reveal": "always",
"panel": "new",
"group": "one"
}
},
{
"label": "iglocal",
"type": "shell",
"command": "npm i; npm run dev:host",
"group": "build",
"options": {
"cwd": "${workspaceFolder}/iglocal"
},
"presentation": {
"reveal": "always",
"panel": "new",
"group": "one"
},
"runOptions": {
"runOn": "folderOpen"
}
},
{
"label": "iglocal w/o install",
"type": "shell",
"command": "npm run dev:host",
"group": "none",
"options": {
"cwd": "${workspaceFolder}/iglocal"
},
"presentation": {
"reveal": "always",
"panel": "new",
"group": "one"
}
},
{
"label": "devtools",
"type": "shell",
"command": "node locale_pull.js",
"group": "none",
"options": {
"cwd": "${workspaceFolder}/devtools"
},
"presentation": {
"reveal": "always",
"panel": "new"
}
}
]
}
@hoangsvit
Copy link
Author

First, create tasks.json file on each .vscode root directory of your workspace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment