February 13th, 2023 × #configfiles#webdev#javascript
Save us from Config File Hell
Wes and Scott discuss config files in web development projects - how they are necessary but can clutter your codebase. They talk through different formats like JSON, JavaScript and YAML, tools to hide/organize them, and ideas for standardization.
In this Hasty Treat, Scott and Wes talk about what you can do to better organize your config files.
Show Notes
- 00:21 Welcome
- 02:20 Electric car ski tripping
- 05:01 Why config files?
- 07:47 Custom Vite config files
- Wes' Vite config
define: {
__VERSION__: JSON.stringify(process.env.npm_package_version),
},
- 11:16 Node has failed us
- 13:30 Cosmic config
- Cosmiconfig
- 16:46 File nesting
- 21:01 Standardize on a format
Tweet us your tasty treats
- Scott's Instagram
- LevelUpTutorials Instagram
- Wes' Instagram
- Wes' Twitter
- Wes' Facebook
- Scott's Twitter
- Make sure to include @SyntaxFM in your tweets