@grafana/create-plugin 4.10.5 → 4.10.6-canary.924.74dcfb0.0
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/dist/utils/utils.templates.js +1 -0
- package/fixtures/test-template/src/plugin.json +1 -1
- package/package.json +2 -2
- package/src/types.ts +1 -0
- package/src/utils/utils.templates.ts +1 -0
- 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/scenes-app/src/plugin.json +1 -1
|
@@ -117,6 +117,7 @@ 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,
|
|
120
121
|
};
|
|
121
122
|
}
|
|
122
123
|
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": "gpx_{{ snakeCase pluginName }}",
|
|
7
|
+
"executable": "{{#if pluginExecutable}}{{pluginExecutable}}{{else}}gpx_{{ snakeCase pluginName }}{{/if}}",
|
|
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.
|
|
3
|
+
"version": "4.10.6-canary.924.74dcfb0.0",
|
|
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": "74dcfb0d279d0a0e1d5f09b4b631a699c1a0f312"
|
|
91
91
|
}
|
package/src/types.ts
CHANGED
|
@@ -164,6 +164,7 @@ 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,
|
|
167
168
|
};
|
|
168
169
|
}
|
|
169
170
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"name": "{{ titleCase pluginName }}",
|
|
5
5
|
"id": "{{ pluginId }}",{{#if hasBackend}}
|
|
6
6
|
"backend": true,
|
|
7
|
-
"executable": "gpx_{{ snakeCase pluginName }}",{{/if}}
|
|
7
|
+
"executable": "{{#if pluginExecutable}}{{pluginExecutable}}{{else}}gpx_{{ snakeCase pluginName }}{{/if}}",{{/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/gpx_{{ snakeCase pluginName }}* ]; do sleep 1; done; /run.sh'
|
|
9
|
+
command=bash -c 'while [ ! -f /root/{{ pluginId }}/dist/{{#if pluginExecutable}}{{pluginExecutable}}{{else}}gpx_{{ snakeCase pluginName }}{{/if}}* ]; 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 gpx_{{ snakeCase pluginName }}); done; /root/go/bin/dlv attach --api-version=2 --headless --continue --accept-multiclient --listen=:2345 $pid'
|
|
23
|
+
command=/bin/bash -c 'pid=""; while [ -z "$pid" ]; do pid=$(pgrep -f {{#if pluginExecutable}}{{pluginExecutable}}{{else}}gpx_{{ snakeCase pluginName }}{{/if}}); 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": "gpx_{{ snakeCase pluginName }}",{{/if}}
|
|
8
|
+
"executable": "{{#if pluginExecutable}}{{pluginExecutable}}{{else}}gpx_{{ snakeCase pluginName }}{{/if}}",{{/if}}
|
|
9
9
|
"info": {
|
|
10
10
|
"description": "{{ sentenceCase pluginDescription }}",
|
|
11
11
|
"author": {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"name": "{{ titleCase pluginName }}",
|
|
5
5
|
"id": "{{ pluginId }}",{{#if hasBackend}}
|
|
6
6
|
"backend": true,
|
|
7
|
-
"executable": "gpx_{{ snakeCase pluginName }}",{{/if}}
|
|
7
|
+
"executable": "{{#if pluginExecutable}}{{pluginExecutable}}{{else}}gpx_{{ snakeCase pluginName }}{{/if}}",{{/if}}
|
|
8
8
|
"info": {
|
|
9
9
|
"keywords": [
|
|
10
10
|
"app"
|