diff options
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 9b69bf7..65453e4 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -46,6 +46,22 @@ module.exports = function(grunt) { 'src/docs/footer.html' ], dest: 'dist/index.html' + }, + i18n: { + options: { + //stripBanners: true, + banner: '<%=banner %>\n(function($){\n\n', + footer: '\n})(jQuery);\n', + process: function(src, filepath){ + return '// source: '+ filepath + '\n' + + src.replace(/\(function\s*\(\$\)\s*\{/g, '') + .replace(/\}\)\(jQuery\)\;/g, '') + .replace(/\$\.timepicker\.setDefaults\(\$\.timepicker\.regional\[[a-z\-\'\"]+\]\)\;/gi, '') + .trim() +'\n'; + } + }, + src: [ 'src/i18n/jquery-ui-timepicker-*.js' ], + dest: 'dist/i18n/<%=pkg.name %>-i18n.js' } }, uglify: { @@ -55,6 +71,10 @@ module.exports = function(grunt) { dist: { src: '<%= concat.dist.dest %>', dest: 'dist/<%= pkg.name %>.min.js' + }, + i18n: { + src: 'dist/i18n/<%=pkg.name %>-i18n.js', + dest: 'dist/i18n/<%=pkg.name %>-i18n.min.js' } }, cssmin: { |