...
The file structure is just a guide, but for consistency the structure described above should be followed unless there is a good reason not to.
In When it is only possible for a component that by its nature contains only to contain a single feature due to its plugin type, for example a perform element or a block, the feature subdirectory may should be omitted and its contents placed directly under src/
. If it is possible for the component to contain multiple features, feature subdirectories should be used.
Migrating from v1 to v2
As there is currently no mechanism for handling file renames, it is suggested that existing code be left in place for now. New development within a component can happen in the v2 structure though. As long as the tui.json
file is in the correct place (not inside src/
), the v1 and v2 structures may coexist within the same Tui component.
...