From 3530450ebbd13597bc983218cdcb66446e35015e Mon Sep 17 00:00:00 2001 From: Armando Aguirre Date: Wed, 12 Apr 2023 21:33:29 -0700 Subject: [PATCH 1/3] Add launch.json and tasks.json --- .gitignore | 249 ++++++++++++++++++++++---------------------- .vscode/launch.json | 120 +++++++++++++++++++++ .vscode/tasks.json | 42 ++++++++ 3 files changed, 287 insertions(+), 124 deletions(-) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.gitignore b/.gitignore index b2a6f36..6ec719c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,124 +1,125 @@ -ts_downloads/ -testDownloads/ -*.tsbuildinfo -*.d.ts -*.js.map -*.js -/.vscode -/typescript-* -userTests/chrome-devtools-frontend-next/depot_tools -userTests/chrome-devtools-frontend-next/devtools -userTests/office-ui-fabric/version.json -userTests/office-ui-fabric/office-ui-fabric-react -userTests/pyright/pyright -userTests/rxjs-src/rxjs -userTests/vscode/vscode -userTests/vue-next/vue-next -test/scriptPrettier/prettier - -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -lerna-debug.log* - -# Diagnostic reports (https://nodejs.org/api/report.html) -report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage -*.lcov - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ -jspm_packages/ - -# TypeScript v1 declaration files -typings/ - -# TypeScript cache -*.tsbuildinfo - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Microbundle cache -.rpt2_cache/ -.rts2_cache_cjs/ -.rts2_cache_es/ -.rts2_cache_umd/ - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variables file -.env -.env.test - -# parcel-bundler cache (https://parceljs.org/) -.cache - -# Next.js build output -.next - -# Nuxt.js build / generate output -.nuxt -dist - -# Gatsby files -.cache/ -# Comment in the public line in if your project uses Gatsby and *not* Next.js -# https://nextjs.org/blog/next-9-1#public-directory-support -# public - -# vuepress build output -.vuepress/dist - -# Serverless directories -.serverless/ - -# FuseBox cache -.fusebox/ - -# DynamoDB Local files -.dynamodb/ - -# TernJS port file -.tern-port - -!userTests/*.js/ +ts_downloads/ +testDownloads/ +artifacts/ +*.tsbuildinfo +*.d.ts +*.js.map +*.js +/.vscode +/typescript-* +userTests/chrome-devtools-frontend-next/depot_tools +userTests/chrome-devtools-frontend-next/devtools +userTests/office-ui-fabric/version.json +userTests/office-ui-fabric/office-ui-fabric-react +userTests/pyright/pyright +userTests/rxjs-src/rxjs +userTests/vscode/vscode +userTests/vue-next/vue-next +test/scriptPrettier/prettier + +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# TypeScript v1 declaration files +typings/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env +.env.test + +# parcel-bundler cache (https://parceljs.org/) +.cache + +# Next.js build output +.next + +# Nuxt.js build / generate output +.nuxt +dist + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and *not* Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port + +!userTests/*.js/ diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..3e0a608 --- /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 From 1a9185db06ff6a8d5f45ebce2dbea8ae00eaf489 Mon Sep 17 00:00:00 2001 From: Armando Aguirre Date: Wed, 12 Apr 2023 21:34:34 -0700 Subject: [PATCH 2/3] Small fix --- .vscode/launch.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 3e0a608..f05d54c 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -65,7 +65,7 @@ "False", "testSeed" ], - // "preLaunchTask": "Clean ts_downloads and artifacts folders" + "preLaunchTask": "Clean ts_downloads and artifacts folders" }, { "type": "node", From c9c763f060dcb6125a9e0ce3be41dc8a120ad96a Mon Sep 17 00:00:00 2001 From: Armando Aguirre Date: Mon, 17 Apr 2023 15:08:39 -0700 Subject: [PATCH 3/3] Fix gitignore whitespace --- .gitignore | 250 ++++++++++++++++++++++++++--------------------------- 1 file changed, 125 insertions(+), 125 deletions(-) diff --git a/.gitignore b/.gitignore index 6ec719c..0df1ba0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,125 +1,125 @@ -ts_downloads/ -testDownloads/ -artifacts/ -*.tsbuildinfo -*.d.ts -*.js.map -*.js -/.vscode -/typescript-* -userTests/chrome-devtools-frontend-next/depot_tools -userTests/chrome-devtools-frontend-next/devtools -userTests/office-ui-fabric/version.json -userTests/office-ui-fabric/office-ui-fabric-react -userTests/pyright/pyright -userTests/rxjs-src/rxjs -userTests/vscode/vscode -userTests/vue-next/vue-next -test/scriptPrettier/prettier - -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -lerna-debug.log* - -# Diagnostic reports (https://nodejs.org/api/report.html) -report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage -*.lcov - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ -jspm_packages/ - -# TypeScript v1 declaration files -typings/ - -# TypeScript cache -*.tsbuildinfo - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Microbundle cache -.rpt2_cache/ -.rts2_cache_cjs/ -.rts2_cache_es/ -.rts2_cache_umd/ - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variables file -.env -.env.test - -# parcel-bundler cache (https://parceljs.org/) -.cache - -# Next.js build output -.next - -# Nuxt.js build / generate output -.nuxt -dist - -# Gatsby files -.cache/ -# Comment in the public line in if your project uses Gatsby and *not* Next.js -# https://nextjs.org/blog/next-9-1#public-directory-support -# public - -# vuepress build output -.vuepress/dist - -# Serverless directories -.serverless/ - -# FuseBox cache -.fusebox/ - -# DynamoDB Local files -.dynamodb/ - -# TernJS port file -.tern-port - -!userTests/*.js/ +ts_downloads/ +testDownloads/ +artifacts/ +*.tsbuildinfo +*.d.ts +*.js.map +*.js +/.vscode +/typescript-* +userTests/chrome-devtools-frontend-next/depot_tools +userTests/chrome-devtools-frontend-next/devtools +userTests/office-ui-fabric/version.json +userTests/office-ui-fabric/office-ui-fabric-react +userTests/pyright/pyright +userTests/rxjs-src/rxjs +userTests/vscode/vscode +userTests/vue-next/vue-next +test/scriptPrettier/prettier + +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# TypeScript v1 declaration files +typings/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env +.env.test + +# parcel-bundler cache (https://parceljs.org/) +.cache + +# Next.js build output +.next + +# Nuxt.js build / generate output +.nuxt +dist + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and *not* Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port + +!userTests/*.js/