Skip to content

Commit aa7e3cc

Browse files
committed
fixed stripBanners type in concat task. reformatted author name/email in package.json.
1 parent 4f3da95 commit aa7e3cc

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

Gruntfile.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = function(grunt) {
1616
' * LESS - <%= pkg.description %> v<%= pkg.version %> \n' +
1717
' * http://lesscss.org \n' +
1818
' * \n' +
19-
' * <%= meta.copyright %>, <%= pkg.author %> \n' +
19+
' * <%= meta.copyright %>, <%= pkg.author.name %> <<%= pkg.author.email %>> \n' +
2020
' * Licensed under the <%= meta.license %> License. \n' +
2121
' * \n' +
2222
' * @licence \n' +
@@ -41,7 +41,7 @@ module.exports = function(grunt) {
4141

4242
concat: {
4343
options: {
44-
stripBanner: true,
44+
stripBanners: true,
4545
banner: '<%= meta.banner %>\n\n(function (window, undefined) {',
4646
footer: '\n})(window);'
4747
},
@@ -52,20 +52,20 @@ module.exports = function(grunt) {
5252
},
5353
alpha: {
5454
src: ['<%= build.browser %>'],
55-
dest: 'tmp/less-<%= pkg.version %>-alpha.js'
55+
dest: 'dist/less-<%= pkg.version %>-alpha.js'
5656
},
5757
beta: {
5858
src: ['<%= build.browser %>'],
59-
dest: 'tmp/less-<%= pkg.version %>-beta.js'
59+
dest: 'dist/less-<%= pkg.version %>-beta.js'
6060
},
6161
// Rhino
6262
rhino: {
6363
options: {
64-
banner: '/* LESS.js v<%= pkg.version %> RHINO | <%= meta.copyright %>, <%= pkg.author %> */\n\n',
64+
banner: '/* LESS.js v<%= pkg.version %> RHINO | <%= meta.copyright %>, <%= pkg.author.name %> <<%= pkg.author.email %>> */\n\n',
6565
footer: '' // override task-level footer
6666
},
6767
src: ['<%= build.rhino %>'],
68-
dest: 'tmp/less-rhino-<%= pkg.version %>.js'
68+
dest: 'dist/less-rhino-<%= pkg.version %>.js'
6969
},
7070
// Generate readme
7171
readme: {
@@ -85,15 +85,15 @@ module.exports = function(grunt) {
8585
},
8686
browser: {
8787
src: ['<%= concat.browser.src %>'],
88-
dest: 'tmp/less-<%= pkg.version %>.min.js'
88+
dest: 'dist/less-<%= pkg.version %>.min.js'
8989
},
9090
alpha: {
9191
src: ['<%= concat.alpha.src %>'],
92-
dest: 'tmp/less-<%= pkg.version %>-alpha.min.js'
92+
dest: 'dist/less-<%= pkg.version %>-alpha.min.js'
9393
},
9494
beta: {
9595
src: ['<%= concat.beta.src %>'],
96-
dest: 'tmp/less-<%= pkg.version %>-beta.min.js'
96+
dest: 'dist/less-<%= pkg.version %>-beta.min.js'
9797
}
9898
},
9999

@@ -132,8 +132,7 @@ module.exports = function(grunt) {
132132
// Default task to build Less.js
133133
grunt.registerTask('default', [
134134
'browser',
135-
'rhino',
136-
'min'
135+
'rhino'
137136
]);
138137

139138
// Browser

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
"version": "1.4.2",
44
"description": "Leaner CSS",
55
"homepage": "http://lesscss.org",
6-
"author": "Alexis Sellier <[email protected]>",
6+
"author": {
7+
"name": "Alexis Sellier",
8+
"email": "[email protected]"
9+
},
710
"contributors": [
811
"The Core Less Team"
912
],

0 commit comments

Comments
 (0)