Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try @grafana/toolkit #17

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ node_modules

archive.zip

dist/
dist/

.rpt2_cache
2 changes: 0 additions & 2 deletions .prettierignore

This file was deleted.

3 changes: 3 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
...require("./node_modules/@grafana/toolkit/src/config/prettier.plugin.config.json"),
};
18 changes: 0 additions & 18 deletions .release-it.json

This file was deleted.

91 changes: 0 additions & 91 deletions karma.conf.js

This file was deleted.

50 changes: 7 additions & 43 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
"version": "0.0.6-dev",
"description": "InfluxDB admin in Grafana",
"scripts": {
"build": "webpack --config webpack.config.prod.js",
"dev": "webpack --mode development",
"watch": "webpack --mode development --watch",
"test": "jest --config jest.config.js",
"precommit": "pretty-quick --staged",
"lint": "tslint -c tslint.json --project tsconfig.json",
"format": "prettier-eslint --write \"src/**/*.{ts,tsx,json,css,js,jsx}\""
"build": "grafana-toolkit plugin:build",
"test": "grafana-toolkit plugin:test",
"dev": "grafana-toolkit plugin:dev",
"test:coverage": "yarn test --coverage",
"test:badges": "yarn test:coverage && jest-coverage-badges"
},
"author": "ryantxu",
"license": "MIT",
Expand All @@ -24,47 +22,13 @@
"type": "git",
"url": "https://github.com/NatelEnergy/grafana-influx-admin.git"
},
"lint-staged": {
"src/**/*.{ts,tsx,json,css,js,jsx}": [
"prettier-eslint"
]
},
"prettier": {
"trailingComma": "es5",
"singleQuote": true,
"bracketSpacing": false,
"printWidth": 100
},
"dependencies": {
"jquery": "^3.2.1",
"lodash": "^4.17.10",
"moment": "^2.22.1"
},
"devDependencies": {
"@types/jest": "^23.3.1",
"@types/lodash": "^4.14.74",
"babel-core": "^6.26.3",
"babel-jest": "^23.0.1",
"babel-loader": "^7.1.4",
"babel-preset-env": "^1.7.0",
"clean-webpack-plugin": "^0.1.19",
"copy-webpack-plugin": "^4.5.1",
"css-loader": "^1.0.0",
"grafana-sdk-mocks": "github:ryantxu/grafana-sdk-mocks",
"jest": "^23.0.1",
"ng-annotate-webpack-plugin": "^0.3.0",
"release-it": "^10",
"prettier": "^1.15.3",
"prettier-eslint": "^8.8.0",
"prettier-eslint-cli": "^4.7.0",
"pretty-quick": "^1.10.0",
"replace-in-file-webpack-plugin": "^1.0.6",
"style-loader": "^0.22",
"ts-jest": "^23",
"ts-loader": "^4.3.0",
"typescript": "^3",
"uglifyjs-webpack-plugin": "^2.0.1",
"webpack": "^4.9.1",
"webpack-cli": "^3.1"
"@grafana/toolkit": "next",
"@types/grafana": "github:CorpGlory/types-grafana.git"
}
}
5 changes: 5 additions & 0 deletions src/module.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
describe('placeholder test', () => {
it('should return true', () => {
expect(true).toBeTruthy();
});
});
Loading