nest-cli icon indicating copy to clipboard operation
nest-cli copied to clipboard

Disable spec generation for specific files in nest-cli.json

Open rweisse opened this issue 7 years ago • 6 comments

I'm submitting a...


[ ] Regression 
[ ] Bug report
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

At the moment I have to add --no-spec to the nest generate command for specific files I don't want to be generated spec-files for.

Expected behavior

I would prefer to be able to configure this behaviour by nest-cli.json file. For example in this way:

"spec": {
    "class": false,
    "component": true,
    "module": false,
    "service": true
  }

Maybe this is already possible and I have missed this in the documentation?

What is the motivation / use case for changing the behavior?

Laziness ;-)

rweisse avatar Jun 14 '19 09:06 rweisse

@rweisse but witch controller don't work :(

Zacknero avatar Oct 07 '19 14:10 Zacknero

Hey has anyone picked this up? I would like to work on this if no-one already is.

code-x-coffee avatar Oct 14 '19 12:10 code-x-coffee

Feel free to proceed with this @utsav-upendra :)

kamilmysliwiec avatar Oct 14 '19 12:10 kamilmysliwiec

Should be closed as PR #527 has been merged?

emilgodsk avatar Jan 15 '20 21:01 emilgodsk

You're right. Thanks for noticing @egodsk!

kamilmysliwiec avatar Jan 15 '20 21:01 kamilmysliwiec

Just add to nest-cli.json : "generateOptions": { "spec": false }

klachhab avatar Aug 14 '22 19:08 klachhab