Overview of sfpowerscripts
mainsfpowerscripts is a build system designed for package-based development in Salesforce. It is delivered as a Node.js CLI that can be integrated into any CI/CD system. The system uses an Orchestrator that treats sfdx-project.json as the single source of truth, minimizing maintenance for complex programs with multiple packages.
Key capabilities include:
- Parallel Builds: Builds packages in parallel while respecting dependency graphs.
- Selective Builds/Deployments: Ability to build or deploy only the packages that have changed within a monorepo.
- Scratch Org Pooling: Commands to prepare pools of scratch orgs with pre-installed packages to optimize Pull/Merge Request validation.
- Artifact-Driven: All
createcommands produce or operate on artifacts. - Observability: All commands are integrated with StatsD for collecting pipeline metrics.