Skip to content
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

Clean up build scripts and imports #563

Merged
merged 8 commits into from
Jun 24, 2021
Merged

Clean up build scripts and imports #563

merged 8 commits into from
Jun 24, 2021

Conversation

HammadTheOne
Copy link
Contributor

Closes #534
Closes #556

About

  • I am closing an issue

Description of changes

This PR changes __init__.py to use __imports__ generated by the build process instead of the _dash.development.component_loader.load_components method. It also cleans up the package.json in line with what we have for dcc, with 3 standard build scripts for the js and backends.

dash_bio/__init__.py Outdated Show resolved Hide resolved
"build:dev": "npm run build:js-dev && npm run build:py"
"build:backends": "node ./extract-meta src/lib/components > dash_bio/metadata.json && python get_version_info.py && dash-generate-components ./src/lib/components dash_bio -p package-info.json --r-prefix='dashbio' --r-imports='dash' --r-depends='manhattanly'",
"build": "npm run build:js && npm run build:backends",
"postbuild": "es-check es5 dash_bio/*.js"
},
"author": "The Plotly Team <dashbio@plotly.com>",
"maintainer": "Ryan Patrick Kyle <ryan@plotly.com>",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably change this... yourself?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, changed in 4e6cf1d.

Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃

@@ -115,7 +110,5 @@
_css_dist = []
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line can be dropped as well now... not a big deal though :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the catch!

🔪 in 02144f9

@HammadTheOne HammadTheOne merged commit 787d488 into master Jun 24, 2021
@HammadTheOne HammadTheOne deleted the 534-build-process branch June 24, 2021 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update package scripts for dash-bio use _imports_, not load_components
2 participants