diff --git a/.dockerignore b/.dockerignore index eda779d6a..ba1857125 100644 --- a/.dockerignore +++ b/.dockerignore @@ -22,6 +22,7 @@ node_modules # output from test runs and similar things *.log coverage/ +.vscode/ # IDE config files jsconfig.json diff --git a/.gitignore b/.gitignore index d2adb9dfb..358be38cd 100644 --- a/.gitignore +++ b/.gitignore @@ -19,9 +19,6 @@ yarn-error.log coverage/ .nyc* -# Visual Studio Code -.vscode/* - .idea/ diff --git a/.npmignore b/.npmignore index ae5001e3e..42e60e64c 100644 --- a/.npmignore +++ b/.npmignore @@ -10,3 +10,4 @@ tools/ /.* website/ assets/ +.vscode/ diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000..93f883216 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,60 @@ +{ + // 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": "attach", + "name": "Attach to Process", + "processId": "${command:PickProcess}", + "port": 5858 + }, + { + "name": "Tests", + "type": "node", + "request": "launch", + "program": "${workspaceRoot}/node_modules/jest-cli/bin/jest.js", + "stopOnEntry": false, + "args": ["--runInBand"], + "cwd": "${workspaceRoot}", + "preLaunchTask": null, + "runtimeExecutable": null, + "runtimeArgs": [ + "--nolazy" + ], + "env": { + "NODE_ENV": "test" + }, + "externalConsole": false, + "sourceMaps": false, + "outDir": null + }, + { + "type": "node", + "request": "launch", + "name": "Mocha Tests", + "stopOnEntry": false, + "runtimeExecutable": null, + "program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", + "args": [ + "--no-timeouts", + "${workspaceRoot}/test/unit" + ] + }, + { + "type": "node", + "request": "launch", + "name": "Verdaccio", + "program": "${workspaceRoot}/bin/verdaccio" + }, + { + "type": "node", + "request": "attach", + "name": "Attach to Process", + "address": "localhost", + "port": 5858 + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..a01da4d77 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,9 @@ +// Place your settings in this file to overwrite default and user settings. +{ + "files.exclude": { + "**/.idea": false, + "**/.nyc_output": true, + "**/build": true, + "**/coverage": true + } +} \ No newline at end of file