ddeps 1.0.0

Source review support tool.


To use this package, run the following command in your project's root directory:

DDeps

Source review support tool.

A tool for creating module dependency graphs. And visualize the differences between the two snapshots.

Screenshot (Example)

rx

Requirements

  1. dub
  2. Graphviz (for visualize)

Settings

For library (example)

	"configurations": [
		{
			"name": "default"
		},
		{
			"name": "diff",
			"postGenerateCommands": [
				"dub build -c makedeps",
				"ddeps --focus=rx --out=deps.dot",
				"dot -Tsvg -odeps.svg deps.dot"
			]
		},
		{
			"name": "diff-update",
			"postGenerateCommands": [
				"ddeps --focus=rx --update"
			]
		},
		{
			"name": "makedeps",
			"dflags": ["-deps=deps.txt"]
		}
    ]

For executable

	"configurations": [
		{
			"name": "default"
		},
		{
			"name": "diff",
			"postGenerateCommands": [
				"dub build -c makedeps",
				"ddeps --out=deps.dot",
				"dot -Tsvg -odeps.svg deps.dot"
			]
		},
		{
			"name": "diff-update",
			"postGenerateCommands": [
				"ddeps --update"
			]
		},
		{
			"name": "makedeps",
			"dflags": ["-deps=deps.txt"]
		}
    ]

Usage

At first

create lock file

dub build -c makedeps
dub build -c diff-update

Basic

  1. Modify source
  2. Update diff
    • dub build -c diff
  3. Do review with the dependency graph diff
    • Open the deps.svg in browser

Compare 2 versions

  1. checkout a target version
    • git reset --hard XXX or git checkout XXXXX
  2. reset to source version
    • git reset --hard HEAD~10 (e.g. 10 versions ago)
  3. create deps-lock.txt
    • dub build -c makedeps
    • dub build -c diff-update
    • if dub.json / dub.sdl has not configure then add these.
  4. reset to target version
    • git reset --hard ORIG_HEAD
  5. make diff
    • dub build -c diff
  6. open deps.svg

Arguments

| name | Usage | description | default | |:-----|:------------|:--|:--| | input | -i or --input | deps file name | deps.txt | | output | -o XXX or --output=XXX | destination file name | write to stdout | | update | -u or --update | update lock file | false | | lock | -l or --lock | lock file name | deps-lock.txt | | focus | --focus=XXX | filtering target by name | app | | depth | -d or --depth | update lock file | false | | help | --help | show help | |

Authors:
  • lempiji
Dependencies:
none
Versions:
1.1.1 2019-Apr-27
1.1.0 2019-Apr-27
1.0.1 2019-Apr-27
1.0.0 2019-Apr-24
~master 2019-Apr-27
Show all 5 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 1 downloads this month

  • 39 downloads total

Score:
1.2
Short URL:
ddeps.dub.pm