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
Typescript dependencies support #49
Comments
Hi there) Can you please attach screenshot what you mean by “components hierarchy links”? Thanks. |
I see. That's "Dependencies tree". So, here is the deal, currently this feature supported only for JavaScript, it's mentioned in README somewhere :). To build dependencies tree I need some way to resolve dependencies based on imports/exports or whatever way that particular language handles it. For JavaScript I use https://github.com/pahen/madge, and for other languages there are placeholders which resolve empty arrays (and waiting for being implemented). I just checked https://github.com/pahen/madge now and it seems to support TS as well. It should be fairly easy to implement its usage as well. Are you interested to contribute? 😉 |
Sure! At least I can try ;)
…On Tue, Mar 26, 2019 at 7:46 PM Bohdan Liashenko ***@***.***> wrote:
I see. That's "Dependencies tree". So, here is the deal, currently this
feature supported only for JavaScript, it's mentioned in README somewhere
:). To build dependencies tree I need some way to resolve dependencies
based on imports/exports or whatever way that particular language handles
it. For JavaScript I use https://github.com/pahen/madge, and for other
languages there are placeholders which resolve empty arrays (and waiting
for being implemented).
E.g.
https://github.com/Bogdan-Lyashenko/codecrumbs/blob/master/src/server/code-parse/language/typescript/dependencies.js
https://github.com/Bogdan-Lyashenko/codecrumbs/blob/master/src/server/code-parse/language/default/dependencies.js
I just checked https://github.com/pahen/madge now and it seems to support
TS as well. It should be fairly easy to implement its usage as well. Are
you interested to contribute? 😉
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#49 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AoHgqrqV5uBxPMyKfmx3lSo1e61faRCUks5vamsAgaJpZM4cMAtR>
.
--
*Jean-Baptiste CAMARET*
Front-end Developer
Website: www.lifen.fr
*** Découvrez Lifen <https://goo.gl/b59b1J> notre plateforme d'échange de
documents médicaux, et notre app de gestion de Planning de garde
<https://goo.gl/rbPWUh> ***
<http://www.lifen.fr/>
|
Awesome. Check the links to files above. Also see how JS does it https://github.com/Bogdan-Lyashenko/codecrumbs/blob/master/src/server/code-parse/language/javascript/dependencies.js |
I don't seem to be able to display components hierarchy links (as per JS files) for a project with
.tsx
react component files.The text was updated successfully, but these errors were encountered: