Repository navigation
Expand file tree
/
Copy pathtasks.json
More file actions
128 lines (126 loc) · 4.59 KB
/
Copy pathtasks.json
File metadata and controls
128 lines (126 loc) · 4.59 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{
"version": "2.0.0",
"tasks": [
// ===== formatting ========================================================================
{
"label": "format: python (black)",
"type": "shell",
"command": "${workspaceFolder}/dev/.venv/bin/python -m black --config dev/config/pyproject.toml .",
"group": "build",
"problemMatcher": []
},
{
"label": "format: json/css/js/markdown/yaml (prettier)",
"type": "shell",
"command": "npx --yes prettier@3 --config dev/config/prettierrc.json --ignore-path dev/config/prettierignore --write '**/*.{json,css,js,md,yml,yaml}'",
"problemMatcher": []
},
{
"label": "format: lua (stylua)",
"type": "shell",
"command": "npx --yes @johnnymorganz/stylua-bin --config-path dev/config/stylua.toml dev/lua",
"problemMatcher": []
},
{
"label": "format: everything",
"dependsOn": [
"format: python (black)",
"format: json/css/js/markdown/yaml (prettier)",
"format: lua (stylua)"
],
"dependsOrder": "sequence",
"problemMatcher": []
},
// ===== linting (no changes, non-zero exit when something is off) ===========================
{
"label": "lint: python (black --check)",
"type": "shell",
"command": "${workspaceFolder}/dev/.venv/bin/python -m black --config dev/config/pyproject.toml --check --diff .",
"group": "test",
"problemMatcher": {
"owner": "black",
"fileLocation": ["relative", "${workspaceFolder}"],
"pattern": { "regexp": "^would reformat (.+)$", "file": 1, "message": 0 }
}
},
{
"label": "lint: json/css/js/markdown/yaml (prettier --check)",
"type": "shell",
"command": "npx --yes prettier@3 --config dev/config/prettierrc.json --ignore-path dev/config/prettierignore --check '**/*.{json,css,js,md,yml,yaml}'",
"problemMatcher": []
},
{
"label": "lint: lua (stylua --check)",
"type": "shell",
"command": "npx --yes @johnnymorganz/stylua-bin --config-path dev/config/stylua.toml --check dev/lua",
"problemMatcher": []
},
{
"label": "lint: data (json files parse, Lua reads them)",
"type": "shell",
"command": "texlua dev/lua/selftest.lua",
"problemMatcher": []
},
{
"label": "lint: everything",
"dependsOn": [
"lint: python (black --check)",
"lint: json/css/js/markdown/yaml (prettier --check)",
"lint: lua (stylua --check)",
"lint: data (json files parse, Lua reads them)"
],
"problemMatcher": []
},
// ===== build (see the Makefile header for the options) =====================================
{
"label": "build: resume PDF + Word (make)",
"type": "shell",
"command": "make resume docx",
"group": { "kind": "build", "isDefault": true },
"problemMatcher": []
},
{
"label": "build: publications PDF + Word (make pubs)",
"type": "shell",
"command": "make pubs && make docx",
"problemMatcher": []
},
{
"label": "build: web preview (make preview)",
"type": "shell",
"command": "make preview",
"problemMatcher": []
},
{
"label": "build: serve preview on :8000",
"type": "shell",
"command": "make serve",
"isBackground": true,
"problemMatcher": []
},
{
"label": "build: HTML to PDF, A5 zoom 30%",
"type": "shell",
"command": "make htmlpdf",
"problemMatcher": []
},
{
"label": "build: LinkedIn banners",
"type": "shell",
"command": "make banner",
"problemMatcher": []
},
{
"label": "build: check toolchain (make doctor)",
"type": "shell",
"command": "make doctor",
"problemMatcher": []
},
{
"label": "build: install formatter tools (black into .venv)",
"type": "shell",
"command": "make devtools",
"problemMatcher": []
}
]
}