This is an example set of code to demonstrate the techniques that @ImJohnMDaniel and @Stohn777 used to adopt Salesforce DX Unlocked Packages.
The Wiki for this codebase goes over these concepts in depth.
Folder | Description |
---|---|
sfdx-source/core | Core library, contains the foundation code required to support all of the techniques |
sfdx-source/reference-implementation-common | Demonstration code around the Accounts SObject including base domains and selectors. Also contains examples of Application Factory Injection |
sfdx-source/reference-implementation-marketing | Demonstration code around the addition of Marketing specific SObject fields on Account. Also contains examples of Application Factory Injection, Selector Field Injection, Domain Process Injection, and Test Data Builder Field Injection |
sfdx-source/reference-implementation-sales | Demonstration code around the addition of Sales specific logic. Also contains examples of Application Factory Injection, and Subscription Based Platform Events |
sfdx-source/reference-implementation-service | Demonstration code around the addition of Service specific logic. Also contains examples of Application Factory Injection, and Subscription Based Platform Events |
sfdx-source/other | Miscellaeous code. Used to increase the session settings for a scratch org to be 24 hours |
This wiki article gives instructions on how to setup the codebase in a SalesforceDX Scratch org.