|
4 | 4 | {
|
5 | 5 | "version": "2.0.0",
|
6 | 6 | "inputs": [
|
7 |
| - { |
8 |
| - "id": "version", |
9 |
| - "type": "promptString", |
10 |
| - "description": "Version number." |
11 |
| - }, |
12 |
| - { |
13 |
| - "id": "dependency", |
14 |
| - "type": "promptString", |
15 |
| - "description": "Show tree of packages requesting this dependency." |
16 |
| - }, |
17 | 7 | {
|
18 | 8 | "id": "templateOptions",
|
19 | 9 | "type": "pickString",
|
|
25 | 15 | "type": "promptString",
|
26 | 16 | "description": "Commit SHA or other VCS reference."
|
27 | 17 | },
|
| 18 | + { |
| 19 | + "id": "dependency", |
| 20 | + "type": "promptString", |
| 21 | + "description": "Show tree of packages requesting this dependency." |
| 22 | + }, |
| 23 | + { |
| 24 | + "id": "version", |
| 25 | + "type": "promptString", |
| 26 | + "description": "Version number." |
| 27 | + }, |
28 | 28 | {
|
29 | 29 | "id": "changeType",
|
30 | 30 | "type": "pickString",
|
|
149 | 149 | "icon": { "id": "file-symlink-directory" },
|
150 | 150 | "problemMatcher": []
|
151 | 151 | },
|
| 152 | + { |
| 153 | + "label": "setup: Finish initializing machine (cross-platform)", |
| 154 | + "type": "shell", |
| 155 | + "command": "scripts/Initialize-Machine.ps1", |
| 156 | + "icon": { "id": "file-symlink-directory" }, |
| 157 | + "problemMatcher": [] |
| 158 | + }, |
152 | 159 |
|
153 | 160 | // * -------------------------------------------------------------------------- * //
|
154 |
| - // * PRE-COMMIT * // |
| 161 | + // * OTHER TASKS * // |
155 | 162 |
|
156 | 163 | {
|
157 |
| - "label": "pre-commit", |
| 164 | + "label": "task: pre-commit", |
158 | 165 | "type": "shell",
|
159 | 166 | "command": ". scripts/Initialize-Shell.ps1; pre-commit",
|
160 | 167 | "icon": { "id": "git-commit" },
|
161 | 168 | "problemMatcher": []
|
162 | 169 | },
|
163 | 170 | {
|
164 |
| - "label": "pre-commit: all", |
| 171 | + "label": "task: pre-commit (all)", |
165 | 172 | "type": "shell",
|
166 | 173 | "command": ". scripts/Initialize-Shell.ps1; pre-commit run --all-files",
|
167 | 174 | "icon": { "id": "git-commit" },
|
168 | 175 | "problemMatcher": []
|
169 | 176 | },
|
170 |
| - |
171 |
| - // * -------------------------------------------------------------------------- * // |
172 |
| - // * GIT * // |
173 |
| - |
174 | 177 | {
|
175 |
| - "label": "git: Rebase back to fork", |
| 178 | + "label": "task: Rebase back to fork", |
176 | 179 | "type": "shell",
|
177 | 180 | "command": "git rebase -i --fork-point main",
|
178 | 181 | "icon": { "id": "git-branch" },
|
179 | 182 | "problemMatcher": []
|
180 | 183 | },
|
181 |
| - |
182 |
| - // * -------------------------------------------------------------------------- * // |
183 |
| - // * OTHER TASKS * // |
184 |
| - |
185 |
| - { |
186 |
| - "label": "task: Generate changelog entry", |
187 |
| - "type": "shell", |
188 |
| - "command": ". scripts/Initialize-Shell.ps1; python -m boilerdaq_tools add-change ${input:changeType}", |
189 |
| - "icon": { "id": "request-changes" }, |
190 |
| - "problemMatcher": [] |
191 |
| - }, |
192 | 184 | {
|
193 | 185 | "label": "task: Show tree of packages requesting a dependency",
|
194 | 186 | "type": "shell",
|
|
218 | 210 | "problemMatcher": []
|
219 | 211 | },
|
220 | 212 | {
|
221 |
| - "label": "task: profile this file", |
| 213 | + "label": "task: Profile this file", |
222 | 214 | "type": "shell",
|
223 | 215 | "command": ". scripts/Initialize-Shell.ps1; python -m cProfile -o .prof ${file}",
|
224 | 216 | "icon": { "id": "graph-line" },
|
225 | 217 | "problemMatcher": []
|
226 | 218 | },
|
227 | 219 | {
|
228 |
| - "label": "task: view profile results with snakeviz", |
| 220 | + "label": "task: View profile results with snakeviz", |
229 | 221 | "type": "shell",
|
230 | 222 | "command": ". scripts/Initialize-Shell.ps1; snakeviz .prof",
|
231 | 223 | "icon": { "id": "graph-line" },
|
|
234 | 226 | {
|
235 | 227 | "label": "task: Bump version",
|
236 | 228 | "type": "shell",
|
237 |
| - "command": "copier update --vcs-ref=$(git rev-parse HEAD:submodules/template) --defaults --data project_version='${input:version}'; git add .; git commit -m 'Bump version'; towncrier build --version '${input:version}'", |
238 |
| - "icon": { "id": "graph-line" }, |
| 229 | + "command": ". scripts/Initialize-Shell.ps1; copier update --vcs-ref=$(git rev-parse HEAD:submodules/template) --defaults --data project_version='${input:version}'; towncrier build --yes --version '${input:version}'; git add .; git commit -m '${input:version}'", |
| 230 | + "icon": { "id": "tag" }, |
| 231 | + "problemMatcher": [] |
| 232 | + }, |
| 233 | + { |
| 234 | + "label": "task: Release version", |
| 235 | + "type": "shell", |
| 236 | + "command": ". scripts/Initialize-Shell.ps1; $version = (Get-Content '.copier-answers.yml' | Select-String -Pattern '^project_version:\\s(.+)$').Matches.Groups[1].value; git tag --sign -m $version $version; git push; gh release create --discussion-category='announcements' --notes='' --title=$version --verify-tag $version", |
| 237 | + "icon": { "id": "tag" }, |
| 238 | + "problemMatcher": [] |
| 239 | + }, |
| 240 | + { |
| 241 | + "label": "task: Update changelog", |
| 242 | + "type": "shell", |
| 243 | + "command": ". scripts/Initialize-Shell.ps1; python -m boilerdaq_tools add-change ${input:changeType}", |
| 244 | + "icon": { "id": "tag" }, |
| 245 | + "problemMatcher": [] |
| 246 | + }, |
| 247 | + { |
| 248 | + "label": "task: Update changelog with the latest commit's message", |
| 249 | + "type": "shell", |
| 250 | + "command": ". scripts/Initialize-Shell.ps1; towncrier create +$((Get-Date).ToUniversalTime().ToString('o').Replace(':','-')).change.md --content $($(git log -1 --format='%s') + ' ([' + $(git rev-parse --short HEAD) + '](https://github.com/softboiler/boilerdaq/commit/' + $(git rev-parse HEAD) + '))\n')", |
| 251 | + "icon": { "id": "tag" }, |
239 | 252 | "problemMatcher": []
|
240 | 253 | }
|
241 | 254 | ]
|
|
0 commit comments