-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stress test: convert cli scripts to typescript #24915
stress test: convert cli scripts to typescript #24915
Conversation
This change gives us better type checking (scripts are now covered by the `type-check` command) while also allowing interop with the source code. For example, we can add a command to generate fixtures from the `RandomTree` class. This was not possible when the scripts were written in JS as the source code is otherwise in Typescript.
📊 Bundle size report🤖 This report was generated against 3f105cca41d951f161edbb90be116565311e72d1 |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 0d146b0:
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 3f105cca41d951f161edbb90be116565311e72d1 (build) |
* master: (29 commits) chore(react-tooltip): update package scaffold (microsoft#24927) chore(react-popover): update package scaffold (microsoft#24925) chore(react-overflow): update package scaffold (microsoft#24926) chore(react-menu): update package scaffold (microsoft#24924) applying package updates chore: Bump workspace-tools to 0.27.0 (microsoft#24914) fix: Make Menu openOnHover prop work again (microsoft#24899) stress test: convert cli scripts to typescript (microsoft#24915) update package manifest to only include v8 controls (microsoft#24839) Stress Test: add random tree (microsoft#24896) chore: Expand scope of dependency mismatch generator (microsoft#24880) chore: run dependency mismatch generator in release pipeline (microsoft#24881) chore: scaffolds react-trigger package (microsoft#24887) applying package updates chore: a11y docs structure update (microsoft#24871) feat: add popupProps to Modal component to allow override internal Popup props (microsoft#24693) fix: Set github user in nightly release pipeline (microsoft#24850) chore(react-aria): restructure folder organization (microsoft#24884) ci(github): fix invalid json string in issues.yml v2 (microsoft#24886) Add react-components/unstable to tsconfig aliases (microsoft#24878) ...
This change gives us better type checking (scripts are now covered by the `type-check` command) while also allowing interop with the source code. For example, we can add a command to generate fixtures from the `RandomTree` class. This was not possible when the scripts were written in JS as the source code is otherwise in Typescript.
Current Behavior
Stress Test CLI scripts are written in JS with JSDoc type annotations. While this mostly works there is a fair bit of friction compared to using Typescript. Additionally, the rest of the application is written in TS which prevents scripts from using application source code.
New Behavior
Stress Test CLI scripts are written in Typescript. This allows:
type-check
command.fixture
command to generate fixtures with theRandomTree
class that is written in Typescript.This PR also refactors the CLI commands a bit based on usage.
Related Issue(s)
Fixes #24724