Monorepos, "required root" files, and the config dir proposal #16
adamdehaven
started this conversation in
General
Replies: 1 comment
-
I also added a suggestion as to the naming from |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Required versus optional config file locations
You mentioned some files in the proposal that are common and unlikely to be nestable, mentioning
.env
and.gitconfig
.tsconfig.json
,.nvmrc
,renovate.json,
wrangler.toml
files, and others?/.config/
directory placement?.*ignore
files face a similar issue such as.eslintignore
,.stylelintignore
, etc.?Will moving to a
/.config/
directory for some (but likely not all) tools/frameworks essentially bifurcate the ecosystem into two groups, whereby "some config files must live at the root, whereas other config files can live in a/.config/
directory"?Does this run the risk of making things more confusing for developers to get up and running?
Opt-in
You mentioned the proposal would be opt-in, but TBH I'm leaning towards that in itself actually having the potential to make things worse?
Imagine yourself working in an organization with a large, distributed team of Vue/Nuxt engineers. If 1/2 of them set up their repositories with root-based configurations, and others opt for the
/.config/
proposal, at what point do you hate context switching between projects, having to remember what is where?Could this also create an issue with your IDE configuration when moving between projects (needing to adjust for the location of the config files)?
Monorepos
Currently, the convention for monorepos supports defining your base config files at the root of the repository. Based on the proposal:
I think this makes sense in theory, as you would essentially extend from the
/.config/*
directory's files. Assuming this works with no extra config, given the other questions above, this piece sounds less painful.Beta Was this translation helpful? Give feedback.
All reactions