feat(VisualStudio Code): add launch configurations
Some checks failed
Angular / Lint (push) Has been cancelled
Angular / Build (push) Has been cancelled
Release v2.X / Prep (push) Has been cancelled
Tauri / Build (push) Has been cancelled
Tauri / Linter (push) Has been cancelled
Release v2.X / Installer linux (push) Has been cancelled
Release v2.X / Installer windows (push) Has been cancelled
Close Stale Issues / stale (push) Has been cancelled
Some checks failed
Angular / Lint (push) Has been cancelled
Angular / Build (push) Has been cancelled
Release v2.X / Prep (push) Has been cancelled
Tauri / Build (push) Has been cancelled
Tauri / Linter (push) Has been cancelled
Release v2.X / Installer linux (push) Has been cancelled
Release v2.X / Installer windows (push) Has been cancelled
Close Stale Issues / stale (push) Has been cancelled
This commit is contained in:
25
desktop/angular/.vscode/launch.json
vendored
Normal file
25
desktop/angular/.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Run UI in Chrome (npm run start)",
|
||||
"type": "chrome",
|
||||
"request": "launch",
|
||||
"preLaunchTask": "debugproj",
|
||||
"postDebugTask": "killnode",
|
||||
"url": "http://localhost:4200/",
|
||||
"webRoot": "${workspaceFolder}",
|
||||
"sourceMapPathOverrides": {
|
||||
"webpack:/*": "${webRoot}/*",
|
||||
"/./*": "${webRoot}/*",
|
||||
"/src/*": "${webRoot}/*",
|
||||
"/*": "*",
|
||||
"/./~/*": "${webRoot}/node_modules/*"
|
||||
}
|
||||
},
|
||||
|
||||
]
|
||||
}
|
||||
152
desktop/angular/.vscode/tasks.json
vendored
Normal file
152
desktop/angular/.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,152 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "ui-library-watch",
|
||||
"type": "npm",
|
||||
"script": "build-ui:dev:watch",
|
||||
"isBackground": true,
|
||||
"presentation": {
|
||||
"echo": true,
|
||||
"reveal": "always",
|
||||
"focus": false,
|
||||
"panel": "dedicated",
|
||||
"group": "dev-libraries"
|
||||
},
|
||||
"group": {
|
||||
"kind": "build"
|
||||
},
|
||||
"problemMatcher": {
|
||||
"owner": "typescript",
|
||||
"source": "ts",
|
||||
"fileLocation": ["relative", "${workspaceFolder}"],
|
||||
"pattern": "$tsc",
|
||||
"background": {
|
||||
"activeOnStart": true,
|
||||
"beginsPattern": "Building Angular Package",
|
||||
"endsPattern": "Compilation complete\\. Watching for file changes\\.\\.\\."
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "api-library-watch",
|
||||
"type": "npm",
|
||||
"script": "build-api:dev:watch",
|
||||
"isBackground": true,
|
||||
"presentation": {
|
||||
"echo": true,
|
||||
"reveal": "always",
|
||||
"focus": false,
|
||||
"panel": "dedicated",
|
||||
"group": "dev-libraries"
|
||||
},
|
||||
"group": {
|
||||
"kind": "build"
|
||||
},
|
||||
"problemMatcher": {
|
||||
"owner": "typescript",
|
||||
"source": "ts",
|
||||
"fileLocation": ["relative", "${workspaceFolder}"],
|
||||
"pattern": "$tsc",
|
||||
"background": {
|
||||
"activeOnStart": true,
|
||||
"beginsPattern": "Building Angular Package",
|
||||
"endsPattern": "Compilation complete\\. Watching for file changes\\.\\.\\."
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "build-libs-first",
|
||||
"type": "npm",
|
||||
"script": "build-libs:dev",
|
||||
"isBackground": false,
|
||||
"presentation": {
|
||||
"echo": true,
|
||||
"reveal": "always",
|
||||
"focus": false,
|
||||
"panel": "shared"
|
||||
},
|
||||
"group": {
|
||||
"kind": "build"
|
||||
},
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "debugproj",
|
||||
"dependsOrder": "sequence",
|
||||
"dependsOn": [
|
||||
"build-libs-first",
|
||||
"ui-library-watch",
|
||||
"api-library-watch",
|
||||
"main-app-with-polling"
|
||||
],
|
||||
"isBackground": true,
|
||||
"presentation": {
|
||||
"echo": false,
|
||||
"reveal": "never",
|
||||
"focus": false,
|
||||
"panel": "shared"
|
||||
},
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
},
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "main-app-with-polling",
|
||||
"type": "npm",
|
||||
"script": "serve-with-lib-watch",
|
||||
"isBackground": true,
|
||||
"presentation": {
|
||||
"echo": true,
|
||||
"reveal": "always",
|
||||
"focus": true,
|
||||
"panel": "dedicated",
|
||||
"group": "dev-main"
|
||||
},
|
||||
"group": {
|
||||
"kind": "build"
|
||||
},
|
||||
"problemMatcher": {
|
||||
"owner": "typescript",
|
||||
"source": "ts",
|
||||
"applyTo": "closedDocuments",
|
||||
"fileLocation": ["relative", "${workspaceFolder}"],
|
||||
"pattern": "$tsc",
|
||||
"background": {
|
||||
"activeOnStart": true,
|
||||
"beginsPattern": "Generating browser application bundles",
|
||||
"endsPattern": "Compiled successfully\\.|Failed to compile\\."
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "killnode",
|
||||
"type": "process",
|
||||
"windows": {
|
||||
"command": "taskkill",
|
||||
"args": ["/F", "/IM", "node.exe"]
|
||||
},
|
||||
"osx":{
|
||||
"command": "killall",
|
||||
"args": ["node"]
|
||||
},
|
||||
"linux":{
|
||||
"command": "killall",
|
||||
"args": ["node"]
|
||||
},
|
||||
"presentation": {
|
||||
"echo": true,
|
||||
"reveal": "always",
|
||||
"focus": false,
|
||||
"panel": "shared"
|
||||
},
|
||||
"group": {
|
||||
"kind": "build"
|
||||
},
|
||||
"isBackground": false,
|
||||
"problemMatcher": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -6,6 +6,11 @@
|
||||
"start": "npm install && npm run build-libs:dev && ng serve --proxy-config ./proxy.json",
|
||||
"build-libs": "cross-env NODE_ENV=production ng build --configuration production @safing/ui && cross-env NODE_ENV=production ng build --configuration production @safing/portmaster-api",
|
||||
"build-libs:dev": "ng build --configuration development @safing/ui && ng build --configuration development @safing/portmaster-api",
|
||||
|
||||
"build-ui:dev:watch": "ng build --configuration development @safing/ui --watch",
|
||||
"build-api:dev:watch": "ng build --configuration development @safing/portmaster-api --watch",
|
||||
"serve-with-lib-watch": "ng serve --proxy-config ./proxy.json --poll=2000",
|
||||
|
||||
"serve": "npm run build-libs:dev && ng serve --proxy-config ./proxy.json",
|
||||
"build:dev": "npm run build-libs:dev && ng build",
|
||||
"test": "ng test",
|
||||
|
||||
Reference in New Issue
Block a user