Bundler to make developing code easier and scalable.
There is no weird code styles, because most of the configuration is as basic as it can be. A good example of this is by looking at the .prettierrc.json
file.
- rollup.js
- Prettier
- TypeScript
- ESLint
- SVGO
- Local development server to run the code live in the browser.
First you have to install the required dependencies
npm install
Then you start the development script
npm run dev
Go to http://localhost:5000. Change some code in ./src/on-init.ts
, ./src/on-render.ts
, and ./src/design/svg-data-inkscape.svg
, and the website will update.
When the code is ready to be uploaded to Grafana, start the build script
npm run build
Then go to /dist
and copy the content of panel-options.json
to the panels Import/export
option.
src/dev-site
is a folder where most of the configuration for the dev website is.
To add custom series go to src/dev-site/data.ts
and add createSeries() in series.
Window has been used to get global variables like data, customProperties, ETC.