[
https://issues.apache.org/jira/browse/HDDS-9639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17848659#comment-17848659
]
Abhishek Pal commented on HDDS-9639:
------------------------------------
Currently react-scripts is using Jest as a testing framework which has a
GPL-3.0 license for a transitive dependency.
We want to move away from Jest as GPL-3.0 is not supported for Apache Projects.
We are also using "xo" as a linter in the current Recon project which has a
GPL-3.0 license as well for transitive dependency
{code}
npx license-checker
├─ [email protected]
│ ├─ licenses: GPL-3.0-or-later OR MIT
│ ├─ path:
/Users/abhishek.pal/githubProjects/ozone/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/node_modules/eslint-template-visitor
│ └─ licenseFile:
/Users/abhishek.pal/githubProjects/ozone/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/node_modules/eslint-template-visitor/README.md
❯ pnpm why [email protected]
Legend: production dependency, optional only, dev only
[email protected]
/Users/abhishek.pal/githubProjects/ozone/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web
devDependencies:
eslint-plugin-unicorn 19.0.1
└── eslint-template-visitor 1.1.0
xo 0.30.0
└─┬ eslint-plugin-unicorn 19.0.1
└── eslint-template-visitor 1.1.0
{code}
A drop-in replacement of Jest is Vitest.
While we are replacing Jest, it would be good to shift from using react-scripts
to Vite which will provide a faster development and build experience and is in
the same ecosystem as Vitest.
The tasks to be undertaken as a part of this is:
* Upgrade Node to v18
* Shift from react scripts to Vite
* Change Jest to Vitest
* Remove dependency from xo, move back to ESLint
> [Recon] Upgrade node, pnpm and packages to the latest major versions
> --------------------------------------------------------------------
>
> Key: HDDS-9639
> URL: https://issues.apache.org/jira/browse/HDDS-9639
> Project: Apache Ozone
> Issue Type: Task
> Components: Ozone Recon
> Reporter: Abhishek Pal
> Assignee: Abhishek Pal
> Priority: Major
> Labels: Ozone-Recon-Node-Upgrade
>
> This Jira is EPIC to upgrade node, pnpm and the packages to the latest
> compaible major versions.
> Packages will be upgraded to the latest version.
> Node and pnpm will be upgraded to the latest LTS release.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]