Customizations
As mentioned before there are 2 ways to add custom code to an application:
- Insert code in custom anchors.
- Add a custom file to one of the ext directories.
For the angular-expanders a new technique of handling ext folders has been implemented. Physical ext and gen folders are no longer necessary, but a manifest file is used to keep track of which artifacts have been expanded. This makes it possible to use every folder as an ext folder and have an ext file live next to a gen file. However, in order to keep a clear structure throughout all expanded Angular projects – as in our JEE stack – not every folder acts as an ext folder. The following decisions have been made:
- Assets is an
extfolder. - The subfolders of styles are
extfolders. - The subfolders of core, shared and feature modules act as an
extfolder. This means components, services, features, etc.
Every folder mentioned above except for root allows harvest of subfolders and more layers deep if wanted. However, keep in mind that a flatter structure is preferred in Angular front-end projects.
To deviate from this structure, you can add folders or files to the .harvestInclude files.