From e614946d42960eb567890121e20ec40fcef2274c Mon Sep 17 00:00:00 2001 From: Frank Hinek Date: Sat, 20 May 2023 15:13:58 -0400 Subject: [PATCH] Fix broken links in README and add missing VScode launch/task test/build config Signed-off-by: Frank Hinek --- packages/crypto/.vscode/launch.json | 22 +++++++++ packages/crypto/.vscode/tasks.json | 45 +++++++++++++++++++ packages/dids/.vscode/launch.json | 22 +++++++++ packages/dids/.vscode/tasks.json | 45 +++++++++++++++++++ packages/web5-agent/.vscode/launch.json | 22 +++++++++ packages/web5-agent/.vscode/tasks.json | 45 +++++++++++++++++++ packages/web5-proxy-agent/.vscode/launch.json | 22 +++++++++ packages/web5-proxy-agent/.vscode/tasks.json | 45 +++++++++++++++++++ packages/web5-user-agent/.vscode/launch.json | 22 +++++++++ packages/web5-user-agent/.vscode/tasks.json | 45 +++++++++++++++++++ packages/web5/README.md | 14 +++--- 11 files changed, 342 insertions(+), 7 deletions(-) create mode 100644 packages/crypto/.vscode/launch.json create mode 100644 packages/crypto/.vscode/tasks.json create mode 100644 packages/dids/.vscode/launch.json create mode 100644 packages/dids/.vscode/tasks.json create mode 100644 packages/web5-agent/.vscode/launch.json create mode 100644 packages/web5-agent/.vscode/tasks.json create mode 100644 packages/web5-proxy-agent/.vscode/launch.json create mode 100644 packages/web5-proxy-agent/.vscode/tasks.json create mode 100644 packages/web5-user-agent/.vscode/launch.json create mode 100644 packages/web5-user-agent/.vscode/tasks.json diff --git a/packages/crypto/.vscode/launch.json b/packages/crypto/.vscode/launch.json new file mode 100644 index 000000000..4fb6ff06b --- /dev/null +++ b/packages/crypto/.vscode/launch.json @@ -0,0 +1,22 @@ +{ + // 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": "test:node", + "runtimeExecutable": "${workspaceFolder:root}/node_modules/.bin/mocha", + "runtimeArgs": [ + "${workspaceFolder:crypto}/__tests__/**/*.spec.js" + ], + "console": "internalConsole", + "preLaunchTask": "tsc: build - tsconfig.test.json", + "outFiles": [ + "${workspaceFolder:crypto}/__tests__/**/*.js" + ], + } + ] +} \ No newline at end of file diff --git a/packages/crypto/.vscode/tasks.json b/packages/crypto/.vscode/tasks.json new file mode 100644 index 000000000..a6d959d04 --- /dev/null +++ b/packages/crypto/.vscode/tasks.json @@ -0,0 +1,45 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "npm run build", + "type": "npm", + "script": "build", + "problemMatcher": [], + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "label": "tsc: build - tsconfig.json", + "type": "typescript", + "tsconfig": "tsconfig.json", + "problemMatcher": [ + "$tsc" + ], + "group": { + "kind": "build", + "isDefault": false + }, + "options": { + "cwd": "${workspaceFolder:root}" + } + }, + { + "label": "tsc: build - tsconfig.test.json", + "type": "typescript", + "tsconfig": "tsconfig.test.json", + "problemMatcher": [ + "$tsc" + ], + "group": { + "kind": "build", + "isDefault": false + }, + "options": { + "cwd": "${workspaceFolder:root}" + } + }, + ] +} \ No newline at end of file diff --git a/packages/dids/.vscode/launch.json b/packages/dids/.vscode/launch.json new file mode 100644 index 000000000..915e719bc --- /dev/null +++ b/packages/dids/.vscode/launch.json @@ -0,0 +1,22 @@ +{ + // 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": "test:node", + "runtimeExecutable": "${workspaceFolder:root}/node_modules/.bin/mocha", + "runtimeArgs": [ + "${workspaceFolder:dids}/__tests__/**/*.spec.js" + ], + "console": "internalConsole", + "preLaunchTask": "tsc: build - tsconfig.test.json", + "outFiles": [ + "${workspaceFolder:dids}/__tests__/**/*.js" + ], + } + ] +} \ No newline at end of file diff --git a/packages/dids/.vscode/tasks.json b/packages/dids/.vscode/tasks.json new file mode 100644 index 000000000..a6d959d04 --- /dev/null +++ b/packages/dids/.vscode/tasks.json @@ -0,0 +1,45 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "npm run build", + "type": "npm", + "script": "build", + "problemMatcher": [], + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "label": "tsc: build - tsconfig.json", + "type": "typescript", + "tsconfig": "tsconfig.json", + "problemMatcher": [ + "$tsc" + ], + "group": { + "kind": "build", + "isDefault": false + }, + "options": { + "cwd": "${workspaceFolder:root}" + } + }, + { + "label": "tsc: build - tsconfig.test.json", + "type": "typescript", + "tsconfig": "tsconfig.test.json", + "problemMatcher": [ + "$tsc" + ], + "group": { + "kind": "build", + "isDefault": false + }, + "options": { + "cwd": "${workspaceFolder:root}" + } + }, + ] +} \ No newline at end of file diff --git a/packages/web5-agent/.vscode/launch.json b/packages/web5-agent/.vscode/launch.json new file mode 100644 index 000000000..427bc2237 --- /dev/null +++ b/packages/web5-agent/.vscode/launch.json @@ -0,0 +1,22 @@ +{ + // 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": "test:node", + "runtimeExecutable": "${workspaceFolder:root}/node_modules/.bin/mocha", + "runtimeArgs": [ + "${workspaceFolder:web5-agent}/__tests__/**/*.spec.js" + ], + "console": "internalConsole", + "preLaunchTask": "tsc: build - tsconfig.test.json", + "outFiles": [ + "${workspaceFolder:web5-agent}/__tests__/**/*.js" + ], + } + ] +} \ No newline at end of file diff --git a/packages/web5-agent/.vscode/tasks.json b/packages/web5-agent/.vscode/tasks.json new file mode 100644 index 000000000..a6d959d04 --- /dev/null +++ b/packages/web5-agent/.vscode/tasks.json @@ -0,0 +1,45 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "npm run build", + "type": "npm", + "script": "build", + "problemMatcher": [], + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "label": "tsc: build - tsconfig.json", + "type": "typescript", + "tsconfig": "tsconfig.json", + "problemMatcher": [ + "$tsc" + ], + "group": { + "kind": "build", + "isDefault": false + }, + "options": { + "cwd": "${workspaceFolder:root}" + } + }, + { + "label": "tsc: build - tsconfig.test.json", + "type": "typescript", + "tsconfig": "tsconfig.test.json", + "problemMatcher": [ + "$tsc" + ], + "group": { + "kind": "build", + "isDefault": false + }, + "options": { + "cwd": "${workspaceFolder:root}" + } + }, + ] +} \ No newline at end of file diff --git a/packages/web5-proxy-agent/.vscode/launch.json b/packages/web5-proxy-agent/.vscode/launch.json new file mode 100644 index 000000000..4f8f247d2 --- /dev/null +++ b/packages/web5-proxy-agent/.vscode/launch.json @@ -0,0 +1,22 @@ +{ + // 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": "test:node", + "runtimeExecutable": "${workspaceFolder:root}/node_modules/.bin/mocha", + "runtimeArgs": [ + "${workspaceFolder:web5-proxy-agent}/__tests__/**/*.spec.js" + ], + "console": "internalConsole", + "preLaunchTask": "tsc: build - tsconfig.test.json", + "outFiles": [ + "${workspaceFolder:web5-proxy-agent}/__tests__/**/*.js" + ], + } + ] +} \ No newline at end of file diff --git a/packages/web5-proxy-agent/.vscode/tasks.json b/packages/web5-proxy-agent/.vscode/tasks.json new file mode 100644 index 000000000..a6d959d04 --- /dev/null +++ b/packages/web5-proxy-agent/.vscode/tasks.json @@ -0,0 +1,45 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "npm run build", + "type": "npm", + "script": "build", + "problemMatcher": [], + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "label": "tsc: build - tsconfig.json", + "type": "typescript", + "tsconfig": "tsconfig.json", + "problemMatcher": [ + "$tsc" + ], + "group": { + "kind": "build", + "isDefault": false + }, + "options": { + "cwd": "${workspaceFolder:root}" + } + }, + { + "label": "tsc: build - tsconfig.test.json", + "type": "typescript", + "tsconfig": "tsconfig.test.json", + "problemMatcher": [ + "$tsc" + ], + "group": { + "kind": "build", + "isDefault": false + }, + "options": { + "cwd": "${workspaceFolder:root}" + } + }, + ] +} \ No newline at end of file diff --git a/packages/web5-user-agent/.vscode/launch.json b/packages/web5-user-agent/.vscode/launch.json new file mode 100644 index 000000000..506daa8a9 --- /dev/null +++ b/packages/web5-user-agent/.vscode/launch.json @@ -0,0 +1,22 @@ +{ + // 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": "test:node", + "runtimeExecutable": "${workspaceFolder:root}/node_modules/.bin/mocha", + "runtimeArgs": [ + "${workspaceFolder:web5-user-agent}/__tests__/**/*.spec.js" + ], + "console": "internalConsole", + "preLaunchTask": "tsc: build - tsconfig.test.json", + "outFiles": [ + "${workspaceFolder:web5-user-agent}/__tests__/**/*.js" + ], + } + ] +} \ No newline at end of file diff --git a/packages/web5-user-agent/.vscode/tasks.json b/packages/web5-user-agent/.vscode/tasks.json new file mode 100644 index 000000000..a6d959d04 --- /dev/null +++ b/packages/web5-user-agent/.vscode/tasks.json @@ -0,0 +1,45 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "npm run build", + "type": "npm", + "script": "build", + "problemMatcher": [], + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "label": "tsc: build - tsconfig.json", + "type": "typescript", + "tsconfig": "tsconfig.json", + "problemMatcher": [ + "$tsc" + ], + "group": { + "kind": "build", + "isDefault": false + }, + "options": { + "cwd": "${workspaceFolder:root}" + } + }, + { + "label": "tsc: build - tsconfig.test.json", + "type": "typescript", + "tsconfig": "tsconfig.test.json", + "problemMatcher": [ + "$tsc" + ], + "group": { + "kind": "build", + "isDefault": false + }, + "options": { + "cwd": "${workspaceFolder:root}" + } + }, + ] +} \ No newline at end of file diff --git a/packages/web5/README.md b/packages/web5/README.md index 347338405..8c2968f2a 100644 --- a/packages/web5/README.md +++ b/packages/web5/README.md @@ -357,10 +357,10 @@ const myDid = await Web5.did.create("ion"); ## Project Resources -| Resource | Description | -| ------------------------------------------ | ----------------------------------------------------------------------------- | -| [CODEOWNERS](./CODEOWNERS) | Outlines the project lead(s) | -| [CODE_OF_CONDUCT.md](./CODE_OF_CONDUCT.md) | Expected behavior for project contributors, promoting a welcoming environment | -| [CONTRIBUTING.md](./CONTRIBUTING.md) | Developer guide to build, test, run, access CI, chat, discuss, file issues | -| [GOVERNANCE.md](./GOVERNANCE.md) | Project governance | -| [LICENSE](./LICENSE) | Apache License, Version 2.0 | +| Resource | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| [CODEOWNERS](https://github.com/TBD54566975/web5-js/blob/main/CODEOWNERS) | Outlines the project lead(s) | +| [CODE_OF_CONDUCT.md](https://github.com/TBD54566975/web5-js/blob/main/CODE_OF_CONDUCT.md) | Expected behavior for project contributors, promoting a welcoming environment | +| [CONTRIBUTING.md](https://github.com/TBD54566975/web5-js/blob/main/CONTRIBUTING.md) | Developer guide to build, test, run, access CI, chat, discuss, file issues | +| [GOVERNANCE.md](./GOVERNANCE.md) | Project governance | +| [LICENSE](./LICENSE) | Apache License, Version 2.0 |