Configure the app_storefront_base
cartridge and any plugin cartridges
you want for your storefront.
You can contribute to the dwdebugger repository, which uses the Script Debugger API to provide debugging capabilities for VSC and node-inspector.
If you want to upload your code automatically, use the upload tool included with the
sgmf-scripts
command-line tools.
SFRA depends on modules managed by npm. If you downloaded the repository as a .zip file, these instructions assume that you have expanded it.
storefront-reference-architecture
directory.node -v
If node is already installed, this command
returns a version number. If it's installed, skip to the next step. storefront-reference-architecture
directory and you
installed Node.js.npm install
npm install -g sgmf-scripts
After installation, you can use the sgmf-scripts
command-line tools in any
directory on your machine with a syntax similar to:
sgmf-scripts --help
If you're installing on a Mac and get an EACCES error, try Fixing Your Permissions to globally install the node. Adjust your node installation if necessary. This process can be time-consuming. Global installation isn't necessary, but it eliminates the installation step for any new cartridge.
If you want to install
sgmf-scripts
locally, enter:
npm install sgmf-scripts
After
installation, you can use sgmf-scripts
in the current
folder with a syntax similar to:node node_modules/sgmf-scripts --help