aackerman / circular-dependency-plugin

Detect circular dependencies in modules compiled with Webpack
https://www.npmjs.com/package/circular-dependency-plugin
ISC License
921 stars 47 forks source link

Integration with Jenkins CI #40

Closed sudheerj closed 5 years ago

sudheerj commented 5 years ago

I'am looking for the usage and implementation of this plugin in Vue project. Is there any issue to integrate this plugin for Jenkins CI build

aackerman commented 5 years ago

There shouldn't be any issue with integrating this plugin with a Jenkins CI build.

The plugin is expected to error in the presence of circular dependencies with respect to the plugin configuration options, and that should cause webpack to fail and the build to fail.

sudheerj commented 5 years ago

Thank you @aackerman for the reply. I believe that configuring this plugin with in webpack.dev.config.js file will make it available to Jenkins CI build(similar to other plugins). By the way, we are going to apply warnings instead errors using the options.

Two more questions,

  1. Are there any future plans for visualization images similar to madge npm utitlity.
  2. Can we exclude certain circular dependencies. For example, exclude the circular dependencies caused by global router(or any text pattern).
aackerman commented 5 years ago

@sudheerj

  1. There are no current plans to include visualization, I think other projects handle visualizing webpack much better than I could.
  2. Yes, you can provide the exclude option with a RegExp to define which files to exclude, it's common to exclude node_modules. The README has a good example.