madge icon indicating copy to clipboard operation
madge copied to clipboard

How to provide config file like package.json to CLI?

Open terpimost opened this issue 3 years ago • 1 comments

I'm sorry if it's a stupid question. I want to use madge as CLI tool and provide all the configuration inside package.json "madge" field. I see that CLI supports providing webpack-config and ts-config but there is no option to point it to rc config. How should I do that?

terpimost avatar Mar 10 '21 21:03 terpimost

Not sure I understand your question. Here's everything you can configure in the madge field in package.json: https://github.com/pahen/madge#configuration including webpackConfig and tsConfig.

pahen avatar Mar 12 '21 08:03 pahen

Closing for inactivity

PabloLION avatar Jan 29 '23 12:01 PabloLION

he meant some options like npx madge --config madge.json ./src

dostoievsky avatar Jan 29 '23 22:01 dostoievsky

@dostoievsky It's actually a nice idea after I understand what you mean. But then it's like a dup of

  • #335

right? I think we can keep this one closed since #335 is still open.

PabloLION avatar Jan 30 '23 06:01 PabloLION