-
Notifications
You must be signed in to change notification settings - Fork 1
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
[DR-3123] Migrate to vite #1475
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
33a96ce
Install vite related libraries and uninstall react-scripts
samanehsan 2c7f971
Update package.json scripts
samanehsan d067654
Create vite config
samanehsan e4c5fa3
Fix index.html
samanehsan 327b301
Get UI to run locally
samanehsan aabc6a6
Fix eslint
samanehsan 6833d19
Fix cypress tests
samanehsan 0e2b3f1
Upgrade to Cypress 12 and fix component tests
samanehsan 6d6d897
Fix cypress e2e tests
samanehsan a6cae6a
Fix middleware
samanehsan 263d8ed
Remove commented code
samanehsan 081d451
Ignore sonarcloud errors
samanehsan c3cf84d
Clean up unused dependencies
samanehsan 9bf60d8
Use localhost instead of 127.0.0.1
samanehsan 64e2ad6
Fix e2e test wait-on local server
samanehsan 92c71a7
Try replacing wait-on
samanehsan 5b487a0
Update to from node 14->16
samanehsan d9e1f6c
Remove unnecessary --production flag
samanehsan c7de517
Use default vite react plugin config
samanehsan 29a696f
Try defining process
samanehsan 03c456e
Try updating jsondiffpatch version
samanehsan 997ca29
Remove unused packages
samanehsan a50a81f
Update .node-version
samanehsan 9c1c3b7
Fix cypress.config.ts
samanehsan b73807f
Package clean-up
samanehsan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
12.22.12 | ||
16.20.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { devServer } from '@cypress/vite-dev-server'; | ||
import { defineConfig } from 'cypress'; | ||
import vitePreprocessor from 'cypress-vite'; | ||
import customViteConfig from './vite.config'; | ||
|
||
export default defineConfig({ | ||
component: { | ||
devServer(devServerConfig) { | ||
return devServer({ | ||
...devServerConfig, | ||
framework: 'react', | ||
viteConfig: customViteConfig, | ||
}); | ||
}, | ||
specPattern: 'src/**/*test.{js,jsx,ts,tsx}', | ||
supportFile: 'cypress/support/index.js', | ||
}, | ||
e2e: { | ||
setupNodeEvents(on) { | ||
on('file:preprocessor', vitePreprocessor()); | ||
}, | ||
specPattern: 'cypress/integration/**/*.{js,jsx,ts,tsx}', | ||
supportFile: 'cypress/support/index.js', | ||
}, | ||
projectId: 'e6ttjx', | ||
viewportWidth: 1920, | ||
viewportHeight: 1080, | ||
defaultCommandTimeout: 60000, | ||
requestTimeout: 120000, | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is this flag removed?
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.
The
--production
flag isn't needed becausevite build
uses production by default