1
1
var path = require ( 'path' ) ;
2
2
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/' ) ;
5
7
6
8
module . exports = {
9
+ pathToRoot : pathToRoot ,
10
+ pathToSrc : pathToSrc ,
11
+ pathToMocks : path . join ( pathToRoot , 'test/image/mocks' ) ,
12
+
7
13
pathToPlotlySrc : path . join ( pathToSrc , 'plotly.js' ) ,
8
14
pathToPlotlyDist : path . join ( pathToDist , 'plotly.js' ) ,
9
15
pathToPlotlyDistMin : path . join ( pathToDist , 'plotly.min.js' ) ,
@@ -13,21 +19,21 @@ module.exports = {
13
19
pathToPlotlyGeoAssetsDist : path . join ( pathToDist , 'plotly-geo-assets.js' ) ,
14
20
15
21
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' ) ,
20
26
21
27
uglifyOptions : {
22
28
fromString : true ,
23
29
mangle : true ,
24
30
compress : {
25
31
warnings : false ,
26
- screw_ie8 : true
32
+ screw_ie8 : true
27
33
} ,
28
34
output : {
29
35
beautify : false ,
30
- ascii_only : true
36
+ ascii_only : true
31
37
}
32
38
}
33
39
} ;
0 commit comments