11var path = require ( 'path' ) ;
22
3- var pathToSrc = path . join ( __dirname , '../../src/' ) ;
4- var pathToDist = path . join ( __dirname , '../../dist/' ) ;
3+ var pathToRoot = path . join ( __dirname , '../../' ) ;
4+ var pathToSrc = path . join ( pathToRoot , 'src/' ) ;
5+ var pathToDist = path . join ( pathToRoot , 'dist/' ) ;
6+ var pathToBuild = path . join ( pathToRoot , 'build/' ) ;
57
68module . exports = {
9+ pathToRoot : pathToRoot ,
10+ pathToSrc : pathToSrc ,
11+ pathToMocks : path . join ( pathToRoot , 'test/image/mocks' ) ,
12+
713 pathToPlotlySrc : path . join ( pathToSrc , 'plotly.js' ) ,
814 pathToPlotlyDist : path . join ( pathToDist , 'plotly.js' ) ,
915 pathToPlotlyDistMin : path . join ( pathToDist , 'plotly.min.js' ) ,
@@ -13,21 +19,21 @@ module.exports = {
1319 pathToPlotlyGeoAssetsDist : path . join ( pathToDist , 'plotly-geo-assets.js' ) ,
1420
1521 pathToFontSVG : path . join ( pathToSrc , 'fonts/ploticon/ploticon.svg' ) ,
16- pathToFontSVGBuild : path . join ( pathToSrc , 'fonts/ ploticon.js' ) ,
17-
18- pathToSCSS : path . join ( pathToSrc , 'css/scss/ style.scss' ) ,
19- pathToCSSBuild : path . join ( pathToSrc , 'css/ plotcss.js' ) ,
22+ pathToFontSVGBuild : path . join ( pathToBuild , 'ploticon.js' ) ,
23+
24+ pathToSCSS : path . join ( pathToSrc , 'css/style.scss' ) ,
25+ pathToCSSBuild : path . join ( pathToBuild , 'plotcss.js' ) ,
2026
2127 uglifyOptions : {
2228 fromString : true ,
2329 mangle : true ,
2430 compress : {
2531 warnings : false ,
26- screw_ie8 : true
32+ screw_ie8 : true
2733 } ,
2834 output : {
2935 beautify : false ,
30- ascii_only : true
36+ ascii_only : true
3137 }
3238 }
3339} ;
0 commit comments