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.
Features
A total of 4 directories and 4 sample scala files will be created.
Commands
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.
Supported Languages
Scala3
Known Issues
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.
Release Notes(without hotfix)
1.2.0
Add new command for ZIO layer (ddd-file-generator.createDDDStructureWithZio)
1.1.0
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
1.0.0
Initial release to Vscode Marketplace with 1 main command