This is the starter
template to develop Custom Applications for the Merchant Center.
Install the template using the npx
command. Replace <folder_name>
with the name of the folder where the template should be installed into.
$ npx @commercetools-frontend/create-mc-app <folder_name> --template starter
You can also install the @commercetools-frontend/create-mc-app
CLI globally:
# Using yarn
$ yarn global add @commercetools-frontend/create-mc-app
$ create-mc-app <folder_name> --template starter
# Using npm
$ npm install --global @commercetools-frontend/create-mc-app
$ create-mc-app <folder_name> --template starter
Once the template has been installed, you need to check and adjust the custom-application-config.json
file accordingly. Reference: Custom Application Config.
You can additionally configure editor support to provide hints and code completion.
The template provides the bare minimum configuration setup, so you might not need to change anything specific for now.
To develop the Custom Application in development mode, use the start
command in package.json
.
Important commands:
test
: runs tests using Jest.build
: builds the production bundles and outputs them indist
.compile-html
: compiles the applicationindex.html
based on the application config.extract-intl
: extracts messages for translations.
Other useful commands:
compile-html:local
andstart:prod:local
: use these commands to test the application locally in production mode.versions:*
: use these commands to update dependency versions in bulk related to Custom Applications.