Auto-generate third-party license notices (#370)

Closes #294
Closes #371
This commit is contained in:
Keavon Chambers
2021-09-06 06:57:35 -07:00
committed by GitHub
parent 4f84c706f0
commit b66607e4a2
8 changed files with 306 additions and 14 deletions
+21
View File
@@ -0,0 +1,21 @@
// Be careful to prevent auto-formatting from breaking this file's indentation
// Replace this file with JSON output once this is resolved: https://github.com/EmbarkStudios/cargo-about/issues/73
module.exports = [
{{#each licenses}}
{
licenseName: `{{name}}`,
licenseText: `{{text}}`,
packages: [
{{#each used_by}}
{
name: `{{crate.name}}`,
version: `{{crate.version}}`,
author: `{{crate.authors}}`,
repository: `{{crate.repository}}`,
},
{{/each}}
],
},
{{/each}}
];