Runs these tasks automatically when the workspace is opened:
npm run dev
: recompiles assets when modified; useful for Tailwind JIT mode, Vite, etc.php artisan horizon
: runs Horizon queue monitorphp artisan schedule:work
: runs scheduled tasks
{ | |
"folders": [ | |
// list of folders in the workspace | |
], | |
"settings": { | |
"task.allowAutomaticTasks": "on" | |
}, | |
"tasks": { | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "npm dev", | |
"type": "shell", | |
"command": "npm run dev", | |
"problemMatcher": [], | |
"runOptions": { | |
"runOn": "folderOpen" | |
} | |
}, | |
{ | |
"label": "npm build", | |
"type": "shell", | |
"command": "npm run build", | |
"problemMatcher": [], | |
"group": { | |
"kind": "build", | |
"isDefault": true | |
} | |
}, | |
{ | |
"label": "laravel horizon", | |
"type": "shell", | |
"command": "php artisan horizon", | |
"problemMatcher": [], | |
"runOptions": { | |
"runOn": "folderOpen" | |
} | |
}, | |
{ | |
"label": "laravel scheduler", | |
"type": "shell", | |
"command": "php artisan schedule:work", | |
"problemMatcher": [], | |
"runOptions": { | |
"runOn": "folderOpen" | |
} | |
}, | |
// Optional: run Stripe CLI to forward webhooks to the app | |
// { | |
// "label": "stripe cli", | |
// "type": "shell", | |
// "command": "stripe listen --project-name stripe-project-name --forward-to https://myapp.test/stripe-webhooks", | |
// "problemMatcher": [], | |
// "runOptions": { | |
// "runOn": "folderOpen" | |
// } | |
// } | |
] | |
} | |
// other configs | |
} |