@grafana/create-plugin 2.2.0 → 2.3.0-canary.268.7b87dfb.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/create-plugin",
3
- "version": "2.2.0",
3
+ "version": "2.3.0-canary.268.7b87dfb.0",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "directory": "packages/create-plugin",
@@ -66,5 +66,5 @@
66
66
  "engines": {
67
67
  "node": ">=18"
68
68
  },
69
- "gitHead": "67123c677a1ecc23d0d83249b353bd2e467779e4"
69
+ "gitHead": "7b87dfbade0580c11cd5da8b1ecd168902bf972a"
70
70
  }
@@ -1,6 +1,6 @@
1
1
  ### Backend
2
2
 
3
- 1. Update [Grafana plugin SDK for Go](https://grafana.com/docs/grafana/latest/developers/plugins/backend/grafana-plugin-sdk-for-go/) dependency to the latest minor version:
3
+ 1. Update [Grafana plugin SDK for Go](https://grafana.com/developers/plugin-tools/introduction/grafana-plugin-sdk-for-go) dependency to the latest minor version:
4
4
 
5
5
  ```bash
6
6
  go get -u github.com/grafana/grafana-plugin-sdk-go
@@ -6,11 +6,11 @@ _Note: It's not necessary to sign a plugin during development. The docker develo
6
6
 
7
7
  ## Initial steps
8
8
 
9
- Before signing a plugin please read the Grafana [plugin publishing and signing criteria](https://grafana.com/docs/grafana/latest/developers/plugins/publishing-and-signing-criteria/) documentation carefully.
9
+ Before signing a plugin please read the Grafana [plugin publishing and signing criteria](https://grafana.com/legal/plugins/#plugin-publishing-and-signing-criteria) documentation carefully.
10
10
 
11
11
  `@grafana/create-plugin` has added the necessary commands and workflows to make signing and distributing a plugin via the grafana plugins catalog as straightforward as possible.
12
12
 
13
- Before signing a plugin for the first time please consult the Grafana [plugin signature levels](https://grafana.com/docs/grafana/latest/developers/plugins/sign-a-plugin/#plugin-signature-levels) documentation to understand the differences between the types of signature level.
13
+ Before signing a plugin for the first time please consult the Grafana [plugin signature levels](https://grafana.com/legal/plugins/#what-are-the-different-classifications-of-plugins) documentation to understand the differences between the types of signature level.
14
14
 
15
15
  1. Create a [Grafana Cloud account](https://grafana.com/signup).
16
16
  2. Make sure that the first part of the plugin ID matches the slug of your Grafana Cloud account.
@@ -19,4 +19,4 @@ Below you can find source code for existing app plugins and other related docume
19
19
 
20
20
  - [Basic app plugin example](https://github.com/grafana/grafana-plugin-examples/tree/master/examples/app-basic#readme)
21
21
  - [`plugin.json` documentation](https://grafana.com/developers/plugin-tools/reference-plugin-json)
22
- - [How to sign a plugin?](https://grafana.com/docs/grafana/latest/developers/plugins/sign-a-plugin/)
22
+ - [How to sign a plugin?](https://grafana.com/developers/plugin-tools/publish-a-plugin/sign-a-plugin)
@@ -74,7 +74,7 @@ func (d *Datasource) query(_ context.Context, pCtx backend.PluginContext, query
74
74
 
75
75
  // create data frame response.
76
76
  // For an overview on data frames and how grafana handles them:
77
- // https://grafana.com/docs/grafana/latest/developers/plugins/data-frames/
77
+ // https://grafana.com/developers/plugin-tools/introduction/data-frames
78
78
  frame := data.NewFrame("response")
79
79
 
80
80
  // add fields.
@@ -9,5 +9,17 @@
9
9
  "root": true,
10
10
  "rules": {
11
11
  "react/prop-types": "off"
12
- }
12
+ },
13
+ "overrides": [
14
+ {
15
+ "plugins": ["deprecation"],
16
+ "files": ["src/**/*.{ts,tsx}"],
17
+ "rules": {
18
+ "deprecation/deprecation": "warn"
19
+ },
20
+ "parserOptions": {
21
+ "project": "./tsconfig.json"
22
+ }
23
+ }
24
+ ]
13
25
  }
@@ -34,6 +34,7 @@
34
34
  "@types/react-router-dom": "^5.3.3",{{/if}}
35
35
  "copy-webpack-plugin": "^11.0.0",
36
36
  "css-loader": "^6.7.3",
37
+ "eslint-plugin-deprecation": "^1.4.1",
37
38
  "eslint-webpack-plugin": "^4.0.1",
38
39
  "fork-ts-checker-webpack-plugin": "^8.0.0",
39
40
  "glob": "^10.2.7",
@@ -33,7 +33,7 @@ Consider other [badges](https://shields.io/badges) as you feel appropriate for y
33
33
  Provide one or more paragraphs as an introduction to your plugin to help users understand why they should use it.
34
34
 
35
35
  Consider including screenshots:
36
- - in [plugin.json](https://grafana.com/docs/grafana/latest/developers/plugins/metadata/#info) include them as relative links.
36
+ - in [plugin.json](https://grafana.com/developers/plugin-tools/reference-plugin-json#info) include them as relative links.
37
37
  - in the README ensure they are absolute URLs.
38
38
 
39
39
  ## Requirements
@@ -19,4 +19,4 @@ Below you can find source code for existing app plugins and other related docume
19
19
 
20
20
  - [Basic data source plugin example](https://github.com/grafana/grafana-plugin-examples/tree/master/examples/datasource-basic#readme)
21
21
  - [`plugin.json` documentation](https://grafana.com/developers/plugin-tools/reference-plugin-json)
22
- - [How to sign a plugin?](https://grafana.com/docs/grafana/latest/developers/plugins/sign-a-plugin/)
22
+ - [How to sign a plugin?](https://grafana.com/developers/plugin-tools/publish-a-plugin/sign-a-plugin)
@@ -61,7 +61,7 @@ jobs:
61
61
 
62
62
  - name: Warn missing Grafana access policy token
63
63
  run: |
64
- echo Please generate a Grafana access policy token: https://grafana.com/docs/grafana/latest/developers/plugins/sign-a-plugin/#generate-a-token
64
+ echo Please generate a Grafana access policy token: https://grafana.com/developers/plugin-tools/publish-a-plugin/sign-a-plugin#generate-an-access-policy-token
65
65
  echo Once done please follow the instructions found here: https://github.com/$\{{github.repository}}/blob/main/README.md#using-github-actions-release-workflow
66
66
  if: $\{{ env.GRAFANA_ACCESS_POLICY_TOKEN == '' }}
67
67
 
@@ -20,4 +20,4 @@ Below you can find source code for existing app plugins and other related docume
20
20
 
21
21
  - [Basic panel plugin example](https://github.com/grafana/grafana-plugin-examples/tree/master/examples/panel-basic#readme)
22
22
  - [`plugin.json` documentation](https://grafana.com/developers/plugin-tools/reference-plugin-json)
23
- - [How to sign a plugin?](https://grafana.com/docs/grafana/latest/developers/plugins/sign-a-plugin/)
23
+ - [How to sign a plugin?](https://grafana.com/developers/plugin-tools/publish-a-plugin/sign-a-plugin)