| name | create-subproject |
| description | Generate a new set of modules, i.e. a Subproject, in a given directory following a prescribed format |
Additional resources
Generate subproject
Using $1 as the root directory, follow this plan
- Generate directories per the modularization guildlines
a. If $2 is present, DO NOT generate the
ui module and ignore following instructions related to that module
- Generate the
build.gradle.kts file for each module
- Generate the src directories for each, all following the same path
src/commonMain/kotlin
- Generate the package directories in the previous source directory, follow the pattern
app/campfire/$0/{{module type}}
a. Add a .gitkeep file as placeholders to make it recognizable by Git
- Add the new modules to
settings.gradle.kts, using a single, separate, include(…) statement
- Add the
impl module as a dependency in app/common/build.gradle.kts
- If
ui module was added, also add it to app/common/build.gradle.kts