@springtree/eva-suite-spotlight-cli
v1.1.0
Published
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.
Downloads
4
Keywords
Readme
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",
...
}