Skip to content

Commit eae0447

Browse files
author
Armando Aguirre
authored
Merge pull request #111 from armanio123/AddDebugConfig
Add launch.json and tasks.json
2 parents 8567cbe + c9c763f commit eae0447

File tree

3 files changed

+163
-0
lines changed

3 files changed

+163
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
ts_downloads/
22
testDownloads/
3+
artifacts/
34
*.tsbuildinfo
45
*.d.ts
56
*.js.map

.vscode/launch.json

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Launch listTopRepos",
11+
"skipFiles": [
12+
"<node_internals>/**"
13+
],
14+
"program": "${workspaceFolder}/dist/listTopRepos.js",
15+
"outFiles": [
16+
"${workspaceFolder}/dist/**/*.js"
17+
],
18+
"sourceMaps": true,
19+
"args": [
20+
"TypeScript",
21+
"100",
22+
"0",
23+
"./artifacts/repos.json"
24+
],
25+
"preLaunchTask": "Create artifacts folder"
26+
},
27+
{
28+
"type": "node",
29+
"request": "launch",
30+
"name": "Launch listUserTestRepos",
31+
"skipFiles": [
32+
"<node_internals>/**"
33+
],
34+
"program": "${workspaceFolder}/dist/listUserTestRepos.js",
35+
"outFiles": [
36+
"${workspaceFolder}/dist/**/*.js"
37+
],
38+
"sourceMaps": true,
39+
"args": [
40+
"./userTests",
41+
"./artifacts/repos.json"
42+
],
43+
"preLaunchTask": "Create artifacts folder"
44+
},
45+
{
46+
"type": "node",
47+
"request": "launch",
48+
"name": "Launch checkGithubRepos",
49+
"skipFiles": [
50+
"<node_internals>/**"
51+
],
52+
"program": "${workspaceFolder}/dist/checkGithubRepos.js",
53+
"sourceMaps": true,
54+
"outFiles": [
55+
"${workspaceFolder}/dist/**/*.js"
56+
],
57+
"args": [
58+
"tsserver",
59+
"latest",
60+
"next",
61+
"./artifacts/repos.json",
62+
"1",
63+
"1",
64+
"./artifacts",
65+
"False",
66+
"testSeed"
67+
],
68+
"preLaunchTask": "Clean ts_downloads and artifacts folders"
69+
},
70+
{
71+
"type": "node",
72+
"request": "launch",
73+
"name": "Launch checkUserTestRepos",
74+
"skipFiles": [
75+
"<node_internals>/**"
76+
],
77+
"program": "${workspaceFolder}/dist/checkUserTestRepos.js",
78+
"sourceMaps": true,
79+
"outFiles": [
80+
"${workspaceFolder}/dist/**/*.js"
81+
],
82+
"args": [
83+
"tsserver",
84+
"https://github.com/armanio123/TypeScript.git",
85+
"main",
86+
"2",
87+
"false",
88+
"./artifacts/repos.json",
89+
"1",
90+
"1",
91+
"./artifacts",
92+
"true",
93+
"testSeed"
94+
],
95+
"preLaunchTask": "Clean ts_downloads and artifacts folders"
96+
},
97+
{
98+
"type": "node",
99+
"request": "launch",
100+
"name": "Launch postGitHubComments",
101+
"skipFiles": [
102+
"<node_internals>/**"
103+
],
104+
"program": "${workspaceFolder}/dist/postGitHubComments.js",
105+
"sourceMaps": true,
106+
"outFiles": [
107+
"${workspaceFolder}/dist/**/*.js"
108+
],
109+
"args": [
110+
"armanio123",
111+
"2",
112+
"1",
113+
"false",
114+
"artifacts",
115+
"artifacts",
116+
"false"
117+
]
118+
}
119+
]
120+
}

.vscode/tasks.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "Create artifacts folder",
8+
"type": "shell",
9+
"command": "rm -rf artifacts; mkdir artifacts",
10+
"windows": {
11+
"command": "if (Test-Path artifacts) { Remove-Item -Force -Recurse artifacts }; New-Item -Force -ItemType directory artifacts"
12+
}
13+
},
14+
{
15+
"label": "Clean ts_downloads and artifacts folders",
16+
"type": "shell",
17+
"command": "rm -d -rf ts_downloads; ls ./artifacts | grep -xv repos.json | xargs -r rm",
18+
"windows": {
19+
"command": "if (Test-Path ts_downloads) { Remove-Item -Force -Recurse ts_downloads }; Remove-Item artifacts/* -Exclude repos.json"
20+
}
21+
},
22+
{
23+
"type": "npm",
24+
"script": "build",
25+
"group": {
26+
"kind": "build",
27+
"isDefault": true
28+
},
29+
"problemMatcher": [],
30+
"label": "npm: build",
31+
"detail": "tsc -b ."
32+
},
33+
{
34+
"label": "Clean all",
35+
"type": "shell",
36+
"command": "rm -d -rf artifacts ts_downloads typescript-*",
37+
"windows": {
38+
"command": "Remove-Item -Force -Recurse artifacts, ts_downloads, typescript-*"
39+
}
40+
},
41+
]
42+
}

0 commit comments

Comments
 (0)