cubx-response-cache-config-generator
v1.0.8
Published
Generate the cubbles responseCache config for rte outgoing from root artifacts.
Downloads
3
Readme
cubx-response-cache-config-generator
Generate the cubbles responseCache config in a separate file for cubx.core.rte outgoing from root artifact list.
install
global
npm install -g cubbles-cache-config-generator
npm package
npm install cubbles-cache-config-generator --save-dev
usage
in code
const ResponseConfigCacheGenerator = require('cubbles-response-cache-config-generator);
let responseConfigCacheGenerator = new ResponseConfigCacheGenerator() ;
...
responseConfigCacheGenerator.generate(input, output, baseUrl);
parameter
input: path to a json file, which contains an artifact list or artifact list like this
[{ artifactId: "my-artifact", webpackageId: "[email protected]" }]
output: path to an output file
baseUrl: cubbles base store url
Note: See cubbles-response-cache-config-generator/lib/schema/artifactArray.schema.json
for artifact list format.
cli
cubx-response-cache-config-generator -i "[{\"artifactId\": \"my-artifact\", \"webpackageId\": \"[email protected]\"} ]" - o responseCache.js -b http://cubbles-world/my-store
oder
cubx-response-cache-config-generator -i input.json -o responseCache.js -b http://cubbles-world/my-store
options
- -i/--input: artifact lists as a json or path to a json file contains an artifact list
- -o/--output: path of the output file
- -b/--base-url: cubbles base store url
- --help