@@ -5,11 +5,36 @@ module.exports = function(grunt) {
55 grunt . initConfig ( {
66 // Metadata.
77 pkg : grunt . file . readJSON ( 'package.json' ) ,
8- banner : '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
8+ banner : {
9+ compact : '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
910 '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
1011 '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
1112 '* Copyright (c) <%= grunt.template.today("yyyy") %> Nicole Sullivan and Nicholas C. Zakas;\n' +
1213 '* Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> <%= _.pluck(pkg.licenses, "url").join(", ") %> */\n' ,
14+ full : '/*!\n' +
15+ 'CSSLint\n' +
16+ 'Copyright (c) <%= grunt.template.today("yyyy") %> Nicole Sullivan and Nicholas C. Zakas. All rights reserved.\n' +
17+ '\n' +
18+ 'Permission is hereby granted, free of charge, to any person obtaining a copy\n' +
19+ 'of this software and associated documentation files (the "Software"), to deal\n' +
20+ 'in the Software without restriction, including without limitation the rights\n' +
21+ 'to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n' +
22+ 'copies of the Software, and to permit persons to whom the Software is\n' +
23+ 'furnished to do so, subject to the following conditions:\n' +
24+ '\n' +
25+ 'The above copyright notice and this permission notice shall be included in\n' +
26+ 'all copies or substantial portions of the Software.\n' +
27+ '\n' +
28+ 'THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n' +
29+ 'IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n' +
30+ 'FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n' +
31+ 'AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n' +
32+ 'LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n' +
33+ 'OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n' +
34+ 'THE SOFTWARE.\n\n' +
35+ '*/\n' +
36+ '/* Build: v<%= pkg.version %> <%= grunt.template.today("dd-mmmm-yyyy hh:MM:ss") %> */'
37+ } ,
1338 build_dir : 'build' ,
1439 //Parser lib copy for verions that can't user requirejs
1540 parserlib : 'node_modules/parserlib/lib/node-parserlib.js' ,
@@ -36,7 +61,7 @@ module.exports = function(grunt) {
3661 concat : {
3762 core : {
3863 options : {
39- banner : '<%= banner %>\n' +
64+ banner : '<%= banner.full %>\n' +
4065 //Hack for using the node version of parserlib
4166 'var exports = exports || {};\n' +
4267 'var CSSLint = (function(){\n' ,
@@ -57,7 +82,7 @@ module.exports = function(grunt) {
5782 } ,
5883 node : {
5984 options : {
60- banner : '<%= banner %>\n' +
85+ banner : '<%= banner.full %>\n' +
6186 'var parserlib = require("parserlib");\n' ,
6287 footer : '\nexports.CSSLint = CSSLint;'
6388 } ,
@@ -68,7 +93,7 @@ module.exports = function(grunt) {
6893 } ,
6994 node_cli : {
7095 options : {
71- banner : '#!/usr/bin/env node\n<%= banner %>'
96+ banner : '#!/usr/bin/env node\n<%= banner.full %>'
7297 } ,
7398 src : [
7499 'src/cli/common.js' ,
@@ -85,7 +110,7 @@ module.exports = function(grunt) {
85110 } ,
86111 worker : {
87112 options : {
88- banner : '<%= banner %>\n' +
113+ banner : '<%= banner.full %>\n' +
89114 //Hack for using the node version of parserlib
90115 'var exports = exports || {};\n'
91116 } ,
0 commit comments