Skip to content

Commit

Permalink
Added VSCode config files to source control
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMessinger committed Mar 11, 2020
1 parent ee4498e commit 348687c
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ nbproject
# IDEs & Text Editors
.idea
.sublime-*
.vscode
.vscode/settings.json
.netbeans
nbproject

Expand Down
47 changes: 47 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Run Mocha tests",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"stopOnEntry": false,
"args": ["--timeout=600000"],
"cwd": "${workspaceRoot}",
"preLaunchTask": null,
"runtimeExecutable": null,
"runtimeArgs": [
"--nolazy"
],
"env": {
"NODE_ENV": "development"
},
"console": "internalConsole",
"sourceMaps": false
},
{
"name": "Run TypeScript tests",
"type": "node",
"request": "launch",
"program": "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",
"stopOnEntry": false,
"args": [
"run",
"test:typescript"
],
"cwd": "${workspaceRoot}",
"preLaunchTask": null,
"runtimeExecutable": null,
"runtimeArgs": [
"--nolazy"
],
"env": {
"NODE_ENV": "development"
},
"console": "internalConsole",
"outputCapture": "std",
"sourceMaps": false
}
]
}
29 changes: 29 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team
// ${file}: the current opened file
// ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname
// ${fileExtname}: the current opened file's extension
// ${cwd}: the current working directory of the spawned process

{
"version": "0.1.0",
"command": "npm",
"isShellCommand": true,
"suppressTaskName": true,
"tasks": [
{
"taskName": "lint",
"args": ["run", "lint"],
"showOutput": "always",
"problemMatcher": "$eslint-stylish",
"isBuildCommand": true
},
{
"taskName": "test",
"args": ["run", "mocha"],
"showOutput": "always",
"isTestCommand": true
}
]
}

0 comments on commit 348687c

Please sign in to comment.