Skip to content

Commit 668e86e

Browse files
Added VSCode config files to source control
1 parent 5727041 commit 668e86e

File tree

3 files changed

+70
-1
lines changed

3 files changed

+70
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ nbproject
1313
# IDEs & Text Editors
1414
.idea
1515
.sublime-*
16-
.vscode
16+
.vscode/settings.json
1717
.netbeans
1818
nbproject
1919

.vscode/launch.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// VSCode Launch Configuration
2+
// https://code.visualstudio.com/docs/editor/debugging#_launch-configurations
3+
4+
// Available variables which can be used inside of strings.
5+
// ${workspaceRoot}: the root folder of the team
6+
// ${file}: the current opened file
7+
// ${fileBasename}: the current opened file's basename
8+
// ${fileDirname}: the current opened file's dirname
9+
// ${fileExtname}: the current opened file's extension
10+
// ${cwd}: the current working directory of the spawned process
11+
12+
{
13+
"version": "0.2.0",
14+
"configurations": [
15+
{
16+
"type": "node",
17+
"request": "launch",
18+
"name": "Run Mocha",
19+
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
20+
"args": [
21+
"--timeout=60000",
22+
"--retries=0",
23+
],
24+
"outFiles": [
25+
"${workspaceFolder}/lib/**/*.js"
26+
],
27+
"smartStep": true,
28+
"skipFiles": [
29+
"<node_internals>/**/*.js"
30+
],
31+
},
32+
]
33+
}

.vscode/tasks.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// VSCode Tasks
2+
// https://code.visualstudio.com/docs/editor/tasks
3+
4+
// Available variables which can be used inside of strings.
5+
// ${workspaceRoot}: the root folder of the team
6+
// ${file}: the current opened file
7+
// ${fileBasename}: the current opened file's basename
8+
// ${fileDirname}: the current opened file's dirname
9+
// ${fileExtname}: the current opened file's extension
10+
// ${cwd}: the current working directory of the spawned process
11+
12+
{
13+
"version": "2.0.0",
14+
"command": "npm",
15+
"tasks": [
16+
{
17+
"type": "npm",
18+
"script": "lint",
19+
"group": {
20+
"kind": "build",
21+
"isDefault": true
22+
},
23+
"problemMatcher": "$tsc"
24+
},
25+
26+
27+
{
28+
"type": "npm",
29+
"script": "test",
30+
"group": {
31+
"kind": "test",
32+
"isDefault": true
33+
},
34+
},
35+
]
36+
}

0 commit comments

Comments
 (0)