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

Provide user the option to skip git initialization.

Open TheSpiciestDev 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

Running nest new projectName will create a new project and will initialize a git repository.

Expected behavior

Like the Angular CLI, it would be great to offer the user the ability to skip the git initialization. From the Angular CLI --help output:

  --skip-git (-g)
    When true, does not initialize a git repository.

Minimal reproduction of the problem with instructions

  1. Create a new project with the Nest CLI.
  2. See the .git folder.

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

If I'm generating a new Nest project within a monorepo (where I already have a git project initialized) then I do not want the Nest CLI to create a new git repo within the one I already have.

Environment

Within an existing repository.

TheSpiciestDev avatar Mar 07 '19 01:03 TheSpiciestDev

i see your point, yeah.. but you can easily remove the /path-to-your-nest-application/.git folder, right?! ;)

johannesschobel avatar Mar 07 '19 09:03 johannesschobel

maybe you can submit a PR for the upcoming @nestjs 6.0 version, which is just around the corner (note that the 6.0-rc1 has been released 2 days ago!)

johannesschobel avatar Mar 07 '19 09:03 johannesschobel

@johannesschobel yea, I'll give it a try!

TheSpiciestDev avatar Mar 07 '19 18:03 TheSpiciestDev

Looking forward @METACEO :) Thanks for reporting

kamilmysliwiec avatar Mar 16 '19 23:03 kamilmysliwiec

While I took awhile (new kid!) @kamilmysliwiec, I've opened a very small PR.

TheSpiciestDev avatar Apr 06 '19 18:04 TheSpiciestDev

🔥 Thank you @METACEO. Published as a new minor version!

kamilmysliwiec avatar Apr 09 '19 10:04 kamilmysliwiec