Skip to content

Commit

Permalink
remove backend code
Browse files Browse the repository at this point in the history
  • Loading branch information
andresmgot committed Nov 4, 2021
1 parent d9a6310 commit f14a393
Show file tree
Hide file tree
Showing 23 changed files with 86 additions and 2,346 deletions.
28 changes: 16 additions & 12 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,27 @@ platform:
arch: amd64

steps:
- name: build
image: grafana/grafana-plugin-ci:1.2.1-alpine
- name: initialize
image: grafana/grafana-plugin-ci:1.1.0-alpine
commands:
- mage -v build
- mkdir -p bin
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.27/grabpl
- chmod +x bin/grabpl
- mkdir ci
- yarn install --frozen-lockfile --no-progress
- rm -rf node_modules/@grafana/data/node_modules

- name: lint
image: grafana/grafana-plugin-ci:1.2.1-alpine
- name: build-and-test-frontend
image: grafana/grafana-plugin-ci:1.1.0-alpine
commands:
- mage -v lint

- name: test
image: grafana/grafana-plugin-ci:1.2.1-alpine
commands:
- mage -v test
- yarn eslint ./src --ext .js,.jsx,.ts,.tsx
- yarn build
- yarn test-ci
depends_on:
- initialize

---
kind: signature
hmac: b980986bcf4841da3d58e4adb04bd532480c15b1a719570cece295970e5d7265
hmac: 032b0b1724c1fe669af7ae31ca652e90ce525e561c9c248fb44d72ffd1c2cb0f

...
28 changes: 28 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"extends": ["@grafana/eslint-config"],
"root": true,
"plugins": ["no-only-tests", "@emotion", "lodash"],
"rules": {
"no-only-tests/no-only-tests": "error",
"react/prop-types": "off",
"@emotion/jsx-import": "error",
"lodash/import-scope": [2, "member"]
},
"overrides": [
{
"files": ["packages/grafana-ui/src/components/uPlot/**/*.{ts,tsx}"],
"rules": {
"react-hooks/rules-of-hooks": "off",
"react-hooks/exhaustive-deps": "off"
}
},
{
"files": ["packages/grafana-ui/src/components/ThemeDemos/**/*.{ts,tsx}"],
"rules": {
"@emotion/jsx-import": "off",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off"
}
}
]
}
4 changes: 1 addition & 3 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module.exports = {
trailingComma: 'es5',
singleQuote: true,
printWidth: 120,
...require('@grafana/toolkit/src/config/prettier.plugin.config.json'),
};
14 changes: 3 additions & 11 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
module github.com/grafana/grafana-aws-sdk
module github.com/grafana/grafana-aws-sdk-react

go 1.14
go 1.17

require (
github.com/aws/aws-sdk-go v1.35.30
github.com/google/go-cmp v0.5.6
github.com/grafana/grafana-plugin-sdk-go v0.94.0
github.com/grafana/sqlds/v2 v2.3.2
github.com/jpillora/backoff v1.0.0
github.com/magefile/mage v1.11.0
github.com/stretchr/testify v1.7.0
)
require github.com/magefile/mage v1.11.0
527 changes: 0 additions & 527 deletions go.sum

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"clean": "rimraf ./dist ./compiled",
"typecheck": "tsc --noEmit",
"publish": "npm publish --access=public --scope=grafana",
"test": "jest --notify --watch"
"test": "jest --notify --watch",
"test-ci": "grafana-toolkit plugin:test"
},
"files": [
"index.js",
Expand All @@ -21,13 +22,14 @@
"license": "Apache-2.0",
"dependencies": {},
"devDependencies": {
"@grafana/data": "^7.5.0",
"@grafana/ui": "^7.5.0",
"@babel/preset-env": "^7.13.12",
"@babel/preset-react": "^7.13.13",
"@babel/preset-typescript": "^7.13.0",
"@emotion/eslint-plugin": "^11.5.0",
"@grafana/data": "^7.5.0",
"@grafana/toolkit": "^7.5.1",
"@grafana/tsconfig": "^1.0.0-rc1",
"@grafana/ui": "^7.5.0",
"@rollup/plugin-commonjs": "11.0.2",
"@rollup/plugin-json": "4.0.3",
"@rollup/plugin-node-resolve": "7.1.1",
Expand All @@ -45,6 +47,9 @@
"@types/rollup-plugin-visualizer": "2.6.0",
"@types/sinon": "^7.5.2",
"babel-jest": "^26.6.3",
"eslint-plugin": "^1.0.1",
"eslint-plugin-lodash": "^7.3.0",
"eslint-plugin-no-only-tests": "^2.6.0",
"jest": "^26.6.3",
"pretty-format": "25.1.0",
"react-test-renderer": "^17.0.2",
Expand Down
243 changes: 0 additions & 243 deletions pkg/awsds/sessions.go

This file was deleted.

Loading

0 comments on commit f14a393

Please sign in to comment.