-
Notifications
You must be signed in to change notification settings - Fork 14
Questions about contributing #43
Comments
In response to the above, here are my thoughts in terms of 'Roadmap':
While I absolutely understand where you come from with respect to the vast expanse that is DefinitelyTyped, I am working on moving the definitions/tests contributed under this repo into DefinitelyTyped. The rationale has to do with:
I started working on a pull-request for the modules that are finished so far move them over asap. Starting with the TS2 version into the types-2.0 branch of DefintelyTyped. In parallel, it's all about completing the existing other modules ( As for the 'standard' DefinitelyTyped master branch for TS 1.8.x, I intended to work backwards from the TS2 version. I.e. strip out unsupported features/wrap the module definitions and submit them as a pull-request for the master branch. As I submit the first bigger PR for DT, I will outline this approach in the already open issue for D3 v4.1.x definitions and look for feedback. Your valued PR for d3-request would then be attributed to you as author. Note that out of gratitude for the original D3 v3 definitions, I kept the original authors listed in all the new definitions. So in summary, I always considered this repo a transitory staging ground, while I tackled some of the integration challenges coming with the new modular structure and the new TS 2 features. Therefore, I had not formalized a contribution guide and/or style guide specific to D3 related modules. I am totally with you on the principle, but not sure how that would best be implemented within the confines of DefinitelyTyped. Thoughts welcome! |
Thanks for the more than complete answer. Your choice of making a PR to DT makes total sense, as it would be way too hard to maintain both list of definitions in parallel. I think my question would have been better formulated as something like "How do types go to DT?"; the fact that you intend to submit a PR totally answers that. Regarding the contributing guide, I think maybe something just related to this repo could do; once merged in DT, the story is different. As a starting point, I suggest to include a Contributing.md file at the root of this repo, and include things such as:
I am not myself such a writer of documentation, so this is raw idea from the top of my head. |
Thanks for your take. A mini Contributing.md should indeed do for this repo. I will look into posting one later today. The basis above is a good starting point. The two items I held back on for now are the JSDoc comments urls to the official API documents. For some of the modules there was still quite some flux and it is a matter of triaging. IMHO the comments can be added in when the functional definitions are already in DT, i.e. they are accessible through 'normal' definitions acquisitions methods. A very nice to have, but secondary to availability. I added some in, where something really jumped out at me when I read the API or the D3 code, that did not seem immediately obvious. Links at the method/property level, however, always make me wonder about maintainability. |
Hi! I too would like to contribute! If I might make a suggestion — perhaps provide installation instructions for people using
Awesome work on this, though — I'm so incredibly excited to be able to start using v4 in TypeScript. 😄 |
I started the process of migrating the definitions that are complete with tests into the pipeline for DefinitelyTyped. More details are provided in my response to the issue definition request for D3 v4.1.x. @Aendrew thanks for the additional offer to contribute. I will update the README and add a 'mini' Contributing.md as per @Ledragon 's suggestion. The focus of the update will be on explaining the current status of this repo and how to contribute until migration to DefinitelyTyped is complete. So stay tuned. As for
I build the repo to develop/test the definitions in an integrated way, and frankly ran into some funky behavior when I used typings at the beginning with |
I materially updated the README with Roadmap info. The first part of the CONTRIBUTING.md is there as well. Need to put some finishing touches on it tomorrow. Please note that I have added Travis CI to the change control process. |
Wow, great job! This seems to be more than the mini guide discussed, but his is just awesome. On a side not,e to ensure style consistency, I think |
Thanks. Will consider |
@tomwanzek Nicely done! 👍 I have nothing to add, that's a very detailed README! 😄 |
Hi,
First of all, thanks for this repo, it's great to be able to find all new d3 types in a single place rather that the huge DefinitelyTyped repo.
I have a few questions:
d3-request
API, How do I make sure nobody else is doing it at the same time? I.e. how to avoid concurrent work?The text was updated successfully, but these errors were encountered: