Build SFRA and upload code to your sandbox. If a cartridge has style sheets or JavaScript, compile it before uploading.
To compile the style sheets and JavaScript for a cartridge:
storefront-reference-architecture
.npm run compile:js && npm run compile:scss && npm run compile:fonts
npm run compile:scss
npm run compile:js
The build commands are defined in the scripts
section of the
package.json
for your top-level folder. You can change the commands and
add commands for other command-line tools in the package.json
file.
sgmf-scripts
node globally, use this command to see all
current build commands:sgmf-scripts --help
sgmf-scripts
node locally, use
this command to see all current build commands:node node_modules/sgmf-scripts --help
You
can customize the build commands or add new ones in your
package.json
. See npm documentation for more information
about adding scripts for npm.To build an HTML version of the JSDoc: