11var path = require ( 'path' ) ;
2-
32var pkg = require ( '../../package.json' ) ;
43
54var pathToRoot = path . join ( __dirname , '../../' ) ;
@@ -13,6 +12,19 @@ var pathToTopojsonSrc = path.join(
1312 path . dirname ( require . resolve ( 'sane-topojson' ) ) , 'dist/'
1413) ;
1514
15+ var partialBundleNames = [
16+ 'basic' , 'cartesian' , 'geo' , 'gl3d' , 'gl2d' , 'mapbox'
17+ ] ;
18+
19+ var partialBundlePaths = partialBundleNames . map ( function ( name ) {
20+ return {
21+ name : name ,
22+ index : path . join ( pathToLib , 'index-' + name + '.js' ) ,
23+ dist : path . join ( pathToDist , 'plotly-' + name + '.js' ) ,
24+ distMin : path . join ( pathToDist , 'plotly-' + name + '.min.js' )
25+ } ;
26+ } ) ;
27+
1628var year = ( new Date ( ) ) . getFullYear ( ) ;
1729
1830module . exports = {
@@ -29,9 +41,8 @@ module.exports = {
2941 pathToPlotlyDistMin : path . join ( pathToDist , 'plotly.min.js' ) ,
3042 pathToPlotlyDistWithMeta : path . join ( pathToDist , 'plotly-with-meta.js' ) ,
3143
32- partialBundleNames : [
33- 'basic' , 'cartesian' , 'geo' , 'gl3d' , 'gl2d' , 'mapbox'
34- ] ,
44+ partialBundleNames : partialBundleNames ,
45+ partialBundlePaths : partialBundlePaths ,
3546
3647 pathToTopojsonSrc : pathToTopojsonSrc ,
3748 pathToTopojsonDist : path . join ( pathToDist , 'topojson/' ) ,
0 commit comments