Comments (6)
@Baccanno - I think that's the same root issue as the one I opened last week (#56). Do you have the same project setup where the baseUrl doesn't reflect the same location as the local file system?
from madge.
any update on this?
from madge.
Sorry I did not continue using Madge, I resolved my issue by isolating the file that was causing trouble and load it first in its own require() callback.
from madge.
Same problem here: The child dependencies in my amd project are not shown.
I broke it down to a simple example.
directories:
www/
app/
main.js
math.js
messages.js
lib/
print.js
config.js
I made sure that baseUrl reflects the same location as I call the madge cmd.
config.js:
requirejs.config({
baseUrl: '../', // path outside of the www folder
paths: {
// I left paths emtpy as madge doesn't seem to recognize them
}
});
main.js:
define(['www/app/messages', 'www/lib/print'],
print.js:
define(['www/app/math']
command:
madge ./www/app/main.js --format amd --find-nested-dependencies --dot > graph.gv
output:
digraph G {
"main";
"www/app/messages";
"www/lib/print";
"main" -> "www/app/messages";
"main" -> "www/lib/print";
}
But I miss "www/lib/print"->"www/app/math'"
from madge.
I saw in #67 that what I'm loking for, is not implemented. I want to see the whole dependency tree. That's just possible if calling madge ./whole_directory
but that shows me also files, which are never been called. To optimize each time my project just to run madge on it, would be annoying. A flag to get recursive dependencies, would be really nice. Until than I use a code snippet which gives me the wished result in the Browser console (also annoying): rtree.js
from madge.
I'm refactoring Madge now and planning to release 1.0.0 soon and will try to have this fixed then.
from madge.
Related Issues (20)
- Module dependencies completely ignored in Typescript HOT 4
- Madge CLI unavailable HOT 1
- Exclude imports not used at module load time
- [BUG] export * from 'xx' is in leaves result HOT 1
- Allow third-party dot visualizers
- [BUG] Some path which omits '/index' should not be skipped HOT 8
- Bypass index.js files
- Release v6.1.0 HOT 9
- --extensions js,ts not fount file HOT 1
- import "./package.js" is treated the same as "package" HOT 2
- Output as mermaid diagram
- Not reporting cycles within index files HOT 4
- Cannot find module node:stream HOT 2
- "skipped" files that are from node_modules?
- require statement is not detected by madge
- Option to draw graph of npm packages instead of modules
- glob cli <src...> parameters
- fix output.sh syntax
- trying to understand madge's circular dependency results for an Angular project HOT 1
- option to get dependents, recursively
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from madge.