Skip to content

Conversation

@renovate
Copy link

@renovate renovate bot commented Aug 26, 2020

This PR contains the following updates:

Package Type Update Change
dependency-cruiser devDependencies minor 9.11.0 -> 9.12.0

Release Notes

sverweij/dependency-cruiser

v9.12.0

Compare Source

🌟 Features

  • feature(depcruise-fmt): add filter options (#​354)

☝️ If you have a largish code base and want to make loads of overview pictures of parts of your repo fast this is the feature for you.

save the dependency-graph as a json. You probably know that if your repo is big (let's say > 5000 modules, > 20000 dependencies) this can take a minute as dependency-cruiser has to read each file from disk & parse it:

depcruise "^packages|lib" --config --output-type json -f result.json # might take some time

From the saved result generate a bunch of overview graphs. As the heavy lifting is done already, each will take typically < 1s (depending on the size of your graph):

depcruise-fmt result.json --output-type dot --include-only ^packages/search |\
   dot -T svg | depcruise-wrap-stream-in-html > search-graph.html

depcruise-fmt result.json --output-type dot --include-only ^packages/checkin |\
   dot -T svg | depcruise-wrap-stream-in-html > checkin-graph.html

depcruise-fmt result.json --output-type dot --include-only ^packages/trip |\
   dot -T svg | depcruise-wrap-stream-in-html > trip-graph.html

depcruise-fmt result.json --output-type dot --include-only ^packages/ancillaries --exclude "\\.spec.ts$|mocks" |\
   dot -T svg | depcruise-wrap-stream-in-html > ancillaries-graph-without-test-stuffs.html

The compressed architecture view will be fast as well:

depcruise-fmt result.json --output-type archi  |\
   dot -T svg | depcruise-wrap-stream-in-html > high-level-graph.html

It works on all reporters, so if you want to generate separate violation reports for parts of your repo you can do this:

### The focus filter only includes modules matching the regex + their direct neighbours, which is exactly
### what we want for violation reports:
depcruise-fmt result.json --output-type err-html --focus ^packages/ancillaries -f ancillary-violations.html
depcruise-fmt result.json --output-type err-html --focus ^packages/trip -f trip-violations.html
### ... etc

Enjoy! Bug reports (and ⭐ 's if you like it :-) ) welcome

🔧 Maintenance

📖 Documentation

  • doc: typo's & copy updates

912 is apparently the designation of another porsche
Porsche 912. Targa

v9.11.1

Compare Source

🐛 bugfixes

  • bugfix(resolve): also recognize @​types/yadda in package.json if only 'yadda' is imported (#​352)
  • bugfix(init-config): use -f instead of redirect for html report

🛠️ maintentance

📖 documentation

  • doc(schema): more correct & concise description how to generate the schema
  • doc(changelog): adds a CHANGELOG.md file (#​350)

Renovate configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by WhiteSource Renovate. View repository job log here.

@Himenon Himenon merged commit 0681c9c into master Aug 29, 2020
@renovate renovate bot deleted the renovate/dependency-cruiser-9.x branch August 29, 2020 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants