Skip to content

Commit

Permalink
📦 Chore: add debug launch.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Molunerfinn committed Apr 6, 2021
1 parent 425a619 commit 9950259
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
// 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": [
{
"type": "pwa-node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"preLaunchTask": "npm: debug", // the label in tasks.json
"program": "${workspaceFolder}\\temp.js"
}
]
}
12 changes: 12 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "debug",
"problemMatcher": [],
"label": "npm: debug",
"detail": "tsc -p . --sourcemap && npm run copy",
}
]
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"minor": "npm version minor && git push origin master && git push origin --tags",
"major": "npm version major && git push origin master && git push origin --tags",
"cz": "git-cz",
"release": "bump-version"
"release": "bump-version",
"debug": "tsc -p . --sourcemap && npm run copy"
},
"keywords": [
"picture",
Expand Down

0 comments on commit 9950259

Please sign in to comment.