Permalink
Browse files

adds .vscode for coding conventions and launch configurations

  • Loading branch information...
antoniusostermann committed Apr 17, 2018
1 parent 7d49f40 commit e656d01ff723c5613c559b70c2ec3a049b309502
Showing with 93 additions and 3 deletions.
  1. +0 −3 .gitignore
  2. +1 −0 .npmignore
  3. +8 −0 .vscode/extensions.json
  4. +19 −0 .vscode/launch.json
  5. +14 −0 .vscode/settings.json
  6. +26 −0 .vscode/snippets/typescript.json
  7. +25 −0 .vscode/tasks.json
@@ -1,9 +1,6 @@
# Libs
node_modules
# IDE
.vscode
# Builds
dts
lib
@@ -6,4 +6,5 @@ gulpfile.js
tsconfig.json
.gitignore
coverage
cli
*.tgz
@@ -0,0 +1,8 @@
{
"recommendations": [
"eg2.tslint",
"rebornix.project-snippets",
"esbenp.prettier-vscode",
"eg2.vscode-npm-script"
]
}
@@ -0,0 +1,19 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Specs",
"program": "${workspaceRoot}/node_modules/jasmine-ts/lib/index.js",
"args": [
"**/*.spec.ts"
],
"stopOnEntry": false,
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"outputCapture":"std",
"preLaunchTask": "build-sources-and-maps"
}
]
}
@@ -0,0 +1,14 @@
// Place your settings in this file to overwrite default and user settings.
{
"typescript.tsdk": "./node_modules/typescript/lib",
"editor.formatOnSave": true,
"workbench.editor.enablePreview": false,
"workbench.editor.enablePreviewFromQuickOpen": false,
"tslint.autoFixOnSave": true,
"editor.tabSize": 2,
"editor.insertSpaces": true,
"gitlens.currentLine.enabled": false,
"gitlens.codeLens.scopes": [
"document"
],
}
@@ -0,0 +1,26 @@
{
"beforeEach (async + CurrentThisContext)": {
"prefix": "bef",
"body": [
"beforeEach(async function(this: CurrentThisContext) {",
"\t$1",
"});"
],
"description": "beforeEach function is called once before each spec"
},
"describe": {
"prefix": "desc",
"body": "describe(\"${1:with...}\", function() {\n\t$2\n});",
"description": "creates a suite of tests"
},
"expect": {
"prefix": "exp",
"body": "expect($1)$0",
"description": "takes a value, called the actual."
},
"it (async + CurrentThisContext)": {
"prefix": "it",
"body": "it(\"${1:returns...}\", async function(this: CurrentThisContext) {\n\t$2\n});",
"description": "creates a test method"
}
}
@@ -0,0 +1,25 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "gulp",
"task": "default",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "build-sources-and-maps",
"type": "gulp",
"task": "build-sources-and-maps"
},
{
"type": "gulp",
"task": "specs-watcher",
"problemMatcher": []
}
]
}

0 comments on commit e656d01

Please sign in to comment.