Skip to content

Commit 45361d8

Browse files
authored
Merge pull request #2 from shilinlee/test-syn
chore: add grafana opengemini datasource plugin
2 parents 513ea61 + 3dc11d9 commit 45361d8

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

.config/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
},
2222
"transpileOnly": true
2323
},
24-
"include": [
25-
"../src", "./types"],
24+
"include": ["../src", "./types"],
2625
"extends": "@grafana/tsconfig"
2726
}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,5 @@ dist
132132
# Editor
133133
.idea
134134
.vscode
135-
.fleet
135+
.fleet
136+
.DS_Store

.prettierrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
// Prettier configuration provided by Grafana scaffolding
3-
...require('.config/.prettierrc.js'),
3+
...require('./.config/.prettierrc.js'),
44
printWidth: 140,
55
tabWidth: 2,
66
singleQuote: true,

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44
grafana:
55
container_name: 'grafana-opengemini-datasource'
66
build:
7-
context: .config
7+
context: ./.config
88
args:
99
grafana_image: ${GRAFANA_IMAGE:-grafana-enterprise}
1010
grafana_version: ${GRAFANA_VERSION:-9.5.3}

jest-setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// Jest setup provided by Grafana scaffolding
2-
import '.config/jest-setup';
2+
import './.config/jest-setup';

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ process.env.TZ = 'UTC';
44

55
module.exports = {
66
// Jest configuration provided by Grafana scaffolding
7-
...require('.config/jest.config'),
7+
...require('./.config/jest.config'),
88
};

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"version": "1.0.0",
44
"description": "Open gemini grafana datasource plugin",
55
"scripts": {
6-
"build": "webpack -c .config/webpack/webpack.config.ts --env production",
7-
"dev": "webpack -w -c .config/webpack/webpack.config.ts --env development",
6+
"build": "webpack -c ./.config/webpack/webpack.config.ts --env production",
7+
"dev": "webpack -w -c ./.config/webpack/webpack.config.ts --env development",
88
"test": "jest --watch --onlyChanged",
99
"test:ci": "jest --passWithNoTests --maxWorkers 4",
1010
"typecheck": "tsc --noEmit",
11-
"lint": "eslint --cache --ignore-path grafana-opengemini-datasource/.gitignore --ext .js,.jsx,.ts,.tsx .",
11+
"lint": "eslint --cache --ignore-path ./.gitignore --ext .js,.jsx,.ts,.tsx .",
1212
"lint:fix": "npm run lint -- --fix",
1313
"e2e": "npm exec cypress install && npm exec grafana-e2e run",
1414
"e2e:update": "npm exec cypress install && npm exec grafana-e2e run --update-screenshots",

src/test/client.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { of } from 'rxjs';
22
import { FieldType, MutableDataFrame } from '@grafana/data';
33

4-
import { openGeminiHttpClient } from '../client';
4+
import { openGeminiHttpClient } from '../client/index';
55
import { SeriesType } from '../client/types';
66
import { Formats } from 'types';
77

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"extends": ".config/tsconfig.json"
2+
"extends": "./.config/tsconfig.json"
33
}

0 commit comments

Comments
 (0)