File tree Expand file tree Collapse file tree 5 files changed +12
-6
lines changed Expand file tree Collapse file tree 5 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,4 @@ node_modules
3
3
build /*
4
4
! build /README.md
5
5
6
- dist /*
7
- ! dist /README.md
8
-
9
6
npm-debug.log
Original file line number Diff line number Diff line change 11
11
12
12
< script type ="text/javascript " src ="../../dist/extras/mathjax/MathJax.js?config=TeX-AMS-MML_SVG "> </ script >
13
13
14
- < script type ="text/javascript " src ="../../dist/plotly.js " charset ="utf-8 "> </ script >
14
+ <!-- use dev plotly.js build -->
15
+ < script type ="text/javascript " src ="../../build/plotly.js " charset ="utf-8 "> </ script >
15
16
16
17
<!-- use local topojson files -->
17
18
< script > Plotly . setPlotConfig ( { topojsonURL : '../../dist/topojson/' } ) ; </ script >
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ var constants = require('./util/constants');
13
13
* Run `npm run build -- dev` or `npm run build -- --dev`
14
14
* to include source map in the plotly.js bundle
15
15
*
16
+ * N.B. This script is meant for dist builds; the output bundles are placed
17
+ * in plotly.js/dist/.
18
+ * Use `npm run watch` for dev builds.
16
19
*/
17
20
18
21
var arg = process . argv [ 2 ] ;
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ module.exports = {
11
11
pathToMocks : path . join ( pathToRoot , 'test/image/mocks' ) ,
12
12
13
13
pathToPlotlySrc : path . join ( pathToSrc , 'index.js' ) ,
14
+ pathToPlotlyBuild : path . join ( pathToBuild , 'plotly.js' ) ,
14
15
pathToPlotlyDist : path . join ( pathToDist , 'plotly.js' ) ,
15
16
pathToPlotlyDistMin : path . join ( pathToDist , 'plotly.min.js' ) ,
16
17
pathToPlotlyDistWithMeta : path . join ( pathToDist , 'plotly-with-meta.js' ) ,
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ var constants = require('./constants');
11
11
/**
12
12
* Make a plotly.js browserify bundle function watched by watchify.
13
13
*
14
+ * N.B. This module is meant for dev builds; the output bundle is placed
15
+ * in plotly.js/build/
16
+ * Use `npm run build` for dist builds.
17
+ *
14
18
* @param {function } onFirstBundleCallback executed when first bundle is completed
15
19
*
16
20
*/
@@ -47,10 +51,10 @@ module.exports = function makeWatchifiedBundle(onFirstBundleCallback) {
47
51
}
48
52
} )
49
53
. pipe (
50
- fs . createWriteStream ( constants . pathToPlotlyDist )
54
+ fs . createWriteStream ( constants . pathToPlotlyBuild )
51
55
)
52
56
. on ( 'finish' , function ( ) {
53
- appendVersion ( constants . pathToPlotlyDist , { object : 'Plotly' , DEV : true } ) ;
57
+ appendVersion ( constants . pathToPlotlyBuild , { object : 'Plotly' , DEV : true } ) ;
54
58
} ) ;
55
59
}
56
60
You can’t perform that action at this time.
0 commit comments