0.5.2 • Published 6 years ago
dashgen v0.5.2
Dashgen
Simplistic static dashboard generator. Store your metrics in a generic JSON format, Dashgen will generate an HTML report out of them them!
Usage
JSON report structure
Have one or multiple files in this JSON format:
{
"sourceName": "my source"
"reports": [
{
"name": "my report 1",
"metrics": {
"key1": "value1",
"key2": "value2",
...
},
"messages" :[
"Something seemed slightly off with ..."
]
},
{
"name": "my report 1",
...
]
}Generate a dashgen report
npm install --global dashgendashgen <dataFolder> <targetFolder>- Open
<targetFolder>/index.html
Development
How to build
npm run dev=> Serve the svelte app over HTTP with live reload. Visit http://localhost:5000.
How to publish
- Test the package with
npm run pack:dryandnpm run pack - Test
cli.jswithnpm link. Now you can executedashgen. Unlink withnpm unlink. - Release the package:
npm version [patch|minor|major]npm release