@springtree/eva-suite-spotlight-cli

1.1.0 • Public • Published

eva-suite-spotlight-cli

This CLI is intended to be used within a EVA Suite Module project to generate generate a eva-spotlight.json file in the build dir.

Base usage

npx @springtree/eva-suite-spotlight-cli --help
Usage: eva-suite-spotlight-cli [options]

Options:
  -l, --i18n-dir <path>      path of the i18n files. Defaults to ./assets/i18n (default: "./assets/i18n")
  -b, --base <path>          path to base the search on. Defaults to ./src (default: "./src")
  -d, --destination <path>   path where to place the output file. Defaults to ./dist (default: "./dist")
  -p, --modulePrefix <name>  The module path prefix name
  -o --output-file <file>    output file defaults to eva-spotlight.json (default: "eva-spotlight.json")
  -h, --help                 display help for command

Usage advice

Add an npm script to the EVA Suite Module project using this cli script setting the parameters specific for that module. For example:

Change CHANGETHIS to the actual module dir of the EVA Suite Module, for example: orders

"scripts": {
...
  "spotlight": "npx @springtree/eva-suite-spotlight-cli -l ./src/assets/i18n -d ./build -p CHANGETHIS",
...
}

Readme

Keywords

none

Package Sidebar

Install

npm i @springtree/eva-suite-spotlight-cli

Weekly Downloads

1

Version

1.1.0

License

ISC

Unpacked Size

9.35 kB

Total Files

6

Last publish

Collaborators

  • mdoeswijk
  • janvandenberg
  • adebree
  • appie
  • springtree_solutions