-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add setup wizard with CSV import and @wareflow/db package #10
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 1 commit
08c71d4
b4feb78
e5f15c3
5b7130a
89e979a
38e653a
e27f8d6
f4adf92
9175dc6
c93e852
0cc3dce
22a4598
e3d9953
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 |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| import { defineConfig, externalizeDepsPlugin } from 'electron-vite' | ||
| import { resolve } from 'path' | ||
| import tailwindcss from '@tailwindcss/vite' | ||
| import tsconfigPaths from 'vite-tsconfig-paths' | ||
|
|
||
| export default defineConfig({ | ||
| main: { | ||
|
|
@@ -23,13 +25,21 @@ export default defineConfig({ | |
| } | ||
| }, | ||
| renderer: { | ||
|
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. The 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. Security Issue: The desktop renderer is sharing the same |
||
| root: resolve(__dirname, '../web/dist'), | ||
| root: resolve(__dirname, '../web'), | ||
|
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. This is a positive change - pointing to the source directory instead of dist allows the desktop app to use the web app's Vite dev server with HMR. |
||
| plugins: [ | ||
| tailwindcss(), | ||
| tsconfigPaths({ projects: ['./tsconfig.json'] }) | ||
| ], | ||
| build: { | ||
| rollupOptions: { | ||
| input: { | ||
|
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. Issue: The desktop renderer configuration uses the web app's Recommendation: Consider creating a separate renderer entry point for the desktop app (e.g., |
||
| index: resolve(__dirname, '../web/dist/index.html') | ||
| index: resolve(__dirname, '../web/index.html') | ||
| } | ||
| } | ||
| }, | ||
| server: { | ||
| host: '127.0.0.1', | ||
|
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. Both apps are configured to use port 3000. When running |
||
| port: 3000 | ||
| } | ||
| } | ||
| }) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,10 @@ const config = defineConfig({ | |
| tanstackRouter({ target: 'react', autoCodeSplitting: true }), | ||
| viteReact(), | ||
| ], | ||
| server: { | ||
|
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. Port Configuration: Both web and desktop apps are configured to use port 3000. When running Recommendation: Consider using different ports or adding a startup delay/await mechanism in the |
||
| host: '127.0.0.1', | ||
| port: 3000, | ||
| }, | ||
| }) | ||
|
|
||
| export default config | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,9 @@ | |
| "type": "module", | ||
| "scripts": { | ||
| "dev": "turbo dev", | ||
| "dev:web": "turbo dev --filter=web", | ||
| "dev:desktop": "turbo dev --filter=desktop", | ||
| "dev:all": "turbo run dev --filter=web --filter=desktop", | ||
|
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. Security Concern: The The desktop app renderer is configured to point to the web app ( |
||
| "build": "turbo build", | ||
| "lint": "turbo lint", | ||
| "typecheck": "turbo typecheck", | ||
|
|
||
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
externalizeDepsPluginis correctly imported from 'electron-vite' which is the correct import path for version 5.0.0. The configuration looks compatible with electron-vite 5.x.