File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 63
63
"delaunay-triangulate" : " ^1.1.6" ,
64
64
"es6-promise" : " ^3.0.2" ,
65
65
"fast-isnumeric" : " ^1.1.1" ,
66
+ "fs-extra" : " ^0.26.2" ,
66
67
"gl-error2d" : " ^1.0.0" ,
67
68
"gl-error3d" : " ^1.0.0" ,
68
69
"gl-line2d" : " ^1.2.1" ,
Original file line number Diff line number Diff line change 1
- var fs = require ( 'fs' ) ;
1
+ var fs = require ( 'fs-extra ' ) ;
2
2
3
3
var sass = require ( 'node-sass' ) ;
4
4
@@ -22,3 +22,10 @@ sass.render({
22
22
fs . readFile ( constants . pathToFontSVG , function ( err , data ) {
23
23
pullFontSVG ( data . toString ( ) , constants . pathToFontSVGBuild ) ;
24
24
} ) ;
25
+
26
+ // copy topojson from sane-topojson to dist/
27
+ fs . copy ( constants . pathToTopojsonSrc , constants . pathToTopojsonDest ,
28
+ { clobber : true } ,
29
+ function ( err ) {
30
+ if ( err ) throw err ;
31
+ } ) ;
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ module.exports = {
15
15
pathToPlotlyDistMin : path . join ( pathToDist , 'plotly.min.js' ) ,
16
16
pathToPlotlyDistWithMeta : path . join ( pathToDist , 'plotly-with-meta.js' ) ,
17
17
18
+ pathToTopojsonSrc : path . join ( pathToRoot , 'node_modules/sane-topojson/dist/' ) ,
19
+ pathToTopojsonDest : path . join ( pathToDist , 'topojson/' ) ,
18
20
pathToPlotlyGeoAssetsSrc : path . join ( pathToSrc , 'assets/geo_assets.js' ) ,
19
21
pathToPlotlyGeoAssetsDist : path . join ( pathToDist , 'plotly-geo-assets.js' ) ,
20
22
You can’t perform that action at this time.
0 commit comments