grafana/public/app/core
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
..
actions Frontend: Add notification persistence behind feature flag (#47871) 2022-04-20 10:42:32 +01:00
components RolePicker: Fix RolePicker menu positioning (#53201) 2022-08-03 14:35:51 +02:00
context Chore: remove unnessisary type assertion from GrafanaContext (#52979) 2022-07-29 11:48:52 +01:00
copy Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
history Build: Introduce ESM and Treeshaking to NPM package builds (#51517) 2022-08-03 15:47:09 +02:00
hooks Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
internationalization I18n: Wrap event-based modals with I18nProvider (#52720) 2022-07-25 08:44:11 -04:00
navigation AppChrome: Fix race condition when updating chrome state on route changed (#52694) 2022-07-29 17:16:14 +02:00
reducers TopNav: Support for deeper nesting in section nav (#52562) 2022-07-22 10:42:41 +02:00
selectors Navigation: split logic, reenable unit test, copy whole node to prevent recursion error (#53033) 2022-08-01 14:47:52 +01:00
services Various Panels: Add ability to toggle legend with keyboard shortcut (#52241) 2022-07-27 13:39:55 -06:00
specs rename table_model.ts => TableModel.ts (#51659) 2022-08-03 10:33:13 +00:00
utils Revert "Explore: Add Mixed Datasource (#51605)" (#52889) 2022-07-27 10:17:31 -05:00
app_events.ts EventBus: Introduces new event bus with emitter backward compatible interface (#27564) 2020-11-03 13:08:54 +01:00
config.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
constants.ts PanelEditor: Present actionable suggestions when panel cannot visualize current data (#42083) 2021-11-25 09:41:03 +01:00
core.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
lodash_extended.ts Performance: Standardize lodash imports to use destructured members (#33040) 2021-04-21 09:38:00 +02:00
logsModel.test.ts rename logs_model.ts->logsModel.ts; update references (#51468) 2022-06-29 21:04:30 +02:00
logsModel.ts logs: better volume-color (#52711) 2022-07-26 10:50:48 +02:00
mod_defs.d.ts prettier: change to single quoting 2017-12-20 12:33:33 +01:00
profiler.ts Angular: Isolate angular more (#41440) 2021-11-10 11:05:36 +01:00
store.ts Chore: Enable useUnknownInCatchVariables for stricter type checking in catch blocks (#50591) 2022-06-15 08:59:29 +01:00
TableModel.ts rename table_model.ts => TableModel.ts (#51659) 2022-08-03 10:33:13 +00:00
time_series2.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00