grafana/public/app/core/history
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
..
localStorageConverter.test.ts Query History: Implement RemoteStorage methods: get all, add new (#48330) 2022-05-17 12:59:16 +02:00
localStorageConverter.ts Query History: Implement RemoteStorage methods: get all, add new (#48330) 2022-05-17 12:59:16 +02:00
remoteStorageConverter.test.ts Query History: Migrate local storage to remote storage (#48572) 2022-05-19 13:45:32 +02:00
remoteStorageConverter.ts Query History: Migrate local storage to remote storage (#48572) 2022-05-19 13:45:32 +02:00
RichHistoryLocalStorage.test.ts remove exported test globals from test/lib/common (#50256) 2022-06-06 15:38:37 +01:00
RichHistoryLocalStorage.ts Chore: Enable useUnknownInCatchVariables for stricter type checking in catch blocks (#50591) 2022-06-15 08:59:29 +01:00
richHistoryLocalStorageUtils.test.ts Query History: Move filtering to service layer (#48008) 2022-04-27 15:07:44 +02:00
richHistoryLocalStorageUtils.ts Query History: Migrate local storage to remote storage (#48572) 2022-05-19 13:45:32 +02:00
RichHistoryRemoteStorage.test.ts Query History: Implement star, comment and delete methods (#49330) 2022-05-23 15:07:37 +02:00
RichHistoryRemoteStorage.ts Build: Introduce ESM and Treeshaking to NPM package builds (#51517) 2022-08-03 15:47:09 +02:00
RichHistoryStorage.ts Query History: Results pagination (#49217) 2022-05-23 14:43:38 +02:00
richHistoryStorageProvider.ts Query History: Hide query history when anonymous user uses Explore (#49896) 2022-06-02 08:51:11 -05:00