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

refactor: rename views.ts to file-routes.ts #2271

Merged
merged 9 commits into from
Apr 3, 2024
Merged

Conversation

taefi
Copy link
Contributor

@taefi taefi commented Mar 27, 2024

Description

This renames the views.ts to file-routes.ts (and also renames views.json to file-routes.json for the sake of uniformity), but temporarily keeps the views.ts as well for the transition period and compatibility to prevent snapshot build failures.

Later, when RouterBuilder is merged and Flow adopted the change, the redundant generation of views.ts should be removed completely.

Fixes #2239
Fixes #2281

Copy link

codecov bot commented Mar 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.77%. Comparing base (616a08a) to head (21461ea).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2271   +/-   ##
=======================================
  Coverage   93.77%   93.77%           
=======================================
  Files          65       65           
  Lines        1639     1639           
  Branches      368      368           
=======================================
  Hits         1537     1537           
  Misses         67       67           
  Partials       35       35           
Flag Coverage Δ
unittests 93.77% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

taefi added a commit to vaadin/flow that referenced this pull request Mar 27, 2024
Follow up for vaadin/hilla#2271

NOTE: the vaadin/hilla#2271 also keeps the generation
of views.ts temporarily to prevent possible snapshot
build failures. After these two PRs (on both sides)
merged successfully, the generation of views.ts would
be removed from Hilla codebase.
@taefi taefi requested review from cromoteca and platosha March 28, 2024 09:54
Lodin
Lodin previously approved these changes Apr 2, 2024
Copy link
Contributor

@Lodin Lodin left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

sonarcloud bot commented Apr 2, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@Lodin Lodin merged commit bf9054d into main Apr 3, 2024
15 checks passed
@Lodin Lodin deleted the taefi/rename-views-ts branch April 3, 2024 08:20
taefi added a commit that referenced this pull request Apr 12, 2024
Lodin pushed a commit that referenced this pull request Apr 16, 2024
This is a follow-up PR for #2271

Co-authored-by: Luciano Vernaschi <[email protected]>
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.

Unnecessary warning in pure Flow project [FS router]: Rename views.js to file-routes.js
3 participants