mirror of
https://github.com/LukeHagar/sveltekit-adapters.git
synced 2025-12-06 04:21:32 +00:00
Update dependencies and scripts in adapter-electron for improved functionality
- Added `nodemon` and `wait-on` as dependencies in the electron example's package.json for better development experience. - Updated the `dev` script to utilize `wait-on` for ensuring the Vite server is running before starting Electron. - Enhanced the README.md with clearer instructions and examples for configuring the adapter and its options. - Removed the `functions` option from the TypeScript definition to simplify the interface. - Cleaned up unused imports in setupHandler.js to streamline the code.
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"scripts": {
|
||||
"start": "vite preview",
|
||||
"sync": "svelte-kit sync",
|
||||
"dev": "pnpm sync && concurrently \"vite dev\" \"electron .\" --names \"sveltekit,electron\" --prefix-colors \"#ff3e00,blue\"",
|
||||
"dev": "pnpm sync && concurrently \"vite dev\" \"wait-on http://localhost:5173 && nodemon --watch out --exec electron .\" --names \"sveltekit,electron\" --prefix-colors \"#ff3e00,blue\"",
|
||||
"build": "pnpm sync && vite build",
|
||||
"build:all": "pnpm build && electron-builder -mwl --config",
|
||||
"build:win": "pnpm build && electron-builder --win --config",
|
||||
@@ -39,6 +39,8 @@
|
||||
"electron-util": "^0.18.1",
|
||||
"esbuild": "^0.25.0",
|
||||
"eslint": "^9.30.1",
|
||||
"nodemon": "^3.1.10",
|
||||
"wait-on": "^8.0.4",
|
||||
"eslint-config-prettier": "^10.1.5",
|
||||
"eslint-plugin-svelte": "^3.10.1",
|
||||
"polka": "^0.5.2",
|
||||
@@ -51,4 +53,4 @@
|
||||
"vite": "^6.0.0"
|
||||
},
|
||||
"type": "module"
|
||||
}
|
||||
}
|
||||
@@ -13,6 +13,7 @@ process.on('SIGINT', () => process.exit(0));
|
||||
// First register the app scheme
|
||||
registerAppScheme();
|
||||
|
||||
console.log('main.ts is now loaded');
|
||||
|
||||
async function createWindow() {
|
||||
// Create the browser window
|
||||
|
||||
Reference in New Issue
Block a user