@grafana/create-plugin 5.2.5-canary.1069.5ddebbd.0 → 5.3.0-canary.1064.5ba9704.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/commands/generate/print-success-message.js +1 -1
- package/package.json +2 -2
- package/src/commands/generate/print-success-message.ts +1 -1
- package/templates/common/.config/README.md +1 -1
- package/templates/common/.config/webpack/webpack.config.ts +2 -2
- package/templates/common/_package.json +1 -1
|
@@ -15,7 +15,7 @@ export function printGenerateSuccessMessage(answers) {
|
|
|
15
15
|
`- ${getBackendCmd()} to build the plugin backend code. Rerun this command every time you edit your backend files.`,
|
|
16
16
|
]
|
|
17
17
|
: []),
|
|
18
|
-
'- `docker
|
|
18
|
+
'- `docker compose up` to start a grafana development server.',
|
|
19
19
|
'- Open http://localhost:3000 in your browser to create a dashboard to begin developing your plugin.',
|
|
20
20
|
];
|
|
21
21
|
const msg = `\n# Congratulations on scaffolding a Grafana ${answers.pluginType} plugin! 🚀
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/create-plugin",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0-canary.1064.5ba9704.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": "5ba9704785d79c88e88b57fdef84d8d387d7946f"
|
|
91
91
|
}
|
|
@@ -18,7 +18,7 @@ export function printGenerateSuccessMessage(answers: TemplateData) {
|
|
|
18
18
|
`- ${getBackendCmd()} to build the plugin backend code. Rerun this command every time you edit your backend files.`,
|
|
19
19
|
]
|
|
20
20
|
: []),
|
|
21
|
-
'- `docker
|
|
21
|
+
'- `docker compose up` to start a grafana development server.',
|
|
22
22
|
'- Open http://localhost:3000 in your browser to create a dashboard to begin developing your plugin.',
|
|
23
23
|
];
|
|
24
24
|
|
|
@@ -159,6 +159,6 @@ services:
|
|
|
159
159
|
grafana_image: ${GRAFANA_IMAGE:-grafana}
|
|
160
160
|
```
|
|
161
161
|
|
|
162
|
-
In this example, we assign the environment variable `GRAFANA_IMAGE` to the build arg `grafana_image` with a default value of `grafana`. This will allow you to set the value while running the docker
|
|
162
|
+
In this example, we assign the environment variable `GRAFANA_IMAGE` to the build arg `grafana_image` with a default value of `grafana`. This will allow you to set the value while running the docker compose commands, which might be convenient in some scenarios.
|
|
163
163
|
|
|
164
164
|
---
|
|
@@ -22,7 +22,7 @@ const pluginJson = getPluginJson();
|
|
|
22
22
|
const cpVersion = getCPConfigVersion();
|
|
23
23
|
|
|
24
24
|
const virtualPublicPath = new VirtualModulesPlugin({
|
|
25
|
-
'
|
|
25
|
+
'node_modules/grafana-public-path.js': `
|
|
26
26
|
import amdMetaModule from 'amd-module';
|
|
27
27
|
|
|
28
28
|
__webpack_public_path__ =
|
|
@@ -246,7 +246,7 @@ const config = async (env): Promise<Configuration> => {
|
|
|
246
246
|
resolve: {
|
|
247
247
|
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
|
248
248
|
// handle resolving "rootDir" paths
|
|
249
|
-
modules: [path.resolve(process.cwd(), 'src'), 'node_modules'
|
|
249
|
+
modules: [path.resolve(process.cwd(), 'src'), 'node_modules'],
|
|
250
250
|
unsafeCache: true,
|
|
251
251
|
},
|
|
252
252
|
};
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"e2e": "playwright test",{{/if}}{{#if useCypress}}
|
|
13
13
|
"e2e": "{{ packageManagerName }} exec cypress install && {{ packageManagerName }} exec grafana-e2e run",
|
|
14
14
|
"e2e:update": "{{ packageManagerName }} exec cypress install && {{ packageManagerName }} exec grafana-e2e run --update-screenshots",{{/if}}
|
|
15
|
-
"server": "docker
|
|
15
|
+
"server": "docker compose up --build",
|
|
16
16
|
"sign": "npx --yes @grafana/sign-plugin@latest"
|
|
17
17
|
},
|
|
18
18
|
"author": "{{ sentenceCase orgName }}",
|