diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 00000000..a794a062 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,8 @@ +{ + "recommendations": [ + "sanaajani.taskrunnercode", + "esbenp.prettier-vscode", + "dbaeumer.vscode-eslint", + "rbbit.typescript-hero" + ] +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100755 index 00000000..4c759c7f --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,22 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "attach", + "name": "Debug node", + "port": 9229 + }, + { + "type": "node", + "request": "launch", + "name": "start:watch", + "runtimeExecutable": "yarn", + "runtimeArgs": ["run", "start:watch"], + "env": { + "AWS_PROFILE": "gv", + "NODE_CONFIG_DIR": "${env:HOME}/.gv" + } + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json old mode 100644 new mode 100755 index ceb4002a..df9f5d8b --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,9 +1,31 @@ { - "typescript.tsdk": "./node_modules/typescript/lib", "eslint.validate": ["typescript", "javascript"], - "editor.defaultFormatter": "esbenp.prettier-vscode", + "typescript.tsdk": "./node_modules/typescript/lib", "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.fixAll.eslint": true - } + }, + "[javascript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[javascriptreact]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[typescript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[typescriptreact]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[json]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[graphql]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "typescript.tsc.autoDetect": "off", + "grunt.autoDetect": "off", + "jake.autoDetect": "off", + "gulp.autoDetect": "off", + "npm.autoDetect": "off" } diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 00000000..38a703e5 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,37 @@ +{ + "version": "2.0.0", + "osx": { + "options": { + "env": { + "AWS_PROFILE": "gv", + "NODE_CONFIG_DIR": "${env:HOME}/.gv" + } + }, + "presentation":{ + "echo": true, + "reveal": "always", + "focus": true, + "panel": "shared", + "showReuseMessage": true, + "clear": true + } + }, + "tasks": [ + { + "label": "lint", + "type": "shell", + "command": "yarn run lint", + }, + { + "label": "test", + "type": "shell", + "dependsOrder": "sequence", + "command": "yarn run test", + }, + { + "label": "format", + "type": "shell", + "command": "yarn run format", + } + ] +}