Files
speckle-server/packages/server/.vscode/launch.json
T
Iain Sproat 444d2ca7dd Structured logging (attempt 2) (#1234)
* Revert "Revert "feat(structured logging): implements structured logging for backend (#1217)" (#1227)"

This reverts commit 63e6581162.

* Use pino-http instead of express pino logger
* Use correct reference to knex and do not instantiate HttpLogger prematurely
* Adds missing dependency for pino to webhook-service
* Do not instantiate middleware when passed to express
* Refactor to move logging into shared
* Copy shared packages into dockerfiles
* Build shared workspace in docker build-stage for fileimport & webhook
2022-12-05 14:49:52 +00:00

79 lines
2.3 KiB
JSON

{
// 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": "Attach by Process ID",
"processId": "${command:PickProcess}",
"request": "attach",
"skipFiles": ["<node_internals>/**"],
"type": "node"
},
{
"name": "Launch via YARN",
"request": "launch",
"console": "integratedTerminal",
"runtimeArgs": ["dev"],
"runtimeExecutable": "yarn",
"skipFiles": ["<node_internals>/**"],
"type": "pwa-node",
"envFile": "${workspaceFolder}/.env"
},
{
"name": "run script",
// "program": "${workspaceFolder}/scripts/duplicateUserMigration.js",
"program": "${file}",
"request": "launch",
"skipFiles": ["<node_internals>/**"],
"type": "pwa-node",
"runtimeExecutable": "yarn",
"runtimeArgs": ["ts-node", "${file}"],
"console": "integratedTerminal"
},
{
"args": ["-g='@comments'", "--timeout=10000", "--exit"],
// "envFile": "${workspaceFolder}/.env",
"env": {
"PORT": "0",
"POSTGRES_URL": "postgresql://localhost:5432/speckle2_test"
// "POSTGRES_USER": "speckle",
// "POSTGRES_PASSWORD": "speckle",
// "POSTGRES_DB": "speckle2_test",
// "NODE_ENV": "test"
},
"internalConsoleOptions": "openOnSessionStart",
"name": "Mocha Tests",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"request": "launch",
"skipFiles": ["<node_internals>/**"],
"type": "pwa-node"
},
{
"name": "NPM test",
"request": "launch",
"runtimeArgs": [
"run-script",
"test",
"--",
// "-g='@apps-api'",
"--exit",
"--timeout=0"
],
"console": "integratedTerminal",
// "envFile": "${workspaceFolder}/.env",
"runtimeExecutable": "npm",
"skipFiles": ["<node_internals>/**"],
"type": "pwa-node"
},
{
"type": "pwa-node",
"request": "launch",
"name": "Launch Program",
"skipFiles": ["<node_internals>/**"],
"program": "${workspaceFolder}/dist/bin/www"
}
]
}