A script that shows you how to decompose the famous dreamhouseapp/dreamhouse-sfdx into multiple package directories.
Here's what the final package directory structure will look like:
dreamhouse-sfdx/
├── force-app/schema
├── force-app/bl
├── force-app/ui
└── force-app/perms
- It shows how we can logically split the Dreamhouse application into four package directories
- It demonstrates that there are relationships between the package directories
schema
is logically containedbl
depends onschema
ui
depends on a combination ofschema
andbl
perms
depends on the rest
- It shows we can compose the tiers such that dependencies are properly encapsulated
- It shows we can push our source successfully as each tier is added to the project
- It shows that we can also push the entire project (with all four package directories) at the same time
Install my handy plugin: sfdx plugins:install sfdx-waw-plugin
chmod +x decomp.sh
./decomp.sh
When complete, you'll have two new scratch orgs:
decomporg1
which had source pushed one package directory at a timedecomporg2
which had all the source pushed at once
Soon we'll wire up each package directory with a Developer Controlled Package (DCP).