Commit Graph

364 Commits

Author SHA1 Message Date
Timur Olzhabayev
9fe034e5ca
chore(toolkit): add toolkit version to signing (#44326) 2022-01-31 09:55:21 +01:00
Timur Olzhabayev
ebbb283d75
fix(40590): bundle the readme files of datasources inside app plugins (#44068) 2022-01-20 14:13:31 +00:00
Jack Westbrook
e888a40531
Plugins: Add notices to docs to prevent NPX commands from hanging (#44043)
* docs(plugins): add notice about npm 7 flag to prevent commands from hanging

* Apply suggestions from code review

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2022-01-17 15:58:36 +01:00
Marcus Andersson
efd7a12686
Chore: Revert externalization of the tslib so it gets bundled with plugins. (#43556)
* Revert externalization of the tslib so it gets bundled with the plugins.

* Adding pnp-webpack-plugin to properly resolve dependencies in nested plugins.

* added dependency on lodash.
2021-12-30 08:53:42 +01:00
Dessen Xu
e79254d9aa
Toolkit: Fix bug with rootUrls not being properly parsed when signing a private plugin. (#43014)
* fix plugin sign

* modify urls

* back to urls...

* code format
2021-12-14 11:43:26 +01:00
Scott Lepper
6ae8f23f32
Chore: update plugin-ci image (#43062) 2021-12-13 14:24:32 -08:00
Jack Westbrook
36b0cb64fd
Grafana Toolkit: Prevent installation of outdated FE dependencies (#42663) 2021-12-07 09:56:56 +01:00
Jack Westbrook
8b3725b9f2
Chore: Bump versions to 8.4.0-pre (#42116) 2021-11-23 11:23:02 +01:00
Dave Henderson
fc7277920c
Dockerfile: Bump Go and Alpine versions (#41922)
* Dockerifle: Bump Go and Alpine versions

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>

* Updating .drone.yml with 'make drone'

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
2021-11-19 18:59:24 +01:00
Marcus Andersson
95e0eea86c
Docs: Adding details about how to enable dynamic imports in plugins (#41648)
* added dynamic import to the readme.

* Update packages/grafana-toolkit/README.md

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>

* Update README.md

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
2021-11-15 10:20:55 +01:00
renovate[bot]
01bc59e432
Update dependency optimize-css-assets-webpack-plugin to v6 (#41419)
* Update dependency optimize-css-assets-webpack-plugin to v6

* Update to use exact version

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2021-11-09 13:17:15 +01:00
renovate[bot]
0bd87f3e5b
Update dependency @types/node to v16 (#40913)
* Update dependency @types/node to v16

* kick drone

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2021-11-08 15:45:02 +00:00
renovate[bot]
725c113691
Update dependency md5-file to v5 (#41336)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-05 10:41:05 +00:00
renovate[bot]
07d3bde4eb
Update dependency eslint-plugin-prettier to v4 (#40884)
* Update dependency eslint-plugin-prettier to v4

* Bump eslint to 7.28.0

* Chore(renovate): Commit lockfile update

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: kay delaney <kay@grafana.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2021-11-04 16:54:23 +00:00
renovate[bot]
18151ce652
Update dependency inquirer to v8 (#41240)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-03 11:41:21 +00:00
Zoltán Bedi
6675b084bd
Chore: Upgrade grafana-eslint to latest (#41179) 2021-11-02 10:20:41 +01:00
Zoltán Bedi
85f2c48448
Toolkit: Don't to show console errors in tests (#41078) 2021-11-02 08:38:46 +01:00
renovate[bot]
134c64f1a5
Update dependency fork-ts-checker-webpack-plugin to v6 (#40891)
* Update dependency fork-ts-checker-webpack-plugin to v6

* Fix compatibility issue

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2021-11-01 09:25:55 +01:00
renovate[bot]
3b91ce1b07
Update dependency @types/expect-puppeteer to v4 (#41000)
* Update dependency @types/expect-puppeteer to v4

* Chore: Remove @types/expect-puppeteer since it doesn't seem to be used/needed anywhere

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2021-10-28 10:36:54 +01:00
renovate[bot]
5c72f3adbe
Update dependency chalk to v4 (#40572)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-27 16:14:32 +01:00
renovate[bot]
53b283ee01
Update dependency commander to v8 (#40707)
* Update dependency commander to v8

* Chore(dependencies): Changes needed to support Commander v8

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2021-10-27 14:54:10 +01:00
kay delaney
3a7c5a0755
Chore: Switch yarn 2 to plug-n-play strategy (#40300) 2021-10-27 14:21:07 +01:00
renovate[bot]
0808ec927e
Update dependency file-loader to v6 (#40890)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-26 09:22:43 +02:00
renovate[bot]
c550c6c258
Update dependency concurrently to v6 (#40711)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-25 10:27:05 +01:00
renovate[bot]
f496c31018
Update dependency @types/jest to v27 (#40403)
* Update dependency @types/jest to v27

* Fix type errors

* Linting!

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2021-10-22 17:44:01 +01:00
renovate[bot]
8d06bddeda
Update dependency @types/node to v14 (#40405)
* Update dependency @types/node to v14

* Remove global var

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2021-10-21 16:52:26 +02:00
Marcus Andersson
44c4d5d6fc
Toolkit: Prevent toolkit from crashing when an error occur. (#40627) 2021-10-19 17:03:19 +02:00
renovate[bot]
52b69a9a80
Update dependency @types/rimraf to v3 (#40467)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-18 11:23:37 +02:00
renovate[bot]
73ac9c2717
Update dependency @types/semver to v7 (#40515)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-15 13:25:42 +01:00
Will Browne
281d60095f
remove refs to --pure-lockfile (#40345) 2021-10-13 14:59:47 +02:00
Giordano Ricci
0ac81e9e47
Chore: remove volta references (#40275) 2021-10-12 12:39:54 +01:00
kay delaney
b2e94d0733
Chore: Migrate yarn from v1 to v2 (#39082)
* Chore: Migrate yarn from v1 to v2

Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>
2021-10-08 15:19:10 +01:00
Ashley Harrison
e367fefdae
Chore(dependencies): Remove puppeteer since we don't use it anywhere (#40137) 2021-10-08 09:22:43 +01:00
dependabot[bot]
d1b2b10e6a
Chore: bump jest-junit from 6.4.0 to 13.0.0 (#40037)
Bumps [jest-junit](https://github.com/jest-community/jest-junit) from 6.4.0 to 13.0.0.
- [Release notes](https://github.com/jest-community/jest-junit/releases)
- [Commits](https://github.com/jest-community/jest-junit/compare/v6.4.0...v13.0.0)

---
updated-dependencies:
- dependency-name: jest-junit
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-06 11:59:49 +01:00
dependabot[bot]
cdeb3e730d
Bump execa from 4.0.0 to 5.1.1 (#39654)
Bumps [execa](https://github.com/sindresorhus/execa) from 4.0.0 to 5.1.1.
- [Release notes](https://github.com/sindresorhus/execa/releases)
- [Commits](https://github.com/sindresorhus/execa/compare/v4.0.0...v5.1.1)

---
updated-dependencies:
- dependency-name: execa
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-05 09:24:43 +01:00
dependabot[bot]
5219c72a6c
Bump simple-git from 1.132.0 to 2.46.0 (#39931)
* Bump simple-git from 1.132.0 to 2.46.0

Bumps [simple-git](https://github.com/steveukx/git-js) from 1.132.0 to 2.46.0.
- [Release notes](https://github.com/steveukx/git-js/releases)
- [Changelog](https://github.com/steveukx/git-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/steveukx/git-js/compare/v1.132.0...v2.46.0)

---
updated-dependencies:
- dependency-name: simple-git
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* simple-git/promise is deprecated

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2021-10-04 14:30:02 +02:00
Jack Westbrook
cc7f7e30e9
Plugins: Mock Icon component to prevent console errors (#39901)
* feat(grafana-ui): externalise react-inlinesvg for mocking

* feat(grafana-toolkit): mock react-inlinesvg to prevent svg fetch errors in tests

* test(toolkit): remove assertion on array length of moduleNameMapper overrides

* feat(toolkit): set testId to match the Icon name prop in react-inlinesvg mock
2021-10-01 15:07:22 +02:00
dependabot[bot]
c18585a4f3
Bump pngjs from 3.4.0 to 6.0.0 (#39728)
Bumps [pngjs](https://github.com/lukeapage/pngjs) from 3.4.0 to 6.0.0.
- [Release notes](https://github.com/lukeapage/pngjs/releases)
- [Commits](https://github.com/lukeapage/pngjs/commits)

---
updated-dependencies:
- dependency-name: pngjs
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-01 09:35:58 +02:00
dependabot[bot]
71eb217476
Bump @types/fs-extra from 8.1.0 to 9.0.13 (#39884)
Bumps [@types/fs-extra](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/fs-extra) from 8.1.0 to 9.0.13.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/fs-extra)

---
updated-dependencies:
- dependency-name: "@types/fs-extra"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-01 08:37:55 +02:00
Torkel Ödegaard
bc01c9cdbc
Prettier: Fix all markdown files and add markdown files to CI verify step (#39776) 2021-09-29 14:34:40 +02:00
dependabot[bot]
178cc3ee7b
Bump fs-extra from 9.1.0 to 10.0.0 (#39692)
Bumps [fs-extra](https://github.com/jprichardson/node-fs-extra) from 9.1.0 to 10.0.0.
- [Release notes](https://github.com/jprichardson/node-fs-extra/releases)
- [Changelog](https://github.com/jprichardson/node-fs-extra/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jprichardson/node-fs-extra/compare/9.1.0...10.0.0)

---
updated-dependencies:
- dependency-name: fs-extra
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-28 12:25:04 +01:00
dependabot[bot]
a79ee09cf5
Bump eslint-plugin-jsdoc from 31.6.1 to 36.1.0 (#39668)
Bumps [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) from 31.6.1 to 36.1.0.
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases)
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v31.6.1...v36.1.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-jsdoc
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-27 17:00:19 +01:00
dependabot[bot]
60f5bceda5
Bump @types/prettier from 1.18.3 to 2.4.0 (#39653)
Bumps [@types/prettier](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/prettier) from 1.18.3 to 2.4.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/prettier)

---
updated-dependencies:
- dependency-name: "@types/prettier"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-27 14:51:54 +01:00
Ryan McKinley
1c64f7d3ff
Chore: update typescript and tslib versions (#39389)
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2021-09-22 21:15:37 +02:00
Andres Martinez Gotor
875be5ef7c
Chore: Update packages version to 8.2.0-pre (#39335) 2021-09-21 13:08:40 +02:00
dependabot[bot]
f7d105174b
Bump axios from 0.21.1 to 0.21.2 (#39020)
Bumps [axios](https://github.com/axios/axios) from 0.21.1 to 0.21.2.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.21.1...v0.21.2)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-09 16:50:50 +02:00
Dimitris Sotirakis
a5ce61b539
Chore: Update to alpine:3.14.2 (#38813)
* Update apline to 3.14.2

* Remove libcrypto1.1 libssl1.1 version dependencies

* Update grabpl version
2021-09-02 12:57:11 +03:00
Jack Westbrook
8d3b31ff23
Build: Upgrade Webpack 5 (#36444)
* build(webpack): bump to v5 and successful yarn start compilation

* build(webpack): update postcss dependencies

* build(webpack): silence warnings about hash renamed to fullhash

* build(webpack): enable persistent cache to store generated webpack modules / chunks

* build(webpack): prefer eslintWebpackPlugin over tschecker so eslint doesn't block typechecking

* chore(yarn): run yarn-deduplicate to clean up dependencies

* chore(yarn): refresh lock file after clean install

* build(webpack): prefer output.clean over CleanWebpackPlugin

* build(webpack): prefer esbuild over babel-loader for dev config

* build(babel): turn off cache compression to improve build performance

* build(webpack): get production builds working

* build(webpack): remove phantomJS (removed from grafana in v7) specific loader

* build(webpack): put back babel for dev builds no performance gain in using esbuild in webpack

* build(webpack): prefer terser and optimise css plugins for prod. slower but smaller bundles

* build(webpack): clean up redundant code. inform postcss about node_modules

* build(webpack): remove deprecation warnings flag

* build(webpack): bump packages, dev performance optimisations, attempt to get hot working

* chore(storybook): use webpack 5 for dev and production builds

* build(storybook): speed up dev build

* chore(yarn): refresh lock file

* chore(webpack): bump webpack and related deps to latest

* refactor(webpack): put back inline-source-map, move start scripts out of grafana toolkit

* feat(webpack): prefer react-refresh over react-hot-loader

* build(webpack): update webpack.hot to use react-refresh

* chore: remove react-hot-loader from codebase

* refactor(queryeditorrow): fix circular dependency causing react-fast-refresh errors

* revert(webpack): remove stats.errorDetails from common config

* build(webpack): bump to v5 and successful yarn start compilation

* build(webpack): update postcss dependencies

* build(webpack): silence warnings about hash renamed to fullhash

* build(webpack): enable persistent cache to store generated webpack modules / chunks

* build(webpack): prefer eslintWebpackPlugin over tschecker so eslint doesn't block typechecking

* chore(yarn): run yarn-deduplicate to clean up dependencies

* chore(yarn): refresh lock file after clean install

* build(webpack): prefer output.clean over CleanWebpackPlugin

* build(webpack): prefer esbuild over babel-loader for dev config

* build(babel): turn off cache compression to improve build performance

* build(webpack): get production builds working

* build(webpack): remove phantomJS (removed from grafana in v7) specific loader

* build(webpack): put back babel for dev builds no performance gain in using esbuild in webpack

* build(webpack): prefer terser and optimise css plugins for prod. slower but smaller bundles

* build(webpack): clean up redundant code. inform postcss about node_modules

* build(webpack): remove deprecation warnings flag

* build(webpack): bump packages, dev performance optimisations, attempt to get hot working

* chore(storybook): use webpack 5 for dev and production builds

* build(storybook): speed up dev build

* chore(yarn): refresh lock file

* chore(webpack): bump webpack and related deps to latest

* refactor(webpack): put back inline-source-map, move start scripts out of grafana toolkit

* feat(webpack): prefer react-refresh over react-hot-loader

* build(webpack): update webpack.hot to use react-refresh

* chore: remove react-hot-loader from codebase

* refactor(queryeditorrow): fix circular dependency causing react-fast-refresh errors

* revert(webpack): remove stats.errorDetails from common config

* revert(webpack): remove include from babel-loader so symlinks (enterprise) work as before

* refactor(webpack): fix deprecation warnings in prod builds

* fix(storybook): fix failing builds due to replacing css-optimise webpack plugin

* fix(storybook): use raw-loader for svg icons

* build(webpack): fix dev script colors error

* chore(webpack): bump css-loader and react-refresh-webpack-plugin to latest versions

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2021-08-31 12:55:05 +02:00
Dimitris Sotirakis
8e2ee0a1c8
Chore: Update to Golang 1.17 (#38608)
* Update to golang 1.17

* Further updates

* Run go mod tidy on go 1.17

* Apply suggestions from code review

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>

* Use build-container:1.4.2

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2021-08-31 09:19:26 +03:00
Zoltán Bedi
dbc7464e78
Toolkit: fix matchmedia missing (#38694) 2021-08-30 14:36:15 +02:00