-
-
Notifications
You must be signed in to change notification settings - Fork 16.8k
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
Maintenance/pnpm vite jsx (Enhancements to the Project Infrastructure) #1272
Maintenance/pnpm vite jsx (Enhancements to the Project Infrastructure) #1272
Conversation
- Removed Yarn dependency and replaced with PNPM - Changed Frontend to render via vite
…ug/rework-redis-connection # Conflicts: # packages/components/package.json # packages/ui/src/ui-component/dialog/ViewMessagesDialog.jsx # packages/ui/src/views/apikey/index.jsx # packages/ui/src/views/assistants/AssistantDialog.jsx # packages/ui/src/views/chatflows/index.jsx # packages/ui/src/views/credentials/index.jsx
wow, these are all the stuff I wanted to upgrade but have not time yet, will definitely take a good look! |
sorry for the conflict, just merged in a PR, probably you have to update all the import path for the ui again |
….json to preinstall PNPM only.
- seperated out package locks per package
…aintenance/pnpm-vite-jsx # Conflicts: # packages/ui/src/views/canvas/index.jsx # packages/ui/src/views/chatflows/APICodeDialog.jsx # packages/ui/src/views/chatmessage/ChatMessage.jsx
@HenryHengZJ Take a look now. Both workflows should run now. Sorry lots of places needed updating to get this all to run. |
# Conflicts: # packages/components/package.json
…e-fork/Flowise into maintenance/vite-pnpm-tsup # Conflicts: # packages/ui/pnpm-lock.yaml # packages/ui/vite.config.js
…aintenance/vite-pnpm-tsup # Conflicts: # packages/ui/src/layout/MainLayout/Header/ProfileSection/index.jsx # packages/ui/src/ui-component/button/FlowListMenu.jsx # packages/ui/src/views/chatflows/index.jsx
Bring PR Current.
@HenryHengZJ I brought the branch up to date. Everything is looking good on my end only thing I changed was adding TSC-watch for server dev mode. It's much easier. |
Minor changes to running in dev mode.
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.
Looks good to me, thank you for the contribution!
I have made several significant updates to the project's foundation, aimed at improving efficiency and standardization. Here's a breakdown of the changes:
Switch from Yarn to PNPM: This change brings multiple advantages:
node_modules
are symlinked and shared, leading to the reuse of 2,860 packages.Committing a Lock File: A lock file has been committed to ensure consistent package versions across different setups.
Introduction of
kill-port
in Rootpackage.json
: This utility ensures that ports are terminated before running thedev
andstart
scripts, preventing port conflicts.Standardization of File Extensions in UI Folder: Renamed
.js
files to.jsx
to adhere to standard practices, enhancing code readability and maintainability.Replacement of Craco with Vite: This upgrade introduces several improvements:
Adding
@/
Alias for UI Directory: This alias simplifies referencing within the UI directory, improving code readability and organization.