- Clone this repository.
- From the top-level
/bolt-demandware-managed
, runnpm install
to install all package dependencies. - From the top-level
/bolt-demandware-managed
, edit thepaths.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-managed
folder, runnpm run build
- From the top-level
/bolt-demandware-managed
folder, runnpm run upload:all
Note: if you upload the bolt cartridge with a new code-version
, you 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
- Execute all the unit tests
supported locales: en-US
, en-CA
, fr-CA
For more information please check https://help.bolt.com/products/managed-checkout/sfcc-sfra-v2/