|  | 
| 5 | 5 |   "version": "2.0.0", | 
| 6 | 6 |   "inputs": [ | 
| 7 | 7 |     { | 
| 8 |  | -      "id": "stage", | 
|  | 8 | +      "id": "templateOptions", | 
| 9 | 9 |       "type": "pickString", | 
| 10 |  | -      "description": "stage", | 
| 11 |  | -      "default": "", | 
| 12 |  | -      "options": ["", "modelfun"] | 
|  | 10 | +      "description": "Template options.", | 
|  | 11 | +      "options": ["", "-Prompt", "-Stay", "-Stay -Prompt", "-Recopy -Prompt"] | 
| 13 | 12 |     }, | 
| 14 | 13 |     { | 
| 15 |  | -      "id": "version", | 
|  | 14 | +      "id": "ref", | 
| 16 | 15 |       "type": "promptString", | 
| 17 |  | -      "description": "Version number." | 
|  | 16 | +      "description": "Commit SHA or other VCS reference." | 
| 18 | 17 |     }, | 
| 19 | 18 |     { | 
| 20 | 19 |       "id": "dependency", | 
| 21 | 20 |       "type": "promptString", | 
| 22 | 21 |       "description": "Show tree of packages requesting this dependency." | 
| 23 | 22 |     }, | 
| 24 | 23 |     { | 
| 25 |  | -      "id": "templateOptions", | 
| 26 |  | -      "type": "pickString", | 
| 27 |  | -      "description": "Template options.", | 
| 28 |  | -      "options": ["", "-Prompt", "-Stay", "-Stay -Prompt", "-Recopy -Prompt"] | 
| 29 |  | -    }, | 
| 30 |  | -    { | 
| 31 |  | -      "id": "ref", | 
|  | 24 | +      "id": "version", | 
| 32 | 25 |       "type": "promptString", | 
| 33 |  | -      "description": "Commit SHA or other VCS reference.", | 
|  | 26 | +      "description": "Version number." | 
| 34 | 27 |     }, | 
| 35 | 28 |     { | 
| 36 | 29 |       "id": "changeType", | 
|  | 
| 156 | 149 |       "icon": { "id": "file-symlink-directory" }, | 
| 157 | 150 |       "problemMatcher": [] | 
| 158 | 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 | +    }, | 
| 159 | 159 | 
 | 
| 160 | 160 |     // * -------------------------------------------------------------------------- * // | 
| 161 |  | -    // * PRE-COMMIT * // | 
|  | 161 | +    // * OTHER TASKS * // | 
| 162 | 162 | 
 | 
| 163 | 163 |     { | 
| 164 |  | -      "label": "pre-commit", | 
|  | 164 | +      "label": "task: pre-commit", | 
| 165 | 165 |       "type": "shell", | 
| 166 | 166 |       "command": ". scripts/Initialize-Shell.ps1; pre-commit", | 
| 167 | 167 |       "icon": { "id": "git-commit" }, | 
| 168 | 168 |       "problemMatcher": [] | 
| 169 | 169 |     }, | 
| 170 | 170 |     { | 
| 171 |  | -      "label": "pre-commit: all", | 
|  | 171 | +      "label": "task: pre-commit (all)", | 
| 172 | 172 |       "type": "shell", | 
| 173 | 173 |       "command": ". scripts/Initialize-Shell.ps1; pre-commit run --all-files", | 
| 174 | 174 |       "icon": { "id": "git-commit" }, | 
| 175 | 175 |       "problemMatcher": [] | 
| 176 | 176 |     }, | 
| 177 |  | - | 
| 178 |  | -    // * -------------------------------------------------------------------------- * // | 
| 179 |  | -    // * GIT * // | 
| 180 |  | - | 
| 181 | 177 |     { | 
| 182 |  | -      "label": "git: Rebase back to fork", | 
|  | 178 | +      "label": "task: Rebase back to fork", | 
| 183 | 179 |       "type": "shell", | 
| 184 | 180 |       "command": "git rebase -i --fork-point main", | 
| 185 | 181 |       "icon": { "id": "git-branch" }, | 
| 186 | 182 |       "problemMatcher": [] | 
| 187 | 183 |     }, | 
| 188 |  | - | 
| 189 |  | -    // * -------------------------------------------------------------------------- * // | 
| 190 |  | -    // * OTHER TASKS * // | 
| 191 |  | - | 
| 192 |  | -    { | 
| 193 |  | -      "label": "task: Generate changelog entry", | 
| 194 |  | -      "type": "shell", | 
| 195 |  | -      "command": ". scripts/Initialize-Shell.ps1; python -m boilercore_tools add-change ${input:changeType}", | 
| 196 |  | -      "icon": { "id": "request-changes" }, | 
| 197 |  | -      "problemMatcher": [] | 
| 198 |  | -    }, | 
| 199 | 184 |     { | 
| 200 | 185 |       "label": "task: Show tree of packages requesting a dependency", | 
| 201 | 186 |       "type": "shell", | 
|  | 
| 225 | 210 |       "problemMatcher": [] | 
| 226 | 211 |     }, | 
| 227 | 212 |     { | 
| 228 |  | -      "label": "task: profile this file", | 
|  | 213 | +      "label": "task: Profile this file", | 
| 229 | 214 |       "type": "shell", | 
| 230 | 215 |       "command": ". scripts/Initialize-Shell.ps1; python -m cProfile -o .prof ${file}", | 
| 231 | 216 |       "icon": { "id": "graph-line" }, | 
| 232 | 217 |       "problemMatcher": [] | 
| 233 | 218 |     }, | 
| 234 | 219 |     { | 
| 235 |  | -      "label": "task: view profile results with snakeviz", | 
|  | 220 | +      "label": "task: View profile results with snakeviz", | 
| 236 | 221 |       "type": "shell", | 
| 237 | 222 |       "command": ". scripts/Initialize-Shell.ps1; snakeviz .prof", | 
| 238 | 223 |       "icon": { "id": "graph-line" }, | 
|  | 
| 241 | 226 |     { | 
| 242 | 227 |       "label": "task: Bump version", | 
| 243 | 228 |       "type": "shell", | 
| 244 |  | -      "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}'", | 
| 245 |  | -      "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 boilercore_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/boilercore/commit/' + $(git rev-parse HEAD) + '))\n')", | 
|  | 251 | +      "icon": { "id": "tag" }, | 
| 246 | 252 |       "problemMatcher": [] | 
| 247 | 253 |     } | 
| 248 | 254 |   ] | 
|  | 
0 commit comments