-
-
Notifications
You must be signed in to change notification settings - Fork 192
Build actual dash_bio node.js package in CI build. #304
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
Conversation
The Python classes are built via |
@VeraZab Is there anything that we can do about the size of the bundle? We're already using the minified code. |
@mkcor |
Well, first we should study https://webpack.js.org/guides/code-splitting/ in depth--has any one of us already done so? I haven't. |
Right, that makes sense. Is there a way to install the Python requirements before running the node job? Here Line 95 in d5dadfe
I'm seeing that you can define jobs and then run them in a specific order: https://circleci.com/docs/2.0/workflows/ So we can just create a new job in our CircleCI config that installs |
As is, we have separate node and python envs, so we can't run
When reviewing a PR, it's useful to look at the Commits tab, not just the diff (Files tab). |
No, each job has its own docker image, as you can see. So if you want to use a dependency that was just installed ( I'm happy to install |
Sure, I think that makes the most sense. |
@shammamah wait, I think it's really not straightforward to run Python code in this Node environment... We are now using a Docker image that's readily available: Line 6 in c90e6b1
We would need a different (custom, Python-equipped) one, should we run the following Python code: import dash; dash.development.component_loader.generate_classes('dash_bio', 'dash_bio/metadata.json') as done by dash-bio/dash_bio/package.json Line 13 in c90e6b1
I'm hesitating between two options:
Gets me thinking a lot about the node/python coupling... |
I'd choose this, since it represents a well-defined "step" in our build process. |
@mkcor @shammamah this looks like a reasonable change to me. |
I went for a Node.js variant Docker image, including our own specific version of Node.js / NPM as exemplified here: https://circleci.com/docs/2.0/circleci-images/#best-practices |
I thought caching the |
Oh, and I probably need to cherry-pick this commit 1b32450 :) |
Co-Authored-By: mkcor <marianne.corvellec@ens-lyon.org>
Closes #300.
About
We wanted to ensure that
dash_bio/bundle.js
builds successfully. This is now done, with the changes submitted here.Description of changes
I've added command
npm run build:js
to the "node" job, which runs in a node.js environment.Ultimately, we may want to address the following warning:

Before merging