nodejs / nodejs/node-gyp

Generate .gitignore and .hgignore in build

Open
#3,018 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
10.7k
Forks
1.9k
Avg merge
1d 4h
Merged PRs (30d)
5

Description

https://mesonbuild.com/FAQ.html#how-do-i-ignore-the-build-directory-in-my-vcs

How do I ignore the build directory in my VCS?

You don't need to, assuming you use git or mercurial! Meson >=0.57.0 will create a .gitignore and .hgignore file for you, inside each build directory. It glob ignores "*", since all generated files should not be checked into git.

meson setup build

will generate build/.gitignore and build/.hgignore.

Can node-gyp configure do same thing?

TIA!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the node-gyp configure entry point and compare its generated build-directory contents with the Meson behavior described in the issue. Confirm how configure determines the build directory, then make it generate .gitignore and .hgignore containing the requested ignore rule and verify both files after meson setup build-style configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.