From 6a115d473d1969ede4504636338ce25251cec634 Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Fri, 21 Nov 2025 07:54:01 +0100 Subject: [PATCH] feat: add .vscode in Angular templates Signed-off-by: David Dal Busco --- .gitignore | 2 +- .../angular-example/.vscode/extensions.json | 4 ++ templates/angular-example/.vscode/launch.json | 20 +++++++++ templates/angular-example/.vscode/tasks.json | 42 +++++++++++++++++++ .../angular-starter/.vscode/extensions.json | 4 ++ templates/angular-starter/.vscode/launch.json | 20 +++++++++ templates/angular-starter/.vscode/tasks.json | 42 +++++++++++++++++++ 7 files changed, 133 insertions(+), 1 deletion(-) create mode 100644 templates/angular-example/.vscode/extensions.json create mode 100644 templates/angular-example/.vscode/launch.json create mode 100644 templates/angular-example/.vscode/tasks.json create mode 100644 templates/angular-starter/.vscode/extensions.json create mode 100644 templates/angular-starter/.vscode/launch.json create mode 100644 templates/angular-starter/.vscode/tasks.json diff --git a/.gitignore b/.gitignore index aaa783dd..1b2ca644 100644 --- a/.gitignore +++ b/.gitignore @@ -10,7 +10,7 @@ log.txt *.sublime-project *.sublime-workspace .idea/ -.vscode/ +/.vscode/ npm-debug.log* .sourcemaps/ diff --git a/templates/angular-example/.vscode/extensions.json b/templates/angular-example/.vscode/extensions.json new file mode 100644 index 00000000..77b37457 --- /dev/null +++ b/templates/angular-example/.vscode/extensions.json @@ -0,0 +1,4 @@ +{ + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846 + "recommendations": ["angular.ng-template"] +} diff --git a/templates/angular-example/.vscode/launch.json b/templates/angular-example/.vscode/launch.json new file mode 100644 index 00000000..925af837 --- /dev/null +++ b/templates/angular-example/.vscode/launch.json @@ -0,0 +1,20 @@ +{ + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "ng serve", + "type": "chrome", + "request": "launch", + "preLaunchTask": "npm: start", + "url": "http://localhost:4200/" + }, + { + "name": "ng test", + "type": "chrome", + "request": "launch", + "preLaunchTask": "npm: test", + "url": "http://localhost:9876/debug.html" + } + ] +} diff --git a/templates/angular-example/.vscode/tasks.json b/templates/angular-example/.vscode/tasks.json new file mode 100644 index 00000000..a298b5bd --- /dev/null +++ b/templates/angular-example/.vscode/tasks.json @@ -0,0 +1,42 @@ +{ + // For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558 + "version": "2.0.0", + "tasks": [ + { + "type": "npm", + "script": "start", + "isBackground": true, + "problemMatcher": { + "owner": "typescript", + "pattern": "$tsc", + "background": { + "activeOnStart": true, + "beginsPattern": { + "regexp": "(.*?)" + }, + "endsPattern": { + "regexp": "bundle generation complete" + } + } + } + }, + { + "type": "npm", + "script": "test", + "isBackground": true, + "problemMatcher": { + "owner": "typescript", + "pattern": "$tsc", + "background": { + "activeOnStart": true, + "beginsPattern": { + "regexp": "(.*?)" + }, + "endsPattern": { + "regexp": "bundle generation complete" + } + } + } + } + ] +} diff --git a/templates/angular-starter/.vscode/extensions.json b/templates/angular-starter/.vscode/extensions.json new file mode 100644 index 00000000..77b37457 --- /dev/null +++ b/templates/angular-starter/.vscode/extensions.json @@ -0,0 +1,4 @@ +{ + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846 + "recommendations": ["angular.ng-template"] +} diff --git a/templates/angular-starter/.vscode/launch.json b/templates/angular-starter/.vscode/launch.json new file mode 100644 index 00000000..925af837 --- /dev/null +++ b/templates/angular-starter/.vscode/launch.json @@ -0,0 +1,20 @@ +{ + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "ng serve", + "type": "chrome", + "request": "launch", + "preLaunchTask": "npm: start", + "url": "http://localhost:4200/" + }, + { + "name": "ng test", + "type": "chrome", + "request": "launch", + "preLaunchTask": "npm: test", + "url": "http://localhost:9876/debug.html" + } + ] +} diff --git a/templates/angular-starter/.vscode/tasks.json b/templates/angular-starter/.vscode/tasks.json new file mode 100644 index 00000000..a298b5bd --- /dev/null +++ b/templates/angular-starter/.vscode/tasks.json @@ -0,0 +1,42 @@ +{ + // For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558 + "version": "2.0.0", + "tasks": [ + { + "type": "npm", + "script": "start", + "isBackground": true, + "problemMatcher": { + "owner": "typescript", + "pattern": "$tsc", + "background": { + "activeOnStart": true, + "beginsPattern": { + "regexp": "(.*?)" + }, + "endsPattern": { + "regexp": "bundle generation complete" + } + } + } + }, + { + "type": "npm", + "script": "test", + "isBackground": true, + "problemMatcher": { + "owner": "typescript", + "pattern": "$tsc", + "background": { + "activeOnStart": true, + "beginsPattern": { + "regexp": "(.*?)" + }, + "endsPattern": { + "regexp": "bundle generation complete" + } + } + } + } + ] +}