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

Created on 14 Jun 2019  路  5Comments  路  Source: nestjs/nest-cli

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 ;-)

PRs open feature

Most helpful comment

Should be closed as PR #527 has been merged?

All 5 comments

@rweisse but witch controller don't work :(

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

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

Should be closed as PR #527 has been merged?

You're right. Thanks for noticing @egodsk!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jylin picture jylin  路  5Comments

128keaton picture 128keaton  路  3Comments

MonsieurMan picture MonsieurMan  路  3Comments

alexbuczynsky picture alexbuczynsky  路  5Comments

Juancoll picture Juancoll  路  5Comments