Skip to content

Commit e4db1a1

Browse files
kungfuxcotes2020
authored andcommitted
feat(dev): add vscode tasks (cotes2020#1843)
1 parent e3a78b6 commit e4db1a1

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ package-lock.json
2121
.vscode/*
2222
!.vscode/settings.json
2323
!.vscode/extensions.json
24+
!.vscode/tasks.json
2425

2526
# Misc
2627
_sass/dist

.vscode/tasks.json

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "Run Jekyll Server",
6+
"type": "shell",
7+
"command": "./tools/run.sh",
8+
"group": {
9+
"kind": "build",
10+
"isDefault": true
11+
},
12+
"problemMatcher": [],
13+
"detail": "Runs the Jekyll server with live reload."
14+
},
15+
{
16+
"label": "Build Jekyll Site",
17+
"type": "shell",
18+
"command": "./tools/test.sh",
19+
"group": {
20+
"kind": "build"
21+
},
22+
"problemMatcher": [],
23+
"detail": "Build the Jekyll site for production."
24+
},
25+
{
26+
"label": "Build JS (watch)",
27+
"type": "shell",
28+
"command": "npm run watch:js",
29+
"group": {
30+
"kind": "build"
31+
},
32+
"problemMatcher": [],
33+
"detail": "Build JS files in watch mode."
34+
},
35+
{
36+
"label": "Build CSS",
37+
"type": "shell",
38+
"command": "npm run build:css",
39+
"group": {
40+
"kind": "build"
41+
},
42+
"problemMatcher": [],
43+
"detail": "Build CSS files."
44+
},
45+
{
46+
"label": "Build JS & CSS",
47+
"type": "shell",
48+
"command": "npm run build",
49+
"group": {
50+
"kind": "build"
51+
},
52+
"problemMatcher": [],
53+
"detail": "Build JS & CSS for production."
54+
},
55+
{
56+
"label": "Run Jekyll Server + Build JS (watch)",
57+
"dependsOn": ["Run Jekyll Server", "Build JS (watch)"],
58+
"group": {
59+
"kind": "build"
60+
},
61+
"detail": "Runs both the Jekyll server with live reload and build JS files in watch mode."
62+
}
63+
]
64+
}

0 commit comments

Comments
 (0)