@@ -116,7 +116,7 @@ function syncPartialBundlePkg(d) {
116
116
'' ,
117
117
'Contains trace modules ' + common . formatEnumeration ( d . traceList ) + '.' ,
118
118
'' ,
119
- 'For more info on plotly.js, go to https://github.com/plotly/plotly.js' ,
119
+ 'For more info on plotly.js, go to https://github.com/plotly/plotly.js#readme ' ,
120
120
'' ,
121
121
'## Installation' ,
122
122
'' ,
@@ -127,13 +127,14 @@ function syncPartialBundlePkg(d) {
127
127
'' ,
128
128
'```js' ,
129
129
'// ES6 module' ,
130
- 'import Plotly from \'' + d . name + '\'; ' ,
130
+ 'import Plotly from \'' + d . name + '\'' ,
131
131
'' ,
132
132
'// CommonJS' ,
133
- 'var Plotly = require(\'' + d . name + '\'); ' ,
133
+ 'var Plotly = require(\'' + d . name + '\')' ,
134
134
'```' ,
135
135
'' ,
136
- copyrightAndLicense
136
+ copyrightAndLicense ,
137
+ 'Please visit [complete list of dependencies](https://www.npmjs.com/package/plotly.js/v/' + pkg . version + '?activeTab=dependencies).'
137
138
] ;
138
139
139
140
fs . writeFile (
@@ -209,7 +210,7 @@ function syncLocalesPkg(d) {
209
210
'' ,
210
211
d . desc ,
211
212
'' ,
212
- 'For more info on plotly.js, go to https://github.com/plotly/plotly.js' ,
213
+ 'For more info on plotly.js, go to https://github.com/plotly/plotly.js#readme ' ,
213
214
'' ,
214
215
'## Installation' ,
215
216
'' ,
@@ -222,15 +223,15 @@ function syncLocalesPkg(d) {
222
223
'' ,
223
224
'```js' ,
224
225
'// ES6 module' ,
225
- 'import Plotly from \'plotly.js\'; ' ,
226
- 'import locale from \'' + d . name + '/fr' + '\'; ' ,
226
+ 'import Plotly from \'plotly.js\'' ,
227
+ 'import locale from \'' + d . name + '/fr' + '\'' ,
227
228
'' ,
228
229
'// CommonJS' ,
229
- 'var Plotly = require(\'plotly.js\'); ' ,
230
- 'var locale = require(\'' + d . name + '/fr\'); ' ,
230
+ 'var Plotly = require(\'plotly.js\')' ,
231
+ 'var locale = require(\'' + d . name + '/fr\')' ,
231
232
'' ,
232
233
'// then' ,
233
- 'Plotly.register(locale); ' ,
234
+ 'Plotly.register(locale)' ,
234
235
'Plotly.setPlotConfig({locale: \'fr\'})' ,
235
236
'```' ,
236
237
'' ,
@@ -248,7 +249,7 @@ function syncLocalesPkg(d) {
248
249
var cnt = [ constants . licenseDist , '' ] ;
249
250
localeFiles . forEach ( function ( f ) {
250
251
var n = path . basename ( f , '.js' ) ;
251
- cnt . push ( 'exports[\'' + n + '\'] = require(\'./' + n + '.js\'); ' ) ;
252
+ cnt . push ( 'exports[\'' + n + '\'] = require(\'./' + n + '.js\')' ) ;
252
253
} ) ;
253
254
cnt . push ( '' ) ;
254
255
0 commit comments