Skip to content

Add launch.json and tasks.json #111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ts_downloads/
testDownloads/
artifacts/
*.tsbuildinfo
*.d.ts
*.js.map
Expand Down
120 changes: 120 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -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": [
"<node_internals>/**"
],
"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": [
"<node_internals>/**"
],
"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": [
"<node_internals>/**"
],
"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": [
"<node_internals>/**"
],
"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": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/dist/postGitHubComments.js",
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"args": [
"armanio123",
"2",
"1",
"false",
"artifacts",
"artifacts",
"false"
]
}
]
}
42 changes: 42 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -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-*"
}
},
]
}