- Clone this repository.
- From the top-level
/bolt-demandware-embedded
, runnpm install
to install all the package dependencies. - From the top-level
/bolt-demandware-embedded
, edit the paths.base in package.json. This property should be the relative path to the local directory of the Storefront Reference Architecture repository. For example:
"paths": {
"base": "../storefront-reference-architecture/cartridges/app_storefront_base/"
}
- Create
dw.json
file in the root of the project:
{
"hostname": "your-sandbox-hostname.demandware.net",
"username": "yourlogin",
"password": "yourpwd",
"code-version": "version_to_upload_to"
}
- From the top-level
/bolt-demandware-embedded
, runnpm run build
- From the top-level
/bolt-demandware-embedded
, runnpm run upload:all
Note: if you upload the bolt cartridge with a new code-version
, you will need to re-run step 5 and 6.
Use the provided NPM scripts to compile and upload changes to your Sandbox.
npm run upload:all
npm run lint
- Execute linting for all JavaScript and SCSS files in the project. This should be run before committing code.
#Testing
npm run test:unit
- Run the unit tests
supported locales: en-US
, en-CA
, fr-CA
For more information: https://help.bolt.com/products/embedded/sfcc-embedded/