From 801436f8acb28f6a3e7544107c6c565b4fd4988d Mon Sep 17 00:00:00 2001 From: shimks Date: Tue, 22 May 2018 11:47:55 -0400 Subject: [PATCH] fix: remove launch.json --- examples/hello-world/.vscode/launch.json | 28 -------------- examples/log-extension/.vscode/launch.json | 28 -------------- examples/rpc-server/.vscode/launch.json | 28 -------------- examples/todo/.vscode/launch.json | 28 -------------- .../project/templates/.vscode/launch.json.ejs | 38 ------------------- .../test/integration/lib/project-generator.js | 3 -- 6 files changed, 153 deletions(-) delete mode 100644 examples/hello-world/.vscode/launch.json delete mode 100644 examples/log-extension/.vscode/launch.json delete mode 100644 examples/rpc-server/.vscode/launch.json delete mode 100644 examples/todo/.vscode/launch.json delete mode 100644 packages/cli/generators/project/templates/.vscode/launch.json.ejs diff --git a/examples/hello-world/.vscode/launch.json b/examples/hello-world/.vscode/launch.json deleted file mode 100644 index c3607be5007c..000000000000 --- a/examples/hello-world/.vscode/launch.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - // Use IntelliSense to learn about possible Node.js debug 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": "node", - "request": "launch", - "name": "Launch Program", - "program": "${workspaceFolder}/index.js" - }, - { - "type": "node", - "request": "launch", - "name": "Run Mocha tests", - "program": "${workspaceRoot}/node_modules/.bin/lb-mocha", - "cwd": "${workspaceRoot}", - "args": [ - "DIST/test/**/*.js", - "-t", - "0", - "--inspect" - ], - "autoAttachChildProcesses": true - } - ] -} diff --git a/examples/log-extension/.vscode/launch.json b/examples/log-extension/.vscode/launch.json deleted file mode 100644 index ef8b2483446d..000000000000 --- a/examples/log-extension/.vscode/launch.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - // Use IntelliSense to learn about possible Node.js debug 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": "node", - "request": "launch", - "name": "Launch Program", - "program": "${workspaceFolder}/index.js" - }, - { - "type": "node", - "request": "launch", - "name": "Run Mocha tests", - "program": "${workspaceFolder}/node_modules/.bin/lb-mocha", - "cwd": "${workspaceFolder}", - "args": [ - "DIST/test/**/*.js", - "-t", - "0", - "--inspect" - ], - "autoAttachChildProcesses": true - } - ] -} diff --git a/examples/rpc-server/.vscode/launch.json b/examples/rpc-server/.vscode/launch.json deleted file mode 100644 index c3607be5007c..000000000000 --- a/examples/rpc-server/.vscode/launch.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - // Use IntelliSense to learn about possible Node.js debug 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": "node", - "request": "launch", - "name": "Launch Program", - "program": "${workspaceFolder}/index.js" - }, - { - "type": "node", - "request": "launch", - "name": "Run Mocha tests", - "program": "${workspaceRoot}/node_modules/.bin/lb-mocha", - "cwd": "${workspaceRoot}", - "args": [ - "DIST/test/**/*.js", - "-t", - "0", - "--inspect" - ], - "autoAttachChildProcesses": true - } - ] -} diff --git a/examples/todo/.vscode/launch.json b/examples/todo/.vscode/launch.json deleted file mode 100644 index 3639a0dca4ec..000000000000 --- a/examples/todo/.vscode/launch.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - // Use IntelliSense to learn about possible Node.js debug 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": "node", - "request": "launch", - "name": "Launch Program", - "program": "${workspaceFolder}/index.js" - }, - { - "type": "node", - "request": "launch", - "name": "Run Mocha tests", - "program": "${workspaceRoot}/node_modules/.bin/lb_mocha", - "cwd": "${workspaceRoot}", - "args": [ - "DIST/test/**/*.js", - "-t", - "0", - "--inspect" - ], - "autoAttachChildProcesses": true - } - ] -} diff --git a/packages/cli/generators/project/templates/.vscode/launch.json.ejs b/packages/cli/generators/project/templates/.vscode/launch.json.ejs deleted file mode 100644 index e4890ee7c122..000000000000 --- a/packages/cli/generators/project/templates/.vscode/launch.json.ejs +++ /dev/null @@ -1,38 +0,0 @@ -{ - // Use IntelliSense to learn about possible Node.js debug 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": "node", - "request": "launch", - "name": "Launch Program", - "program": "${workspaceFolder}/index.js" - }, - { - "type": "node", - "request": "launch", - "name": "Run Mocha tests", -<% if (project.loopbackBuild) { -%> - "autoAttachChildProcesses": true, - "program": "${workspaceRoot}/node_modules/.bin/lb-mocha", -<% } else { -%> - "program": "${workspaceRoot}/node_modules/.bin/_mocha", -<% } -%> - "cwd": "${workspaceRoot}", - "args": [ - "--opts", - "${workspaceRoot}/test/mocha.opts", -<% if (project.loopbackBuild) { -%> - "--inspect", - "DIST/test/**/*.js", -<% } else {-%> - "dist/test/**/*.js", -<% } -%> - "-t", - "0" - ] - } - ] -} diff --git a/packages/cli/test/integration/lib/project-generator.js b/packages/cli/test/integration/lib/project-generator.js index dd47f487ef71..99bccf835111 100644 --- a/packages/cli/test/integration/lib/project-generator.js +++ b/packages/cli/test/integration/lib/project-generator.js @@ -239,7 +239,6 @@ module.exports = function(projGenerator, props, projectType) { '.npmrc', 'tslint.json', 'src/index.ts', - '.vscode/launch.json', '.vscode/settings.json', '.vscode/tasks.json', ]); @@ -248,7 +247,6 @@ module.exports = function(projGenerator, props, projectType) { ['package.json', '@loopback/build'], ['tslint.json', '@loopback/build'], ['tsconfig.json', '@loopback/build'], - ['.vscode/launch.json', 'lb-mocha'], ]); assert.noFileContent([ ['package.json', '"typescript"'], @@ -339,7 +337,6 @@ module.exports = function(projGenerator, props, projectType) { ['package.json', '"prettier"'], ['tslint.json', '"rules"'], ['tsconfig.json', '"compilerOptions"'], - ['.vscode/launch.json', '_mocha'], ]); }); });