build,meta: rearrange and narrow git ignore rules
.gitignore
Non trivial change to - Add file header
- Add section headers
- Add comments
- Group and rearrange rules by role
- Narrow rules that refer to files in the root folder
-
node_modules
rules based on https://github.com/nodejs/node/pull/27670 - Remove old and unused rules (
/coverage
,iojs
,tmp
)
might need more validation by human developers different platforms
as documented in the file:
To test conflicts, run git ls-files -i --exclude-standard
.
To check why a specific file is ignored, run git check-ignore -v [-n] [--no-index] <filepath>
.
/CC @nodejs/build-files @nodejs/documentation @nodejs/testing @nodejs/linting
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
documentation is changed or added -
commit message follows commit guidelines