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

Embrace nx monorepo structure with root package.json #3255

Merged
merged 4 commits into from
Jan 5, 2024
Merged

Conversation

charlesBochet
Copy link
Member

@charlesBochet charlesBochet commented Jan 5, 2024

What

Moving all dependencies to the main package.json as recommended per nx https://nx.dev/concepts/more-concepts/dependency-management
Also: bumping our node version to 18.17.1

Note: It is still possible to override a package version in a specific workspace by adding it to the workspace package.json

Why

This will push us to use the same version of packages accross our workspaces.
Also we will benefit from nx migration features when we change package version

What I have tested

Local Setup:

  • Front
  • Server
  • Website
  • Docs

Docker Setup:

  • Front
  • Server
  • Website
  • Docs

Image size is 1.5GB
image

Dependency size is 2.2GB total
image

Total 3.7GB, better than before!

Github CI

  • all
image CI time 4min, looks good

Docker prod build:

  • Front
  • Server
  • Website
  • Docs

@charlesBochet charlesBochet changed the title Embrace nx Embrace nx monorepo structure with root package.json Jan 5, 2024
@charlesBochet charlesBochet merged commit f7034d6 into main Jan 5, 2024
13 checks passed
@charlesBochet charlesBochet deleted the embrace-nx branch January 5, 2024 13:59
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