Skip to content

s4ff0x/fsd-cruise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Currently in Beta

npm

Simple dependency visualization for Feature Sliced Design based on dependency-cruiser

Requirements & Limitations

requirements: dependency-cruiser requires the graphviz library, you can install it using brew

limitations: Currently, it only operates with the provided tsconfig.json and src folder paths, which are assumed by default to be in the root directory.

Usage

Run with npx (recommended)

npx fsd-cruise

Or install locally and run using either Node or npm scripts

npm i fsd-cruise -D

# Node usage variant
node node_modules/fsd-cruise/bin.js

# NPM scripts usage variant
# add to package.json scripts -> "generate:fsd-cruise": "node node_modules/fsd-cruise/bin.js"

Customization

You can provide custom paths to your src folder and tsconfig.json. By default, only a high-level fsd-high-level-dependencies.html file is generated (collapsed to a folder depth of 3).

npx fsd-cruise app/src app/tsconfig.json

Detailed Graph Generation

If you want an additional interactive canvas showing detailed file-level relationships within your architecture, you can use the --detailed flag (takes significantly more time). You can also specify the --depth (default 4) to dictate how deep the folders in the detailed graph should be collapsed:

# Generate the high-level graph AND the detailed graph with the default depth of 4
npx fsd-cruise --detailed

# Generate the detailed graph and specify the collapse depth explicitly
npx fsd-cruise --detailed --depth 5

Output example

image

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors