lmika
lmika

📺 WTF are all these config files for

Web front-end developers need to find a way to get all their project configuration into a single file. There, I said it! If Java devs can do it, then so can you.

(link via. the front-end developers at work)

|
Embed
Progress spinner
chriskrycho
chriskrycho

@lmika I don't think pointing to Maven as an alternative approach is going to persuade web developers. Rather the opposite, I should think. 🥴 Most configs can go in package.json anyway!

|
Embed
Progress spinner
lmika
lmika

@chriskrycho Yeah, you’re probably right. 😄 Interesting to hear that most config can go into package.json. I didn’t know that actually (I’m not a frontend developer so I don’t have a lot of experience here). It seems like the most natural place for it.

|
Embed
Progress spinner
In reply to
chriskrycho
chriskrycho

@lmika there's a very commonly-used package called cosmiconfig which lets you put it in a whole host of places and have it Just Work™. So if you like having fifteen .my-tool.yml files, you can! …but mostly don't have to. That said, it definitely is valuable to split out for big enough projects (like, say: the LinkedIn web app!).

|
Embed
Progress spinner