@@ -116,7 +116,7 @@ function syncPartialBundlePkg(d) {
116116 '' ,
117117 'Contains trace modules ' + common . formatEnumeration ( d . traceList ) + '.' ,
118118 '' ,
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 ' ,
120120 '' ,
121121 '## Installation' ,
122122 '' ,
@@ -127,13 +127,14 @@ function syncPartialBundlePkg(d) {
127127 '' ,
128128 '```js' ,
129129 '// ES6 module' ,
130- 'import Plotly from \'' + d . name + '\'; ' ,
130+ 'import Plotly from \'' + d . name + '\'' ,
131131 '' ,
132132 '// CommonJS' ,
133- 'var Plotly = require(\'' + d . name + '\'); ' ,
133+ 'var Plotly = require(\'' + d . name + '\')' ,
134134 '```' ,
135135 '' ,
136- copyrightAndLicense
136+ copyrightAndLicense ,
137+ 'Please visit [complete list of dependencies](https://www.npmjs.com/package/plotly.js/v/' + pkg . version + '?activeTab=dependencies).'
137138 ] ;
138139
139140 fs . writeFile (
@@ -209,7 +210,7 @@ function syncLocalesPkg(d) {
209210 '' ,
210211 d . desc ,
211212 '' ,
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 ' ,
213214 '' ,
214215 '## Installation' ,
215216 '' ,
@@ -222,15 +223,15 @@ function syncLocalesPkg(d) {
222223 '' ,
223224 '```js' ,
224225 '// 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' + '\'' ,
227228 '' ,
228229 '// 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\')' ,
231232 '' ,
232233 '// then' ,
233- 'Plotly.register(locale); ' ,
234+ 'Plotly.register(locale)' ,
234235 'Plotly.setPlotConfig({locale: \'fr\'})' ,
235236 '```' ,
236237 '' ,
@@ -248,7 +249,7 @@ function syncLocalesPkg(d) {
248249 var cnt = [ constants . licenseDist , '' ] ;
249250 localeFiles . forEach ( function ( f ) {
250251 var n = path . basename ( f , '.js' ) ;
251- cnt . push ( 'exports[\'' + n + '\'] = require(\'./' + n + '.js\'); ' ) ;
252+ cnt . push ( 'exports[\'' + n + '\'] = require(\'./' + n + '.js\')' ) ;
252253 } ) ;
253254 cnt . push ( '' ) ;
254255
0 commit comments