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
parent 208e4bbba3
commit fc7d3aa457
8 changed files with 306 additions and 14 deletions

21
about.hbs Normal file
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}}
];