Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .gitignore to new projects #3262

Closed
3 tasks done
jbergstroem opened this issue May 2, 2024 · 3 comments · Fixed by #3751
Closed
3 tasks done

Add .gitignore to new projects #3262

jbergstroem opened this issue May 2, 2024 · 3 comments · Fixed by #3751

Comments

@jbergstroem
Copy link

jbergstroem commented May 2, 2024

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

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
@timotheeguerin
Copy link
Member

are you suggesting tsp init should be doing that?

@jbergstroem
Copy link
Author

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
Copy link
Member

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

@markcowl markcowl added this to the Backlog milestone May 6, 2024
@allenjzhang allenjzhang modified the milestones: Backlog, [2024] August Jul 1, 2024
github-merge-queue bot pushed a commit that referenced this issue Jul 8, 2024
Fixes #3262

This adds a new confirmation prompt to `tsp init` to generate a
.gitignore file. Defaults to yes (true).

---------

Co-authored-by: Christopher Radek <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants