microsoft / typespec

https://typespec.io/
MIT License
4.49k stars 214 forks source link

Add `.gitignore` to new projects #3262

Closed jbergstroem closed 4 months ago

jbergstroem commented 6 months ago

Clear and concise description of the problem

Improve DX by adding a .gitignore when initializing a project (even if its not managed by git) that at a minimum would contain node_modules and tsp-output.

Checklist

timotheeguerin commented 6 months ago

are you suggesting tsp init should be doing that?

jbergstroem commented 6 months ago

are you suggesting tsp init should be doing that?

Yes, as part of setting up a project directory. Sorry if I wasn't clear enough.

timotheeguerin commented 6 months ago

Should be easy enough maybe add as a prompt (Add default .gitignore? Y/n)