-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtasks.json
More file actions
58 lines (58 loc) · 1.65 KB
/
tasks.json
File metadata and controls
58 lines (58 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"version": "2.0.0",
"tasks": [
{
"label": "Astro Dev Server",
"type": "shell",
"command": "npm run dev",
"runOptions": {
"runOn": "folderOpen"
},
"presentation": {
"clear": true,
"close": true,
"panel": "dedicated",
"showReuseMessage": false
}
},
{
"label": "Astro Build",
"type": "shell",
"group": "build",
"command": "npm run build",
"presentation": {
"reveal": "always",
"focus": true,
"panel": "dedicated",
"clear": true
}
},
{
"label": "Prettify All Files",
"type": "shell",
"command": "npx prettier --write .",
"runOptions": {
"runOn": "folderOpen"
},
"presentation": {
"close": true
}
},
{
"label": "Prettify Current File",
"type": "shell",
"command": "npx prettier --write ${file}",
"presentation": {
"showReuseMessage": false
}
},
{
"label": "Delete old Git branches",
"type": "shell",
"command": "git fetch --prune && git fetch -p ; git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -D",
"presentation": {
"showReuseMessage": false
}
}
]
}