@@ -5,11 +5,36 @@ module.exports = function(grunt) {
5
5
grunt . initConfig ( {
6
6
// Metadata.
7
7
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 %> - ' +
9
10
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
10
11
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
11
12
'* Copyright (c) <%= grunt.template.today("yyyy") %> Nicole Sullivan and Nicholas C. Zakas;\n' +
12
13
'* 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
+ } ,
13
38
build_dir : 'build' ,
14
39
//Parser lib copy for verions that can't user requirejs
15
40
parserlib : 'node_modules/parserlib/lib/node-parserlib.js' ,
@@ -36,7 +61,7 @@ module.exports = function(grunt) {
36
61
concat : {
37
62
core : {
38
63
options : {
39
- banner : '<%= banner %>\n' +
64
+ banner : '<%= banner.full %>\n' +
40
65
//Hack for using the node version of parserlib
41
66
'var exports = exports || {};\n' +
42
67
'var CSSLint = (function(){\n' ,
@@ -57,7 +82,7 @@ module.exports = function(grunt) {
57
82
} ,
58
83
node : {
59
84
options : {
60
- banner : '<%= banner %>\n' +
85
+ banner : '<%= banner.full %>\n' +
61
86
'var parserlib = require("parserlib");\n' ,
62
87
footer : '\nexports.CSSLint = CSSLint;'
63
88
} ,
@@ -68,7 +93,7 @@ module.exports = function(grunt) {
68
93
} ,
69
94
node_cli : {
70
95
options : {
71
- banner : '#!/usr/bin/env node\n<%= banner %>'
96
+ banner : '#!/usr/bin/env node\n<%= banner.full %>'
72
97
} ,
73
98
src : [
74
99
'src/cli/common.js' ,
@@ -85,7 +110,7 @@ module.exports = function(grunt) {
85
110
} ,
86
111
worker : {
87
112
options : {
88
- banner : '<%= banner %>\n' +
113
+ banner : '<%= banner.full %>\n' +
89
114
//Hack for using the node version of parserlib
90
115
'var exports = exports || {};\n'
91
116
} ,
0 commit comments