-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Revise process of making bundles and simplify making partial bundles #5508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 12 commits
4bbe89a
c3a8b48
4f862ca
e4c2f86
836248c
01136b7
aeaf709
c937a6f
d29446e
df67243
4772f90
e1c4cc3
8d902aa
0d00c52
a66d56a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
'use strict'; | ||
|
||
var Plotly = require('./core'); | ||
var core = require('./core'); | ||
|
||
Plotly.register([ | ||
core.register([ | ||
// traces | ||
require('./bar'), | ||
require('./pie') | ||
require('./pie'), | ||
|
||
// transforms | ||
require('./aggregate'), | ||
require('./filter'), | ||
require('./groupby'), | ||
require('./sort'), | ||
|
||
// components | ||
require('./calendars') | ||
]); | ||
|
||
module.exports = require('./register_extra')(Plotly); | ||
module.exports = (function(Plotly) { return Plotly; })(core); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Personally it feels to me like this indirection makes things more confusing than the previous pattern - which with var Plotly = require('../src/core');
Plotly.register([...]);
module.exports = Plotly; Is there another reason for it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,29 @@ | ||
'use strict'; | ||
|
||
var Plotly = require('./core'); | ||
var core = require('./core'); | ||
|
||
Plotly.register([ | ||
core.register([ | ||
// traces | ||
require('./bar'), | ||
require('./box'), | ||
require('./heatmap'), | ||
require('./histogram'), | ||
require('./histogram2d'), | ||
require('./histogram2dcontour'), | ||
require('./image'), | ||
require('./pie'), | ||
require('./contour'), | ||
require('./scatterternary'), | ||
require('./violin') | ||
require('./violin'), | ||
require('./image'), | ||
require('./pie'), | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As you can see, |
||
// transforms | ||
require('./aggregate'), | ||
require('./filter'), | ||
require('./groupby'), | ||
require('./sort'), | ||
|
||
// components | ||
require('./calendars') | ||
]); | ||
|
||
module.exports = require('./register_extra')(Plotly); | ||
module.exports = (function(Plotly) { return Plotly; })(core); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,27 @@ | ||
'use strict'; | ||
|
||
var Plotly = require('./core'); | ||
var core = require('./core'); | ||
|
||
Plotly.register([ | ||
core.register([ | ||
// traces | ||
require('./bar'), | ||
require('./histogram'), | ||
require('./funnel'), | ||
require('./waterfall'), | ||
require('./pie'), | ||
require('./funnelarea'), | ||
require('./indicator'), | ||
require('./ohlc'), | ||
require('./candlestick'), | ||
require('./funnel'), | ||
require('./waterfall'), | ||
require('./indicator') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As you can see, |
||
|
||
// transforms | ||
require('./aggregate'), | ||
require('./filter'), | ||
require('./groupby'), | ||
require('./sort'), | ||
|
||
// components | ||
require('./calendars') | ||
]); | ||
|
||
module.exports = require('./register_extra')(Plotly); | ||
module.exports = (function(Plotly) { return Plotly; })(core); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
'use strict'; | ||
|
||
var Plotly = require('./core'); | ||
var core = require('./core'); | ||
|
||
Plotly.register([ | ||
core.register([ | ||
// traces | ||
require('./scattergeo'), | ||
require('./choropleth') | ||
require('./choropleth'), | ||
|
||
// transforms | ||
require('./aggregate'), | ||
require('./filter'), | ||
require('./groupby'), | ||
require('./sort'), | ||
|
||
// components | ||
require('./calendars') | ||
]); | ||
|
||
module.exports = require('./register_extra')(Plotly); | ||
module.exports = (function(Plotly) { return Plotly; })(core); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,23 @@ | ||
'use strict'; | ||
|
||
var Plotly = require('./core'); | ||
var core = require('./core'); | ||
|
||
Plotly.register([ | ||
core.register([ | ||
// traces | ||
require('./scattergl'), | ||
require('./splom'), | ||
require('./pointcloud'), | ||
require('./heatmapgl'), | ||
require('./parcoords') | ||
require('./parcoords'), | ||
|
||
// transforms | ||
require('./aggregate'), | ||
require('./filter'), | ||
require('./groupby'), | ||
require('./sort'), | ||
|
||
// components | ||
require('./calendars') | ||
]); | ||
|
||
module.exports = require('./register_extra')(Plotly); | ||
module.exports = (function(Plotly) { return Plotly; })(core); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,25 @@ | ||
'use strict'; | ||
|
||
var Plotly = require('./core'); | ||
var core = require('./core'); | ||
|
||
Plotly.register([ | ||
core.register([ | ||
// traces | ||
require('./scatter3d'), | ||
require('./surface'), | ||
require('./mesh3d'), | ||
require('./isosurface'), | ||
require('./volume'), | ||
require('./mesh3d'), | ||
require('./cone'), | ||
require('./streamtube') | ||
require('./streamtube'), | ||
|
||
// transforms | ||
require('./aggregate'), | ||
require('./filter'), | ||
require('./groupby'), | ||
require('./sort'), | ||
|
||
// components | ||
require('./calendars') | ||
]); | ||
|
||
module.exports = require('./register_extra')(Plotly); | ||
module.exports = (function(Plotly) { return Plotly; })(core); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
'use strict'; | ||
|
||
var Plotly = require('./core'); | ||
var core = require('./core'); | ||
|
||
Plotly.register([ | ||
core.register([ | ||
// traces | ||
require('./scattermapbox'), | ||
require('./choroplethmapbox'), | ||
require('./densitymapbox') | ||
require('./densitymapbox'), | ||
|
||
// transforms | ||
require('./aggregate'), | ||
require('./filter'), | ||
require('./groupby'), | ||
require('./sort'), | ||
|
||
// components | ||
require('./calendars') | ||
]); | ||
|
||
module.exports = require('./register_extra')(Plotly); | ||
module.exports = (function(Plotly) { return Plotly; })(core); |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be nice if this followed the usual command-line flag patterns and hence had
--name=custom
instead of justname=custom
IMOThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a side note I don't want to rely on minimist; but OK I could look for
--name
when parsing the arguments.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 8d902aa.