-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[frameworks][examples] Fix vite ionic-react framework detection #12880
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
Changes from all commits
c080fd9
5f759b3
b9f7dd6
57e4845
27282c3
39559d6
92e3a3f
9adf5f1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@vercel/frameworks': minor | ||
| --- | ||
|
|
||
| Make vite detection supersede ionic-react |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| import { deployExample } from '../test-utils'; | ||
| it('[examples] should deploy ionic-react', async () => { | ||
| // TODO: unskip once example is manually changed to `vite` | ||
| it.skip('[examples] should deploy ionic-react', async () => { | ||
| await deployExample('ionic-react'); | ||
| }); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1820,6 +1820,7 @@ export const frameworks = [ | |
| 'Vite is a new breed of frontend build tool that significantly improves the frontend development experience.', | ||
| description: 'A Vue.js app, created with Vite.', | ||
| website: 'https://vitejs.dev', | ||
| supersedes: ['ionic-react'], | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion (blocking): Does this fail because the output dir is
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Newly initiated The currently existing e2e tests run the fresh inited ionic react project with vite settings and it succeeds https://github.com/vercel/vercel/actions/runs/12892527405/job/35948586479?pr=12880#step:8:128 (deployment). Is that test sufficient or were you thinking about a different kind of test?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, thanks for that clarification. That test was passing before this change. I was hoping to see a test that would only pass because of this change. What are these more recent build failures on that project?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Whoops, my bad. Part of making this PR included switching that example to Switched it back to ionic react so other PRs will succeed now. Will add a test that shows
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| envPrefix: 'VITE_', | ||
| detectors: { | ||
| every: [ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -215,7 +215,13 @@ async function getDeployment(host: string) { | |
| } | ||
|
|
||
| describe('frameworks', () => { | ||
| const skipExamples = ['sanity-v3', 'solidstart', 'dojo', 'scully']; | ||
| const skipExamples = [ | ||
| 'sanity-v3', | ||
| 'solidstart', | ||
| 'dojo', | ||
| 'scully', | ||
| 'ionic-react', | ||
| ]; | ||
|
Comment on lines
+218
to
+224
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Temporarily adding After this gets merged I will manually set the |
||
|
|
||
| it('ensure there is an example for every framework', async () => { | ||
| const root = join(__dirname, '..', '..', '..'); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as https://github.com/vercel/vercel/pull/12880/files#r1925735759