/nebula-core

The base set of Salesforce Apex classes used by Nebula Consulting. Covers many functional areas

Primary LanguageApexMIT LicenseMIT

Nebula Core

  • Paste this onto the end of your My Domain URL: /packaging/installPackage.apexp?p0=04t6M000000gb7IQAQ
  • Include in your SFDX project as "Nebula Core": "04t6M000000gb7IQAQ"

The base set of classes used by Nebula Consulting. The licence for this code is MIT, see LICENSE.

Areas covered by the library:

Just Triggers?

There is a lot of functionality in Nebula Core, but that also implies a footprint that might not work for you. So, you can install 'Nebula Triggers' instead. This contains just the trigger handlers and a few parts of Nebula Core that were used to write it.

Or you just might want to build from the source with no namespace.

In that case, use the nebula-triggers/ directory. This is a symbolic link, that pulls in just what you need to run the trigger framework. Note that if you're on Windows, you need to tick a checkbox when you install Git to make this work (see https://github.community/t/git-bash-symbolic-links-on-windows/522/4).

So, for example, if you have checked out the entire repository, you should be able to run the following commands successfully to put just the triggers in a scratch org, as source:

sfdx force:org:create edition=Developer --setalias 'Trigger Framework' --nonamespace
sfdx force:source:deploy --sourcepath nebula-triggers -u 'Trigger Framework'
sfdx force:apex:test:run --wait 60 -u 'Trigger Framework'

So, you could use force:source:deploy to deploy the code to your sandbox org for source-only usage.