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

46 lines
1.2 KiB
JavaScript

module.exports = {
'src-specs': {
src: [
'test/fail-tests-if-have-errors-in-src.js',
'test/spec/api/**/*',
'test/spec/core/**/*',
'test/spec/dataviews/**/*',
'test/spec/util/**/*',
'test/spec/geo/**/*',
'test/spec/ui/**/*',
'test/spec/vis/**/*',
'test/spec/windshaft/**/*',
'test/spec/windshaft-integration/**/*',
'test/spec/analysis/**/*',
'test/spec/engine.spec.js',
// not actually used anywhere in cartodb.js, only for editor?
// TODO can be (re)moved?
'!test/spec/ui/common/tabpane.spec.js'
],
dest: '<%= tmp %>/src-specs.js',
options: {
transform: [
['babelify', {
presets: ['env'],
plugins: ['transform-object-rest-spread']
}]
],
require: [ 'camshaft-reference/versions/0.59.4/reference.json:./versions/0.59.4/reference.json' ]
}
},
cartodb: {
src: [
'src/cartodb.js'
],
exclude: [
'src/api/v4/'
],
dest: '<%= dist %>/internal/cartodb.uncompressed.js',
options: {
require: [ 'camshaft-reference/versions/0.59.4/reference.json:./versions/0.59.4/reference.json' ]
}
}
};