poznan icon indicating copy to clipboard operation
poznan copied to clipboard

Nx custom generators - a mean to achieve codebase consistency

Open wojtrawi opened this issue 1 year ago • 4 comments

Undoubtedly, Nx is a great tool to use on a daily basis when working on enterprise applications. One of its striking features it the ability to perform code scaffolding in a consistent way with the aid of common plugins which include a great number of generators. In addition to that, it’s also possible to create a custom generator that meets your application’s specific needs. In this presentation, I will cover how to write a custom generator from scratch with the aid of tools provided by the Nx. I will focus on generating files from templates and updating existing files in an elegant and maintainable way. I will make use of many relevant helper functions from the Nx devkit package. In addition, I will cover how to compose generators including extending the ones provided by well known plugins such as Angular library / application generators. The insights and a bunch of tips and tricks from a real world application will conclude the presentation.

wojtrawi avatar Jul 12 '23 13:07 wojtrawi

Sound great. We plan next meeting on 10.10.2023 at 18:00. Whether it suits you?

SebastianPozoga avatar Sep 05 '23 04:09 SebastianPozoga

Looks good to me 👌

wojtrawi avatar Sep 05 '23 13:09 wojtrawi

The topic will be covered later in the future - on 10.10.2023 the topic about the inject function in Angular will be covered.

wojtrawi avatar Sep 18 '23 04:09 wojtrawi

Cześć Czy pasuje Ci termin 14.11.2023 na poprowadzenie prezentacji?

SebastianPozoga avatar Oct 06 '23 08:10 SebastianPozoga