|
|
6 tahun lalu | |
|---|---|---|
| .. | ||
| .storybook | 6 tahun lalu | |
| src | 6 tahun lalu | |
| CHANGELOG.md | 6 tahun lalu | |
| README.md | 6 tahun lalu | |
| index.js | 6 tahun lalu | |
| package.json | 6 tahun lalu | |
| rollup.config.ts | 6 tahun lalu | |
| tsconfig.build.json | 6 tahun lalu | |
| tsconfig.json | 6 tahun lalu | |
| tslint.json | 6 tahun lalu | |
@grafana/ui is a collection of components used by Grafana
Our goal is to deliver Grafana's common UI elements for plugins developers and contributors.
See package source for more details.
yarn add @grafana/ui
npm install @grafana/ui
For development purposes we suggest using yarn link that will create symlink to @grafana/ui lib. To do so navigate to packages/grafana-ui and run yarn link. Then, navigate to your project and run yarn link @grafana/ui to use the linked version of the lib. To unlink follow the same procedure, but use yarn unlink instead.
To build @grafana/ui run npm run gui:build script from Grafana repository root. The build will be created in packages/grafana-ui/dist directory. Following steps from Development you can test built package.
To release new version run npm run gui:release script from Grafana repository root. The script will prepare the distribution package as well as prompt you to bump library version and publish it to the NPM registry.
When running npm run gui:release package.json file will be automatically updated. Also, package.json file will be commited and pushed to upstream branch.
To use package.json defined version run npm run gui:release --usePackageJsonVersion from Grafana repository root.
For testing purposes there is npm run gui:releasePrepare task that prepares distribution package without publishing it to the NPM registry.
/dist directory, and the compiled js lands in /compiled dir/dist directory/dist directory@grafana/ui package dir and in dist directory.To limit the confusion related to @grafana/ui and Grafana versioning we decided to keep the major version in sync between those two. This means, that first version of @grafana/ui is taged with 6.0.0-alpha.0 to keep version in sync with Grafana 6.0 release.