insin / nwb

A toolkit for React, Preact, Inferno & vanilla JS apps, React libraries and other npm modules for the web, with no configuration (until you need it)
Other
5.57k stars 331 forks source link

does this create a git repo? #505

Closed AndyOGo closed 5 years ago

AndyOGo commented 5 years ago

This issue is a:

I did nwb new web-module my-module and got an unexpected .git/ repo.

Is this intended, if so why? Can I disable it?

Btw. I use lernaJS too

lsmoura commented 5 years ago

If you really don't want your new project to be a git repo, you can just delete the .git folder, and probably the .gitignore file as well.

Also, check this out

AndyOGo commented 5 years ago

@Ismoura Thank you for your answer.

Yeah, that's correct. In fact that is what I did, just delete .git/ folder. But I would really rather like to have it as an opt-in option 🙏

May I ask where this behaviour is documented, I couldn't find it at a first glance?

Edit: Wau you just where a second quiecker than me^^

Very good to know about --no-git flag, thanks a lot:)

lsmoura commented 5 years ago

@AndyOGo Check my comment on this thread. You can entirely disable the creation of the git repo.

Edit: We're editing our answers faster then expected!

AndyOGo commented 5 years ago

@lsmoura haha, thanks a lot, nice to chat with you