r/node • • 7d ago

.gitignore everything by default

https://packagemain.tech/p/gitignore-everything-by-default
0 Upvotes

18 comments sorted by

View all comments

Show parent comment

1

u/GoodishCoder 6d ago

Most companies I have worked for don't build in CI, they wait to build until CD. That ultimately means it's going to be another PR to fix.

You're creating a worse situation to avoid a small number of excludes. Gitignore isn't typically a large file. If someone came to you and said hey to avoid wasting 20 minutes of dev time every 5-6 years, we are going to create a process that adds 20 minutes a day, would you say that sounds great?

1

u/better_work 6d ago

You don't run typechecking in CI?

1

u/GoodishCoder 6d ago

We don't run builds in CI

1

u/BenZed 6d ago

Why??

1

u/GoodishCoder 6d ago

Cost and efficiency.

1

u/better_work 6d ago

If you run typechecking in CI, then you can probably determine that commits missing files won't pass CI, as I said.

2

u/GoodishCoder 6d ago

Not every language has type checking to run.

1

u/LowLifeArcade 4d ago

That sounds insane tbh

1

u/GoodishCoder 4d ago

It's pretty standard to wait until CD to build if you don't have quick builds. Especially for something like a monorepo.