@@ -11,14 +11,8 @@ module.exports = function(grunt) {
11
11
grunt . initConfig ( {
12
12
// Metadata.
13
13
pkg : grunt . file . readJSON ( "package.json" ) ,
14
- banner : {
15
- compact : "/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - " +
16
- "<%= grunt.template.today('yyyy-mm-dd') %>\n" +
17
- "<%= pkg.homepage ? '* ' + pkg.homepage + '\\n' : '' %>" +
18
- "* Copyright (c) <%= grunt.template.today('yyyy') %> Nicole Sullivan and Nicholas C. Zakas;\n" +
19
- "* Licensed <%= _.pluck(pkg.licenses, 'type').join(', ') %> <%= _.pluck(pkg.licenses, 'url').join(', ') %> */\n" ,
20
- full : "/*!\n" +
21
- "CSSLint\n" +
14
+ banner : "/*!\n" +
15
+ "CSSLint v<%= pkg.version %>\n" +
22
16
"Copyright (c) <%= grunt.template.today('yyyy') %> Nicole Sullivan and Nicholas C. Zakas. All rights reserved.\n" +
23
17
"\n" +
24
18
"Permission is hereby granted, free of charge, to any person obtaining a copy\n" +
@@ -38,9 +32,7 @@ module.exports = function(grunt) {
38
32
"LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n" +
39
33
"OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n" +
40
34
"THE SOFTWARE.\n\n" +
41
- "*/\n" +
42
- "/* Build: v<%= pkg.version %> <%= grunt.template.today('dd-mmmm-yyyy hh:MM:ss') %> */"
43
- } ,
35
+ "*/\n" ,
44
36
build_dir : "dist" ,
45
37
//Parser lib copy for versions that can't use requirejs
46
38
parserlib : "node_modules/parserlib/lib/node-parserlib.js" ,
@@ -69,7 +61,7 @@ module.exports = function(grunt) {
69
61
concat : {
70
62
core : {
71
63
options : {
72
- banner : "<%= banner.full %>\n " +
64
+ banner : "<%= banner %>" +
73
65
//Hack for using the node version of parserlib
74
66
"var exports = exports || {};\n" +
75
67
"var CSSLint = (function(){\n" ,
@@ -90,7 +82,7 @@ module.exports = function(grunt) {
90
82
} ,
91
83
node : {
92
84
options : {
93
- banner : "<%= banner.full %>\n " +
85
+ banner : "<%= banner %>" +
94
86
"var clone = require('clone');\n" +
95
87
"var parserlib = require('parserlib');\n" ,
96
88
footer : "\nexports.CSSLint = CSSLint;"
@@ -101,7 +93,7 @@ module.exports = function(grunt) {
101
93
} ,
102
94
node_cli : {
103
95
options : {
104
- banner : "#!/usr/bin/env node\n<%= banner.full %>"
96
+ banner : "#!/usr/bin/env node\n<%= banner %>"
105
97
} ,
106
98
src : [
107
99
"src/cli/common.js" ,
@@ -118,7 +110,7 @@ module.exports = function(grunt) {
118
110
} ,
119
111
worker : {
120
112
options : {
121
- banner : "<%= banner.full %>\n " +
113
+ banner : "<%= banner %>" +
122
114
//Hack for using the node version of parserlib
123
115
"var exports = exports || {};\n"
124
116
} ,
0 commit comments