@grafana/create-plugin 5.3.0-canary.999.0e9d6ae.0 → 5.3.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/CHANGELOG.md +24 -0
- 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 +0 -5
- package/templates/common/_package.json +3 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# v5.3.0 (Wed Aug 21 2024)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- Chore: replace docker-compose with docker compose commands [#1064](https://github.com/grafana/plugin-tools/pull/1064) ([@tolzhabayev](https://github.com/tolzhabayev))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Timur Olzhabayev ([@tolzhabayev](https://github.com/tolzhabayev))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v5.2.4 (Tue Aug 20 2024)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- Update grafana dependencies [#1061](https://github.com/grafana/plugin-tools/pull/1061) ([@renovate[bot]](https://github.com/renovate[bot]))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- [@renovate[bot]](https://github.com/renovate[bot])
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
1
25
|
# v5.2.3 (Fri Aug 16 2024)
|
|
2
26
|
|
|
3
27
|
#### 🐛 Bug Fix
|
|
@@ -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.0
|
|
3
|
+
"version": "5.3.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": "bc7ade4d00740c762d12322ef8e4df6264209d4f"
|
|
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
|
---
|
|
@@ -11,7 +11,6 @@ import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
|
|
|
11
11
|
import path from 'path';
|
|
12
12
|
import ReplaceInFileWebpackPlugin from 'replace-in-file-webpack-plugin';
|
|
13
13
|
import TerserPlugin from 'terser-webpack-plugin';
|
|
14
|
-
import { SubresourceIntegrityPlugin } from "webpack-subresource-integrity";
|
|
15
14
|
import { type Configuration, BannerPlugin } from 'webpack';
|
|
16
15
|
import LiveReloadPlugin from 'webpack-livereload-plugin';
|
|
17
16
|
import VirtualModulesPlugin from 'webpack-virtual-modules';
|
|
@@ -179,7 +178,6 @@ const config = async (env): Promise<Configuration> => {
|
|
|
179
178
|
path: path.resolve(process.cwd(), DIST_DIR),
|
|
180
179
|
publicPath: `public/plugins/${pluginJson.id}/`,
|
|
181
180
|
uniqueName: pluginJson.id,
|
|
182
|
-
crossOriginLoading: 'anonymous',
|
|
183
181
|
},
|
|
184
182
|
|
|
185
183
|
plugins: [
|
|
@@ -229,9 +227,6 @@ const config = async (env): Promise<Configuration> => {
|
|
|
229
227
|
],
|
|
230
228
|
},
|
|
231
229
|
]),
|
|
232
|
-
new SubresourceIntegrityPlugin({
|
|
233
|
-
hashFuncNames: ["sha256"],
|
|
234
|
-
}),
|
|
235
230
|
...(env.development ? [
|
|
236
231
|
new LiveReloadPlugin(),
|
|
237
232
|
new ForkTsCheckerWebpackPlugin({
|
|
@@ -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 }}",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@grafana/e2e-selectors": "^11.1.4",{{/if}}
|
|
24
24
|
"@grafana/eslint-config": "^7.0.0",{{#if usePlaywright}}
|
|
25
25
|
"@grafana/plugin-e2e": "^1.6.1",{{/if}}
|
|
26
|
-
"@grafana/tsconfig": "^
|
|
26
|
+
"@grafana/tsconfig": "^2.0.0",{{#if usePlaywright}}
|
|
27
27
|
"@playwright/test": "^1.41.2",{{/if}}
|
|
28
28
|
"@swc/core": "^1.3.90",
|
|
29
29
|
"@swc/helpers": "^0.5.0",
|
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
"webpack": "^5.86.0",
|
|
58
58
|
"webpack-cli": "^5.1.4",
|
|
59
59
|
"webpack-livereload-plugin": "^3.0.2",
|
|
60
|
-
"webpack-subresource-integrity": "^5.1.0",
|
|
61
60
|
"webpack-virtual-modules": "^0.6.2"
|
|
62
61
|
},
|
|
63
62
|
"engines": {
|
|
@@ -69,7 +68,7 @@
|
|
|
69
68
|
"@grafana/runtime": "^11.1.4",
|
|
70
69
|
"@grafana/ui": "^11.1.4",
|
|
71
70
|
"@grafana/schema": "^10.4.0",{{#if_eq pluginType "scenesapp"}}
|
|
72
|
-
"@grafana/scenes": "^5.
|
|
71
|
+
"@grafana/scenes": "^5.10.0",{{/if_eq}}
|
|
73
72
|
"react": "18.2.0",
|
|
74
73
|
"react-dom": "18.2.0",{{#if isAppType}}
|
|
75
74
|
"react-router-dom": "^{{ reactRouterVersion }}",
|