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(import): check for server dependencies #6603

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

liady
Copy link
Contributor

@liady liady commented Oct 30, 2024

Note for reviewers:
Other than refactors, tests and name changes, the actual logic is only in requirement-server-packages.ts.
(I had to change the resolution name from 'Found' to 'Passed' since here a passing check means that server packages weren't actually found)

PR details:
This PR adds a check for server dependencies to the import process - currently a very closed list, to be added more incrementally.
For example when importing a Next project:

Monosnap.screencast.2024-10-30.18-30-51.mp4

Manual Tests:
I hereby swear that:

  • I opened a hydrogen project and it loaded
  • I could navigate to various routes in Play mode

Copy link
Contributor

github-actions bot commented Oct 30, 2024

Try me

Copy link

relativeci bot commented Oct 30, 2024

#14972 Bundle Size — 58.03MiB (~+0.01%).

9ff3903(current) vs d1d46c1 master#14966(baseline)

Warning

Bundle contains 70 duplicate packages – View duplicate packages

Bundle metrics  Change 4 changes Regression 1 regression
                 Current
#14972
     Baseline
#14966
Regression  Initial JS 41.01MiB(~+0.01%) 41.01MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 18.06% 17.95%
No change  Chunks 20 20
No change  Assets 22 22
Change  Modules 4164(+0.02%) 4163
No change  Duplicate Modules 213 213
Change  Duplicate Code 27.32%(+0.04%) 27.31%
No change  Packages 477 477
No change  Duplicate Packages 70 70
Bundle size by type  Change 2 changes Regression 1 regression Improvement 1 improvement
                 Current
#14972
     Baseline
#14966
Regression  JS 58.02MiB (~+0.01%) 58.02MiB
Improvement  HTML 7.37KiB (-0.25%) 7.39KiB

Bundle analysis reportBranch feat/check-server-dependenciesProject dashboard


Generated by RelativeCIDocumentationReport issue

@@ -761,3 +761,36 @@ export function ensureDirectoriesExist(projectContents: ProjectContents): Projec
return result
}
}

Copy link
Contributor Author

@liady liady Oct 31, 2024

Choose a reason for hiding this comment

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

these were just moved here as-is from check-utopia-requiremenets.ts

@liady liady merged commit 8a5b3ee into master Oct 31, 2024
21 checks passed
@liady liady deleted the feat/check-server-dependencies branch October 31, 2024 13:44
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.

3 participants