|
1 | 1 | { |
2 | | - // For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558 |
| 2 | + // See https://go.microsoft.com/fwlink/?LinkId=733558 |
| 3 | + // for the documentation about the tasks.json format. |
| 4 | + // Schema: https://code.visualstudio.com/docs/reference/tasks-appendix |
| 5 | + "$schema": "vscode://schemas/tasks", |
3 | 6 | "version": "2.0.0", |
| 7 | + "presentation": { |
| 8 | + "clear": true, |
| 9 | + "panel": "dedicated", |
| 10 | + "showReuseMessage": false |
| 11 | + }, |
| 12 | + "problemMatcher": [], |
| 13 | + "options": { |
| 14 | + "cwd": "${workspaceFolder}" |
| 15 | + }, |
4 | 16 | "tasks": [ |
| 17 | + // =================================== |
| 18 | + // Install and update dependencies |
| 19 | + // =================================== |
5 | 20 | { |
6 | | - // Local dev server (ng serve) |
7 | | - "label": "local start", |
| 21 | + "label": "Install: Node packages", |
| 22 | + "detail": "Install npm workspace dependencies (npm packages)", |
| 23 | + "type": "shell", |
| 24 | + "command": "npm install" |
| 25 | + }, |
| 26 | + { |
| 27 | + "label": "Clean: Node packages", |
| 28 | + "detail": "Delete node_modules and lock files", |
| 29 | + "type": "npm", |
| 30 | + "script": "clean" |
| 31 | + }, |
| 32 | + { |
| 33 | + "label": "Check: Angular packages", |
| 34 | + "detail": "Check for dependency updates using Angular CLI for the client website.", |
| 35 | + "type": "shell", |
| 36 | + "command": "npx ng update" |
| 37 | + }, |
| 38 | + { |
| 39 | + "label": "Update: Angular packages", |
| 40 | + "detail": "Update dependencies using Angular CLI for the client website.", |
| 41 | + "type": "shell", |
| 42 | + "command": "npx ng update @angular/cli @angular/core angular-eslint --allow-dirty" |
| 43 | + }, |
| 44 | + { |
| 45 | + "label": "Check: Node packages", |
| 46 | + "detail": "Check for dependency updates in root and all workspace packages", |
| 47 | + "type": "shell", |
| 48 | + "command": "npx npm-check-updates --deep --peer" |
| 49 | + }, |
| 50 | + { |
| 51 | + "label": "Update: Node packages", |
| 52 | + "detail": "Update dependencies in root and all workspace packages to latest versions", |
| 53 | + "type": "shell", |
| 54 | + "command": "npx npm-check-updates --deep --peer --upgrade && npm install", |
| 55 | + "dependsOn": "Update: Angular packages", |
| 56 | + "dependsOrder": "sequence" |
| 57 | + }, |
| 58 | + // =================================== |
| 59 | + // Lint and format |
| 60 | + // =================================== |
| 61 | + { |
| 62 | + "label": "Test", |
| 63 | + "detail": "Run vitest test suite", |
| 64 | + "type": "npm", |
| 65 | + "script": "test", |
| 66 | + "group": { |
| 67 | + "kind": "test", |
| 68 | + "isDefault": true |
| 69 | + } |
| 70 | + }, |
| 71 | + { |
| 72 | + "label": "Lint: All (verify)", |
| 73 | + "detail": "Run all linters, checks, and tests across the workspace (prettier + markdown + TypeScript + typecheck + tests)", |
| 74 | + "group": { |
| 75 | + "kind": "build", |
| 76 | + "isDefault": true |
| 77 | + }, |
| 78 | + "dependsOn": [ |
| 79 | + "Lint: Markdown (verify)", |
| 80 | + "Lint: Prettier (verify)", |
| 81 | + "Lint: TypeScript (verify)", |
| 82 | + "Lint: Typecheck (verify)", |
| 83 | + "Test" |
| 84 | + ], |
| 85 | + "dependsOrder": "parallel", |
| 86 | + "problemMatcher": [ |
| 87 | + "$markdownlint", |
| 88 | + "$eslint-stylish", |
| 89 | + "$tsc" |
| 90 | + ] |
| 91 | + }, |
| 92 | + { |
| 93 | + "label": "Lint: All (fix)", |
| 94 | + "detail": "Run all linters with auto-fix across the workspace (prettier + markdown + TypeScript)", |
| 95 | + "dependsOn": [ |
| 96 | + "Install: Node packages", |
| 97 | + "Lint: Prettier (fix)", |
| 98 | + "Lint: Markdown (fix)", |
| 99 | + "Lint: TypeScript (fix)" |
| 100 | + ], |
| 101 | + "dependsOrder": "sequence", |
| 102 | + "problemMatcher": [ |
| 103 | + "$markdownlint", |
| 104 | + "$eslint-stylish", |
| 105 | + "$tsc" |
| 106 | + ] |
| 107 | + }, |
| 108 | + { |
| 109 | + "label": "Lint: Markdown (verify)", |
| 110 | + "detail": "Verify formatting for all markdown files", |
| 111 | + "type": "shell", |
| 112 | + "command": "npx markdownlint-cli2", |
| 113 | + "problemMatcher": "$markdownlint" |
| 114 | + }, |
| 115 | + { |
| 116 | + "label": "Lint: Markdown (fix)", |
| 117 | + "detail": "Auto-fix formatting for all markdown files", |
| 118 | + "type": "shell", |
| 119 | + "command": "npx markdownlint-cli2 --fix", |
| 120 | + "problemMatcher": "$markdownlint" |
| 121 | + }, |
| 122 | + { |
| 123 | + "label": "Lint: Prettier (verify)", |
| 124 | + "detail": "Run Prettier check across the workspace", |
| 125 | + "type": "npm", |
| 126 | + "script": "lint:prettier" |
| 127 | + }, |
| 128 | + { |
| 129 | + "label": "Lint: Prettier (fix)", |
| 130 | + "detail": "Run Prettier write across the workspace", |
| 131 | + "type": "npm", |
| 132 | + "script": "lint:prettier:fix", |
| 133 | + "dependsOn": "Install: Node packages", |
| 134 | + "dependsOrder": "sequence" |
| 135 | + }, |
| 136 | + { |
| 137 | + "label": "Lint: TypeScript (verify)", |
| 138 | + "detail": "Run ESLint on TypeScript files", |
| 139 | + "type": "npm", |
| 140 | + "script": "lint:ts", |
| 141 | + "problemMatcher": "$eslint-stylish" |
| 142 | + }, |
| 143 | + { |
| 144 | + "label": "Lint: TypeScript (fix)", |
| 145 | + "detail": "Auto-fix ESLint issues in TypeScript files", |
| 146 | + "type": "npm", |
| 147 | + "script": "lint:ts:fix", |
| 148 | + "problemMatcher": "$eslint-stylish" |
| 149 | + }, |
| 150 | + { |
| 151 | + "label": "Lint: Typecheck (verify)", |
| 152 | + "detail": "Run TypeScript type checking without emitting files", |
| 153 | + "type": "npm", |
| 154 | + "script": "typecheck", |
| 155 | + "problemMatcher": "$tsc" |
| 156 | + }, |
| 157 | + // =================================== |
| 158 | + // Serve application |
| 159 | + // =================================== |
| 160 | + { |
| 161 | + "label": "Run: Website dev server", |
8 | 162 | "type": "npm", |
9 | 163 | "script": "start", |
10 | 164 | "isBackground": true, |
|
0 commit comments