@grafana/create-plugin 5.3.12 → 5.3.13-canary.1113.b8d40ba.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.command.js +1 -1
- package/dist/commands/update.command.js +8 -6
- package/package.json +2 -2
- package/src/commands/generate.command.ts +1 -1
- package/src/commands/update.command.ts +9 -7
- package/templates/common/_package.json +2 -2
- /package/dist/{commands/generate/update-go-sdk-and-packages.js → utils/utils.goSdk.js} +0 -0
- /package/src/{commands/generate/update-go-sdk-and-packages.ts → utils/utils.goSdk.ts} +0 -0
|
@@ -10,7 +10,7 @@ import { renderTemplateFromFile, getTemplateData } from '../utils/utils.template
|
|
|
10
10
|
import { prettifyFiles } from '../utils/utils.prettifyFiles.js';
|
|
11
11
|
import { printGenerateSuccessMessage } from './generate/print-success-message.js';
|
|
12
12
|
import { promptUser } from './generate/prompt-user.js';
|
|
13
|
-
import { updateGoSdkAndModules } from '
|
|
13
|
+
import { updateGoSdkAndModules } from '../utils/utils.goSdk.js';
|
|
14
14
|
export const generate = async (argv) => {
|
|
15
15
|
const answers = await promptUser(argv);
|
|
16
16
|
const templateData = getTemplateData({ ...answers });
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
|
-
import { printRedBox, printBlueBox } from '../utils/utils.console.js';
|
|
3
|
-
import { updatePackageJson, updateNpmScripts } from '../utils/utils.npm.js';
|
|
4
|
-
import { isGitDirectory, isGitDirectoryClean } from '../utils/utils.git.js';
|
|
5
|
-
import { isPluginDirectory, updateDotConfigFolder } from '../utils/utils.plugin.js';
|
|
6
|
-
import { getVersion, getGrafanaRuntimeVersion } from '../utils/utils.version.js';
|
|
7
|
-
import { getPackageManagerFromUserAgent } from '../utils/utils.packageManager.js';
|
|
8
2
|
import { UDPATE_CONFIG } from '../constants.js';
|
|
3
|
+
import { printBlueBox, printRedBox } from '../utils/utils.console.js';
|
|
9
4
|
import { getOnlyExistingInCwd, removeFilesInCwd } from '../utils/utils.files.js';
|
|
5
|
+
import { isGitDirectory, isGitDirectoryClean } from '../utils/utils.git.js';
|
|
6
|
+
import { updateGoSdkAndModules } from '../utils/utils.goSdk.js';
|
|
7
|
+
import { updateNpmScripts, updatePackageJson } from '../utils/utils.npm.js';
|
|
8
|
+
import { getPackageManagerFromUserAgent } from '../utils/utils.packageManager.js';
|
|
9
|
+
import { isPluginDirectory, updateDotConfigFolder } from '../utils/utils.plugin.js';
|
|
10
|
+
import { getGrafanaRuntimeVersion, getVersion } from '../utils/utils.version.js';
|
|
10
11
|
export const update = async (argv) => {
|
|
11
12
|
const { packageManagerName } = getPackageManagerFromUserAgent();
|
|
12
13
|
try {
|
|
@@ -42,6 +43,7 @@ In case you want to proceed as is please use the ${chalk.bold('--force')} flag.)
|
|
|
42
43
|
onlyOutdated: true,
|
|
43
44
|
ignoreGrafanaDependencies: false,
|
|
44
45
|
});
|
|
46
|
+
await updateGoSdkAndModules(process.cwd());
|
|
45
47
|
const filesToRemove = getOnlyExistingInCwd(UDPATE_CONFIG.filesToRemove);
|
|
46
48
|
if (filesToRemove.length) {
|
|
47
49
|
removeFilesInCwd(filesToRemove);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/create-plugin",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.13-canary.1113.b8d40ba.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"directory": "packages/create-plugin",
|
|
6
6
|
"url": "https://github.com/grafana/plugin-tools"
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"engines": {
|
|
89
89
|
"node": ">=20"
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "b8d40ba11ba74c04654660b5ef8a1901c98c4710"
|
|
92
92
|
}
|
|
@@ -11,7 +11,7 @@ import { renderTemplateFromFile, getTemplateData } from '../utils/utils.template
|
|
|
11
11
|
import { prettifyFiles } from '../utils/utils.prettifyFiles.js';
|
|
12
12
|
import { printGenerateSuccessMessage } from './generate/print-success-message.js';
|
|
13
13
|
import { promptUser } from './generate/prompt-user.js';
|
|
14
|
-
import { updateGoSdkAndModules } from '
|
|
14
|
+
import { updateGoSdkAndModules } from '../utils/utils.goSdk.js';
|
|
15
15
|
import { TemplateData } from '../types.js';
|
|
16
16
|
|
|
17
17
|
export const generate = async (argv: minimist.ParsedArgs) => {
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import minimist from 'minimist';
|
|
2
1
|
import chalk from 'chalk';
|
|
3
|
-
import
|
|
4
|
-
import { updatePackageJson, updateNpmScripts } from '../utils/utils.npm.js';
|
|
5
|
-
import { isGitDirectory, isGitDirectoryClean } from '../utils/utils.git.js';
|
|
6
|
-
import { isPluginDirectory, updateDotConfigFolder } from '../utils/utils.plugin.js';
|
|
7
|
-
import { getVersion, getGrafanaRuntimeVersion } from '../utils/utils.version.js';
|
|
8
|
-
import { getPackageManagerFromUserAgent } from '../utils/utils.packageManager.js';
|
|
2
|
+
import minimist from 'minimist';
|
|
9
3
|
import { UDPATE_CONFIG } from '../constants.js';
|
|
4
|
+
import { printBlueBox, printRedBox } from '../utils/utils.console.js';
|
|
10
5
|
import { getOnlyExistingInCwd, removeFilesInCwd } from '../utils/utils.files.js';
|
|
6
|
+
import { isGitDirectory, isGitDirectoryClean } from '../utils/utils.git.js';
|
|
7
|
+
import { updateGoSdkAndModules } from '../utils/utils.goSdk.js';
|
|
8
|
+
import { updateNpmScripts, updatePackageJson } from '../utils/utils.npm.js';
|
|
9
|
+
import { getPackageManagerFromUserAgent } from '../utils/utils.packageManager.js';
|
|
10
|
+
import { isPluginDirectory, updateDotConfigFolder } from '../utils/utils.plugin.js';
|
|
11
|
+
import { getGrafanaRuntimeVersion, getVersion } from '../utils/utils.version.js';
|
|
11
12
|
|
|
12
13
|
export const update = async (argv: minimist.ParsedArgs) => {
|
|
13
14
|
const { packageManagerName } = getPackageManagerFromUserAgent();
|
|
@@ -55,6 +56,7 @@ In case you want to proceed as is please use the ${chalk.bold('--force')} flag.)
|
|
|
55
56
|
onlyOutdated: true,
|
|
56
57
|
ignoreGrafanaDependencies: false,
|
|
57
58
|
});
|
|
59
|
+
await updateGoSdkAndModules(process.cwd());
|
|
58
60
|
|
|
59
61
|
const filesToRemove = getOnlyExistingInCwd(UDPATE_CONFIG.filesToRemove);
|
|
60
62
|
if (filesToRemove.length) {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@grafana/e2e": "^11.0.4",
|
|
23
23
|
"@grafana/e2e-selectors": "^11.2.0",{{/if}}
|
|
24
24
|
"@grafana/eslint-config": "^7.0.0",{{#if usePlaywright}}
|
|
25
|
-
"@grafana/plugin-e2e": "^1.
|
|
25
|
+
"@grafana/plugin-e2e": "^1.8.2",{{/if}}
|
|
26
26
|
"@grafana/tsconfig": "^2.0.0",{{#if usePlaywright}}
|
|
27
27
|
"@playwright/test": "^1.41.2",{{/if}}
|
|
28
28
|
"@swc/core": "^1.3.90",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@grafana/runtime": "^11.2.0",
|
|
69
69
|
"@grafana/ui": "^11.2.0",
|
|
70
70
|
"@grafana/schema": "^10.4.0",{{#if_eq pluginType "scenesapp"}}
|
|
71
|
-
"@grafana/scenes": "^5.
|
|
71
|
+
"@grafana/scenes": "^5.16.0",{{/if_eq}}
|
|
72
72
|
"react": "18.2.0",
|
|
73
73
|
"react-dom": "18.2.0",{{#if isAppType}}
|
|
74
74
|
"react-router-dom": "^{{ reactRouterVersion }}",
|
|
File without changes
|
|
File without changes
|