The [[ https://wikitech.wikimedia.org/wiki/Blubber/User_Guide | Blubber config ]] accepts a `requirements` array property that is a list of all files needed in the container to perform a task. This works but is challenging to keep in sync with .gitignore, especially since most developers don't run Blubber locally. This ticket is a feature request to support reading the .gitignore file instead which would allow mounting the entire working directory and provide a seamless experience for non-Blubber devs.
Example: WVUI uses .gitignore file to exclude the node_modules/ directory, select dist/ files, and more. Similar, .prettierignore, .stylelintignore, .eslintignore, and forth files are maintained mostly by looking at the .gitignore. However, this list must be mentally [[ https://gerrit.wikimedia.org/r/c/wvui/+/624267/6/.pipeline/blubber.yaml | inverted and kept in sync for Blubber ]] and is something of trial by error: `requirements: [dist/, src/, docs/, .webpack/, tsconfig.json, .postcssrc.json]`. A better approach would be to mount all versioned files.