@grafana/create-plugin 4.10.6-canary.924.74dcfb0.0 → 4.10.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/utils/utils.templates.js +0 -1
- package/fixtures/test-template/src/plugin.json +1 -1
- package/package.json +2 -2
- package/src/types.ts +0 -1
- package/src/utils/utils.templates.ts +0 -1
- package/templates/app/src/plugin.json +1 -1
- package/templates/common/.config/supervisord/supervisord.conf +2 -2
- package/templates/datasource/src/plugin.json +1 -1
- package/templates/github/ci/.github/workflows/ci.yml +11 -16
- package/templates/scenes-app/src/plugin.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v4.10.6 (Mon May 27 2024)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Create plugin: CI workflow improvements [#890](https://github.com/grafana/plugin-tools/pull/890) ([@sunker](https://github.com/sunker))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Erik Sundell ([@sunker](https://github.com/sunker))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v4.10.5 (Fri May 24 2024)
|
|
2
14
|
|
|
3
15
|
#### 🐛 Bug Fix
|
|
@@ -117,7 +117,6 @@ export function getTemplateData(cliArgs) {
|
|
|
117
117
|
useCypress,
|
|
118
118
|
hasGithubWorkflows: isFile(path.join(githubFolder, 'ci.yml')),
|
|
119
119
|
hasGithubLevitateWorkflow: isFile(path.join(githubFolder, 'is-compatible.yml')),
|
|
120
|
-
pluginExecutable: pluginJson.executable,
|
|
121
120
|
};
|
|
122
121
|
}
|
|
123
122
|
debug('\nTemplate data:\n' + JSON.stringify(templateData, null, 2));
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"name": "{{ titleCase pluginName }}",
|
|
5
5
|
"id": "{{ pluginId }}",
|
|
6
6
|
"backend": true,
|
|
7
|
-
"executable": "
|
|
7
|
+
"executable": "gpx_{{ snakeCase pluginName }}",
|
|
8
8
|
"info": {
|
|
9
9
|
"description": "{{ sentenceCase pluginDescription }}",
|
|
10
10
|
"author": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/create-plugin",
|
|
3
|
-
"version": "4.10.6
|
|
3
|
+
"version": "4.10.6",
|
|
4
4
|
"repository": {
|
|
5
5
|
"directory": "packages/create-plugin",
|
|
6
6
|
"url": "https://github.com/grafana/plugin-tools"
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"engines": {
|
|
88
88
|
"node": ">=20"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "a62657e3e49f532ac5944578f534d02eecbbc400"
|
|
91
91
|
}
|
package/src/types.ts
CHANGED
|
@@ -164,7 +164,6 @@ export function getTemplateData(cliArgs?: GenerateCliArgs): TemplateData {
|
|
|
164
164
|
useCypress,
|
|
165
165
|
hasGithubWorkflows: isFile(path.join(githubFolder, 'ci.yml')),
|
|
166
166
|
hasGithubLevitateWorkflow: isFile(path.join(githubFolder, 'is-compatible.yml')),
|
|
167
|
-
pluginExecutable: pluginJson.executable,
|
|
168
167
|
};
|
|
169
168
|
}
|
|
170
169
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"name": "{{ titleCase pluginName }}",
|
|
5
5
|
"id": "{{ pluginId }}",{{#if hasBackend}}
|
|
6
6
|
"backend": true,
|
|
7
|
-
"executable": "
|
|
7
|
+
"executable": "gpx_{{ snakeCase pluginName }}",{{/if}}
|
|
8
8
|
"info": {
|
|
9
9
|
"keywords": ["app"],
|
|
10
10
|
"description": "{{ sentenceCase pluginDescription }}",
|
|
@@ -6,7 +6,7 @@ user=root
|
|
|
6
6
|
user=root
|
|
7
7
|
directory=/var/lib/grafana
|
|
8
8
|
{{#if hasBackend}}
|
|
9
|
-
command=bash -c 'while [ ! -f /root/{{ pluginId }}/dist/
|
|
9
|
+
command=bash -c 'while [ ! -f /root/{{ pluginId }}/dist/gpx_{{ snakeCase pluginName }}* ]; do sleep 1; done; /run.sh'
|
|
10
10
|
{{else}}
|
|
11
11
|
command=/run.sh
|
|
12
12
|
{{/if}}
|
|
@@ -20,7 +20,7 @@ autostart=true
|
|
|
20
20
|
{{#if hasBackend}}
|
|
21
21
|
[program:delve]
|
|
22
22
|
user=root
|
|
23
|
-
command=/bin/bash -c 'pid=""; while [ -z "$pid" ]; do pid=$(pgrep -f
|
|
23
|
+
command=/bin/bash -c 'pid=""; while [ -z "$pid" ]; do pid=$(pgrep -f gpx_{{ snakeCase pluginName }}); done; /root/go/bin/dlv attach --api-version=2 --headless --continue --accept-multiclient --listen=:2345 $pid'
|
|
24
24
|
stdout_logfile=/dev/fd/1
|
|
25
25
|
stdout_logfile_maxbytes=0
|
|
26
26
|
redirect_stderr=true
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"id": "{{ pluginId }}",
|
|
6
6
|
"metrics": true,{{#if hasBackend}}
|
|
7
7
|
"backend": true,
|
|
8
|
-
"executable": "
|
|
8
|
+
"executable": "gpx_{{ snakeCase pluginName }}",{{/if}}
|
|
9
9
|
"info": {
|
|
10
10
|
"description": "{{ sentenceCase pluginDescription }}",
|
|
11
11
|
"author": {
|
|
@@ -141,11 +141,6 @@ jobs:
|
|
|
141
141
|
runs-on: ubuntu-latest
|
|
142
142
|
steps:
|
|
143
143
|
- uses: actions/checkout@v4
|
|
144
|
-
with:
|
|
145
|
-
sparse-checkout: |
|
|
146
|
-
provisioning
|
|
147
|
-
tests
|
|
148
|
-
.config
|
|
149
144
|
|
|
150
145
|
- name: Download plugin
|
|
151
146
|
if: needs.build.outputs.has-backend == 'true'
|
|
@@ -187,7 +182,7 @@ jobs:
|
|
|
187
182
|
interval: 500
|
|
188
183
|
|
|
189
184
|
- name: Install Playwright Browsers
|
|
190
|
-
run:
|
|
185
|
+
run: {{ packageManagerName }} exec playwright install chromium --with-deps
|
|
191
186
|
|
|
192
187
|
- name: Run Playwright tests
|
|
193
188
|
id: run-tests
|
|
@@ -208,13 +203,13 @@ jobs:
|
|
|
208
203
|
name: $\{{ matrix.GRAFANA_IMAGE.NAME }}-v$\{{ matrix.GRAFANA_IMAGE.VERSION }}-$\{{github.run_id}}-server-log
|
|
209
204
|
path: grafana-server.log
|
|
210
205
|
retention-days: 5
|
|
211
|
-
|
|
212
|
-
#
|
|
213
|
-
#
|
|
214
|
-
- name: Upload artifacts
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
206
|
+
|
|
207
|
+
# Uncomment this step to upload the Playwright report to Github artifacts.
|
|
208
|
+
# If your repository is public, the report will be public on the Internet so beware not to expose sensitive information.
|
|
209
|
+
# - name: Upload artifacts
|
|
210
|
+
# uses: actions/upload-artifact@v4
|
|
211
|
+
# if: $\{{ always() && steps.run-tests.outcome == 'failure' }}
|
|
212
|
+
# with:
|
|
213
|
+
# name: playwright-report-$\{{ matrix.GRAFANA_IMAGE.NAME }}-v$\{{ matrix.GRAFANA_IMAGE.VERSION }}-$\{{github.run_id}}
|
|
214
|
+
# path: playwright-report/
|
|
215
|
+
# retention-days: 5
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"name": "{{ titleCase pluginName }}",
|
|
5
5
|
"id": "{{ pluginId }}",{{#if hasBackend}}
|
|
6
6
|
"backend": true,
|
|
7
|
-
"executable": "
|
|
7
|
+
"executable": "gpx_{{ snakeCase pluginName }}",{{/if}}
|
|
8
8
|
"info": {
|
|
9
9
|
"keywords": [
|
|
10
10
|
"app"
|