@commercetools-frontend/menu-cli

0.0.1 • Public • Published

@commercetools-frontend/menu-cli

Installation

$ npm install --save @commercetools-frontend/menu-cli

Usage

Please make sure you have Node.js v14 or higher installed as this package uses native ES modules.

The CLI offers commands to manage an Custom Applications menu.json.

Command: build

The command generates a menu.json file given a menu.mjs file, where react-intl translations are defined for the menu labels.

yarn menu-cli build \
  --menu-file=menu.mjs \
  --i18n-folder=i18n/data \
  --locales="en, de, es, fr-FR, zh-CN, ja"

It is advised to rely on the CLIs defauls whenever possible and only run yarn menu-cli build.

Package Sidebar

Install

npm i @commercetools-frontend/menu-cli

Weekly Downloads

2,006

Version

0.0.1

License

MIT

Unpacked Size

11.6 kB

Total Files

9

Last publish

Collaborators

  • tdeekens
  • emmenko
  • commercetools-admin