mirror of
https://github.com/Wolvan/poll.horse.git
synced 2024-11-25 14:08:01 +01:00
Add debugging run script
With this script one can easily launch a debuggable instance of the current source code and then use vscode's debugger to attach to it.
This commit is contained in:
parent
5f9f2efee7
commit
08cb0df5e5
3 changed files with 19 additions and 0 deletions
17
.vscode/launch.json
vendored
Normal file
17
.vscode/launch.json
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
// 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",
|
||||
"port": 9229,
|
||||
"request": "attach",
|
||||
"skipFiles": [
|
||||
"<node_internals>/**"
|
||||
],
|
||||
"type": "pwa-node"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -29,4 +29,5 @@ Execute the scripts with `npm run <script>`
|
|||
- `lint` - Runs `eslint` and checks for code styling problems
|
||||
- `build` - Compile the TypeScript Source to `dist/`
|
||||
- `test` - Runs `lint`, `find-todo` and `mocha` in order
|
||||
- `debug` - Start the `./src/main.ts` with node and start the debugger on port 9229
|
||||
- `start` - Run `test` and `build`, then try and execute the `./dist/main.js` in the `./dist` directory to test
|
|
@ -10,6 +10,7 @@
|
|||
"lint": "eslint .",
|
||||
"build": "rimraf ./dist && tsc",
|
||||
"test": "npm run lint && npm run find-todo && npm run mocha",
|
||||
"debug": "node --inspect -r ts-node/register src/main",
|
||||
"start": "npm test && npm run build && node ./dist/main.js",
|
||||
"prepublish": "npm test && npm run build"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue