update new config to can dev as web and application desktop at same time
This commit is contained in:
parent
4032baa8ab
commit
edcccaaab9
10 changed files with 6831 additions and 63 deletions
|
|
@ -3,24 +3,30 @@
|
|||
"private": true,
|
||||
"version": "0.0.1",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "tsc && vite build && electron-builder",
|
||||
"dev": "concurrently \"npm run dev:electron\" \"npm run dev:web\"",
|
||||
"dev:electron": "vite -c vite.config.electron.ts",
|
||||
"dev:web": "vite -c vite.config.web.ts",
|
||||
"build": "concurrently \"npm run build:electron\" \"npm run build:web\"",
|
||||
"build:electron": "tsc && vite build -c vite.config.electron.ts --mode=production && electron-builder",
|
||||
"build:web": "tsc && vite build -c vite.config.web.ts --mode=production",
|
||||
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"dotenv": "^16.3.1",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "^6.21.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@electron-forge/cli": "^7.2.0",
|
||||
"@types/react": "^18.2.21",
|
||||
"@types/react-dom": "^18.2.7",
|
||||
"@typescript-eslint/eslint-plugin": "^6.18.1",
|
||||
"@typescript-eslint/parser": "^6.18.1",
|
||||
"@vitejs/plugin-react": "^4.0.4",
|
||||
"autoprefixer": "^10.4.16",
|
||||
"concurrently": "^8.2.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"daisyui": "^4.6.0",
|
||||
"electron": "^26.1.0",
|
||||
"electron-builder": "^24.6.4",
|
||||
|
|
@ -36,4 +42,4 @@
|
|||
"vite-plugin-electron-renderer": "^0.14.5"
|
||||
},
|
||||
"main": "dist-electron/main.js"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue