carto.js/grunt/tasks/usebanner.js
2020-06-13 18:34:34 +08:00

25 lines
476 B
JavaScript

/**
* Add banner for CARTO.jss
*
*/
module.exports = {
task: function() {
var cfg = {
options: {
position: 'top',
banner: [
'// CartoDB.js version: <%= version %>',
'// sha: <%= gitinfo.local.branch.current.SHA %>',
].join('\n')
},
files: {
src: [
'<%= dist %>/internal/cartodb.uncompressed.js',
'<%= dist %>/internal/cartodb.js'
]
}
};
return cfg;
}
}