Skip to content
This repository has been archived by the owner on Aug 17, 2021. It is now read-only.

Commit

Permalink
Add @license tag to banner
Browse files Browse the repository at this point in the history
Minifiers like uglifyjs[0] and closure compiler[1] interpret this tag
and preserve the license in the minified output. This makes it easier to
comply with the MIT license (and most others) which requires:

    The above copyright notice and this permission notice shall be
    included in all copies or substantial portions of the Software.

[0] https://github.com/mishoo/UglifyJS2#keeping-copyright-notices-or-other-comments
[1] https://developers.google.com/closure/compiler/docs/js-for-compiler#tag-license
  • Loading branch information
bluetech committed Jul 20, 2016
1 parent a9ac9a1 commit 7c6cb71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = function (grunt) {
pkg: grunt.file.readJSON('package.json'),
meta: {
banner: '/**\n' +
' * <%= pkg.name %> build:<%= grunt.template.today("yyyy-mm-dd") %>\n' +
' * @license <%= pkg.name %> build:<%= grunt.template.today("yyyy-mm-dd") %>\n' +
' * <%= pkg.homepage %>\n' +
' * Copyright (c) <%= grunt.template.today("yyyy") %> VividCortex\n' +
'**/\n\n'
Expand Down

0 comments on commit 7c6cb71

Please sign in to comment.