fix grunt to copy only one ui datepicker lib version

This commit is contained in:
vitalets 2013-04-07 20:34:03 +04:00
parent 388780cfcd
commit 8a33131d19
19 changed files with 8 additions and 1182 deletions

@ -106,8 +106,11 @@ function getFiles() {
/*global module:false*/
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib');
grunt.loadNpmTasks('grunt-contrib');
//version of jquery-ui datepicker to be copied into dist
var dp_ui_ver = '1.10.2';
//module for testing
var module = '';
// module = '&module=textarea';
@ -230,7 +233,9 @@ module.exports = function(grunt) {
ui_datepicker: {
files: {
//copy jquery ui datepicker
'<%= dist %>/jquery-editable/jquery-ui-datepicker/' : 'src/inputs/dateui/jquery-ui-datepicker/**'
'<%= dist %>/jquery-editable/jquery-ui-datepicker/js/': 'src/inputs/dateui/jquery-ui-datepicker/js/jquery-ui-'+dp_ui_ver+'.*.js',
'<%= dist %>/jquery-editable/jquery-ui-datepicker/css/redmond/': 'src/inputs/dateui/jquery-ui-datepicker/css/redmond/jquery-ui-'+dp_ui_ver+'.*.css',
'<%= dist %>/jquery-editable/jquery-ui-datepicker/css/redmond/images/': 'src/inputs/dateui/jquery-ui-datepicker/css/redmond/images/**'
}
}
},

Binary file not shown.

Before

(image error) Size: 1.7 KiB

Binary file not shown.

Before

(image error) Size: 6.8 KiB

Binary file not shown.

Before

(image error) Size: 4.4 KiB

Binary file not shown.

Before

(image error) Size: 4.4 KiB

Binary file not shown.

Before

(image error) Size: 4.4 KiB

Binary file not shown.

Before

(image error) Size: 6.2 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

@ -137,6 +137,7 @@ define(function () {
'inputs/abstract'],
init: function(require) {
loadCss(require.toUrl("./lib/select2.css"));
//loadCss(require.toUrl("./lib/select2-bootstrap.css"));
}
},