cartodb/lib/assets/javascripts/cdb/grunt/tasks/uglify.js
zhongjin a96ef233c9 cdb
2020-06-15 12:07:54 +08:00

25 lines
887 B
JavaScript

/**
* Uglify grunt task for CartoDB.js
*
*/
module.exports = {
task: function() {
return {
dist: {
options: {
banner: '// CartoDB.js version: <%= grunt.config("bump.version") %> \n' +
'// sha: <%= grunt.config.get("gitinfo").local.branch.current.SHA %> \n'
},
files: {
'<%= config.dist %>/cartodb.js': ['<%= config.dist %>/cartodb.uncompressed.js'],
'<%= config.dist %>/cartodb.core.js': ['<%= config.dist %>/cartodb.core.uncompressed.js'],
'<%= config.dist %>/cartodb_nojquery.js': ['<%= config.dist %>/_cartodb_nojquery.js'],
'<%= config.dist %>/cartodb_noleaflet.js': ['<%= config.dist %>/_cartodb_noleaflet.js'],
'<%= config.dist %>/cartodb.mod.torque.js': ['<%= config.dist %>/cartodb.mod.torque.uncompressed.js']
}
}
}
}
}