Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: add VS Code support #6

Merged
merged 3 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"angular.ng-template",
"bradlc.vscode-tailwindcss",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
]
}
17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Start Chrome",
"url": "http://localhost:4200/",
"webRoot": "${workspaceFolder}",
"preLaunchTask": "serve",
"runtimeArgs": [
"--auto-open-devtools-for-tabs",
"--user-data-dir=${userHome}/.config/google-chrome-vscode"
]
}
]
}
70 changes: 70 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "serve",
"type": "shell",
"command": "ng serve",
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "Building..."
},
"endsPattern": {
"regexp": "Application bundle generation complete"
}
}
}
},
{
"label": "test (all specs)",
"type": "shell",
"command": "ng test",
"isBackground": true,
"group": {
"kind": "test",
"isDefault": false
},
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "Generating browser application bundles"
},
"endsPattern": {
"regexp": "Browser application bundle generation complete"
}
}
}
},
{
"label": "test current file",
"type": "shell",
"command": "ng test --include ${relativeFile}",
"isBackground": true,
"group": {
"kind": "test",
"isDefault": true
},
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "Generating browser application bundles"
},
"endsPattern": {
"regexp": "Browser application bundle generation complete"
}
}
}
}
]
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ To learn how to use a GitHub template repository, check out [Creating a reposito
## Dev Environment & Tools

- System: [Ubuntu](https://ubuntu.com/desktop)
- IDE: [WebStorm](https://www.jetbrains.com/webstorm/)
- IDEs: [VS Code](https://code.visualstudio.com/), [WebStorm](https://www.jetbrains.com/webstorm/)
- Formatter: [Prettier](https://prettier.io/)
- Linter: [ESLint](https://eslint.org/)
- AI assistant: [GitHub Copilot](https://github.com/features/copilot)
Expand Down
Loading