grafana/scripts
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
..
build Docker: Install jq on build-container image (#52928) 2022-07-28 08:21:48 -05:00
cli Chore: reintroduce type assertion test + change emitted metric names (#51375) 2022-06-25 07:45:38 -04:00
drone Make retrieve and release npm packages allowed to fail (#53191) 2022-08-03 08:24:32 -04:00
go/bin Remove integration tags for enterprise (#50974) 2022-06-22 15:22:42 +02:00
grafana-server Public Dashboards: add e2e tests for public dashboards (#52970) 2022-08-01 11:20:49 -03:00
helpers Build: Introduce shellcheck (#18081) 2019-07-23 13:12:33 +03:00
verify-repo-update Drop unused debian packages (#45173) 2022-06-29 09:41:08 -04:00
webpack Build: Enable long term caching for frontend assets (#47625) 2022-05-26 11:49:18 +02:00
benchmark-access-control.sh Access control: Basic structure and functionality behind feature toggle (#31893) 2021-03-22 13:22:48 +01:00
check-breaking-changes.sh Chore: Make detect breaking changes workflow backport compatible (#45005) 2022-02-08 11:33:33 +01:00
ci-frontend-metrics.sh Chore: add a betterer test for undocumented stories (#51444) 2022-06-29 12:25:31 +01:00
ci-job-failed.sh Chore: Move from master to main branch (#33693) 2021-05-06 16:29:29 +02:00
ci-job-started.sh Build: Reports times and outcomes from CircleCI jobs (#20474) 2019-11-20 07:21:07 +01:00
ci-job-succeeded.sh Chore: Move from master to main branch (#33693) 2021-05-06 16:29:29 +02:00
ci-reference-docs-build.sh Build: added steps to generate packages api documentation. (#27930) 2020-10-14 14:35:55 +02:00
ci-reference-docs-lint.sh Make script not fail if reports/docs directory doesn't exist (#41527) 2021-11-10 18:07:39 +02:00
circle-release-canary-packages.sh Build: Introduce ESM and Treeshaking to NPM package builds (#51517) 2022-08-03 15:47:09 +02:00
circle-test-backend.sh Chore: Upgrade to Go 1.14 (#23371) 2020-04-08 14:13:05 +02:00
circle-test-cache-servers.sh Build: Introduce shellcheck (#18081) 2019-07-23 13:12:33 +03:00
circle-test-frontend.sh Chore: Move from master to main branch (#33693) 2021-05-06 16:29:29 +02:00
circle-test-mysql.sh Build: Introduce shellcheck (#18081) 2019-07-23 13:12:33 +03:00
circle-test-postgres.sh Build: Introduce shellcheck (#18081) 2019-07-23 13:12:33 +03:00
clean-git-or-error.sh Do codegen and check no-diff of all (non-blacklisted) CUE->TS codegen during CI (#39922) 2021-10-08 08:47:55 -04:00
generate-a11y-report.sh Chore: use new pa11y-ci version (#52953) 2022-07-28 12:49:41 -04:00
import_many_dashboards.sh ci-build: spelling (#24386) 2020-05-18 16:41:06 +03:00
mixin-check.sh Add monitoring mixing for Grafana (#28285) 2020-10-15 17:05:56 +02:00
protobuf-check.sh Backend plugins: Renderer v2 plugin (#23625) 2020-04-21 16:16:41 +02:00
stripnulls.sh schema: Finish converting dashboard schema datasource references to objects (#47806) 2022-04-15 19:41:07 +02:00
tag_release.sh Chore: Move from master to main branch (#33693) 2021-05-06 16:29:29 +02:00
trigger_docker_build.sh Build: Introduce shellcheck (#18081) 2019-07-23 13:12:33 +03:00
trigger_grafana_packer.sh Build: Introduce shellcheck (#18081) 2019-07-23 13:12:33 +03:00
trigger_windows_build.sh Chore: Move from master to main branch (#33693) 2021-05-06 16:29:29 +02:00
validate-devenv-dashboards.sh Scuemata: Add test to validate devenv resources (#35810) 2021-07-15 20:08:03 -04:00