Last active
July 23, 2020 09:37
-
-
Save kembek/5bf7ccfe4b2a38d52c6eec92170c35c4 to your computer and use it in GitHub Desktop.
VSCode configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "version": "0.2.0", | |
| "inputs": [ | |
| { | |
| "type": "pickString", | |
| "id": "project", | |
| "default": "crm", | |
| "description": "The project name", | |
| "options": ["crm", "auth"] | |
| }, | |
| { | |
| "type": "pickString", | |
| "id": "port", | |
| "default": "4200", | |
| "description": "The port for running app", | |
| "options": ["4100", "4200", "4300"] | |
| } | |
| ], | |
| "configurations": [ | |
| { | |
| "type": "chrome", | |
| "request": "launch", | |
| "name": "Run web app", | |
| "url": "http://localhost:${input:port}", | |
| "webRoot": "${workspaceFolder}", | |
| "userDataDir": "/home/kembek/Documents/tmp/vscode-chrome" | |
| }, | |
| { | |
| "name": "Debug e2e", | |
| "type": "node", | |
| "request": "launch", | |
| "port": 5859, | |
| "timeout": 60000, | |
| "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/wdio", | |
| "cwd": "${workspaceRoot}", | |
| "console": "integratedTerminal", | |
| "args": ["./e2e/wdio.conf.js", "--spec", "${file}", "--watch"], | |
| "autoAttachChildProcesses": true, | |
| "env": { | |
| "DEBUG": "true", | |
| "PROJECT": "base-web-${input:project}", | |
| "PORT": "${input:port}" | |
| } | |
| } | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "chrome", | |
| "request": "launch", | |
| "name": "Menu Base", | |
| "url": "http://localhost:4300", | |
| "webRoot": "${workspaceFolder}", | |
| "userDataDir": "Documents/tmp/vscode-chrome" | |
| }, | |
| { | |
| "type": "chrome", | |
| "request": "launch", | |
| "name": "CRM Base", | |
| "url": "http://localhost:4200", | |
| "webRoot": "${workspaceFolder}/projects/base-web-crm", | |
| "userDataDir": "Documents/tmp/vscode-chrome" | |
| }, | |
| { | |
| "type": "chrome", | |
| "request": "launch", | |
| "name": "Auth Base", | |
| "url": "http://localhost:4100", | |
| "webRoot": "${workspaceFolder}", | |
| "userDataDir": "Documents/tmp/vscode-chrome" | |
| }, | |
| { | |
| "name": "run select spec", | |
| "type": "node", | |
| "request": "launch", | |
| "args": ["./projects/base-web-crm/e2e/wdio.conf.js", "--spec", "${file}", "--watch"], | |
| "cwd": "${workspaceRoot}", | |
| "autoAttachChildProcesses": true, | |
| "program": "${workspaceRoot}/node_modules/@wdio/cli/bin/wdio.js", | |
| "console": "integratedTerminal", | |
| "env": { | |
| "DEBUG": "true" | |
| }, | |
| "sourceMaps": true, | |
| "outFiles": ["${workspaceRoot}/**/*.js"] | |
| }, | |
| { | |
| "type": "node-terminal", | |
| "name": "Run Script: e2e:debug", | |
| "request": "launch", | |
| "command": "npm run e2e:debug", | |
| "cwd": "${workspaceFolder}" | |
| }, | |
| { | |
| "name": "Debug spec", | |
| "type": "node", | |
| "request": "launch", | |
| "port": 5859, | |
| "timeout": 60000, | |
| "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/wdio", | |
| "cwd": "${workspaceRoot}", | |
| "console": "integratedTerminal", | |
| "args": ["./projects/base-web-crm/e2e/wdio.conf.js", "--spec", "${file}", "--watch"], | |
| "autoAttachChildProcesses": true, | |
| "env": { | |
| "DEBUG": "true" | |
| } | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment