diff --git a/build/tasks/report-licenses-task.coffee b/build/tasks/generate-license-task.coffee similarity index 58% rename from build/tasks/report-licenses-task.coffee rename to build/tasks/generate-license-task.coffee index 02c65a3ee..6485791fd 100644 --- a/build/tasks/report-licenses-task.coffee +++ b/build/tasks/generate-license-task.coffee @@ -1,6 +1,6 @@ module.exports = (grunt) -> - grunt.registerTask 'report-licenses', 'Report the licenses of all dependencies', -> + grunt.registerTask 'generate-license', 'Generate the license, including the licenses of all dependencies', -> legalEagle = require 'legal-eagle' done = @async() @@ -21,12 +21,13 @@ getSummaryText = (summary) -> names = keys(summary).sort() for name in names {license, source, sourceText} = summary[name] - text += "## #{name}\n\n" - text += "* License: #{license}\n" - text += "* License Source: #{source}\n" if source? + + text += "-------------------------------------------------------------------------\n\n" + text += "Package: #{name}\n" + text += "License: #{license}\n" + text += "License Source: #{source}\n" if source? if sourceText? - text += "* Source Text:\n" - for line in sourceText.split('\n') - text += "> #{line}\n" + text += "Source Text:\n\n" + text += sourceText text += '\n' text