@@ -11,14 +11,8 @@ module.exports = function(grunt) {
1111 grunt . initConfig ( {
1212 // Metadata.
1313 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" +
2216 "Copyright (c) <%= grunt.template.today('yyyy') %> Nicole Sullivan and Nicholas C. Zakas. All rights reserved.\n" +
2317 "\n" +
2418 "Permission is hereby granted, free of charge, to any person obtaining a copy\n" +
@@ -38,9 +32,7 @@ module.exports = function(grunt) {
3832 "LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n" +
3933 "OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n" +
4034 "THE SOFTWARE.\n\n" +
41- "*/\n" +
42- "/* Build: v<%= pkg.version %> <%= grunt.template.today('dd-mmmm-yyyy hh:MM:ss') %> */"
43- } ,
35+ "*/\n" ,
4436 build_dir : "dist" ,
4537 //Parser lib copy for versions that can't use requirejs
4638 parserlib : "node_modules/parserlib/lib/node-parserlib.js" ,
@@ -69,7 +61,7 @@ module.exports = function(grunt) {
6961 concat : {
7062 core : {
7163 options : {
72- banner : "<%= banner.full %>\n " +
64+ banner : "<%= banner %>" +
7365 //Hack for using the node version of parserlib
7466 "var exports = exports || {};\n" +
7567 "var CSSLint = (function(){\n" ,
@@ -90,7 +82,7 @@ module.exports = function(grunt) {
9082 } ,
9183 node : {
9284 options : {
93- banner : "<%= banner.full %>\n " +
85+ banner : "<%= banner %>" +
9486 "var clone = require('clone');\n" +
9587 "var parserlib = require('parserlib');\n" ,
9688 footer : "\nexports.CSSLint = CSSLint;"
@@ -101,7 +93,7 @@ module.exports = function(grunt) {
10193 } ,
10294 node_cli : {
10395 options : {
104- banner : "#!/usr/bin/env node\n<%= banner.full %>"
96+ banner : "#!/usr/bin/env node\n<%= banner %>"
10597 } ,
10698 src : [
10799 "src/cli/common.js" ,
@@ -118,7 +110,7 @@ module.exports = function(grunt) {
118110 } ,
119111 worker : {
120112 options : {
121- banner : "<%= banner.full %>\n " +
113+ banner : "<%= banner %>" +
122114 //Hack for using the node version of parserlib
123115 "var exports = exports || {};\n"
124116 } ,
0 commit comments