stil4m / elm-analyse

A tool that allows you to analyse your Elm code, identify deficiencies and apply best practices.
https://stil4m.github.io/elm-analyse/
MIT License
415 stars 56 forks source link

import dependency tree #105

Open mordrax opened 7 years ago

mordrax commented 7 years ago

I wonder if it's easy to get a tree representation of all the modules that import other modules so we can see when a certain module is changed, which other modules have to recompile.

In our project, we have over 300 files and recompiles are costly bottlenecks of the workflow.

Love your work btw!

stil4m commented 7 years ago

Good point! I've been making some structural changes for #102 which already collects all the data for this. In #101 I removed the directed layout while it was mainly missing this information and not properly performing.

I'm thinking about using http://www.graphviz.org/ but I am not sure yet.

mordrax commented 7 years ago

Were you thinking of using something like this: http://viz-js.com/ With the exported svg, you could parse the nodes to put onClick information in there. Hopefully they can be named and not just random 'node1, node2, ...'

I didn't realise you started with a directed graph. That information would be awesome to have! I'd happily take on extra CPU cost to see it!

stil4m commented 6 years ago

I've released a digraph representation that can be viewed using graphviz in the 0.12.0 release. Have you checked it out?