-
Notifications
You must be signed in to change notification settings - Fork 2
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
Infra suggestions #2
Conversation
rdkit-js npm dependency and fix pika
directory: "/" | ||
schedule: | ||
interval: weekly | ||
open-pull-requests-limit: 20 |
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.
The file above is a dependabot file making automatic pull-requests based on dependencies that should/could be updated
@@ -1,3 +1,5 @@ | |||
node_modules | |||
dist | |||
RDKitStructureRenderer-*.tgz | |||
pkg | |||
public/RDKit_minimal.* |
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.
pkg
and the RDKit_minimal files are git ignored since they are managed by the build process during npm run build
now
).pipe(dest("public/")); | ||
} | ||
|
||
exports.rdkitCopy = rdkitCopy; |
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.
this is a gulp task copying the RDKit minimal lib files (js and wasm files) to the public folder (the initial place they were in before this PR, only now these files will always mirror the version of rdkit-js you have installed in your local repository).
package.json
Outdated
@@ -8,7 +8,7 @@ | |||
"build": "npm run build:pkg && npm run build:prod", | |||
"build:dev": "webpack --mode=development", | |||
"build:prod": "webpack --mode=production --node-env=production", | |||
"build:pkg": "pika build", | |||
"build:pkg": "gulp rdkitCopy && pika-pack", |
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.
gulp rdkitCopy
relates to the task defined in https://github.com/rdkit/rdkit-structure-renderer/pull/2/files#diff-25789e3ba4c2adf4a68996260eb693a441b4a834c38b76167a120f0b51b969f7
Regading the pika build
--> pika-pack
change, I noticed that the recent version of the package @pika/pack
offers only pika-pack
as a bin command. Prior to this change, I was getting a pika not found
error.
I'm using npm version 8.8.0
package.json
Outdated
@@ -40,10 +40,12 @@ | |||
"@pika/plugin-bundle-web": "^0.5.0", | |||
"@pika/plugin-copy-assets": "^0.5.0", | |||
"@pika/plugin-standard-pkg": "^0.5.0", | |||
"@rdkit/rdkit": "^2022.3.2", |
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.
The new setup is using the npm release of the JavaScript rdkit MinimalLib https://www.npmjs.com/package/@rdkit/rdkit
"@webpack-cli/generators": "^2.4.2", | ||
"babel-loader": "^8.2.3", | ||
"eslint": "^8.10.0", | ||
"eslint-webpack-plugin": "^3.1.1", | ||
"gulp": "^4.0.2", |
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.
a necessary dev dependency for the new npm run build
command to work properly
} | ||
|
||
exports.rdkitCopy = rdkitCopy; | ||
exports.packageProject = packageProject; |
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.
This is another gulp command doing what the previous npm run build:pkg
was doing
bump on this @ptosco , I saw that you were updating the wasm file by hand, I think using the npm release would be more convenient (and the version of the minimal lib used by this repo would be tracable in the package.json file), but I'm biased and you're obviously the master of this project 🙏 If you want, I can add you to the npm @rdkit organization for you to have a better control over the npm releases too |
@MichelML Sorry for being slow on this one. I agree that tying this to the upstream repo would be tidier, but it often happens that I need functionality which has already been merged into master but not yet released (e.g. in this case returning the indices mapping when abbreviations are toggled), so I anticipate I'll often need to bundle a "preview" copy. |
No worries @ptosco , all my comments (and this PR) are assuming that eventually you'll want to release this as an npm package. If this is the case, having a development setup allowing you to do what you describe in your last comment is a good thing to have for sure, but always tying official release of this package with an official release of rdkit when publishing on npm would also be a must. Going back to npm releases of the minimal lib , in between releases, you could publish beta versions of the minimal lib like so - although I would have to invite you to the @rdkit npm org (Greg and I are the only members at the moment). Where if you're preparing this package for an upcoming release of rdkit, you could name your beta versions similar to Just some ideas 🙏 |
Update: just saw it was released already https://www.npmjs.com/package/rdkit-structure-renderer ideally it should be published under @rdkit too 🙏 (the name in package.json should thus be @rdkit/rdkit-structure-renderer ), if you give me your email address @ptosco I'll send you an invite to the org |
@ptosco if I find the time to do so in the upcoming weeks, would you feel comfortable putting this project under https://github.com/rdkit/rdkit-js ? I would take the time to setup the npm release process for this package and the deployment of the website that comes with it as well. Your workflow and the structure of this project wouldn't change except that you would work under a specific folder under rdkit-js basically your package would still be your own, released as
curious to have your thoughts on this 🙏 |
@MichelML I think that should be possible. I already have a React component based on |
@ptosco awesome! looking forward to it! |
Closing here since I don't think this will get merged, feel free to reopen anytime, happy to contribute to the project in the future if you need help @ptosco |
Hi @ptosco,
I was curious about this project so I went on and built it locally. I found the interactions very interesting and useful.
To build the project I ran into a few problems, and had a few ideas regarding "infra stuff". See more of my inline comments below.
I'm happy to help further if you have other things you'd like to add in this project.
A few other things, I wonder how it could fit with my current attempt to have a dedicated rdkit-js repository in the GitHub rdkit org. Your examples are very useful here, I wonder if this could be included somewhere with other examples seen in https://rdkitjs.com/
A little more context here rdkit/rdkit#4124