@grafana/create-plugin 6.2.0-canary.2233.18946638834.0 → 6.2.0-canary.2233.19097561440.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 +28 -0
- package/dist/bin/run.js +1 -1
- package/dist/{additions → codemods/additions}/manager.js +23 -24
- package/dist/{additions → codemods/additions}/scripts/add-i18n.js +2 -2
- package/dist/codemods/additions/utils.js +10 -0
- package/dist/{migrations → codemods}/context.js +3 -2
- package/dist/{migrations → codemods/migrations}/manager.js +8 -7
- package/dist/{migrations → codemods/migrations}/migrations.js +1 -1
- package/dist/{migrations → codemods/migrations}/scripts/003-update-eslint-deprecation-rule.js +1 -1
- package/dist/{migrations → codemods/migrations}/scripts/004-eslint9-flat-config.js +2 -1
- package/dist/codemods/migrations/utils.js +10 -0
- package/dist/{migrations → codemods}/utils.js +3 -17
- package/dist/commands/add.command.js +2 -2
- package/dist/commands/update.command.js +1 -1
- package/dist/utils/utils.config.js +1 -1
- package/package.json +3 -5
- package/src/bin/run.ts +3 -4
- package/src/{additions → codemods/additions}/manager.ts +27 -40
- package/src/{additions → codemods/additions}/scripts/add-i18n.test.ts +1 -1
- package/src/{additions → codemods/additions}/scripts/add-i18n.ts +5 -5
- package/src/codemods/additions/utils.ts +12 -0
- package/src/{migrations → codemods}/context.test.ts +10 -10
- package/src/{migrations → codemods}/context.ts +4 -2
- package/src/{migrations → codemods/migrations}/manager.test.ts +15 -10
- package/src/{migrations → codemods/migrations}/manager.ts +10 -9
- package/src/{migrations → codemods/migrations}/migrations.ts +1 -1
- package/src/{migrations → codemods/migrations}/scripts/001-update-grafana-compose-extend.test.ts +1 -1
- package/src/{migrations → codemods/migrations}/scripts/001-update-grafana-compose-extend.ts +1 -1
- package/src/{migrations → codemods/migrations}/scripts/002-update-is-compatible-workflow.test.ts +1 -1
- package/src/{migrations → codemods/migrations}/scripts/002-update-is-compatible-workflow.ts +1 -1
- package/src/{migrations → codemods/migrations}/scripts/003-update-eslint-deprecation-rule.test.ts +1 -1
- package/src/{migrations → codemods/migrations}/scripts/003-update-eslint-deprecation-rule.ts +2 -2
- package/src/{migrations → codemods/migrations}/scripts/004-eslint9-flat-config.test.ts +1 -1
- package/src/{migrations → codemods/migrations}/scripts/004-eslint9-flat-config.ts +3 -2
- package/src/{migrations → codemods/migrations}/scripts/example-migration.test.ts +1 -1
- package/src/{migrations → codemods/migrations}/scripts/example-migration.ts +1 -1
- package/src/{migrations → codemods/migrations}/utils.test.ts +4 -4
- package/src/codemods/migrations/utils.ts +12 -0
- package/src/codemods/types.ts +21 -0
- package/src/{migrations → codemods}/utils.ts +35 -22
- package/src/commands/add.command.ts +2 -2
- package/src/commands/update.command.ts +1 -1
- package/src/utils/utils.config.ts +4 -4
- package/templates/common/.config/docker-compose-base.yaml +1 -1
- package/templates/common/_package.json +7 -7
- package/templates/github/workflows/bundle-stats.yml +1 -1
- package/templates/github/workflows/ci.yml +4 -4
- package/templates/github/workflows/cp-update.yml +1 -1
- package/templates/github/workflows/is-compatible.yml +1 -1
- package/templates/github/workflows/release.yml +1 -1
- package/dist/additions/utils.js +0 -28
- package/src/additions/utils.ts +0 -39
- /package/dist/{additions → codemods/additions}/additions.js +0 -0
- /package/dist/{migrations → codemods/migrations}/scripts/001-update-grafana-compose-extend.js +0 -0
- /package/dist/{migrations → codemods/migrations}/scripts/002-update-is-compatible-workflow.js +0 -0
- /package/dist/{migrations → codemods/migrations}/scripts/example-migration.js +0 -0
- /package/src/{additions → codemods/additions}/additions.ts +0 -0
- /package/src/{migrations → codemods/migrations}/fixtures/foo/bar.ts +0 -0
- /package/src/{migrations → codemods/migrations}/fixtures/foo/baz.ts +0 -0
- /package/src/{migrations → codemods/migrations}/fixtures/migrations.ts +0 -0
- /package/src/{migrations → codemods/migrations}/migrations.test.ts +0 -0
- /package/src/{migrations → codemods}/test-utils.ts +0 -0
|
@@ -36,7 +36,7 @@ jobs:
|
|
|
36
36
|
echo "modulets=${MODULETS}" >> $GITHUB_OUTPUT
|
|
37
37
|
|
|
38
38
|
- name: Compatibility check
|
|
39
|
-
uses: grafana/plugin-actions/is-compatible@v1.0.2
|
|
39
|
+
uses: grafana/plugin-actions/is-compatible@is-compatible/v1.0.2
|
|
40
40
|
with:
|
|
41
41
|
module: $\{{ steps.find-module-ts.outputs.modulets }}
|
|
42
42
|
comment-pr: "no"
|
|
@@ -20,7 +20,7 @@ jobs:
|
|
|
20
20
|
with:
|
|
21
21
|
persist-credentials: false
|
|
22
22
|
|
|
23
|
-
- uses: grafana/plugin-actions/build-plugin@v1.0.2
|
|
23
|
+
- uses: grafana/plugin-actions/build-plugin@build-plugin/v1.0.2
|
|
24
24
|
# Uncomment to enable plugin signing
|
|
25
25
|
# (For more info on how to generate the access policy token see https://grafana.com/developers/plugin-tools/publish-a-plugin/sign-a-plugin#generate-an-access-policy-token)
|
|
26
26
|
#with:
|
package/dist/additions/utils.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export { addDependenciesToPackageJson, flushChanges, formatFiles, installNPMDependencies } from '../migrations/utils.js';
|
|
2
|
-
import chalk from 'chalk';
|
|
3
|
-
import { debug } from '../utils/utils.cli.js';
|
|
4
|
-
import { output } from '../utils/utils.console.js';
|
|
5
|
-
|
|
6
|
-
const additionsDebug = debug.extend("additions");
|
|
7
|
-
function printChanges(context, key, addition) {
|
|
8
|
-
const changes = context.listChanges();
|
|
9
|
-
const lines = [];
|
|
10
|
-
for (const [filePath, { changeType }] of Object.entries(changes)) {
|
|
11
|
-
if (changeType === "add") {
|
|
12
|
-
lines.push(`${chalk.green("ADD")} ${filePath}`);
|
|
13
|
-
} else if (changeType === "update") {
|
|
14
|
-
lines.push(`${chalk.yellow("UPDATE")} ${filePath}`);
|
|
15
|
-
} else if (changeType === "delete") {
|
|
16
|
-
lines.push(`${chalk.red("DELETE")} ${filePath}`);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
output.addHorizontalLine("gray");
|
|
20
|
-
output.logSingleLine(`${key} (${addition.description})`);
|
|
21
|
-
if (lines.length === 0) {
|
|
22
|
-
output.logSingleLine("No changes were made");
|
|
23
|
-
} else {
|
|
24
|
-
output.log({ title: "Changes:", withPrefix: false, body: output.bulletList(lines) });
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export { additionsDebug, printChanges };
|
package/src/additions/utils.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export {
|
|
2
|
-
formatFiles,
|
|
3
|
-
installNPMDependencies,
|
|
4
|
-
flushChanges,
|
|
5
|
-
addDependenciesToPackageJson,
|
|
6
|
-
} from '../migrations/utils.js';
|
|
7
|
-
|
|
8
|
-
import type { AdditionMeta } from './additions.js';
|
|
9
|
-
import { Context } from '../migrations/context.js';
|
|
10
|
-
import chalk from 'chalk';
|
|
11
|
-
// Re-export debug with additions namespace
|
|
12
|
-
import { debug } from '../utils/utils.cli.js';
|
|
13
|
-
import { output } from '../utils/utils.console.js';
|
|
14
|
-
|
|
15
|
-
export const additionsDebug = debug.extend('additions');
|
|
16
|
-
|
|
17
|
-
export function printChanges(context: Context, key: string, addition: AdditionMeta) {
|
|
18
|
-
const changes = context.listChanges();
|
|
19
|
-
const lines = [];
|
|
20
|
-
|
|
21
|
-
for (const [filePath, { changeType }] of Object.entries(changes)) {
|
|
22
|
-
if (changeType === 'add') {
|
|
23
|
-
lines.push(`${chalk.green('ADD')} ${filePath}`);
|
|
24
|
-
} else if (changeType === 'update') {
|
|
25
|
-
lines.push(`${chalk.yellow('UPDATE')} ${filePath}`);
|
|
26
|
-
} else if (changeType === 'delete') {
|
|
27
|
-
lines.push(`${chalk.red('DELETE')} ${filePath}`);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
output.addHorizontalLine('gray');
|
|
32
|
-
output.logSingleLine(`${key} (${addition.description})`);
|
|
33
|
-
|
|
34
|
-
if (lines.length === 0) {
|
|
35
|
-
output.logSingleLine('No changes were made');
|
|
36
|
-
} else {
|
|
37
|
-
output.log({ title: 'Changes:', withPrefix: false, body: output.bulletList(lines) });
|
|
38
|
-
}
|
|
39
|
-
}
|
|
File without changes
|
/package/dist/{migrations → codemods/migrations}/scripts/001-update-grafana-compose-extend.js
RENAMED
|
File without changes
|
/package/dist/{migrations → codemods/migrations}/scripts/002-update-is-compatible-workflow.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|