Add task to run dev server

This commit is contained in:
Niek van der Maas 2023-03-03 16:45:51 +01:00
parent ae01da3556
commit e91197744f
2 changed files with 32 additions and 0 deletions

1
.gitignore vendored
View File

@ -15,6 +15,7 @@ dist-ssr
# Editor directories and files
.vscode/*
!.vscode/extensions.json
!.vscode/tasks.json
.idea
.DS_Store
*.suo

31
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,31 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "build",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [],
"label": "npm: build",
"detail": "Run a build (production)"
},
{
"type": "npm",
"script": "dev",
"group": "none",
"problemMatcher": [],
"label": "npm: dev",
"detail": "Run dev server (auto-run on folder open)",
"presentation": {
"reveal": "always",
"panel": "new"
},
"runOptions": {
"runOn": "folderOpen",
}
}
]
}