diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 00000000..31002a5c --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,10 @@ +# MIT License + +Copyright © 2022 Christoph Thiede + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +**The Software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and non-infringement. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability, whether in an action of contract, tort or otherwise, arising from, +out of or in connection with the Software or the use or other dealings in the Software.** diff --git a/package.json b/package.json index 5a06ff22..feebf289 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "dowdep-base", "description": "(Virtual) base for all dowdep packages", "author": "Christoph Thiede", + "license": "MIT", "devDependencies": { "@typescript-eslint/eslint-plugin": "^4.33.0", "@typescript-eslint/parser": "^4.33.0", diff --git a/packages/cli/package-lock.json b/packages/cli/package-lock.json index 5e71d0d9..82eb841e 100644 --- a/packages/cli/package-lock.json +++ b/packages/cli/package-lock.json @@ -5,6 +5,7 @@ "packages": { "": { "name": "dowdep-cli", + "license": "MIT", "dependencies": { "@oclif/command": "^1", "@oclif/config": "^1", @@ -48,7 +49,7 @@ "name": "dowdep", "version": "0.0.0", "hasInstallScript": true, - "license": "UNLICENSED", + "license": "MIT", "dependencies": { "@async-generators/map-many": "^0.1.0", "@oclif/plugin-autocomplete": "^0.3.0", diff --git a/packages/cli/package.json b/packages/cli/package.json index 7a45338a..a67bbc3e 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -2,6 +2,7 @@ "name": "dowdep-cli", "description": "Command-line interface for dowdep (the downstream dependency miner).", "author": "Christoph Thiede", + "license": "MIT", "bin": { "dowdep-cli": "./bin/run.js" }, diff --git a/packages/core/package.json b/packages/core/package.json index 4e33fbd9..7b6d66dd 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -3,6 +3,7 @@ "version": "0.0.0", "description": "Mine usage information about your JavaScript/TypeScript package from dependent repositories.", "author": "Christoph Thiede", + "license": "MIT", "module": "./out/index.js", "exports": "./out/index.js", "types": "./out/index.d.ts", @@ -16,7 +17,6 @@ "files": [ "*" ], - "license": "UNLICENSED", "scripts": { "lint": "eslint . && eslint --ext=.json", "postinstall": "sed -i 's:import(\"src/PackageJson\"):import(\"./PackageJson\"):g' node_modules/package-metadata/dist/findPackageVersion.d.ts || echo \"Cannot patch package-metadata\"", diff --git a/packages/example-js/package-lock.json b/packages/example-js/package-lock.json index 08009073..3e1c78b2 100644 --- a/packages/example-js/package-lock.json +++ b/packages/example-js/package-lock.json @@ -13,7 +13,7 @@ "name": "dowdep", "version": "0.0.0", "hasInstallScript": true, - "license": "UNLICENSED", + "license": "MIT", "dependencies": { "@async-generators/map-many": "^0.1.0", "@oclif/plugin-autocomplete": "^0.3.0", diff --git a/packages/example-ts/package-lock.json b/packages/example-ts/package-lock.json index d08a9d64..5d3e2851 100644 --- a/packages/example-ts/package-lock.json +++ b/packages/example-ts/package-lock.json @@ -17,7 +17,7 @@ "name": "dowdep", "version": "0.0.0", "hasInstallScript": true, - "license": "UNLICENSED", + "license": "MIT", "dependencies": { "@async-generators/map-many": "^0.1.0", "@oclif/plugin-autocomplete": "^0.3.0", diff --git a/packages/vscode-extension/LICENSE.md b/packages/vscode-extension/LICENSE.md new file mode 120000 index 00000000..f0608a63 --- /dev/null +++ b/packages/vscode-extension/LICENSE.md @@ -0,0 +1 @@ +../../LICENSE.md \ No newline at end of file diff --git a/packages/vscode-extension/README.md b/packages/vscode-extension/README.md index 29eb43a6..e6d22041 100644 --- a/packages/vscode-extension/README.md +++ b/packages/vscode-extension/README.md @@ -30,7 +30,7 @@ To do so, navigate to the settings of the extension and enter each a valid token After configuring the extension, open a folder in VS Code that contains a node module, i.e., a `package.json` file. (As an example, you could [download](../cli/scripts/download-package.sh) the npm package `jsonschema` or `graphql`.) -Open the downstream dependencies view from the activity bar (dowdep icon) and press "Refresh downstream data" (you can also invoke this command via the command palette). +Open the downstream dependencies view from the activity bar (dowdep icon) and press "Refresh downstream data" (you can also invoke this command via the command palette). Dependencies are now searched, downloaded, analyzed, and displayed in the view. Hover, click, or right-click any item to see additional details. You can also enable the extension setting "Enable CodeLens" to display links to downstream dependencies right in the regular editor of VS Code while browsing the source code of the package. diff --git a/packages/vscode-extension/assets/dowdep.png b/packages/vscode-extension/assets/dowdep.png new file mode 100644 index 00000000..684d5937 Binary files /dev/null and b/packages/vscode-extension/assets/dowdep.png differ diff --git a/packages/vscode-extension/package-lock.json b/packages/vscode-extension/package-lock.json index dbcc0d01..85ca0df5 100644 --- a/packages/vscode-extension/package-lock.json +++ b/packages/vscode-extension/package-lock.json @@ -7,6 +7,7 @@ "": { "name": "dowdep-vscode-extension", "version": "0.0.1", + "license": "MIT", "dependencies": { "dowdep": "file:./../core", "it-all": "^1.0.6", @@ -35,14 +36,14 @@ "vscode-test": "^1.6.1" }, "engines": { - "vscode": "^1.57.0" + "vscode": "^1.61.0" } }, "../core": { "name": "dowdep", "version": "0.0.0", "hasInstallScript": true, - "license": "UNLICENSED", + "license": "MIT", "dependencies": { "@async-generators/map-many": "^0.1.0", "@oclif/plugin-autocomplete": "^0.3.0", diff --git a/packages/vscode-extension/package.json b/packages/vscode-extension/package.json index cbefd59a..47112d59 100644 --- a/packages/vscode-extension/package.json +++ b/packages/vscode-extension/package.json @@ -5,8 +5,13 @@ "description": "Mine usage information about your JavaScript/TypeScript package from dependent repositories.", "author": "Christoph Thiede", "version": "0.0.1", + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/LinqLover/downstream-repository-mining.git" + }, "engines": { - "vscode": "^1.57.0" + "vscode": "^1.61.0" }, "categories": [ "Other"