Often during the development process, we have to do the same thing all over and over again multiple times.
Stuff like :
Creating the same files but with different names to follow the project structure, for instance - putting components, styles, reducers, action, effects files in React/Redux applications.
Wiring-up pretty much the same configurations with WebPack.
Pointing in pull requests to other developers to follow the team/code conventions.
All of these are something we have do deal with… Or not?
My answer is - not necessarily. Code generators can help us a lot. With a bit of JavaScript, templating engines and configuration we can:
Bootstrap the entire project's base structure.
Bootstrap components, services, styles, etc.
Inject dependencies and modify existing files.
Enforce and check code conventions and much more