aboutsummaryrefslogtreecommitdiffstats
path: root/grunt.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2012-03-02 16:55:49 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2012-03-02 16:55:49 +0100
commit3cb276c4678cd4f2a1a8aec8e3cbf184b06c9251 (patch)
treed3f155ef03e40b7ba89ef121a20ad4514abb87aa /grunt.js
parent69dcb76e6b4095f221dbe63e8658a18594a39d83 (diff)
downloadjquery-ui-3cb276c4678cd4f2a1a8aec8e3cbf184b06c9251.tar.gz
jquery-ui-3cb276c4678cd4f2a1a8aec8e3cbf184b06c9251.zip
Add list of included files to min banner
Diffstat (limited to 'grunt.js')
-rw-r--r--grunt.js17
1 files changed, 11 insertions, 6 deletions
diff --git a/grunt.js b/grunt.js
index b935a0bc7..0b3f13874 100644
--- a/grunt.js
+++ b/grunt.js
@@ -1,21 +1,26 @@
/*global config:true, task:true*/
var coreFiles = 'jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.effects.core.js'.split(', ');
+var allFiles = coreFiles.map(function(file) {
+ return 'ui/' + file;
+}).concat(file.expand('ui/*.js').filter(function(file) {
+ return coreFiles.indexOf(file.substring(3)) === -1;
+}));
+var rawList = allFiles.map(function(file) {
+ return file.substring(3);
+});
config.init({
pkg: '<json:package.json>',
meta: {
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
'<%= template.today("m/d/yyyy") %>\n' +
'<%= pkg.homepage ? "* " + pkg.homepage + "\n" : "" %>' +
+ // TODO makes this banner only useful for the min-all task below...
+ '* Includes: ' + rawList.join(', ') + '\n' +
'* Copyright (c) <%= template.today("yyyy") %> <%= pkg.author.name %>;' +
' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */'
},
concat: {
- // 'dist/ui/jquery-ui.js': ['<banner>', '<file_strip_banner:ui/*.js>']
- 'dist/jquery-ui.js': coreFiles.map(function(file) {
- return 'ui/' + file;
- }).concat(file.expand('ui/*.js').filter(function(file) {
- return coreFiles.indexOf(file.substring(3)) === -1;
- }))
+ 'dist/jquery-ui.js': allFiles
},
min: {
'dist/jquery-ui.min.js': ['<banner>', 'dist/jquery-ui.js']