Skip to content

Commit 32b6c84

Browse files
Added VSCode config files to source control
1 parent e28fc70 commit 32b6c84

File tree

3 files changed

+93
-1
lines changed

3 files changed

+93
-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: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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+
// "console": "integratedTerminal",
25+
"outFiles": [
26+
"${workspaceFolder}/lib/**/*.js"
27+
],
28+
"smartStep": true,
29+
"skipFiles": [
30+
"<node_internals>/**/*.js"
31+
],
32+
},
33+
34+
35+
{
36+
"type": "node",
37+
"request": "launch",
38+
"name": "Run CLI",
39+
"program": "${workspaceRoot}/bin/bump.js",
40+
"args": [
41+
"major"
42+
],
43+
"cwd": "${workspaceFolder}/test/.tmp",
44+
"env": {
45+
"NODE_ENV": "development"
46+
},
47+
"console": "integratedTerminal",
48+
"outputCapture": "std",
49+
"outFiles": [
50+
"${workspaceFolder}/lib/**/*.js"
51+
],
52+
"smartStep": true,
53+
"skipFiles": [
54+
"<node_internals>/**/*.js"
55+
],
56+
}
57+
]
58+
}

.vscode/tasks.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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": "build",
19+
"group": {
20+
"kind": "build",
21+
"isDefault": true
22+
},
23+
"problemMatcher": "$tsc"
24+
},
25+
{
26+
"type": "npm",
27+
"script": "test",
28+
"group": {
29+
"kind": "test",
30+
"isDefault": true
31+
},
32+
},
33+
]
34+
}

0 commit comments

Comments
 (0)