-
Notifications
You must be signed in to change notification settings - Fork 422
Open
Labels
Description
Is there an existing issue that is already proposing this?
- I have searched the existing issues
Is your feature request related to a problem? Please describe it
Not related to a problem, just a suggestion to add more flexibility when creating new projects with the CLI.
Describe the solution you'd like
I would like to be able to use options in the CLI when creating a new project in order to not add features that are currently added to all projects.
The features would be testing (no Jest, no Supertest, no testing configuration, no automatic spec creation, no test scripts in package.json) and linting (no Eslint and no Eslint configuration).
Teachability, documentation, adoption, migration strategy
Something like nest new --skip-testing --skip-linting to not install the packages and skip the configurations would be excellent.
It wouldn't change the default behavior of the CLI, adding just flags for an opt-in, more customized CLI experience.
What is the motivation / use case for changing the behavior?
- Reduce "friction" to clean up the project of unused configurations/packages when using different tools such as Vitest/PactumJS for testing or Biome for linting
- Make the CLI less opinionated when it comes to features not directly related to Nest (like it doesn't exactly push TypeORM out of the box, even presenting a help section for Prisma in the docs)
- I know this isn't a big reason, but having the ability to prototype something without too many "extras" feels like a better experience to me
micalevisk, dmk-dark, salemgst, tbouasli, giancarlo-dm and 1 more