An open API service indexing awesome lists of open source software.

https://github.com/gapitio/htmlgraphics-svelte-bundler-template


https://github.com/gapitio/htmlgraphics-svelte-bundler-template

eslint grafana htmlgraphics-bundler prettier rollup svelte typescript

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# Bundler

Bundler to make developing code easier and scalable.

## Contains

- [Svelte](https://svelte.dev/)
- [rollup.js](https://rollupjs.org/)
- [Prettier](https://prettier.io/)
- [TypeScript](https://www.typescriptlang.org/)
- [ESLint](https://eslint.org/)
- Local development server to run the code live in the browser.

## Usage

First you have to install the required dependencies

```bash
npm install
```

Then you start the development script

```bash
npm run dev
```

Go to . Change some code in `App.svelte` and the website will update.

When the code is ready to be uploaded to Grafana, start the build script

```bash
npm run build
```

Then go to `/dist` and copy the content of `panel-options.json` to the panels `Import/export` option.

## Dev site

`src/devSite` is a folder where most of the configuration for the dev website is.

To add custom series go to `src/devSite/data.ts` and add createSeries() in series.

Window has been used to get global variables like data, customProperties, ETC.