Module to generate a README file describing its artifacts
npm install cubx-generate-webpackage-readme-file
Module for generating the readme file of a webpackage.
```
ubx-generate-webpackage-readme-file -p <...> -s <...> [--includeSample <...> --sampleArtifactId <...> includeInit: <...> sampleSlotName: <...> sampleSlotValue: <...>]
`javascript
var WebpackageReadmeGenerator = require('cubx-generate-webpackage-readme-file');
var webpackagePath = ...;
var options = {
storeName: ...,
includeSample: ...,
sampleArtifactId: ...,
includeInit: ...,
sampleSlotName: ...,
sampleSlotValue: ...
};
var generator = new WebpackageReadmeGenerator(webpackagePath);
generator.setTemplateValues(options);
generator.generateReadmeFile();
`includeSample === true$3
* webpackagePath or -p: _(string, required)_ path of the webpackage.
* storeName or -s: _(string, required)_ Name of the store where the webpackage is hosted. To be used for the links associated to each artifact.
* includeSample: _(boolean)_ indicates whether an example using a component should be include.
* sampleArtifactId: _(string, required if )_ It is the artifactId of the component to be used as example.includeInit === true
* includeInit: _(boolean)_ indicates whether a demo of how to initialise the example component should be include.
* sampleSlotName: _(string, required if )_ It is the slotId of the slot to be used for the initialisation demo.includeInit === true`)_ It is the value of the slot to be used for the initialisation demo. It should be JSON valid.
* sampleSlotValue: _(any, required if