This is an extension that creates directories and files based on layer architecture of DDD for each input domain.
I developed it to reduce the effort of repeating files and directories on Scala dev env.
Command | Title | Description |
---|---|---|
ddd-file-generator.createDDDStructure | DDD:Create DDD Structure | A package for the entered domain name is created, and each of the four layer packages and sample files are created below it. |
ddd-file-generator.createDDDStructureWithoutFiles | DDD:Create DDD Structure Without Files | A package for the entered domain name is created, and each of the four layer packages are created below it. |
ddd-file-generator.createDDDStructureWithZio | DDD:Create DDD Structure With Zio | The file structure created by Create DDD Structure is the same, but additional code for the zio layer is generated in files excluding the domain layer. If you are not using the ZIO library, you do not need to use this command. |
- Scala3
- Since it is created in the standard source code location of the Scala project(i.e. src/main/scala), if it is executed with a vscode command not like through the context menu, the result will be created under the path.
- Other languages may be supported in the future.
- Add new command for ZIO layer (ddd-file-generator.createDDDStructureWithZio)
- Fix command name
- Add another command for it without files (ddd-file-generator.createDDDStructureWithoutFiles)
- Add configuration. Now It can be specified the default root path and the directory name of each layer in setting
Initial release to Vscode Marketplace with 1 main command
This project is inspired by ddd-hexagonal-generator and includes part of it's code
Enjoy!