rx-angular / import-graph-visualizer

A tool for filtering and visualizing import paths within a JavaScript/TypeScript application.
MIT License
80 stars 7 forks source link

Feature proposal - Reporters for JSON and HTML #1

Open hadrien-toma opened 3 years ago

hadrien-toma commented 3 years ago

Description

I would like to add this young but already very nice tool on my CI and it would be awesome if a flag allows us to specify that we want a not live output, as JSON and HTML :yum:

Usage suggestion

JSON reporter

yarn run import-graph-visualizer \
    --no-browser-open \
    --report=json \
    --outputPath=dist/my-branch-name \
    --targets="apps/my-app/src/app/app.module.ts" \
    --sources=""

HTML reporter

yarn run import-graph-visualizer \
     --no-browser-open \
     --report=html \
     --outputPath=dist/my-branch-name \
     --targets="apps/my-app/src/app/app.module.ts" \
     --sources=""

Note

Thank you for developing and sharing import-graph-visualizer :pray: :heart:

BioPhoton commented 3 years ago

Would you be interested in serving a PR? 😁

hadrien-toma commented 3 years ago

Hum it will depend on the amount of work to do but I would be pleased to! Maybe we can split this issue into different features?

Concerning the ability to save the served app, do you already have an idea of a clean implementation? This is the most important for me so I would like to implement this one prioritarly.