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

Feature/1541 update node migrate cra to vite #246

Conversation

sinejespersen
Copy link
Contributor

@sinejespersen sinejespersen commented May 29, 2024

Link to ticket

https://leantime.itkdev.dk/dashboard/home#/tickets/showTicket/1541

Description

As it seems CRA is no longer being maintained by fb, I am migrating to Vite.

  • upgrade node from 14 -> 20
  • yarn upgrade
  • remote unused dependencies (test-stuff)
  • move frem CRA/react-app-rewired -> Vite
  • This pr breaks the cypress tests, but they will be changed to playwright-tests in a later pr.

Screenshot of the result

n/a

Checklist

  • My code is covered by test cases.
  • My code passes our test (all our tests).
  • My code passes our static analysis suite.
  • My code passes our continuous integration process.

If your code does not pass all the requirements on the checklist you have to add a comment explaining why this change
should be exempt from the list.

Additional comments or questions

If you have any further comments or questions for the reviewer please add them here.

@sinejespersen sinejespersen marked this pull request as ready for review May 31, 2024 08:20
@sinejespersen sinejespersen requested review from tuj and turegjorup May 31, 2024 08:20
environment:
- NODE_ENV=development
volumes:
- .:/app:delegated
healthcheck:
test: [ "CMD", "curl", "-f", "http://node:3000/tags" ]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

http://node:3000/tags has never been a page.

Copy link
Contributor

Choose a reason for hiding this comment

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

Then remove healthcheck: as well

environment:
- NODE_ENV=development
volumes:
- .:/app:delegated
healthcheck:
test: [ "CMD", "curl", "-f", "http://node:3000/tags" ]
Copy link
Contributor

Choose a reason for hiding this comment

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

Then remove healthcheck: as well

command: yarn start
networks:
- app
working_dir: /app
ports:
- '3000'
Copy link
Contributor

Choose a reason for hiding this comment

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

Will block other from using 0.0.0.0:3000

@sinejespersen sinejespersen deleted the feature/1541-update-node-migrate-CRA-to-vite branch June 3, 2024 08:30
@sinejespersen sinejespersen restored the feature/1541-update-node-migrate-CRA-to-vite branch June 3, 2024 08:32
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.

2 participants