Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jritsema/freeboard-jqplot-buildtool
A tool that builds a freeboard-jqplot widget package directory into a dashboard.json file that can be loaded by freeboard
https://github.com/jritsema/freeboard-jqplot-buildtool
build freeboard jqplot
Last synced: 24 days ago
JSON representation
A tool that builds a freeboard-jqplot widget package directory into a dashboard.json file that can be loaded by freeboard
- Host: GitHub
- URL: https://github.com/jritsema/freeboard-jqplot-buildtool
- Owner: jritsema
- Created: 2017-09-16T03:42:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-16T03:42:54.000Z (over 7 years ago)
- Last Synced: 2024-11-18T19:09:26.674Z (about 2 months ago)
- Topics: build, freeboard, jqplot
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
freeboard-jqplot-buildtool
===============================A tool that builds a freeboard-jqplot widget package directory into a dashboard.json file that can be loaded by freeboard.
The tool can update a widget's settings in a freeboard dashboard.json file. Takes freeboard dashboard json as stdin, tries to read `data.js` and `chart-options.js`, `chart-settings.json`, and then serializes them into the dashboard json.
```
.
|____my-widget
| |____chart-options.js
| |____chart-settings.json
| |____data.js
| |____package.json
```### Usage
Install tool as a dev dependency in your jqplot widget project folder (see [freeboard-jqplot-widget](https://github.com/jritsema/freeboard-jqplot-widget))...
`$ npm install --save-dev freeboard-jqplot-buildtool`
Then you can create an npm script to auto-update your dashboard.json with something like...
`$ cat dashboard.json | freeboard-jqplot-buildtool > temp && cp temp dashboard.json && rm temp`