grafana/public/app/features
Jack Westbrook d87bf30e9e
Build: Introduce ESM and Treeshaking to NPM package builds (#51517)
* Revert "Chore: Bump terser to fix security vulnerability (#53052)"

This reverts commit 7ae74d2a18.

* feat: use tsc and rollup directly with esbuild and publishConfig, files props

* refactor(grafana-data): fix isolatedModules re-export type error

* refactor(grafana-data): import paths from src not package name

* refactor(rollup): fix dts output.file

* chore(grafana-schema): delete dashboard_experimental.gen.ts - cannot work with isolatedModules

* refactor(grafana-e2e-selectors): fix export types isolatedModules error

* refactor(grafana-runtime): fix isolatedModules re-export type error

* refactor(grafana-ui): fix isolatedModules re-export type error

* feat(grafana-ui): use named imports for treeshaking

* refactor(grafana-ui): use named imports for treeshaking

* feat: react and react-dom as peerDeps for packages

* feat(grafana-ui): emotion packages as peerDeps

* feat(grafana-e2e): use tsc, rollup, esbuild for bundling

* chore(packages): clean up redundant dependencies

* chore(toolkit): deprecate unused package:build task

* chore(schema): put back dashboard_experimental and exclude to prevent isolatedModules error

* docs(packages): update readme

* chore(storybook): disable isolatedModules for builds

* chore: relax peerDeps for emotion and react

* revert(grafana-ui): put @emotion dependencies back

* refactor: replace relative package imports with package name

* build(packages): set emitDeclaration false for typecheck scripts to work

* test(publicdashboarddatasource): move test next to implementation. try to appease the betterer gods

* chore(storybook): override ts-node config for storybook compilation

* refactor(grafana-data): use ternary so babel doesnt complain about expecting flow types

* chore(toolkit): prefer files and publishConfig package.json props over copying

* build(npm): remove --contents dist arg from publishing commands

* chore(packages): introduce sideEffects prop to package.json to hint package can be treeshaken

* chore(packages): remove redundant index.js files

* feat(packages): set publishConfig.access to public

* feat(packages): use yarn berry and npm for packaging and publishing

* refactor(packages): simplify rollup configs

* chore(schema): add comment explaining need to exclude dashboard_experimental

* revert(toolkit): put back clean to prevent cli failures

* ci(packages): run packages:pack before a canary publish

* chore(gitignore): add npm-artifacts directory to ignore list

* test(publicdashboarddatasource): fix module mocking

* chore(packages): delete package.tgz when running clean

* chore(grafana-data): move dependencies from devDeps to prevent build resolution errors
2022-08-03 15:47:09 +02:00
..
admin Access control: Fix org user removal for OSS users (#52473) 2022-07-20 10:18:41 +01:00
alerting Alerting: Fix crash when viewing alert group without interval (#53166) 2022-08-03 08:22:52 +02:00
annotations Annotations: Migrate dashboardId to dashboardUID (#52588) 2022-08-01 09:21:41 +02:00
api-keys Service accounts: Add a confirm modal for migration actions (#52604) 2022-07-21 18:56:20 +02:00
canvas Canvas: Cleanup default elements (#52958) 2022-08-01 15:34:05 -05:00
commandPalette Remove async, set static actions from response and not state variable (#51556) 2022-06-29 08:38:09 -05:00
comments Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
dashboard Build: Introduce ESM and Treeshaking to NPM package builds (#51517) 2022-08-03 15:47:09 +02:00
data-connections Data Connections: Add data sources (#52436) 2022-07-25 14:29:21 +02:00
datasources RBAC: Add RBAC for query caching (#52113) 2022-07-28 09:49:58 +02:00
dimensions Build: Introduce ESM and Treeshaking to NPM package builds (#51517) 2022-08-03 15:47:09 +02:00
explore Build: Introduce ESM and Treeshaking to NPM package builds (#51517) 2022-08-03 15:47:09 +02:00
expressions Core code editor/builder components (#52421) 2022-07-20 12:50:08 -04:00
folders PageLayouts: Updates dashboard section routes with navId (#52175) 2022-07-20 17:26:52 +02:00
geo Heatmap: migrate old zero gap to one (#51467) 2022-06-27 19:13:09 -04:00
inspector Core code editor/builder components (#52421) 2022-07-20 12:50:08 -04:00
invites GrafanaUI: Add success state to ClipboardButton (#52069) 2022-07-20 10:33:46 +01:00
library-panels PageLayouts: Updates dashboard section routes with navId (#52175) 2022-07-20 17:26:52 +02:00
live Build: Introduce ESM and Treeshaking to NPM package builds (#51517) 2022-08-03 15:47:09 +02:00
manage-dashboards Storage: support git + github backed roots (#52192) 2022-07-28 23:26:44 -07:00
notifications Page: Update profile page components to use new navId (#51664) 2022-07-11 14:35:30 +02:00
org Preferences: Use dashboardUID to set the home dashboard (#51919) 2022-07-22 10:44:22 +02:00
panel PanelRenderer: Improves PanelRenderer performance (#51092) 2022-06-20 14:41:39 +02:00
playlist PageLayouts: Updates dashboard section routes with navId (#52175) 2022-07-20 17:26:52 +02:00
plugins rename table_model.ts => TableModel.ts (#51659) 2022-08-03 10:33:13 +00:00
profile Preferences: Use dashboardUID to set the home dashboard (#51919) 2022-07-22 10:44:22 +02:00
query Public Dashboards: Query Caching (#51403) 2022-07-06 12:42:39 -06:00
runtime Runtime: remove updateLocation from window context (#42857) 2021-12-07 20:01:35 -08:00
sandbox TopNav: New page layouts (#51510) 2022-07-06 17:00:56 +02:00
scenes Core code editor/builder components (#52421) 2022-07-20 12:50:08 -04:00
search Search: rename remove search constraints (#53190) 2022-08-03 16:44:51 +04:00
serviceaccounts Service account: Redirect to the edit page after creation (#52623) 2022-07-22 09:54:24 +02:00
storage Storage: support git + github backed roots (#52192) 2022-07-28 23:26:44 -07:00
teams Preferences: Use dashboardUID to set the home dashboard (#51919) 2022-07-22 10:44:22 +02:00
templating Typed variables pt3: Type VariableState with TypedVariableModel (#53015) 2022-08-03 12:38:59 +01:00
transformers Build: Introduce ESM and Treeshaking to NPM package builds (#51517) 2022-08-03 15:47:09 +02:00
users Access Control: Allow org admins to invite new users (#52894) 2022-07-27 17:37:27 +01:00
variables Build: Introduce ESM and Treeshaking to NPM package builds (#51517) 2022-08-03 15:47:09 +02:00
all.ts Angular: More isolation and removing of unused components (#41630) 2021-11-15 15:12:45 +01:00