You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to build the plug-in, both front-end and back-end parts, do the following:
27
+
### Compiling the Backend
24
28
25
-
```
26
-
yarn install
27
-
yarn build
28
-
```
29
+
If you have made any changes to any `go` files, you can use [mage](https://github.com/magefile/mage) to recompile the plugin.
29
30
30
-
The built plug-in will be in the dist/ directory.
31
+
```sh
32
+
mage build:linux && mage reloadPlugin
33
+
```
31
34
32
-
### Testing the Plug-In w/ Docker Compose
35
+
### Compiling the Frontend
33
36
34
-
To test the plug-in running inside Grafana, we recommend using our Docker Compose setup:
37
+
After you made the desired changes, you can build and test the new version of the plugin using `yarn`:
35
38
36
-
```BASH
37
-
mage buildAll
39
+
```sh
40
+
yarn run dev # builds and puts the output at ./dist
38
41
```
39
42
40
-
In another terminal
43
+
The built plug-in will be in the `dist/` directory.
44
+
45
+
### Docker Compose
41
46
42
-
```BASH
47
+
To test the plug-in running inside Grafana, we recommend using our Docker Compose setup:
48
+
49
+
```sh
43
50
docker-compose up
44
51
```
45
52
46
-
To restart the plug-in after backend changes:
47
-
`./scripts/restart-plugin.sh`
48
-
49
53
### Test spreadsheet
50
54
51
55
Need at publicly available spreadsheet to play around with? Feel free to use [this](https://docs.google.com/spreadsheets/d/1TZlZX67Y0s4CvRro_3pCYqRCKuXer81oFp_xcsjPpe8/edit?usp=sharing) demo spreadsheet that is suitable for visualization in graphs and in tables.
0 commit comments