@grafana/create-plugin 1.3.1 → 1.3.2
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 +19 -0
- package/README.md +11 -11
- package/package.json +2 -2
- package/templates/common/.config/webpack/webpack.config.ts +1 -1
- package/templates/common/package.json +21 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
# v1.3.2 (Thu May 18 2023)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Chore: Update dev-dependencies [#232](https://github.com/grafana/plugin-tools/pull/232) ([@leventebalogh](https://github.com/leventebalogh) [@jackw](https://github.com/jackw))
|
|
6
|
+
- Fix fonts not loaded correctly on generated bundles [#251](https://github.com/grafana/plugin-tools/pull/251) ([@academo](https://github.com/academo))
|
|
7
|
+
|
|
8
|
+
#### 📝 Documentation
|
|
9
|
+
|
|
10
|
+
- Create Plugin: Update readme for supported package managers [#244](https://github.com/grafana/plugin-tools/pull/244) ([@jackw](https://github.com/jackw))
|
|
11
|
+
|
|
12
|
+
#### Authors: 3
|
|
13
|
+
|
|
14
|
+
- Esteban Beltran ([@academo](https://github.com/academo))
|
|
15
|
+
- Jack Westbrook ([@jackw](https://github.com/jackw))
|
|
16
|
+
- Levente Balogh ([@leventebalogh](https://github.com/leventebalogh))
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
1
20
|
# v1.3.1 (Mon May 15 2023)
|
|
2
21
|
|
|
3
22
|
#### 🐛 Bug Fix
|
package/README.md
CHANGED
|
@@ -7,10 +7,10 @@ Create Grafana plugins with ease.
|
|
|
7
7
|
- [Grafana / Create Plugin](#grafana--create-plugin)
|
|
8
8
|
- [Create a new plugin](#create-a-new-plugin)
|
|
9
9
|
- [Quick overview](#quick-overview)
|
|
10
|
-
- [`yarn` (1.x)](#yarn-1x)
|
|
11
|
-
- [`yarn` (\> 2.x)](#yarn--2x)
|
|
12
10
|
- [`npx`](#npx)
|
|
13
11
|
- [`npm`](#npm)
|
|
12
|
+
- [`pnpm`](#pnpm)
|
|
13
|
+
- [`yarn` (1.x)](#yarn-1x)
|
|
14
14
|
- [Migrate your existing plugin](#migrate-your-existing-plugin)
|
|
15
15
|
- [Update your plugin build config](#update-your-plugin-build-config)
|
|
16
16
|
- [Customizing or extending the basic configs](#customizing-or-extending-the-basic-configs)
|
|
@@ -32,30 +32,30 @@ If you have questions or need help, please ask in [GitHub Discussions](https://g
|
|
|
32
32
|
|
|
33
33
|
Run the command in the folder where you want to store your plugins. The new plugin will be scaffolded in a sub-directory of the folder where you run the command.
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
Create Plugin can be used with NPM, PNPM or Yarn 1. The plugin will be scaffolded to use your preferred package manager. Run the command with the package manager of your choice:
|
|
36
36
|
|
|
37
|
-
#### [`
|
|
37
|
+
#### [`npx`](https://github.com/npm/npx)
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
|
-
|
|
40
|
+
npx @grafana/create-plugin@latest
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
#### [`
|
|
43
|
+
#### [`npm`](https://docs.npmjs.com/cli/v7/commands/npm-init)
|
|
44
44
|
|
|
45
45
|
```bash
|
|
46
|
-
|
|
46
|
+
npm init @grafana/plugin
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
#### [`
|
|
49
|
+
#### [`pnpm`](https://pnpm.io/cli/dlx)
|
|
50
50
|
|
|
51
51
|
```bash
|
|
52
|
-
|
|
52
|
+
pnpm dlx @grafana/create-plugin@latest
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
-
#### [`
|
|
55
|
+
#### [`yarn`](https://classic.yarnpkg.com/blog/2017/05/12/introducing-yarn/) (1.x)
|
|
56
56
|
|
|
57
57
|
```bash
|
|
58
|
-
|
|
58
|
+
yarn create @grafana/plugin
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
---
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/create-plugin",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"directory": "packages/create-plugin",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": ">=16"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "27888d28640d45e2bfda1c8acc685a202ab0999a"
|
|
68
68
|
}
|
|
@@ -117,7 +117,7 @@ const config = async (env): Promise<Configuration> => ({
|
|
|
117
117
|
type: 'asset/resource',
|
|
118
118
|
generator: {
|
|
119
119
|
// Keep publicPath relative for host.com/grafana/ deployments
|
|
120
|
-
publicPath: `public/plugins/${pluginJson.id}/fonts
|
|
120
|
+
publicPath: `public/plugins/${pluginJson.id}/fonts/`,
|
|
121
121
|
outputPath: 'fonts/',
|
|
122
122
|
filename: Boolean(env.production) ? '[hash][ext]' : '[name][ext]',
|
|
123
123
|
},
|
|
@@ -18,39 +18,39 @@
|
|
|
18
18
|
"author": "{{ sentenceCase orgName }}",
|
|
19
19
|
"license": "Apache-2.0",
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@babel/core": "^7.
|
|
21
|
+
"@babel/core": "^7.21.4",
|
|
22
22
|
"@grafana/e2e": "{{ grafanaVersion }}",
|
|
23
23
|
"@grafana/e2e-selectors": "{{ grafanaVersion }}",
|
|
24
24
|
"@grafana/eslint-config": "^5.1.0",
|
|
25
25
|
"@grafana/tsconfig": "^1.2.0-rc1",
|
|
26
26
|
"@swc/core": "^1.3.51",
|
|
27
27
|
"@swc/helpers": "^0.5.0",
|
|
28
|
-
"@swc/jest": "^0.2.
|
|
29
|
-
"@testing-library/jest-dom": "^5.16.
|
|
28
|
+
"@swc/jest": "^0.2.26",
|
|
29
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
30
30
|
"@testing-library/react": "^12.1.4",
|
|
31
|
-
"@types/jest": "^29.
|
|
32
|
-
"@types/lodash": "^4.14.
|
|
33
|
-
"@types/node": "^18.11
|
|
31
|
+
"@types/jest": "^29.5.0",
|
|
32
|
+
"@types/lodash": "^4.14.194",
|
|
33
|
+
"@types/node": "^18.15.11",{{#if_eq pluginType "app"}}
|
|
34
34
|
"@types/react-router-dom": "^5.3.3",{{/if_eq}}
|
|
35
35
|
"copy-webpack-plugin": "^11.0.0",
|
|
36
|
-
"css-loader": "^6.7.
|
|
37
|
-
"eslint-webpack-plugin": "^
|
|
38
|
-
"fork-ts-checker-webpack-plugin": "^
|
|
39
|
-
"glob": "^10.
|
|
36
|
+
"css-loader": "^6.7.3",
|
|
37
|
+
"eslint-webpack-plugin": "^4.0.1",
|
|
38
|
+
"fork-ts-checker-webpack-plugin": "^8.0.0",
|
|
39
|
+
"glob": "^10.1.0",
|
|
40
40
|
"identity-obj-proxy": "3.0.0",
|
|
41
|
-
"jest": "^29.
|
|
42
|
-
"jest-environment-jsdom": "^29.
|
|
43
|
-
"prettier": "^2.
|
|
41
|
+
"jest": "^29.5.0",
|
|
42
|
+
"jest-environment-jsdom": "^29.5.0",
|
|
43
|
+
"prettier": "^2.8.7",
|
|
44
44
|
"replace-in-file-webpack-plugin": "^1.0.6",
|
|
45
|
-
"sass": "1.
|
|
46
|
-
"sass-loader": "13.2.
|
|
47
|
-
"style-loader": "3.3.
|
|
45
|
+
"sass": "1.62.1",
|
|
46
|
+
"sass-loader": "13.2.2",
|
|
47
|
+
"style-loader": "3.3.2",
|
|
48
48
|
"swc-loader": "^0.2.3",
|
|
49
|
-
"ts-node": "^10.
|
|
50
|
-
"tsconfig-paths": "^4.
|
|
51
|
-
"typescript": "
|
|
52
|
-
"webpack": "^5.
|
|
53
|
-
"webpack-cli": "^
|
|
49
|
+
"ts-node": "^10.9.1",
|
|
50
|
+
"tsconfig-paths": "^4.2.0",
|
|
51
|
+
"typescript": "4.8.4",
|
|
52
|
+
"webpack": "^5.79.0",
|
|
53
|
+
"webpack-cli": "^5.0.1",
|
|
54
54
|
"webpack-livereload-plugin": "^3.0.2"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|