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
Copy file name to clipboardExpand all lines: DEVELOPMENT_GUIDE.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
# Development Guide
2
2
3
3
## Environment
4
+
4
5
To get a development environment up and running, first ensure the following are installed:
5
6
6
7
1. go
@@ -32,7 +33,7 @@ mage -v && docker-compose up
32
33
## Usage
33
34
34
35
Create a new data source, select "Haystack", and provide it the details for the Haxall server
35
-
that was started. In order to reference your host machine's network, use the url
36
+
that was started. In order to reference your host machine's network, use the url
36
37
`http://host.docker.internal:8080/api/`. Click "Save and Test" and make sure that it is
37
38
reported as working.
38
39
@@ -47,7 +48,7 @@ Alternatively, nearly every Axon query can be visualized using the table view.
47
48
48
49
# Release
49
50
50
-
To trigger a new release of the plugin, we need to push a version tag to github. This can be
51
+
To trigger a new release of the plugin, we need to push a version tag to github. This can be
51
52
achieved with the following steps:
52
53
53
54
1. Run `npm version <major|minor|patch>`
@@ -87,6 +88,7 @@ Grafana supports a wide range of data sources, including Prometheus, MySQL, and
87
88
```bash
88
89
mage -l
89
90
```
91
+
90
92
### Frontend
91
93
92
94
1. Install dependencies
@@ -112,7 +114,7 @@ Grafana supports a wide range of data sources, including Prometheus, MySQL, and
112
114
```bash
113
115
# Runs the tests and watches for changes, requires git init first
114
116
yarn test
115
-
117
+
116
118
# Exists after running all the tests
117
119
yarn test:ci
118
120
```
@@ -126,9 +128,9 @@ Grafana supports a wide range of data sources, including Prometheus, MySQL, and
126
128
6. Run the E2E tests (using Cypress)
127
129
128
130
```bash
129
-
# Spin up a Grafana instance first that we tests against
131
+
# Spin up a Grafana instance first that we tests against
130
132
yarn server
131
-
133
+
132
134
# Start the tests
133
135
yarn e2e
134
136
```
@@ -137,13 +139,12 @@ Grafana supports a wide range of data sources, including Prometheus, MySQL, and
137
139
138
140
```bash
139
141
yarn lint
140
-
142
+
141
143
# or
142
144
143
145
yarn lint:fix
144
146
```
145
147
146
-
147
148
# Distributing your plugin
148
149
149
150
When distributing a Grafana plugin either within the community or privately the plugin must be signed so the Grafana application can verify its authenticity. This can be done with the `@grafana/sign-plugin` package.
@@ -183,7 +184,6 @@ To trigger the workflow we need to push a version tag to github. This can be ach
183
184
1. Run `npm version <major|minor|patch>`
184
185
2. Run `git push origin main --follow-tags`
185
186
186
-
187
187
## Learn more
188
188
189
189
Below you can find source code for existing app plugins and other related documentation.
0 commit comments