Snapshot Builds

Note: Spartacus 3.x is no longer maintained. Please upgrade to the latest version.

Note: Spartacus 3.x was tested with SAP Commerce Cloud versions 1905 to 2105. Spartacus 3.x has not been verified to work with (and is not guaranteed to work with) SAP Commerce Cloud 2211 or later releases.

Snapshot builds are a way for Spartacus users to have access to library fixes or features that have not yet been officially released in our npm libraries.

Snapshot builds are published in the following GitHub repositories:

Each commit represents a snapshot. We create a snapshot every time a change is merged to the develop branch. A GitHub release with the source code is created for every snapshot.

To import a snapshot build in your shell app, update the library dependency in your package.json, as follows:

{
  "dependencies" : {
    "@spartacus/core": "SAP/spartacus-core-builds",
    "@spartacus/styles": "SAP/spartacus-styles-builds",
    "@spartacus/assets": "SAP/spartacus-assets-builds",
    "@spartacus/storefront": "SAP/spartacus-storefront-builds"
    }
}

This allows you to import the latest (most recent) snapshot from GitHub.

If you want to import a specific snapshot, append the suffix of the GitHub repository and the git tag of the release in your dependency version, as follows:

{
  "dependencies" : {
    "@spartacus/core": "SAP/spartacus-core-builds#core-0.1.0+abcde23f",
    "@spartacus/styles": "SAP/spartacus-styles-builds#styles-0.1.0+abcde23f",
    "@spartacus/assets": "SAP/spartacus-assets-builds#styles-0.1.0+abcde23f",
    "@spartacus/storefront": "SAP/spartacus-storefront-builds#storefront-0.1.0+abcde23f"
  }
}