diff --git a/.gitignore b/.gitignore index b2a6f36..0df1ba0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ ts_downloads/ testDownloads/ +artifacts/ *.tsbuildinfo *.d.ts *.js.map diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..f05d54c --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,120 @@ +{ + // Use IntelliSense to learn about possible 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 listTopRepos", + "skipFiles": [ + "/**" + ], + "program": "${workspaceFolder}/dist/listTopRepos.js", + "outFiles": [ + "${workspaceFolder}/dist/**/*.js" + ], + "sourceMaps": true, + "args": [ + "TypeScript", + "100", + "0", + "./artifacts/repos.json" + ], + "preLaunchTask": "Create artifacts folder" + }, + { + "type": "node", + "request": "launch", + "name": "Launch listUserTestRepos", + "skipFiles": [ + "/**" + ], + "program": "${workspaceFolder}/dist/listUserTestRepos.js", + "outFiles": [ + "${workspaceFolder}/dist/**/*.js" + ], + "sourceMaps": true, + "args": [ + "./userTests", + "./artifacts/repos.json" + ], + "preLaunchTask": "Create artifacts folder" + }, + { + "type": "node", + "request": "launch", + "name": "Launch checkGithubRepos", + "skipFiles": [ + "/**" + ], + "program": "${workspaceFolder}/dist/checkGithubRepos.js", + "sourceMaps": true, + "outFiles": [ + "${workspaceFolder}/dist/**/*.js" + ], + "args": [ + "tsserver", + "latest", + "next", + "./artifacts/repos.json", + "1", + "1", + "./artifacts", + "False", + "testSeed" + ], + "preLaunchTask": "Clean ts_downloads and artifacts folders" + }, + { + "type": "node", + "request": "launch", + "name": "Launch checkUserTestRepos", + "skipFiles": [ + "/**" + ], + "program": "${workspaceFolder}/dist/checkUserTestRepos.js", + "sourceMaps": true, + "outFiles": [ + "${workspaceFolder}/dist/**/*.js" + ], + "args": [ + "tsserver", + "https://github.com/armanio123/TypeScript.git", + "main", + "2", + "false", + "./artifacts/repos.json", + "1", + "1", + "./artifacts", + "true", + "testSeed" + ], + "preLaunchTask": "Clean ts_downloads and artifacts folders" + }, + { + "type": "node", + "request": "launch", + "name": "Launch postGitHubComments", + "skipFiles": [ + "/**" + ], + "program": "${workspaceFolder}/dist/postGitHubComments.js", + "sourceMaps": true, + "outFiles": [ + "${workspaceFolder}/dist/**/*.js" + ], + "args": [ + "armanio123", + "2", + "1", + "false", + "artifacts", + "artifacts", + "false" + ] + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..d38de78 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,42 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "Create artifacts folder", + "type": "shell", + "command": "rm -rf artifacts; mkdir artifacts", + "windows": { + "command": "if (Test-Path artifacts) { Remove-Item -Force -Recurse artifacts }; New-Item -Force -ItemType directory artifacts" + } + }, + { + "label": "Clean ts_downloads and artifacts folders", + "type": "shell", + "command": "rm -d -rf ts_downloads; ls ./artifacts | grep -xv repos.json | xargs -r rm", + "windows": { + "command": "if (Test-Path ts_downloads) { Remove-Item -Force -Recurse ts_downloads }; Remove-Item artifacts/* -Exclude repos.json" + } + }, + { + "type": "npm", + "script": "build", + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [], + "label": "npm: build", + "detail": "tsc -b ." + }, + { + "label": "Clean all", + "type": "shell", + "command": "rm -d -rf artifacts ts_downloads typescript-*", + "windows": { + "command": "Remove-Item -Force -Recurse artifacts, ts_downloads, typescript-*" + } + }, + ] +} \ No newline at end of file