Commit Graph

114 Commits

Author SHA1 Message Date
Ryan McKinley
46fcf9bf08
Toolkit: wrap plugin signing stub with error checking (#22626) 2020-03-06 10:51:48 -08:00
Stephanie Closson
3745cccde6
Toolkit: include a github release utility (#22520)
* Adding git publish to toolkit

* grafana-toolkit new feature plugin:github-release

* Feedback from code review
1. Used async await and exec for executing commands
2. Using dist folder to get plugin information

* Reverting change to plugin.json back to original value.

* reverted changes to yarn.lock

* reverted changes to yarn.lock

* feedback from code review

* feedback from code review 2

* moved constants to recommended functions

* styling changes and reverting yarn.lock

* removing changes to package.json

* replced execLine with execa

* better error detection around the publish token

* made simpler with commitHash from build

* Testing showed a number of required changes:
- Make the sha configurable
  or through environment variable
  or through git config.
- Allow a release to be recreated
- Set name and repo from git config as this is what
ghr is expecting anyway.
- Appropriate errors if the user
  tries to run a release without
  doing a ci-build and ci-package first.

* Using spinner.
Took out extra dependencies out of project.json
wrote tests manually.

* Updated tests. Now passing

* Adding git publish to toolkit

* grafana-toolkit new feature plugin:github-release

* Feedback from code review
1. Used async await and exec for executing commands
2. Using dist folder to get plugin information

* Reverting change to plugin.json back to original value.

* reverted changes to yarn.lock

* reverted changes to yarn.lock

* feedback from code review

* feedback from code review 2

* moved constants to recommended functions

* styling changes and reverting yarn.lock

* removing changes to package.json

* replced execLine with execa

* better error detection around the publish token

* made simpler with commitHash from build

* Testing showed a number of required changes:
- Make the sha configurable
  or through environment variable
  or through git config.
- Allow a release to be recreated
- Set name and repo from git config as this is what
ghr is expecting anyway.
- Appropriate errors if the user
  tries to run a release without
  doing a ci-build and ci-package first.

* Using spinner.
Took out extra dependencies out of project.json
wrote tests manually.

* Updated tests. Now passing

* updated test for reducers, from master

* package.json and yarn.lock from master
2020-03-06 10:15:04 -07:00
Ryan McKinley
e688f13535
Toolkit: plugin ci needs to cooperate better with make/mage (#22588)
* cleanup

* cleanup
2020-03-05 06:06:06 -08:00
Ryan McKinley
cc638e81f4
Toolkit: don't clean dist folder before build (#22521) 2020-03-02 11:29:09 -08:00
Shavonn Brown
0c020f222e
canary 404 previous versions (#22495) 2020-02-28 11:27:45 -05:00
Steven Vachon
2b6a88bf59
Optimized package.json files (#22475)
* Used repository shortcut syntax where possible
* Added repository directories for monorepo packages
* Alphabetically sorted npm scripts
2020-02-27 12:00:36 -05:00
Ryan McKinley
63c6fc5f4e
Toolkit: add junit reporting and jest.config.js to plugin build (#22450) 2020-02-27 08:53:59 -08:00
Steven Vachon
3de625ef8e
@grafana/toolkit: completed support for source maps in plugin builds (#22379) 2020-02-22 18:54:02 -05:00
Steven Vachon
c35dc9a0f5
@grafana/toolkit: lint fix option now writes changes to disk (#22278) 2020-02-18 15:55:42 -05:00
Jacky
a743a1cc12
Toolkit: support sass style for plugins (#22235) 2020-02-16 16:47:31 -08:00
Ryan McKinley
21b53b7d79
Toolkit: don't create declaration files for plugins (by default) (#22228) 2020-02-15 09:05:07 -08:00
Ryan McKinley
34e4f182bc
Toolkit: add a warning about tslint migration (#22089) 2020-02-11 13:27:26 +01:00
Ryan McKinley
0ff19e9414
Toolkit: create manifest files for plugins (#22056) 2020-02-10 19:39:24 +01:00
Steven Vachon
f48169633c
TSLint → ESLint (#21006)
* Alphabetized tslint and tsconfig files

* Optimized tsconfig files

* Optimized editorconfig & prettier config files

… to reduce redundancy

* Switched to @grafana/tsconfig

… and:
* de-duped options
* removed options with default values

* Fixed nasty issue with types for nested slate-react

* Replaced TSLint with ESLint

* TSLint disables → ESLint disables

… also JSHint removals, which haven’t had an affect since it was replaced with TSLint.

* Compliances for ESLint, Prettier and TypeScript

* Updated lockfile
2020-02-08 02:40:04 +01:00
Dominik Prokop
f8654a3a2f
grafana/toolkit: Fix failing linter when there were lint issues (#21849) 2020-01-30 15:42:53 +01:00
Steven Vachon
9005b484f0
Replace ts-loader with Babel (#21587)
* Applied prettier to relevant webpack configs

* Replaced ng-annotate with babel-plugin-angularjs-annotate

… and replaced ts-loader with @preset/typescript

* Removed redundant import

… that is problematic with Babel's module resolver

* Updated lockfile

* Traspile debug package to es5 for PhantomJS support

* Update babel to latest version

* Remove @babel/poolyfill and url search params polyfill

* Add ts-loader to grafana-ui dependencies

* Update prod webpack build to use cor-js 3

* Applied prettier to relevant webpack configs

* Replaced ng-annotate with babel-plugin-angularjs-annotate

… and replaced ts-loader with @preset/typescript

* Updated lockfile

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2020-01-30 10:54:11 +01:00
Ryan McKinley
ed140346a7
Toolkit: add canvas-mock to test setup (#21739) 2020-01-25 08:11:08 -08:00
Sofia Papagiannaki
3fd8505195
Update changelog generation to ignore not merged pull requests (#21641) 2020-01-23 10:12:19 +02:00
Ryan McKinley
aee07949a3
Toolkit: copyIfNonExistent order swapped (#21653) 2020-01-21 22:10:16 -08:00
Leonard Gram
4a1f993fd1
next version 6.7.0 (#21617)
* next version 6.7.0

* updates grafana/toolkit and co

* Verison: manually fixed version
2020-01-21 15:15:38 +01:00
Leonard Gram
07d96fe486
Changelog: v6.6.0-beta1 (#21619)
* Changelod: v6.6.0-beta1

* Changelog: grafana/ui v6.6.0-beta.1.0

* Changelog: moved toolkit to its own file

* Changelog: fix version

* Remove closed PR

Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>
2020-01-21 10:10:16 +01:00
Tobias Skarhed
6ff315a299
Emotion: Add main package with version 10 (#21560)
* Update version and snapshots

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2020-01-21 07:40:05 +01:00
Ryan McKinley
152059fec9
Toolkit: fix prettier error reporting (#21599) 2020-01-19 18:42:41 -08:00
Dominik Prokop
18fda3b8b4
Changelog generation: Generate grafana/ui changelog (#21531) 2020-01-16 10:49:35 +01:00
Roman Misyurin
1a9bf91542 Toolkit: support less loader (#21527) 2020-01-15 16:24:13 -08:00
Steven Vachon
f6130db03d
@grafana/toolkit: cleanup (#21441)
* Clarify readme for extended webpack config

* Add support for ES2019 features

* Build task: path.resolve → resolvePath

* Build task: avoid fs race conditions

* Build task: use async fs functions

* Build task: use rimraf directly

... because depending on the workspace parent to have it installed is fragile, and a child process is always slower.

* Build task: misc
2020-01-15 18:51:37 -05:00
Ryan McKinley
eac66813ca
Toolkit: add git log info to the plugin build report (#21344) 2020-01-06 17:10:15 -08:00
Dominik Prokop
22ff0eab15
grafana/toolkit: Readme update (#21218) 2019-12-20 17:32:30 +01:00
Dominik Prokop
d98fa28287
grafana/toolkit: Resolve modules correctly (#21216) 2019-12-20 16:16:55 +01:00
Steven Vachon
7aeba652c9 @grafana/toolkit: webpack extend TS→JS (#21176) 2019-12-18 13:47:03 -05:00
Sebastian Markgraf
f1845d8084 grafana/toolkit: Add option to override webpack config (#20872)
* Toolkit: Add possibility to add custom webpack config

* Toolkit: Refactor webpack to utilize async-await

* Toolkit: Rename config file and allow named export
2019-12-18 10:13:58 -05:00
Boyko
331bc173cc Chore: Upgrade react, react-dom, react-test-renderer versions (#21130)
* Chore: Upgrade react, react-dom, react-test-renderer versions

* Chore: Normalize windows path for webpack plugin test

* Chore: Replace deprecated react-testing-hooks-library
2019-12-17 13:42:30 +01:00
Ryan McKinley
23510f95a3
Toolkit: remove unused plugin-ci report types (#21012) 2019-12-10 16:06:41 -08:00
Milan Pavlik
fd2b39a3e9 Update README.md (#20820) 2019-12-04 09:09:23 +01:00
Hugo Häggmark
130fb02b17
Release: Updates latest.json and grafana/packages/*/package.json (#20734)
* Update latest.json

* Chore: Changes version to canary

* Chore: Changes version to 6.6.0-pre
2019-11-28 03:47:48 -08:00
Kyle Brandt
1776c11fc6
dev: fix pre-commit typo in toolkit (#20673)
s/not/no/
2019-11-26 12:03:44 -05:00
Dominik Prokop
b7a3758799
grafana/toolkit: Update FAQ (#20592) 2019-11-25 09:05:02 +01:00
Hugo Häggmark
2c2ed8371d
E2E: Adds tests for QueryVariable CRUD (#20448)
* WIP: Adds basic template variables CRUD start

* e2eTests: Adds aria-labels in VariableEditorCtrl

* Refactor: Simplifies a bit

* e2eTests: Adds first Template Variable CRUD for QueryVariable

* Tests: Adds ArrayPageOjbectType

* Tests: Adds createQueryVariable method

* Tests: Refactor CRUD test

* Tests: Adds datasource and dashboard to scenario

* Refactor: Fixes type errors

* Refactor: Move pages to toolkit
2019-11-25 07:29:01 +01:00
Šimon Podlipský
31f4dea3d0 Toolkit: Do not continue after compile error (#20590)
Resolves #20560
2019-11-24 21:43:32 -08:00
Ryan McKinley
d9abf01ce1 grafana/toolkit: Smaller output after successful upload (#20580)
After toolkit uploads a report successfully, it should only show the 
response data, not the whole request info.
2019-11-22 10:38:14 +01:00
kay delaney
a30cc9e62c
Chore: Upgrade prettier for grafana-toolkit (#20476) 2019-11-19 20:25:37 +00:00
kay delaney
ca3dff99e8
Chore: Bumps prettier version for new typescript syntax support (#20463)
* Chore: Bumps prettier version for new typescript syntax support

* Ran new version of prettier against the codebase
2019-11-19 13:59:39 +00:00
kay delaney
f1c8330877
Chore: Upgrade typescript to 3.7 (#20375)
* Chore: Upgrade typescript to 3.7
2019-11-15 09:18:09 +00:00
Ryan McKinley
1f018adbf3 grafana/toolkit: remove aws-sdk and upload to grafana.com API endpoint (#20372)
* remove aws-sdk and upload directly

* remove unused imports

* put the plugin file in the root directory
2019-11-14 09:15:36 +01:00
Ryan McKinley
dc1fa7ac70
Toolkit: copy full directory structure for img,libs,static (#20145) 2019-11-01 09:39:20 -07:00
Andreas Motl
e3922c6e4e grafana/toolkit: Fixup save artifacts in a zip id in the folder (#20071) (#20139) 2019-10-31 18:59:04 -07:00
Dominik Prokop
2d7d171e06 grafana/toolkit: save artifacts in a zip id in the folder (#20123) 2019-10-31 15:08:42 -07:00
Dominik Prokop
9b7748ec13
Chore: Reorg packages (#20111)
Primarily- moving majority of the types and utils from @grafana/ui to @grafana/data

* Move types from grafana-ui to grafana-data

* Move valueFormats to grafana-data

* Move utils from grafana-ui to grafana-data

* Update imports in grafana-ui

* revert data's tsconfig change

* Update imports in grafana-runtime

* Fix import paths in grafana-ui

* Move rxjs to devDeps

* Core import updates batch 1

* Import updates batch 2

* Imports fix batch 3

* Imports fixes batch i don't know

* Fix imorts in grafana-toolkit

* Fix imports after master merge
2019-10-31 10:48:05 +01:00
Dominik Prokop
6edc91aca8
Add info about static files (#19965) 2019-10-23 14:09:25 +02:00
Dominik Prokop
8e824f0b25
grafana/toolkit: Support js plugins (#19952)
* Making flowchart work

* Enable testEnvironment jest option

* Add babel-jest to grafana-toolkit

* Fix test

* Resolve either js or ts jest setup files

* Update packages/grafana-toolkit/src/config/jest.plugin.config.ts

* Update packages/grafana-toolkit/src/config/webpack.plugin.config.ts
2019-10-22 23:23:37 +02:00