Dull and tired of bootstrapping and boilerplate the code? Code generators to the rescue!
14:35 - 15:15, 29th of September (Tuesday) 2020/ FRONT-END STAGE
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