@grafana/create-plugin 4.9.0 → 4.10.0-canary.871.d9a32f7.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": "4.
|
|
3
|
+
"version": "4.10.0-canary.871.d9a32f7.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": "d9a32f7e4b61bd10c783040674f6a52203fdef0e"
|
|
91
91
|
}
|
|
@@ -12,6 +12,7 @@ import LiveReloadPlugin from 'webpack-livereload-plugin';
|
|
|
12
12
|
import path from 'path';
|
|
13
13
|
import ReplaceInFileWebpackPlugin from 'replace-in-file-webpack-plugin';
|
|
14
14
|
import { Configuration } from 'webpack';
|
|
15
|
+
import { GrafanaPluginMetaExtractor } from '@grafana/plugin-meta-extractor';
|
|
15
16
|
|
|
16
17
|
import { getPackageJson, getPluginJson, hasReadme, getEntries, isWSL } from './utils';
|
|
17
18
|
import { SOURCE_DIR, DIST_DIR } from './constants';
|
|
@@ -19,6 +20,7 @@ import { SOURCE_DIR, DIST_DIR } from './constants';
|
|
|
19
20
|
const pluginJson = getPluginJson();
|
|
20
21
|
|
|
21
22
|
const config = async (env): Promise<Configuration> => {
|
|
23
|
+
const entry = await getEntries();
|
|
22
24
|
const baseConfig: Configuration = {
|
|
23
25
|
cache: {
|
|
24
26
|
type: 'filesystem',
|
|
@@ -31,7 +33,7 @@ const config = async (env): Promise<Configuration> => {
|
|
|
31
33
|
|
|
32
34
|
devtool: env.production ? 'source-map' : 'eval-source-map',
|
|
33
35
|
|
|
34
|
-
entry
|
|
36
|
+
entry,
|
|
35
37
|
|
|
36
38
|
externals: [
|
|
37
39
|
'lodash',
|
|
@@ -142,6 +144,7 @@ const config = async (env): Promise<Configuration> => {
|
|
|
142
144
|
},
|
|
143
145
|
|
|
144
146
|
plugins: [
|
|
147
|
+
new GrafanaPluginMetaExtractor({ entryFile: entry.module }),
|
|
145
148
|
new CopyWebpackPlugin({
|
|
146
149
|
patterns: [
|
|
147
150
|
// If src/README.md exists use it; otherwise the root README
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
"@grafana/e2e-selectors": "{{ grafanaVersion }}",{{/unless}}
|
|
24
24
|
"@grafana/eslint-config": "^7.0.0",{{#if usePlaywright}}
|
|
25
25
|
"@grafana/plugin-e2e": "^1.0.1",{{/if}}
|
|
26
|
-
"@grafana/tsconfig": "^1.2.0-rc1",
|
|
26
|
+
"@grafana/tsconfig": "^1.2.0-rc1",
|
|
27
|
+
"@grafana/plugin-meta-extractor": "canary",{{#if usePlaywright}}
|
|
27
28
|
"@playwright/test": "^1.41.2",{{/if}}
|
|
28
29
|
"@swc/core": "^1.3.90",
|
|
29
30
|
"@swc/helpers": "^0.5.0",
|