name: create-subproject description: Generate a new set of modules, i.e. a Subproject, in a given directory following a prescribed format argument-hint: [name] [path] [--no-ui]
Additional resources
- When generating modules, follow MODULARIZATION.md
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
uimodule and ignore following instructions related to that module - Generate the
build.gradle.ktsfile 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.gitkeepfile as placeholders to make it recognizable by Git - Add the new modules to
settings.gradle.kts, using a single, separate,include(…)statement - Add the
implmodule as a dependency inapp/common/build.gradle.kts - If
uimodule was added, also add it toapp/common/build.gradle.kts