Skip to content
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

feat: migrate from CRA4 to Vite, Storybook to v8, jest to Vitest #7285

Open
wants to merge 38 commits into
base: develop
Choose a base branch
from

Conversation

karrui
Copy link
Contributor

@karrui karrui commented Apr 24, 2024

This PR moves the frontend toolchain from CRA4 to Vite.
Generally everything seems to be working fine, including decryption workers.

Requires a bunch of changes that has to be performed all at the same time:

  • Jest -> Vitest
  • Storybook v6 -> v8 (less painful than wrangling Storybook v6 to work with vite)

TODO:

  • move back dd-chunk pipeline to vite build
  • Test on GSIB

@karrui karrui changed the title feat: add initial vite config and new eslint rules wip: migrate from CRA4 to Vite Apr 24, 2024
@karrui karrui marked this pull request as ready for review April 24, 2024 07:59
@karrui karrui marked this pull request as draft April 24, 2024 10:02
@karrui
Copy link
Contributor Author

karrui commented Apr 26, 2024

@KenLSM see chromatic useful. will ensure the migration has 0 frontend changes!!!

@karrui karrui changed the title wip: migrate from CRA4 to Vite wip: migrate from CRA4 to Vite, Storybook to v8, jest to Vitest Apr 26, 2024
@karrui karrui changed the title wip: migrate from CRA4 to Vite, Storybook to v8, jest to Vitest feat: migrate from CRA4 to Vite, Storybook to v8, jest to Vitest Apr 26, 2024
@karrui karrui marked this pull request as ready for review April 26, 2024 05:46
@karrui
Copy link
Contributor Author

karrui commented Apr 29, 2024

@justynoh this PR officially has no regressions hehehehe

@karrui karrui requested review from KenLSM and justynoh April 29, 2024 12:01
@karrui
Copy link
Contributor Author

karrui commented Apr 30, 2024

@justynoh added datadog chunking back to the pipeline. Can push to staging to try?

@karrui karrui force-pushed the 04-23-fix_remove_erroneous_react_type_pkg_install_on_root branch from 0a96443 to 9f75cd7 Compare May 2, 2024 04:34
@karrui karrui force-pushed the 04-23-feat_add_initial_vite_config_and_new_eslint_rules branch from 2c7a9e4 to 9177241 Compare May 2, 2024 04:34
"test": "cross-env SKIP_PREFLIGHT_CHECK=true craco test --silent",
"start": "vite",
"build": "vite build",
"serve": "vite preview",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can remove don't add confusion

"start": "vite",
"build": "vite build",
"serve": "vite preview",
"test": "cross-env SKIP_PREFLIGHT_CHECK=true vitest",
"eject": "react-scripts eject",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need this anymore

"eject": "react-scripts eject",
"storybook": "NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 6006",
"build-storybook": "NODE_OPTIONS=--openssl-legacy-provider build-storybook",
"storybook": "NODE_OPTIONS=--openssl-legacy-provider storybook dev -p 6006",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need node options anymore

@karrui karrui mentioned this pull request May 3, 2024
2 tasks
Base automatically changed from 04-23-fix_remove_erroneous_react_type_pkg_install_on_root to 04-23-feat_upgrade_prettier_to_v3 May 15, 2024 12:34
Base automatically changed from 04-23-feat_upgrade_prettier_to_v3 to develop May 20, 2024 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants