All Projects → compodoc → Ngd

compodoc / Ngd

Licence: mit
View the dependencies tree of you Angular application

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Ngd

Objc Dependency Visualizer
Objective-C and Swift dependency visualizer. It's tool that helps to visualize current state of your project. It's really easy to see how tight your classes are coupled.
Stars: ✭ 1,738 (+204.91%)
Mutual labels:  dependency-graph, graph
Dephell
📦 🔥 Python project management. Manage packages: convert between formats, lock, install, resolve, isolate, test, build graph, show outdated, audit. Manage venvs, build package, bump version.
Stars: ✭ 1,730 (+203.51%)
Mutual labels:  dependencies, dependency-graph
Dependency Graph
A simple dependency graph for Node.js
Stars: ✭ 219 (-61.58%)
Mutual labels:  dependency-graph, graph
Git Deps
git commit dependency analysis tool
Stars: ✭ 232 (-59.3%)
Mutual labels:  dependency-graph, graph
metahelm
Install dependency graphs of Kubernetes Helm Charts
Stars: ✭ 70 (-87.72%)
Mutual labels:  dependency-graph, dependencies
Protodot
transforming your .proto files into .dot files (and .svg, .png if you happen to have graphviz installed)
Stars: ✭ 107 (-81.23%)
Mutual labels:  dependency-graph, graph
Dependency Cruiser
Validate and visualize dependencies. Your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.
Stars: ✭ 2,326 (+308.07%)
Mutual labels:  dependencies, dependency-graph
Dotnet Assembly Grapher
Reverse engineering and software quality assurance tool for .NET assemblies
Stars: ✭ 21 (-96.32%)
Mutual labels:  dependency-graph, graph
Madge
Create graphs from your CommonJS, AMD or ES6 module dependencies
Stars: ✭ 5,635 (+888.6%)
Mutual labels:  dependencies, graph
Module Linker
browse modules by clicking directly on "import" statements on GitHub ⛺
Stars: ✭ 229 (-59.82%)
Mutual labels:  dependencies, dependency-graph
Cargo Deps
Cargo subcommand for building dependency graphs of Rust projects
Stars: ✭ 168 (-70.53%)
Mutual labels:  dependencies, graph
emerge
emerge is a source code analysis tool and dependency visualizer that can be used to gather insights about source code structure, metrics, dependencies and complexity of software projects. After scanning the source code of a project it provides you an interactive web interface to explore and analyze your project by using graph structures.
Stars: ✭ 120 (-78.95%)
Mutual labels:  dependency-graph, dependencies
govizz
No description or website provided.
Stars: ✭ 19 (-96.67%)
Mutual labels:  dependency-graph, dependencies
Ort
A suite of tools to assist with reviewing Open Source Software dependencies.
Stars: ✭ 446 (-21.75%)
Mutual labels:  dependencies, dependency-graph
Podsupdater
A macOS app which helps you manage dependency releases in your Podfile.
Stars: ✭ 513 (-10%)
Mutual labels:  dependencies
Rubrowser
a ruby code dependency graph interactive visualizer
Stars: ✭ 532 (-6.67%)
Mutual labels:  graph
Aws Security Viz
Visualize your aws security groups.
Stars: ✭ 511 (-10.35%)
Mutual labels:  graph
Diagram
☊ Tool for making node graphs. Inspired by dependency graph. Used mainly for automation services 📈
Stars: ✭ 510 (-10.53%)
Mutual labels:  graph
Esp Dash
A blazing fast library to create a functional dashboard for ESP8266 and ESP32
Stars: ✭ 548 (-3.86%)
Mutual labels:  graph
Ttyplot
a realtime plotting utility for terminal/console with data input from stdin
Stars: ✭ 532 (-6.67%)
Mutual labels:  graph

Build status CircleCI Code Climate

CLI npm version
Core npm version
Compiler npm version
Transformer npm version

NGD: Angular Dependencies Graph

A tool that allows you to view your Angular application dependencies.

Generated Graphs (sample)

Sample Application

screenshots-4

Angular Material 2

ng-bootstrap

soundcloud-ngrx

Install

Install from npm:

npm install -g @compodoc/ngd-cli

Install from Yarn:

yarn global add @compodoc/ngd-cli

Usage the CLI

$ ngd --help

Usage: ngd [options]

Options:

  -h, --help                    Output usage information
  -V, --version                 Output the version number
  -f, --file [file]             Entry *.ts file
  -p, --tsconfig [config]       A tsconfig.json
  -o, --open                    Open the generated HTML diagram file
  -g, --display-legend          Display the legend in the generated graph (default: true)
  -s, --silent                  In silent mode, log messages aren't logged in the console
  -t, --output-formats [formats] Output formats (default: html,svg,dot,json)
  -d, --output [folder]         Where to store the generated files

1) use a tsconfig.json:

Run inside your project (where your tsconfig.json is located):

$ cd my-awesome-cli-angular-app/
$ ngd
$ # or
$ ngd -p ./tsconfig.json

Note: This will read the files entry point in your tsconfig.json and crawl your app. If the entry point is not found, all *.ts files will be crawled, but not those mentioned in the exclude property (more details).

2) provide an entry file:

$ cd my-awesome-cli-angular-app/
$ ngd -f src/main.ts

NOTE: The file you provide should contain your root component.

Usage the API

  1. Import the DotEngine and Compiler from @compodoc/ngd-transformer and @compodoc/ngd-compiler:
import { DotEngine } from '@compodoc/ngd-transformer';
import { Compiler } from '@compodoc/ngd-compiler';
  1. Create an instance of a compiler:
const compiler = new Compiler(files, {
    tsconfigDirectory: cwd,
});
  1. Get the found dependencies:
const deps = compiler.getDependencies();
  1. Pass those dependencies to the transformer:
const engine = new DotEngine({
    output: program.output,
    displayLegend: program.displayLegend,
    outputFormats: program.outputFormats.split(','),
});
  1. Generate the graph:
engine.generateGraph(deps).then(file => { ... });

Have a PR?

All contributions are welcome ;)

License

The MIT License (MIT) Copyright (c) 2016 - Wassim CHEGHAM

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].