Skip to content

Feature proposal - Reporters for JSON and HTML聽#1

Open

Description

@hadrien-toma

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 馃構

Usage suggestion

JSON reporter

  • This JSON would be useful as a data source for other use cases (data processings) or visualizations
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

  • As a code reviewer, I would like to quickly look at the difference introduced by the commit I am reviewing in term of imports in order to have the opportunity to visually identify an anomaly or a dissonance. For this use case, as the human eye is the added value, an HTML output is very nice.
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 馃檹 鉂わ笍

Activity

  1. changed the title [-]Feature request / Reporters JSON and HTML[/-] [+]Feature proposal - Reporters for JSON and HTML[/+] on May 29, 2021
  2. BioPhoton commented on May 31, 2021

    @BioPhoton
    Member

    Would you be interested in serving a PR? 馃榿

  3. hadrien-toma commented on May 31, 2021

    @hadrien-toma
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions