plotly / dash-core-components

OBSOLETE: now part of https://github.com/plotly/dash
https://dash.plotly.com
MIT License
270 stars 146 forks source link

Resolve dependencies on the component level #69

Open cpsievert opened 7 years ago

cpsievert commented 7 years ago

I see a couple issues with the dependency management strategy in this repo (I guess this kind of applies to dash-html-components, but there are currently no direct dependencies there):

(1) All (core component) dependencies are included regardless of which core component(s) are actually needed.

(2) External URLs are tracked independently of package.json and metadata.json, which makes it hard for me to keep in sync with the python package.

If we could somehow attach dependency information at the component level in metadata.json (e.g., name, version, relative/external path to file), that should provide us a way to avoid both issues in any dash interface.

chriddyp commented 7 years ago

Another fix might be to include the CSS in the JS bundles, and therefore remove the concept of external dependencies