{"_id":"@ptkdev/sveltekit-electron-adapter","_rev":"135-3d5fbd2c01c521ddfa19e8b084f40693","name":"@ptkdev/sveltekit-electron-adapter","dist-tags":{"latest":"0.3.0","beta":"0.3.0-beta.1","nightly":"0.3.1-nightly.128"},"versions":{"0.1.0":{"name":"@ptkdev/sveltekit-electron-adapter","version":"0.1.0","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"publishConfig":{"access":"public"},"license":"MIT","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","type":"module","exports":{".":{"types":"./index.d.ts","import":"./index.js"},"./package.json":"./package.json"},"types":"index.d.ts","scripts":{"lint":"prettier --check . --config .prettierrc --ignore-path .gitignore","check":"tsc","format":"pnpm lint --write","test":"uvu test test.js"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@types/node":"^16.18.6","sirv":"^2.0.2","svelte":"^3.55.1","typescript":"^4.9.4","uvu":"^0.5.6","vite":"^4.0.4"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"gitHead":"ecdb3aa0398fc5705f702e735990203ac5e300fd","description":"[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.","bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"_id":"@ptkdev/sveltekit-electron-adapter@0.1.0","_nodeVersion":"16.16.0","_npmVersion":"8.13.2","dist":{"integrity":"sha512-MmX9N0z3rf+pMoXOoLtR3zNSI02VlNDn+Afv2A0BhsXEu5JeuXq5NEG0K+ajyKgutuyH4QpNk5xATn+Ly0uleg==","shasum":"854ce0685a95c396cb5c72502a26bb3a8902d75d","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.1.0.tgz","fileCount":6,"unpackedSize":10729,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGsEWegJjVIzfKBfKvegBA9C7HsKefscEFizUxfYiIa1AiAyo8cXMs0bgcq22WJmgpdqb/Wk+nyFzpkBk4c31URDUw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4puvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp0xg//cVlbrt8KBcbXGtQAil74EZNsH7Jv/WcXfjkJJqZnG4dKRfxT\r\nLGQuGfx9cZdq7Kj2vNYJRPAp9e3iN0Zp7fetAiuGJm02oBZdrSwduEnFc2y4\r\nxspOMD8se/RNQ5HlMjVigQh5e+W/CiUK956RKVfcW7CgbS8b+z/IctsiGeaa\r\nf/TslkbOnPlwOIhGoVeLoPpX6f/7gNxDBmOAksFnpQVdk5gGWPRKjnHb4BPX\r\nK/S+up5DH9Oz4O2H9PxFllNEsSrGdFLui6xMqPK6e7sfnMW+6oS5hHIT30L5\r\n3/OAsIZYuQakfr689U5t9BAwSW0q9r+GDW00MmRv0yDohRdtBpJZO4zisVJO\r\nYA97urYKnI8cZmZaMJjVYGUBcxuMH1Qdz4ov+VZ/EFVzZju7isSPJCV2b0zo\r\nnCLaVECAu1638cDToU6DIQGciUz1y/IT1Wqr6vP64j+AxCpw16kL44hCcxcX\r\n5LT9KAhmvgGC7LjsV5hWp4k4DLmKwPrqOlfPEkAdQtvgsIPxSy9idgIuxi5Q\r\nv9/zcqleDvQgFiFevr/dj7m6SwNLghtAdzfvcZE/vj+2Z0dPrpFhTOYvIenF\r\nR1ak6q8tGRgjK9G8u1nrt/Q/hy6x2fI6iOTeFe6SUHTEvP7w8QV6KT3eIQVm\r\nOUayR98YR3OdCFl73jCshh9o+sedPrDEtgE=\r\n=jbbo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.1.0_1675795374842_0.5663361160083649"},"_hasShrinkwrap":false},"0.0.0":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.0.0","main":"./index.js","type":"module","exports":{".":{"types":"./index.d.ts","import":"./index.js"},"./package.json":"./package.json"},"types":"index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"cp ./app/**/* . -r","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.13.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.51.0","@typescript-eslint/parser":"^5.51.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^39.8.0","husky":"^8.0.3","jest":"^29.4.2","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.1","yargs":"^17.6.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🤖 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.0.0](https://img.shields.io/badge/version-v0.0.0-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: Grammy](https://img.shields.io/badge/powered%20by-grammy-009dca.svg?style=flat&logo=telegram)](https://grammy.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: true,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adatper({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | `default-src 'self'; script-src 'self'`                     | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: true,\n\t\t\tpolicy: \"\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"7245622be5515c370762d17ea617298bb12b190f","_id":"@ptkdev/sveltekit-electron-adapter@0.0.0","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-xuwTrS57I+3luK3yAnLDsH8DUaVqNbFleTKA68GJOWclIp16huZYPeOWNaLZ75szmZ9tzEQwKaXz02iVsB09Fw==","shasum":"5d73032e4803463d5a8a726a575508dafe179c30","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.0.0.tgz","fileCount":8,"unpackedSize":32796,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGlV/Ysau0rZxvDI25MpY1P9FrRU9qAqlsYrCAYN6BCYAiAXqc6W9+yCO+OmBCyBJOWgs2bizC1h0H/MgiS4WT4FAQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5ujeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqY9g//V1UsRMAFaTH5GakDzk5tXnfYoWyoyDeam6x+mLR1+frVNiWK\r\nmm/u2kV5wzqavtzxRisR5N5npTzYB/e87PoNlxjHNKOOFKWS1vG7iv20jaEJ\r\nKhs7UnJtt3wORFSSN9S8P+AmYNBllg2tV2fxLbuq8epGkEA0TeY+kDHOZMwh\r\nCnxTBnfzBb9b3Ep86mFkRFiGFJtFwYekqwhp0Za5jknKQY8kw8jqYFjKMYRL\r\nNlQbZvN6+0JgCaKlu5Tz0ZWFGD4vsqUKLQI3hQ2HmZFLDFsrhDaxgkYjJgDQ\r\nOuMV7+luOArXQjiqys7LcTVTkJdzsup38zmYIHoN0LFyyHSfEn3LdoSxwywf\r\ncpXM4f4mRRamOsLGzlDhPAjiVk2dtJx85XYUkiMjkArQrvMt0ND/IpGh+pnF\r\ni7IpKK/VY4qm/YZTjaxrIGoltHvTg4Q2iB7bM7a1V1HTONpHCNzezlyczeGA\r\n2rnwkFfiQRfFHAbb6KLHhdchULKSQQIBRFa/5V85y9VIBhIDXIvX7iK4tGoF\r\nL1xUNFfu2BrOVRA6sAicPpZipJilwA1Uvc3saD/7AEW0BYILrdiVyuXLXAJZ\r\n16F/KayrnG67i42u6XkJs6hwiDwohNIcdJzBufTV51hUbK7/eAFhEaapcjKW\r\nd6uW6gKDntlhFBfCOpucFQxyiQmquOc59GA=\r\n=Wv0B\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.0.0_1676077278718_0.14599338772261472"},"_hasShrinkwrap":false},"0.0.0-beta.1":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.0.0-beta.1","main":"./index.js","type":"module","exports":{".":{"types":"./index.d.ts","import":"./index.js"},"./package.json":"./package.json"},"types":"index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"cp ./app/**/* . -r","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.13.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.51.0","@typescript-eslint/parser":"^5.51.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^39.8.0","husky":"^8.0.3","jest":"^29.4.2","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.1","yargs":"^17.6.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🤖 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.0.0-beta.1](https://img.shields.io/badge/version-v0.0.0--beta.1-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: Grammy](https://img.shields.io/badge/powered%20by-grammy-009dca.svg?style=flat&logo=telegram)](https://grammy.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: true,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adatper({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | `default-src 'self'; script-src 'self'`                     | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: true,\n\t\t\tpolicy: \"\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"0d70c7ae8a6e30a000c2bb8899f0a13ae2f55ad2","_id":"@ptkdev/sveltekit-electron-adapter@0.0.0-beta.1","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-vDm9b0vhtR6iyNOA/+jCtCudIXEX6rRJ40d7r7zyjhflBAw/k/XPkbId/Qayt/FrCQX5Ldr5xZpYvulsYzJSfg==","shasum":"585f073b6af328e5a373b31e59c9be9cb50a6d11","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.0.0-beta.1.tgz","fileCount":8,"unpackedSize":32818,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcdpHIi3WgdFN4VNhyKhluplp7GVhUk86v37cmnJCD+AIhAKgBXciU742HfIMNLug9YF4u/nNMSuo7R8aXxzXylK+u"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5urxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq70w//eW/+s0vP3bgZEr1U4xIJvHfppcqW6lUKpQiisCZzJ6I5Vt35\r\napOhSOZeD+jlgNi74ytJkcDxnzd6dHgs2/ML0RZeTEPT0h72aJYbzLHTyPQQ\r\nmDshDm/mkRjWkTTjYncrIPWSJflLq1EYLwhPxo4+oKHQer/Is9HOqk96zX9k\r\neiMvPutEwf+OxgQY3gMSd//QMumOZzsIZfCK7S8f6WCB1v2e2BI5qY5yOmkP\r\n45ugKHlOdqxk2rlwmx/IOvHgLr+WNoPRUb81giwCVvhclTySrYBTAtVcDJ6/\r\nja3pg4tW9VNEJPS8riKfsddZmQwe36NOZZtLo342ryGfQcIVsSKMOBEvuvf0\r\nNRUEI90LcVQKbN7oXatPkbFTPrIYLsExgT0+GrGAhndqYtdeTvSWbKtxhijb\r\nWu9eeLDUCUodSVYULpmTtDkhdJB5Ls0psQo7eTmG7i9HuaGqoGOeXC89Z+Op\r\n++cFEOVii4YDNxdHyyuGSP8cU6FcHpKOyDVzzHlHZTef2MbIstRXigQ6ZQJZ\r\n4wNcGMgCXM9goAscZKV1DgXHwBeuyHauttytA2tFz+mBchxc7wFs/fFpZ611\r\nY7QUldS3X0MBf92qH6Z3UeLEEgBp+uiNaLcouIzrYIuy6ASe2rvEl6SyW4eF\r\nlQgwXjJgKC1XGFKRlFyRyRcBfyLsoQNvag8=\r\n=koLj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.0.0-beta.1_1676077809004_0.3923824997186782"},"_hasShrinkwrap":false},"0.2.1":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.2.1","main":"./index.js","type":"module","exports":{".":{"types":"./index.d.ts","import":"./index.js"},"./package.json":"./package.json"},"types":"index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"cp ./app/**/* . -r","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.13.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.51.0","@typescript-eslint/parser":"^5.51.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^39.8.0","husky":"^8.0.3","jest":"^29.4.2","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.1","yargs":"^17.6.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"gitHead":"4b86c9463b28217a24e74d8e6de2691267400a4a","_id":"@ptkdev/sveltekit-electron-adapter@0.2.1","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-efukN9aYN5rtyXepsNaUohVudnjH2cnxZYzOrNreOjYOlp2zxXAllal6hHuSFkDPSX+1KZvhXNYG1K5oj2/ZXA==","shasum":"4444c1d22f0068e1db81b1b8c63bbccd4e9a9ffe","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.2.1.tgz","fileCount":8,"unpackedSize":32796,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHSEfd3YaVjMdQhRQhygJo2rXDKXKqB404g7dyefPb+NAiEAwn3pOVkUZy4iM/97PsqD1WQB+oVw9/r4FRkKqK2EcvE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5uvsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmobfw//S5/nVuvPYbPMksmU0IA6pE5h8np0iqb3k7ZDjbrn37dXGPTd\r\nj/CRs2Ei0guoYvoZOYJLlRRL8zr8Q1cIMqnW44WU3D456K/4d4SeTb0C9xY0\r\nc/TV5WWliivdhgWPQXKoeqBNE68QQJUSSKzvfEpe+lD28xgwczJD+C+iKDn3\r\nARrl9ANalHGGFrNj4hYFMReWsMTvHbhtg/BAjsLFQ2qAXDnBVRO7tfCZwEv2\r\no02ykbpHjmI7AdtPxB1Mle6P+k/XDEbTVPWjsemDF6bR3G2axpv0oZNuTzC7\r\nBLyOtNCryld+QzH7vo2AOEMXNxfPbbPvi+OBWJSmaYYKfwIGNAzIwEdMsK/G\r\nur5siK2XBFDRRtgZjaD4eFLUGFWeIZEhKt10sLOSzswTQijExo8dCpfEJL3S\r\nuhK0zt9WJqpCXazObsJ+TPIdbfjSIxHWlslzBvS1LCGiwymXbpXn2IHrsKph\r\n4mGkoTcn9pxBl4CSH1bM0f4kynCqNdIqkXg7FQWT23UBu7ggO4p0+sSPGA8a\r\nkY1NhzRKo4pnEw5cwBIykGuznU1GaZfhLUUVCLlfhRK5JOTTFsn6bgwZ3dqB\r\nhagD+ZH+F+UbHTd+Yg4Fy1oLsZ6VMlnTbaxkZQksGorxI3qH7tS0jW9tE2QW\r\nrTKVWvozaOyhJAm4AuD+a9LuuXii+vp9OJg=\r\n=s9Oj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.2.1_1676078059795_0.9326608726911116"},"_hasShrinkwrap":false},"0.2.2-beta.1":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.2.2-beta.1","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.13.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.51.0","@typescript-eslint/parser":"^5.51.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^39.8.0","husky":"^8.0.3","jest":"^29.4.2","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.1","yargs":"^17.6.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.2.2-beta.1](https://img.shields.io/badge/version-v0.2.2--beta.1-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"043f62743c1b717abc1b0772f0adcd7ffdd17b62","_id":"@ptkdev/sveltekit-electron-adapter@0.2.2-beta.1","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-mTZ5OZw4qO1hBSJiEtXEctPBo11sd4iTcsy+142zNflfiWSP72ZgcT0WL+aPj20Q1O0JbBPgr0j/YAvaESignA==","shasum":"3abd718bae740fdf6ace65ab2722c5b606114880","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.2.2-beta.1.tgz","fileCount":8,"unpackedSize":32940,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGpSJ8b4dEOzXZ/BsNO62qC9YQi7ToYwAVaZ0RSbsRcTAiEAl8yfFlOCH5slto2MNxn9FHmTjLLUmkg+rzeb9ELUrZY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj589TACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoXlQ//T2NW9yyoB0Ln/fwyCdWGcSbo+vpnIvD61j6+0UpGm5LVrDf5\r\nbkepNKfJOlOX5SliHxn8ooQDd5BqBgaIXOaPxwHjNqfhkzQLeuVH5Jx1v90U\r\n0gYb22UEnJTm9jROULlFb8R4QxGFFD8uBvrNUZ8dsqb4jW6Mw0bMb8gIewiW\r\n8RA9gRPXZgHrcbpESGKmJnPo54oH9deBr/1YXVuTVPSMnKpPy3eAQO7432MP\r\nUEfo5XZOG/mTxOEXdtf8mbwAjGbtJKoOsTlzCya6+DjtJhypgNMwg9g+turX\r\ndNrv2mb3lBHyfmxjwR+Fqa99VlfsYJAohut8DYiBzD9xjU+tlW/vZQJpbw7Z\r\nBvfBjzEC8gzKXUgvA5URge1YTqsIEFMO06NXdzyBqFtGFtF9lT4PEPoMc3/C\r\nm12L/tmeuHRohdQG8ymlAcPdjlRKT2uZoHI1KaBORSgbGiWXbwJQYk5IKSMl\r\nvJqmt4DXf8BSLNvPx/CJHZ2NU6xxWjb9vnLWOGo7Sv0va1LpK/rMPTvR1b8e\r\n8W0toRspHdTVOtOI8GtzbCm6EGChSPgKMj8/L0N8hpoQeAIpLVWGNlDWgixT\r\ntF4NDoPyw/Qh7NkNKhmtsZlrdjy0Cq3IQXb1QcZ87PVXCYCqS8WrGUT7/GBd\r\nz6k06peLrodDMf/r0GTpwN7rAJAwI5lhsPQ=\r\n=LER/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.2.2-beta.1_1676136275287_0.2258878570915468"},"_hasShrinkwrap":false},"0.2.2":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.2.2","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.13.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.51.0","@typescript-eslint/parser":"^5.51.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^39.8.0","husky":"^8.0.3","jest":"^29.4.2","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.1","yargs":"^17.6.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"gitHead":"338327cbab83575928092e22d3221ae638dfaf3a","_id":"@ptkdev/sveltekit-electron-adapter@0.2.2","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-qcKBpB+s/DnzPweEoR+Ohk4u8/g5hhtpGFZpJJR/pQIYnb5sfrZd2Z7+BF9ZCffPMlHGfXnIyG7Go/18x6tt7A==","shasum":"340bad600b203831c208334d22263576a0f018a3","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.2.2.tgz","fileCount":8,"unpackedSize":32918,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7nFkUBH4oeDoO7Cetc8RTDwQdC9dch8KPJswqEbP1cAIhAI8AZJfbKI0zvSW6BeMEr8UZwsbPXMe/XKcg1cTeZIQ/"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj58+yACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqpEQ//eskFeYwnZEkJu93n4HvyrVPbfOonFw8o5UleY00Py+rEInsj\r\nm4ITzUQkD41agYJkqDpeFJzxmAp0NZ48uDO3TGEwHQlqyTaulRMCT6gBDnPU\r\n5KzLGn7eTF9jb2YtCRJwx2FC0ijHSL6Kygn9ZQbFCo873zICgPt0FQ8i1bFL\r\nitG/rimFZLr+2w8gxJTSLqp5c4zQ7ZIAcbiJ92CO3eHo3qpgDDNPSzZwcjcY\r\nG547vhhci07Gc91z1Xh60SOUvIzrmmg1xNkmazn4fmXYqG7n2MzWCo3WOl6t\r\nZfWtXAY34zCc48vFepRWTcFvWzDDpZMmrJDZdC/RSv99TuH/7l4IT0HLsd93\r\nQXKXtEN2wvJbOVPO1YEmm8ISYsvWEEQ1Y8I5AmHKsQPrO1dkKdUROfLb9b/U\r\nzcviWdXAueZDhGLY4565VuzxVJqwE8IO5uWlJR5xlfury6az61+nqyI3Fhaw\r\nmfOfHhDeTkrKY9+QSFp2YS7Ven+CvDUMzKxR0W/gkVGShL6sFbERu7XmkNxg\r\ngEVcrWUoAOMPS4Vee/E5/mzGsPdxkraEc9liDxRw5LMzfbUBwi0hvziO8BIA\r\nYCFL0YN1yr6GFbO27ZKC9j14SdeiGEnYc8fTsufTibcFlL3Qbxtr6X0GeUlj\r\nop/zZVgQdEPsG3xnjoKZRid7gHHWc//IUfg=\r\n=flAT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.2.2_1676136369774_0.7996717066238563"},"_hasShrinkwrap":false},"0.3.0-beta.1":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.0-beta.1","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.13.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.51.0","@typescript-eslint/parser":"^5.51.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^39.8.0","husky":"^8.0.3","jest":"^29.4.2","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.1","yargs":"^17.6.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.0-beta.1](https://img.shields.io/badge/version-v0.3.0--beta.1-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"ecc599a4feb86257c5e368ed839377222db52e2c","_id":"@ptkdev/sveltekit-electron-adapter@0.3.0-beta.1","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-vywqe3rNlDsx7naUdCoR0tZbzhcmsIs/fA5ij3BE2z9ui0nfdBdaSBofRj47lfuPIH6PWdgfYMrP5fEbYU/gQg==","shasum":"2e5013089a13bb4e526249e2e67ad2ce2494efc8","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.0-beta.1.tgz","fileCount":8,"unpackedSize":32956,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHRweG0ZDSGk5MTiWAiuLjxY/JfPudYzrFelRwGSptMIAiEA5aCsItHEjABocPjImgNqFevfVFC4+VtzrcP9rijde/k="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5/f3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmontA/9EVOBr3p2cW0pOLt+uhf7r3LGuX19nRAnyO3QR1IR8/wN8QgK\r\nsI3GlxzCb4H67ph5fMm/nB+IZ5Nx6VorH/XtS6CDTGBK5hzBu8NEIPzeXwO3\r\ngaLlXD96rNfqjHfOZPy4N02XDmwPvX8Z2U/azSEP7UBixVtkQ2DSu7ysRNtg\r\n+kTDQSqqhPQUUp0rohiiNyzIX4I5AR2KXj1m0kwqs7tX/iFwyByhmhTub+tz\r\nAb8CnFj95u+gF5H8xnet0BrC3+MEh23nstGJk4Axvo8ZRDWNo9APSX5EYZ3j\r\nfgAoP7WwC+Tm0b/jYt15itqB1Wf9wB4Nu4WXVnyNxKNgbTSewhtkilTHY9pG\r\nRgOfEjk0n+n3aVneQNNRNrTjVcRQs+EkwQEXw7OgiygujodsKfYvoTBTPZiQ\r\nryJIk43V2vGcFMYTqvrXQBqvEvfXAK+TWKIHMaBuvrxe/vZQRh4Pizh2w7ZR\r\nExs3DPJvKMWMu6w3rJlIfbFcTMzqUuewoJK/3hsKVHITukRj3lbOskJAp2Yw\r\npc7WnSfmrJUcpNGDC+ANnsbR3rt2XxakwrY4+CfbK2cDcyKEetLyu+KaFeVc\r\nnO6AGfZMly3YJ+cV49ECZh2YspzAk243LCIDFzU86zBvdm/A5lQjPmpU48CE\r\n2Chbc6B/woukFxKeH0Uwn1MV6Bp/SsUN6oM=\r\n=Yys8\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.0-beta.1_1676146679102_0.15895100212736546"},"_hasShrinkwrap":false},"0.3.0":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.0","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.13.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.51.0","@typescript-eslint/parser":"^5.51.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^39.8.0","husky":"^8.0.3","jest":"^29.4.2","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.1","yargs":"^17.6.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"gitHead":"3566679474481e85a48b46fd5e45f0d545b1fac3","_id":"@ptkdev/sveltekit-electron-adapter@0.3.0","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-kLcxWbyVLJ3nvcqXK8Lcn4S+CAdbMifD1IvCsta4o8HygRPc7RzV7FCZX7dEAtnR3Mjwy+B3hmtQzct3qDJ4Bw==","shasum":"7bdcf0df34412823e2caf4e8d800538145272741","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.0.tgz","fileCount":8,"unpackedSize":32934,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG8mlOB3HFmLpEojKflrFeDykNd1NAKxTB5swSb9wGq7AiAnHA/AtIMtSBkCd3rvVSzwG7DMlFDZWsS88dnedNPYEA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5/iaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoQSg/9Hpy4OEwjqsTW5AJ00VMbk+3MEUC4g0wAhVviBMYxSQE7QYdC\r\nseAKKRuumt1IATtIAE+9JxC8KFoK72/18uxewbPY7N5mpB4szkR4b1hby44+\r\nzgQCVWhUhOno/sVUVlCr4X3XDfkbFYpj8MUFr7/SZtrE1xrjlCVc714uPg3D\r\nCEpJ9whIoDl3UPDhjOa85kKGXmBx7ajc/JSN3j9prc/mCugTLFkS+/KgQ6Di\r\na6Y4HzhsAQH6SWWQj4q43I7ng/qXVqaK6bKcvZ9r6zgxR+6mQVX2KG1yz0bW\r\nVyhYkacrAd/t3nZ281iqdsQj/7Gy7v6ojIV2kcLl7vveOl6gX/21jfc9KmMj\r\n5rdeKotFtjtT+Q6qK96oQnhKMzhZ3HcnXSZbrXedAh7mMsR6SFsu3CxeZkQ/\r\nR93BFF9IXXYez5vwJjD+CEwzrVIKbQTa0t74qUUBFLhrMYvfbrR0POSJKSJr\r\nbmcPEPoJWv8wwNTe8gAGCVYyBI5G/BHuhDEOllU6nmxhWXsYrfyZDAH4rreQ\r\nwpRfq2rqsbqY7mROMbJWZKg0P81/NT5HkcpPmxfXWoHhKdETx5+sniLDr9kY\r\nSGlwh5ZyKuRq6v1f+Xjh34P46uYwsWvD+A6p60ZFOYg3Avznfvn+iVDxLiCv\r\nA5v5pOfPxDvILK8Uz6WQcvjrmCObSA7aKXY=\r\n=kFZ9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.0_1676146841914_0.9462498872544969"},"_hasShrinkwrap":false},"0.3.1-nightly.1":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.1","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.13.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.51.0","@typescript-eslint/parser":"^5.51.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.2","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.1","yargs":"^17.6.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.1](https://img.shields.io/badge/version-v0.3.1--nightly.1-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"b5358d5db0c7e6e73f506e186d642db827239e6d","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.1","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-E+/Z3LmPCPze4zZqxWl2/Xt/2V/dFuQ2tGxLW0pps85aouwh6W/vtTBSqhI+fQ4CuUgF0mf0kYMyEev2vFVNCQ==","shasum":"95efcd0c505e98c7f6548514d8f57d8b683f9921","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.1.tgz","fileCount":8,"unpackedSize":32965,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFf3flS5rlYt5rec8PeVB2olrJqLnmTWGrksn/0peCGKAiEAyAUg1dXnZ2GmLKZg4xZP7LyseoYSosLnaAvkU3sGaQg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6CVNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrvPw//VoqIwoTkHbJiwggUDg7s7B6tsI8YAKq8OijDmvYp+uhycPjy\r\nLzjUoq8kdLx2S0eAI3ka2NHbGsabXGPnLoz5Au2zP0E/EmaVYYFc24c9gbsh\r\nl91DZwJLFCuZfzTH5pRltwgrLBHyvdDAPqk/zRTs8TLZNiyxb6mX5XtWRWW6\r\n/utrNN1I3VpL7pYqDDroSDkt0LzvJpVO/smjXlqnIhjjlESQfWlekujlbyKV\r\n6c2c6fiUd724YQ5JK8Q62Pge9q9JlA4Wg/gO0MFpHkNQziYH+zaJ2fKIm6Rl\r\nBIGMIv4KE24TCuPHLyBcUmKUB0qed3WmebSuFYYdsKDeCja3BDneasG+JZZR\r\nbMlDlmOc/bexkOTi5Rtuxd/wP5JDZu2Tjnqj28s1zUegn8yAGt5ms2CHOzrX\r\nsLeOcXFuBIkvrwU/wQ7/QJUVbT68YSb/wyPqNgnvcHeSLZGRqv+oyyWLGxFk\r\n8uIS/e4dj/CV2Z4/TEoBqpzjUrJ/YT4WEL3fJHPqvI1C7sdbbu7Sk1RTmSJz\r\nU9AJ2ILXEGOH8W9ccvHMrcEaRCNlIA3Mxo4r0jwUu+Jex+eF8TasUM8Mj2L/\r\nlyBEHtUbN1hubfnQVjNhWDalkS4qlPjtADf7MgdQLdb6dha5HH8Vjwu00Qox\r\nmhUQyTifxBGB7h4oJ9ZEEksud1FPKQQCjWk=\r\n=xY0R\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.1_1676158285154_0.899621320427803"},"_hasShrinkwrap":false},"0.3.1-nightly.2":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.2","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.13.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.51.0","@typescript-eslint/parser":"^5.51.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.2","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.1","yargs":"^17.6.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.2](https://img.shields.io/badge/version-v0.3.1--nightly.2-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"4eef6a569509af9f2141a1b14dfc4f0c6dd4dddd","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.2","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-J9nEjHBFpLaImB4rt0cYD6Y0R58eGR5gqvYFgNM6Ymw689PKxnX5vvNOhevJGedzJ9uRqWuSJje/2CfR8KyTag==","shasum":"b96796a2c1922d412570fd91eeb62757f146d52b","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.2.tgz","fileCount":8,"unpackedSize":32965,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICFJQLO4XdfergE+yX2+neQc7VxgRUcJg+eie0MpRYsQAiAoiB2m/CJpx/eqn2MGkqPjH6B2MQGJmcBE27MShRWepw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6XbZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVew/9Fi8NegP+WPfSBke9OZvW/M6+qZ8VhVx2DI+BS+HJ7lJWQ1MW\r\nXDLYfRJKhSHvV4sFX8LGGhOSE8vFZIhXv4p+l29Z6Lq3uYqYbUQ8YU8ogxbN\r\nbPlts9FkcTbsqJcFaIXnzEW0RFYXCwQe0ZF8t8t+Vttgdba/iyKpVp8NA5Ty\r\nWOlrzsfGJbsXtGPOgjFL9x3kRppBHQEOZlBIp5l0V8bHEfLEjvUm2syYtMM5\r\n4qafFfH1o5WOaz7R9lotV7x04qdaVp8ErQfSa/7YY+feQp1nvqTRbAWd9CY8\r\nKAFCR99w9su4BRSWiDxZ5ZxyhfmkgjVZg8raWP8Ka6ocaf0tRvoP3CKNyOEH\r\nqMesDW78z3HeSBkTFOrAqKOBxIDobnaSHJHRda+AocdNnGABJUjeI8mXmyjq\r\nH1qAY/s/nbJdhgPJYu3S2TySwgFAa0PsSwk+QappOzQkvsz3WN7kKkF2jDEp\r\new8CLAyWfyYfJoiGJmxNelkThWEyoVHkXD2x4VLExRpufiLzN8IWi1FkWE9r\r\ngbyMradbtrlVhmf+VcdpDTB0k7dxmr6k2jXmBUsRZhYaavM6pn6RsFeu7aZn\r\nrkohb0yUTsuoQk5zZQrshazbJr9tnj2qZiHZhNlPPCVNu39Aom/VuwT9qFUp\r\nEwOAHBvhnWjKhTtnc7h1at/4FPLM1Ej+K5w=\r\n=JD/z\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.2_1676244697483_0.8820833087317987"},"_hasShrinkwrap":false},"0.3.1-nightly.3":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.3","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.13.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.2","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.1","yargs":"^17.6.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.3](https://img.shields.io/badge/version-v0.3.1--nightly.3-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"aa52f0eadf915cb932a39b7b3a429149af9fdd7a","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.3","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-o7Pc7Tge85Rsbs0PDwo+0wF3vAFxDDrS8bPM+WiidTi2mbJ//CAPBIUXw2Fr3CHMLtDgQ+x7k+jHNbu02AoTog==","shasum":"9b921257ea6d9b802dcb2e4d3a8fb667d6df395d","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.3.tgz","fileCount":8,"unpackedSize":32965,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEqUO3lgHz/wD29sS1GTS/bZv2Q9VpkruonkE9HfAHeuAiEA7ruCFfKO47aanwHM/U8ETAhBQPRrbXDnNEx+bqtIMPo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6shPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoEMg//YidNanXEqb+jnlkAIuQJB2CbeTI13CANfyWqSxUIR3u/SFN2\r\nen75cuoEyALtegdmExywAMfMykrSyCn/WJA9HrU090YjwlRgyNhryuRQA0z9\r\nx6WOGQ4JGyROZ/H0AOvrnPIc1eKLXQxCcS1upS+WOTPyXn63uzzv1vYNkuOs\r\niWwtCbxEpPXeRaSuQR3X1G5gLj8gOhS0E/yCdwO043oAibUWbGKlzitP1mmR\r\np0ctZsNDaGoWKSUyrd+ndHGmzfI1SxWsfGLdRugi0M6V8PbsLLblxI77AT3P\r\nheDccqh3Aws/Efc8uDB1vaGGqaVQojyHcnEexdFURNzaeYiGh9X6vn+k65Ls\r\nu+oNr4uKp6L18WAVOYxYHPNai9eO7jwREuWDRqck/UA7lGUq5xjFJYJslOu7\r\nbWyL1f4wpqgYNvo//mKGi2JNAYpzFuiiTPs1l6vFYOLkC30T0IwPgOIamI1L\r\nw0VrvELf+/g+t24CvZCWZ5ezO1EGgqKAXJArmLM+e5qcr4s/oWb1fFYJDEnE\r\nLFMZVC7cyaDBfXuSV5m6nk8JadAs0cZTWbwN35n64qNpQ/CXp800jdpu247W\r\nxy4TCSr74Zcken22679to6E47evxCMXJGPnYwZY8b/+eeVOHLA+z9CYvckHX\r\nbtLEvF4UhLdnUElUCVQro3FBPDTTagDblnI=\r\n=Wai0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.3_1676331087252_0.9791321617326842"},"_hasShrinkwrap":false},"0.3.1-nightly.4":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.4","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.13.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.2","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.1","yargs":"^17.6.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.4](https://img.shields.io/badge/version-v0.3.1--nightly.4-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"6483be4ce2553d0f945a68f2fd16f334ec2f8c0d","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.4","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-DSr87/PH8ul4zXEQWuV+dDlyr3dG4yEDDFEDr9kd5a1+IzRAH03eQfmJMqYLdbB5viTWWGrZt1IJ2MPiqCrCxA==","shasum":"9e86fc5b02385064bb9f91196363dc52a07476eb","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.4.tgz","fileCount":8,"unpackedSize":32965,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGAa10O0S7nXxzV1ZYmxivrbnuFMmA1AoZC3gI6d0MeCAiEA3IXXJoChfm5h5IpQRxkGiIsloA7rFc/R7izcSethAoE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7BnYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqXtw/+Nbjz8+e1l11PWaOuAYwXUGomuBK5hA4WVa/3S3M0rNvLCzdL\r\nk96Zw4sWbZ/vnO4CoeIf2kphoH/PG/BO3UwJX7E2mUPmVOYU27Eaqg6AYEN3\r\nGutMrRGl4bliPlI1uMqP/wcIoz994srInn6LTebosKw60bfa8/CsB1hpaFsb\r\nv4NMaZgCHh0iD9STG1QlzXfp1AHOqNDG0YHCWGeEyVWl+b1qtOcWiJAu7N+I\r\nw/3yZS+NF+u4EctE5hL7vGFxg5cF2NW9O4pVaVXp8bJ3OyS71gRFE31ONg+q\r\n990YhkfgTHsnnNfOceCWkYGtWB9Gvz1s/Sw1hQM6xiB2iWeMMp33HLa/WY1f\r\n4uiov+x/IkaBWp4Pj4PYpM+Ne4ZLOvMGAOCgpOPgLebSLR4F4LWHyyNmYPk6\r\nr3SUEHVFzXTZZ0q5sRXzv/G4p1nme+2YkxVheGkMBzvjOYYpsLaJHXxgyIO/\r\nBTqqexqztmCzIxjZ+nr/yS5A1IxpUnMvTM7u04Ld/oGU6xX0oOg5BUR5sjcv\r\ntKu8jLSEA3w51k5TjI7RBNg3usbLGjGjfWJxXVeM7SBcGni33BdND2xBlVd1\r\nMPCbDln/7ye1ColqjdL3z9Vx+P4Y0SCetKAJ+jCkLz9vJjrs72wN4WqvhRJS\r\nkMFTm7LvM69Us0h5K02BM29DXgavkd1uKXQ=\r\n=iTHE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.4_1676417495769_0.16833200463426223"},"_hasShrinkwrap":false},"0.3.1-nightly.5":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.5","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.13.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.1","yargs":"^17.6.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.5](https://img.shields.io/badge/version-v0.3.1--nightly.5-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"e1e3b8e99641e90751371082d1cdcb47d369c0f2","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.5","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-Ut7sCXCMFfgOO5jbhpxrSVK/rZx3X0BwIcwA75+bnmmr1X9DJWUilSFOTqCU3/f+zgMt9QYSdsX0sBXrjuSDhw==","shasum":"bda9f6d5f3663fb6909c20c9452fbf7cbfca166e","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.5.tgz","fileCount":8,"unpackedSize":32965,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBwLFTdUqwNC7ChlupmNMeoZVbzDu71uMvgXEWTnYD/tAiEArbqsdRc65i51byrJ2WJuPactDSwbbJcJuy5jVSCC00A="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7WtKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrjaA/+PJ8pCucQigHAxNsY9+knQoDs7qFW+2+vbWkgHMIzKzE1/IbE\r\nF2kNPtMlLwuldry7q+4x8fm9v6iYwhwLLWKa4wb+sgmZz8JGlE/2qeI7kWvW\r\nBAJZs4AhV+0xda6Ctwkwg17qBBF7CQwKxswFrdECYsvEmDDH8OASwHIiePt/\r\nT4UxDniphcI8N/lWndn+SD/XtvdAzMsoQsgDBFo9ANRqUEh4eLjuZV9lpNNO\r\n8fi1olec2+wxQ/rlJOhY3Ar1geiPLRIPxFDYxXtvR3vCFA5C0N08qFEg3ofz\r\nXVhYyHOEDguYqJ5ebRote69yTTT3bz3uPMqm0ymAMb8sMdui7IdQj8/v4afH\r\n8S/o8UAvVxvRvBAW4ODdhN+AERwLchTwWicjZUHKbtxbdIjhYWobVHb+8teC\r\neToypQ+QPAS/z8IAxeH+OrHoQVtrMK/HpKyC33FMOuVeAfNWvxHf4Y5THHu7\r\nhH0nULoQkEvpLlefEOH19fqItVOA+x5UjG4Sd4fWkQxa7P/bonhBDd6GG7Rx\r\nObrobengg+h5sCNtYc1ErDD/R6zhgSM1WcMyq5m6nPZBYZM3e5sEQOFMJ4gG\r\n0E51qMbObTycDFhpltCG4PM93GXkyoQJ1ODpCI7t6la6EQmbZJE1CBTnSdjc\r\n1F9wO5VJeIfieM+1MskE1MOc32B7WRqxYgM=\r\n=IkGy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.5_1676503882253_0.06322324922938982"},"_hasShrinkwrap":false},"0.3.1-nightly.6":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.6","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.13.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.1","yargs":"^17.7.0"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.6](https://img.shields.io/badge/version-v0.3.1--nightly.6-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"08bea6232f8e90ff4416f613d15c556b82accf82","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.6","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-IiBI8rFk3F0jgX9Ejr4AeQhDm1Ff3HNfnt/mUZ8cvokjcR4WhdVmqelmwZOgKFg8khdz+Ql0mKj11ghng9rDwA==","shasum":"f35bc5572c61290f15c591a6089ec79793bff338","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.6.tgz","fileCount":8,"unpackedSize":32965,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJpKHLIfM660wB4KA7c4kmqLpq7LIkwOnyH4bb/8JtdwIgaSYn8age8C26zkjWTE1oxJY7+6SiZVhtUAWVhBTIgUc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7rzGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmocbw/+M65/V3lEkWbgcOYWGEtz1asQXsrltrD38mt6xS0lNZNkBlMu\r\nO/t3nrc86srk1ClPYZKTSeh2JicCU5VAGXWxbEEhiHQePc5/AF3MHOxoa8kP\r\nJZ2iaLK4oSIJh6C/Bb4JmHwa65sWRqoUM2H0KvYQtPYk81RVjGo/QlCzAbcC\r\n4wPVmGtVLbCwzmRTCsk0p1GzEi9JByJ5ntguH9Kf3KFFWv4eHi3z3RSBkp0X\r\nHVVztU93v3Bz7OPf3NjRhy0b5XhA45b04WjYrQJu/rq2Pff3BPDLIcS7vPhS\r\nC5ba+tpaPI22Go5b/2EcfxqjUjDwoxhdpsSxMV1xSIJnqP3HQs90aPLIfqmL\r\ncmgo272RuoSZgs4F/el9LCF396fx3E/bk91j9GBLC6Zg4VHj6ML565ddXKqY\r\nMxlagwsnN2HiU8ITUKmim95mPheBRxIUD52hVcLqf1FUOa9d2iNVgLXkNhqP\r\nEvs4QfUhwRVcAxIrz0oxcmJVBbDgJoDql9r14cD4FvlIZPo5rtnDsvvba/Rm\r\ntXA5en9DW5Pa5PFzPa7VT1rooOLdFHgd9Ag77IxHIoZHtOE3bSdE4TtzRgoP\r\nn+NVBp52lCOf4xx9mqyu44Rl6dfhuUNbakZH1fKOJfFV6ykuFsPV/PME8iTP\r\nMB2x7k65JsCwcjMhAfIC4N+HegDxz6ueFZE=\r\n=Bkyb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.6_1676590278538_0.8540636150794019"},"_hasShrinkwrap":false},"0.3.1-nightly.7":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.7","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.2","yargs":"^17.7.0"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.7](https://img.shields.io/badge/version-v0.3.1--nightly.7-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"bcbd744acb6ff494f1462046b159d1fe6e8d2d12","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.7","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-h7ijIz9scALJ4lVitIUPvKOqiryVI4oU4EEIVSUr+zUT1iamQC2uz+8xYnCC3wBu0pMfmjBwb8ptYN5W5wbqUg==","shasum":"f024a32a1ed62d46d4b028ab0034a393acabb8fe","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.7.tgz","fileCount":8,"unpackedSize":32965,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJpdD/8mHqwGoYrK5wbGg5SytTMQ8hhXUfMrQ4EHzx7QIgEgb9MyrE4qk4y9TCR6xtSvdYyn89TkdcmSkzVRc98YI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8A5MACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpjhw/+Ir2jfTnoHidxpbImmZjAkKvk159bOnrDdyJha0AAOYSOAx0F\r\nwpVdi1n7Axeucqom05o3MtmgN7+5Hj0XhZhEb4O53b/BRiVV7ie6Vj51uLHn\r\nGI1smBzpwEv2MNv5eh/S+W+Wg00yda0jlIOU63qAqM10sP/MBxZR+K52YqU3\r\nrpds1z4sM0Oi60J0GHMxBH3dSJeIg76ko2ZNiaHJ+bO05u68+E/ps0eoqt/b\r\nvQj1VoGi6/dLZHKFWzBsaT0FbBXoH7y9Num2yvQ8DZL43ivHuEOCzXcjz9ej\r\nMPkk3LYm0EIsqG+roSk6tgcek7aOrMdy+cNvwfrm0kEMMFfKafpLsdbnE8sg\r\nkyyJrl0yHaxsq47MJ4zxjmCZ7SAACsfO6b4SVyWRO0xx90yXRtn4wNT9BimE\r\nJWcPogkVn5jr5u7KpEKeFncsrq/gwK7QWdzOjdB1qNd8Klr328rTPh1jgPuX\r\n2tg/2nxJKoHN+A/8J2azQkTdLjOgqcmm7vk3EO8gbC9TOLmv3AgeIKL+dCbG\r\nlX3NS41tBcpbvYt3KY70woSY1IAPcDuFrDP7JhGZDGbGL5GCaJQqeq8i9Jj4\r\np85eockrDClrZ/I9P2As+HTjrezUnYSsRdM2nj+1Z+zMNqLmZ6vXz0BaJXiX\r\nQfwWNVuQHG1s5kAKCJ82XhA6D0/Tju7nJ1k=\r\n=lAEx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.7_1676676683929_0.8128764392571179"},"_hasShrinkwrap":false},"0.3.1-nightly.8":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.8","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.2","yargs":"^17.7.0"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.8](https://img.shields.io/badge/version-v0.3.1--nightly.8-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"a1f98cf1f06c364a76891ca649498aafa6dc32a1","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.8","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-4cPD3mnLmzVsmFzkeyfJHoiVjWYiYj+WPuN6TtgayOkltStmOrdM59DMztTgvNlbwwcVqZotd6NUFH8EPxhSiQ==","shasum":"678706129a9deed3d812602ab0fbf3a8c7deb53c","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.8.tgz","fileCount":8,"unpackedSize":32965,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCa97V6oMX57yeB9D5oAZF/sRGT2IIoHRknhftC4UV9zgIhAK2GziuqS5Bv22zL0dzUKz3FxizXEKBh2UoJ7hy9fE4D"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8V/GACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpcIg//eB6Ijg4klqhQObIIOja9k9uFGXWVt4PVhCFRxrifCzXqiUmB\r\n/YflSVEAJkGEQHYY5YUJG/qACobLs8EsKxlU9GBlQ778WAOm84Eoy6I/zamg\r\nyv1LBz8KXJzVRT064KX2wDmJaXBzP1pSWViOyyCN3bCQPKvKFNp6s5z/3wu2\r\nbdzuul8j2dZomHeRYeq1jqqASBtpWJDj+Z3X59NjvJ7BKQVcAjrAng7EqVwQ\r\nnrxKLClCFhghE8MtRyxaw+mMfs6t476ftBf163yFsXg9Rn0BtADuh491fC5h\r\ndGb0/bfIV9kh59ZRBUe5rGeYCUWaYJHg4wOdlYGQBmDLgGKMtIsbpZPwU3ki\r\nkN68CJ1hJ3Gfij+06vr77v6shDsbHITNVPgCaHL1Vbascb8UDdm02q/glVJu\r\nsgxr/fraTi4v/jeuULnmN9XLDz4YG9DeV3tZ1FAHOPqlgyEqm1ONbEFHDXxW\r\nnV3ah4LGHoQqc9lfL2xTT/6J4g1FxmC2CDsvZ5jDuS1lJGa/YAdSb8hhFrIl\r\n6FBdZBkZDTlA3rOiFqm9NQdZQTDGhfUiX7hArq6NEZcd707eYOQNL4XzLM/U\r\nrykgaNAhb6hKy8JtPCWNd7dKeF4tvloyZV1C32vsseY857+cXH7KAAYLU6xw\r\nIv3UaIVrDYXvittf+SyWsb7nEXlhQZ+/sMs=\r\n=NUN+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.8_1676763078621_0.25497602309351053"},"_hasShrinkwrap":false},"0.3.1-nightly.9":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.9","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.2","yargs":"^17.7.0"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.9](https://img.shields.io/badge/version-v0.3.1--nightly.9-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"3c3fcd239aeaedf642f40a7aa8d1255f79ea9c2c","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.9","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-0NwCXOsvjeyEHPRZCuI+/a9SHSLJXWZg03L4S/G6vctT8dYqTF4VXarJ2fFGE2dy3RxQnBEgzNEvHgS/UZ7Lqg==","shasum":"bf0c8ddef40403b41c1340f397b71b5795f38d95","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.9.tgz","fileCount":8,"unpackedSize":32965,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF9JoswDBjqbfxfl0uRJeYrK3cAfLx62EYmdHPXXPqy5AiB5VcHugLxuGWTFCCZfa8XplMDKszJBWnuYD61/Rf2gMQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8rFJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoh4BAAiUEmgH67H28jK55Vu3Zkrg+yrUO1Z6icXqRL566keSE3HHf9\r\npZKdXYd00YB3GzQmFo4ZgWxlpyIHM+Dtm0BpF5EZvuonaQlUj6cVPth+bqDL\r\nOlpTDdFM4y4k1siK4IyVjDyIQQ9IX1gfjBApsnP2I3l2JNC8fbGVeZkc25NR\r\nOYRKu3349GSN3eK7hHYH2Rxq8y4wTj8km5zGjM1q9dWpQ+cAMfMV62Z8tolE\r\nKZfWfcnVQH7XvRf6KwW6LkE6NvvKnV2YQuXlSyW+Wska9eDJXdmaGqK8ApIo\r\nTLle6GYlWiExZGgJFY3byknfmbgpBfRtulxLqNG6aGUtX3A3lSBTjSeVl5F7\r\nv3p24l1nFytute4U/NKhwPRiAgUoA8E3V8HLxApgLzI8MLDR76MwO1th+GQ2\r\ngRtz+4YZD8Gw9EyICcLBid0CPpvciYy/IcFATCl6eMRIlcn6qc5jQSWM7/bS\r\nnr9Bp3Ku3oeP5mSai/RZvK+azSXlNhZs+QAVaB7sPoYbpucXhSGWRLrG1n06\r\npIyYGtY33gb2thcGqndlxOPa7wq8cemFuLOtMllcDwf1MO4Qa4uyixO2uT08\r\nypehAP7VCuJ1HLehh/foVCMr3J0cvbiL8iIC/nRLdQTFozMNa2fv+ZYhh4gd\r\nMs49xI31FUoVGmhdcid/+sEPODc+Q/u6RsM=\r\n=4QeZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.9_1676849481378_0.36823610530277207"},"_hasShrinkwrap":false},"0.3.1-nightly.10":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.10","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.53.0","@typescript-eslint/parser":"^5.53.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.3","yargs":"^17.7.0"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.10](https://img.shields.io/badge/version-v0.3.1--nightly.10-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"282cbee09489cdeacf3f570190e80f125766b00c","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.10","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-Bl3V0P6KQS/GEEXc1qhmDrlDS6Qc3YO9VDtA+OXMeNREFgFcgm8p3wixVzn7u6FAHmf5JJFVqOLUfb9OMTxvhA==","shasum":"05f65522cc6eb63e7b78a7e5276a299e6a55c50e","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.10.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGHO0INoyxtjQagv6AeZPSTOChgxGvJKsuqT5PnlDsgEAiAlDNmp4n1CJr+oqcXurEGgv3vmNel5ZZ+8w1EkHSosHQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9ALJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqJTQ/+LAlyxPhk1QiZ1vVX4/q+AYAp7afzG6DWdXh5Lfbca2DO7UXT\r\nrlyyOlGJAOVOeutUCnFJ+F43e+er6aKHQkO9LQwK37NmB6PcBGlBxvtXMx/F\r\nVZxnPJ6dXihqLbFNq5qF6jv6BflH5hKv6oyT88z6iGQFfWbi8jogDQJ9bTUF\r\n+oocHWvm6LRH+7YvQ3xAzkPklBA2P20R5FSSl06iBF19zplEehxj0nTPcuJv\r\noZaU2P9+6GlBP6jHnccknuwA2zyce+bBV/KNJj1IQ3zpe3i46iht5WiTxs+r\r\nn8/NKETZqT44DYtLVh4IM2zxOhkOD3IGBzM9v1kE4DCKJFpSIz8HUckR99Gq\r\nuJFwObE0d9+2DXPnsZ9jbbEcHV4HGlJixY3u733vWxFJCKkFzZ3d+o9lgMu6\r\niRfE2UAyv0fgHH2SrDWLsMrYTFaKzsL3ozCFLsBdb/SoWXfJeEBVyJ+ipzBC\r\nl+JY6mkMvKzyUfaEjYENKSPx7rjV51VEbtD8qMdWcvRLFow3Y76oCG3tmVH1\r\npiThQP5KCXdWh6315EPE55x13dOWO1DEHZWSZoWi7TSxYu4St2u3to6azh2m\r\nut1W7OqkP+CRmF5Ng4/+S0KioHY6lhhnK+b+BtDtJFLRo7B00EqulUFAN3sw\r\n0t0ajlpuTYUyC+D5QC2FlE4jdKcBiMrw2vA=\r\n=GgWQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.10_1676935880786_0.5698860077844243"},"_hasShrinkwrap":false},"0.3.1-nightly.11":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.11","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.53.0","@typescript-eslint/parser":"^5.53.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.11](https://img.shields.io/badge/version-v0.3.1--nightly.11-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"5b8076dd8ab07a107a9df241a75cee5088fb4da0","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.11","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-EjXoSOMuopItbykxFEOesyp3da8OE1kZhVRefjeHUxPHR9IJlztXLXFctU2VSl/69616q6nJkgVMflYA096p8w==","shasum":"221d4912aa57aa0eb93897aa7ae80b3352b20f6f","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.11.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIESZVBteIvf0pmG4z+ZCagXjVg5WmwEcqbySUj9bZUNMAiEA7UsvQHb5NmRANZQTARnrNBKgf1lIvCOUou/YrVRybBc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9VRSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqTww/+ITOmz1A1Lfkb5PjXAjDTo4IQQJg1Y0fZdhLbV+j5RoqkrKUv\r\nPOota5TfeQubPXdYgYb4V13ohai/A0Y1OPcXNQx+U11mPzBKW8lUwBAWBDy+\r\nulJunza1JR6nWkn2WM0l1ianAc/YQk0S+a1upKtGVf/auZtBoLqkTOChJ9Z6\r\nnzXxwDvQ2cC313QcTIUsgkUh2bMK9Bo/PrR93oeB6dFitlRXj6PFDi1I4Xiw\r\nqXWb5vAIkdtxAHAWYkdeFMfSsbtfE0MbDdgRNO9G0OddufspGUkh/gDDjeAf\r\nPW+G3lFbxri2dMcMroBe/IkNgxpqkdFzb+wNvb3hggBZHx8uJRGqf8uvuplz\r\nJF6lZxc+OWp44sjNuPFeuJMn/aGTsoQhi93HiB3mu23GhBnpwxqpC2TE6AwO\r\n11hRGuVfILA2QMJV6oFJ6v4ncdK4U1g/yXP+PXVv5Wd8psnTW0ipGbVoab24\r\n78/P6ZSNG4IdSE7EWwDX8BNVLznlOE4gRzwL8oDYbOhRW83SuDRAr8FY+zLT\r\nFTtB58vNmLd7PAdn/CU/SGkc2EVsXWWdSm2PZRypD9A3gU2CtpRfDO93aOoj\r\nFq/gvGXQvvWksnFXJCd3FVZexEn76Waz4cdxk7eDzNMV0MjC1YUIcfgCXEay\r\nzYK3DstQIs2VohFbPNlTR6GWeM25T8xKmmk=\r\n=MFos\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.11_1677022289912_0.949698511660874"},"_hasShrinkwrap":false},"0.3.1-nightly.12":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.12","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.53.0","@typescript-eslint/parser":"^5.53.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.12](https://img.shields.io/badge/version-v0.3.1--nightly.12-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"dbd604142432cf06e9fccd153a4b0936d7e47443","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.12","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-co6kmGA5VQfAyzK53sSTZLtGWsi6kDG4WJvKYLAFoZCuYW9GpAj6wULKOQLoHbQhyG7D0sUWoH8RN9hbOt8SKw==","shasum":"fa8dc4ef328d54d5868e8e326adb966e3ebf03e3","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.12.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4n+SnHDFdI064N3+vrG1jerxf1zf3X5ANGjTyGkwDKwIgTh87L/9kKoOpRUykBJ+cKjtXB20e6fGFbiWDAuNNxPU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9qXPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoadQ/8CZECDrl/oKMIgXgjwm7Ez58MUnSyao1nKZVB8U+bTBfSpP5B\r\nNQq5EEvR025KlqhWXiVUBDp7CBS2h+fJbgyLyCYCqv0Ca2L2QfmM8ODXFQkT\r\n/oeX1U5N5L3u0qnw+uGdMtgyh84GWYEyfDWxLqK17KiIA1lcnodRYDrYR/aC\r\n4Rv/JIwFufe8za5H+MyuZkAstReIoYhbSXB1mQf11gcsvIFLrTunRJA/4yIn\r\ncOx+0fVYGJ5RaT6QhmUMxAYFGCsTcwsYiEjaFLH7tvjeV/aH0GjBPVM5K6lI\r\nw3Nr5A20iq+GtrA+ODodTtmHznP/gz5QjspgMA8EOoNWZeGQlvwuIEZzN981\r\n4AP/aQcH5MC9qVtOpjxTeqGJImcA9ew8ZONLMcXaNnP8tMVl2dDkmGu5yQC+\r\nfqrJ+mAoyQOLn8iR7E/zt/w9H6k57wI+6yrHs8BF6/lKLyed2n/xuRYOtK45\r\nDLvWHFYT0+fMjPNHhr3wLDd7uAp60mqFyz+Q97cSE5D4HGgnVKMmNOqlzkMJ\r\nCJYoPUIecQ8E03X0K7v+7nu9lrl+v3nMPk33sBJ3/zkX2Ng1eLfBBqjE1oAP\r\ngli+WJKaqfafTOH1IHPJu1sO6DOUw6LbZzdNEdGYPlaix5zeSt0z9A+iZ0BQ\r\nAV5SyMj3dAIjid8iP9tb2vmzjevLreE7RZY=\r\n=cKI+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.12_1677108686918_0.7638285042828514"},"_hasShrinkwrap":false},"0.3.1-nightly.13":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.13","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.1","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.53.0","@typescript-eslint/parser":"^5.53.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.13](https://img.shields.io/badge/version-v0.3.1--nightly.13-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"8372b65312f907bb3b762086b235d9aaf03bb952","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.13","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-UJHrC+PTsHsnqXMbttrX0wyYWb8D5plPys+6l+P7H+bxXSCFG8uXcemSi90r3uUygGemNxCv/eRAvsgNEO4X5Q==","shasum":"0fc1c58c0f36c06bee52c21a69d412168439d83a","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.13.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAmMl1B9Z3gBXh/WYDscj7d2dYyhnFUnGCVDImxu+rbMAiBWaLs9vOYtNcBu77qiZpv1hNrDaqkAvQcMb3frWwy8Mg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9/dbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqHZQ//aGWFmRz4UB9G/gfYWDoeK0mKJ3r2qtxB4EUN6Qldixv6631R\r\nnDRc8dR4KNj/YGXOkVTejWZyZuJ4waEqhK8bLX+347s4CnbdmzojZ+TBshVC\r\nHvKs3ol6yU8pMJX0KRApV3rYsHlLYdbLt1EZuAOPdktYYMdJrsGggqXx+Rzj\r\n9akVnTxjR+RFq4CuiX8v3Nnq9WLc8964XxqSICCibt82H4k2KPqlnszKDg5s\r\nBC0sO+pzNliCbPyKvL8mrfwWRAt/Nv8lH7UOViNIZLxrb9uUM/fsff2Pzq44\r\nysw/YD/Yb8c+CTQKiI0DXVSXhX9l6PXHTboWpGDW7S8aE39ouyrQEcIOMJrm\r\nh/90ptqGWzE7fODltxwjQFg/OqPY2sS26P4WTeorGHZaCpjhRRddbX3LLQIY\r\nNBOoklf9rBo07n9SuW03xt4uLFtp34vZTk6jA6GyTIesa7KaFhPoHk5YmZmi\r\nK80l5VFQ2MZ+Z8P7kaiY4H2l3G1jYDWGcJBRwkUsaRAyErAGeYPzNSVvG4/O\r\nWGWhV6TYSL/yVbRqATE6dPgsfULgyOjZKjfHdqH2WQhPkrsy3OECH6gHPmDr\r\nvXGWidOppaSSCt4b4ui/pbeVO8tzrhw9vdscvJVRGuc3BfhY7OmcxhAZe4PA\r\ntQ1/ug60EG8m6h0U65rxrvWJe00ua0DUS+s=\r\n=ROuT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.13_1677195098900_0.5228609724567077"},"_hasShrinkwrap":false},"0.3.1-nightly.14":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.14","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.1","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.53.0","@typescript-eslint/parser":"^5.53.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.14](https://img.shields.io/badge/version-v0.3.1--nightly.14-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"bc37f404e3a7426d8d3c8f6c07ef55b010cf6d05","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.14","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-d7BlH02fON2BmiWvfe83rd+xJ7GoHj2x2mwc3VUtZNKVpiizH0ODj1zDJBN/OJ9NFJoiicu0y+knCo1vuHH7Aw==","shasum":"dca9cbed8900066f3b2670bd5ad1f73eb1019f4b","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.14.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICUxSUJWYSJ6beggzcIA7Epmi/6dJ/C9+rBiIWBRipqVAiB9HC9UChp5GmPO3NZjZcpULjXEU+KcNx6sCYmwvvLaeA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+UjEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr+hA//WlLxrOCKvuYemF9vL+AVr+IAp94Wk/4LI7wPAPhiriJzVo0d\r\nkm8oWGjf8zItKjmnYPUc4gbEMUmZ47edE8dfV4/UiSf+s0ueCFfuYr7s5KPl\r\n2v1Xr8EhFDhIasrNFiU1DkmkBirXcDaM7Ls4NRBi2Ewi/eqDDKzZbY0G2KWo\r\nmGQcVn6Ppx88kDcHq633Wue4CZ0ecVt3j62mDY2E7JntpXUu/NdQZoVJWOKj\r\nqn4WUBWRSJ0B6VyKr82ATwPQBhlEU3kGyajECEGCVML+iw2qvzXjTEE41YlM\r\n9yAX10OE4rsYH5GrMEkThDsKGm8w6H8ZxHuMSRlxGtfd2yKAp8SGfU2q15tf\r\nc9Hg651cwN5Vx5RpXOn0Bqm1ZbNVggIkfTlubT6708g11RNFDgs1bx/2UVna\r\n2omHZ9wAfza3oXp753TJ24YE5NLhuT3X/nwS4hRAWyfq8p3/9P57V4n5InrJ\r\n2KHqn53IagkHSkVOv+oaHHkV+YqXOcPRQztyDii2l3chcwCBOIPzsUtOutcy\r\nkNRp8Q6WRIhlxkjicaN269hbSjxmuqHaLCaPYdlcxvvXunoLRY5dxkvxXjJe\r\nHmObd/zwC0HNccHdb9XVIWvxjVlI7dh34HYRFqzn2omX9PPP0LaPZGrolIAi\r\n5NWUYQp0SAW1bd/L0BK3wiCQF7GdU9hAaYE=\r\n=6gmF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.14_1677281476368_0.7549386107848661"},"_hasShrinkwrap":false},"0.3.1-nightly.15":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.15","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.1","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.53.0","@typescript-eslint/parser":"^5.53.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.15](https://img.shields.io/badge/version-v0.3.1--nightly.15-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"c58b912b48f99e85cb384ef532e9549656130fa1","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.15","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-mNXgmAlXSOTWP3+ExjszHXk3qPT4ehrGB0G6pasHroJyL6QcDEAQUAUZr05K+7l0k0nXTY+9BYhkpTj8Zj2+YQ==","shasum":"f3b48f06c9288479f19973cd0da00954f3827d71","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.15.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDS6FM/8aYX7VP/fyZRcpgcnZnNqEAFkMLOmI4pwQEXpwIgChorLsQi+xcg4DKgngkAmE8csLR6Xop+Xv7PyQPT9T8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+ppSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrZGQ/+IUORO07/Mfnal1e7RwyqXATbFmM6is8kuUlLD861XhY/O71w\r\nNcutFVjHA18mJhCJdbGFCQdcyNHvhZIeiOtz0f4didVrNIb5upw+9CUHGScm\r\nAwivunyIkRnCcVc64HC+stBvxk8DRghejlPp8JrnW92IZP5Ybizi/JAZ0zv6\r\nGkUuWBO3nF1i6kXQmH7QKEj7j8Av24ZZnVRVHOjAlBk4V+hVei9sG0e2wfck\r\ncFuTUwCMWOZbZ8vLc+HmsvNUo5gTs3Ow1frcBw/96JdB/koXa+P4H4jNiLT7\r\nI4V/qsNb2GVdljf5ng5N2HZlsEDaxvwig29rPPKPIUNOtOKA7KYhYuhlFOmp\r\nhTeWtlYSXwPKi8IeNzByPLNBFso6q4tfcT45uDHPAF3cSPK4cz8tUnad3ymw\r\nbAtuI04DcCm7a/Db+hc9zSYKvahhffThQypX/xEvdrpjcnSAVNVtu3g8M8dY\r\nBIMbzhOBPFkTQhL2q/hfCxs9kO09fkeAx3co2fzjcQpCsQiyUDMF96RO5/Of\r\n++9TthaIT9RDuoSftPz86f68UyRM5BpNv+6rg0pdGUmsi/5bqE7iym9nSogJ\r\nwbupC1a1TClWSJxQlEazAq21dd0h6W5mhI4swEqWg5w8F6h32q/tM2ZUnu6K\r\nGU56uJp9qFjZoZJmLJXajtBTP7TT7+1neTI=\r\n=LYSh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.15_1677367890333_0.5947158825009082"},"_hasShrinkwrap":false},"0.3.1-nightly.16":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.16","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.2","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.53.0","@typescript-eslint/parser":"^5.53.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.16](https://img.shields.io/badge/version-v0.3.1--nightly.16-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"89cf69af3bfcf92be68b2d632eb6556d0289b483","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.16","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-xigmhCk732w8K9Jy0UuXV3yfukAAsJuoyEduTzyPxIGC407l6MH2tbBV+SQMzMtZ4HaLXH0ZmSLlZSWa2QJIWw==","shasum":"718241b4fa7c035d978e5acd29088363df9bf892","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.16.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjFKoIDTDPHtkvbxyGSAbl0VXCaMxFYJsf2D1CmwtIQQIgTgZspeH+GlbpH9T0TXNqrTuxJAa1wBvaNxlqEHHyzNM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj++vGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqzuA//SjfQbYdJO1AyCyRB05sL4LUm5wB3pMRCwglSxdFv5jXYboa3\r\nDtltsmcNKWMsoON973rOUvl9lAfGuEbGg9DJk7br83I5ex2Pw5GCw3UH9Pex\r\nCU2BT0K/XBufkLqzMsMpUDhCTmWA5fgvFqXrFpHhBHyxhtBf1BjzK9a9OcUG\r\nk2oCxswLUxAuLzeqIUJ/xeEfdH2Ah55r02FzjVogQ0D82bVgU0AkXkkpryMA\r\nMjLGOvnBJpPGjWh/jc6sqbW6idrunh9NMxnIVGS+pcIhmBvpqGnq1++Ld/nz\r\neqyYVC5PlE/APGXy0jaxEV7ZUBGf1wj3id9Yj8JvFxCb27MeFanmaA8n2nej\r\n6JLfS+2ZbggGbA5aqpHwo4Eq4KiUFrUsDDWtAdAbH9boA8ydU+lhrdwTWaEa\r\n59CbKEvXFvOopBU0Oc4o+9QoWU2AL0TgO5XzNK+DFhAlHT4st0J5OWL68Uya\r\nhYfLxHrVhAyJ8uocEwHDviOzhzDMOIFvxmcHMEhomnRM/3KgasL6l2ecpbcQ\r\ntn1TDM+3fuTpIvp/2bj78XrvrqKA4VKCY0kf5WltEgGz9sWvEEdhwVxMKhDm\r\nf3CtU1xtqpr5ogLqqF4ThONuUXG6pkUbqwEOYWn36beeZQk+y5w4Q4Oxte9V\r\nZqANH+w4Ze06PPogwM7Bae0+ePG4incyhyA=\r\n=7UJ9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.16_1677454278094_0.7172329998365541"},"_hasShrinkwrap":false},"0.3.1-nightly.17":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.17","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.2","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.54.0","@typescript-eslint/parser":"^5.54.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.17](https://img.shields.io/badge/version-v0.3.1--nightly.17-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"8d6a97c440aec4772ad525737d0a9138312676b3","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.17","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-nrZybimIYs3yx8xsRCAWMUbzir6D3DBA4cCLnwC2sWQrRxAqOXTcGrDWNpXVrRoO+IeFWuiMMQKs+za3iBbmxA==","shasum":"c6a1ad30d55bce1013b103b5811d2b7048974b89","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.17.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRiqffCG/VqKlvgzTSSRn2WuMfkMEUpCq0vPk359f0EwIhAKGe5rpZSWXDSJ3XwvkY/zViXJRa2wGvhNIPuPQO3Y9B"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/T1hACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrAJQ//cjPuUEyqLj0zlPppy+3XPjzYDMK5cnD6z13no+L+hHswxcTN\r\n+36vU3T4yUvv+Ckyq95NXnxYcgbRBjsKQlgHobmpzk6+xs6gKYvEhKfWNsPy\r\nBOsuIwtX/IhiZaNUJb99bs0U5iCjgyIc0+XU8EdGtiyIPteoB1uF/GQP1CHv\r\nc+mg3Kjhqd97JIF30m0HZ+19kn8/obWxjRMe0Ko0XmjgRodwPAO039f5rwl4\r\noGorlCmca0zcNG4b848ssyZ30btR8008u1l+1RtukfJ3htOl57WOlCPoIKqh\r\nlxgrN6YtRM5Scq6B9XdKJ0XnbzT5Vx2av23qoPM2Pnf/FgmWlKmGnQe6vdF9\r\nW/oqvMkYihjRY4nHhucbvzJQeA0a4ypdBGr4fLNrpuGtmB0XyxBQZZpr175d\r\nhv4bjYd28MktbV7ghavl5xjr9FSwXw/pcP+mN+FSink8HI6YWNFhw+gYXo8M\r\n74b1+Ku3VdqwjSYZFTU9EfTiw60o2SkykWFoKL49ZZeZEqv0BR4WzgxXoxCt\r\nrON6WysahrfnXVFb7RwvyI40vCt0wtzDUfuWN+Ixo7YPwvFykx7M510hz7o5\r\np4fP4TGh1mfqNKdFQw7HorjulYDhgUCBKQqrZeOyHTNLUnA6yeh+kx1YnYgW\r\nsbpN53FQumrvsU+CdwUZ+rfzwd3s1a8cF7c=\r\n=LD1V\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.17_1677540705371_0.8419716421290655"},"_hasShrinkwrap":false},"0.3.1-nightly.18":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.18","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.2","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.54.0","@typescript-eslint/parser":"^5.54.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.18](https://img.shields.io/badge/version-v0.3.1--nightly.18-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"ad4c46ec7dc2b2d1ad52a7ed22ffbc143e5c29e4","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.18","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-zsW0ak18hHQafGnKCnGmQJb1nEWxi6ztp4ThKi3kJqHAGxyhS1GS4m8SJ7Xq/8+MWhvnx2oO250J5ne/RfFGNQ==","shasum":"e6d9f6e592bdf1c269b25e6da21c4bed6f161a41","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.18.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKTOHiANLTBi9/SEJT6tljedmqKpdQ7S48WBWMT0JzGgIgHtQZM9oNdsMXx3e+v95k+yhevOjc5aDIxEOgUjMexwg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/o7QACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqmGg//RyQ0GVnS8+DDml1n9PlqGuWQZqtW7HA6bnw/V09VOKIAeTJz\r\n1v902mPAz7WlwJtq/IDPQOsOQQjWJdq5jvx7VaXSqTvpUtCsE6Uj5wChof94\r\n0GmGRq6diddoQvT6v1tD35FbkYtxf2YR7afXLf+3ZocEa6c3UHluAgae0npf\r\nS6Eq6+rryk0HR89a/ZW24WJVcTzT3e7Qi/vGhJKymw99/vz9obra2hs60pVS\r\nEiPs0O0Q9tqOAqGATCp9QZ8c/YJlnPMK1ZhPovqNSkh9dtfjPuYPA6XKJ3lo\r\nwS3A+iNfG4dupqqYDYwiZoLeRrBhQWBppR9RBz1Dd6E2PengNg2BS2pNzxnv\r\nhzyhFqTh8UuC5M8jyy0UxBy5SFOzuJhHom0GyEw9n3PnmCZUkJRehIulzf/9\r\nMZ+9WVilnut+UgJMJjm6KGW9+RLdulbWsOP/efbsCVKsRrdTmyW/J0q/0l6V\r\nHnM3zEJjFPrrWkRM7CAH92qQX7V34ixjuMhizHxXYO3IiHETuwMtjPurqXWN\r\nHiRcrQ4SJ8YnRnIhfqfxogxkpswYKI9CGdFHmq2y3zi7Wwd2mO0USlw8j3KK\r\n9wTScpljt12x0XesJOmsJkiDPK4YgXlwicqePc021c02d5W9RUnZCHbynkkt\r\nEPv0OHD1+MLdITN57+0U/3KF2N+5bxT/2og=\r\n=5Vpj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.18_1677627087917_0.6057438030936175"},"_hasShrinkwrap":false},"0.3.1-nightly.19":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.19","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.2","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.54.0","@typescript-eslint/parser":"^5.54.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.19](https://img.shields.io/badge/version-v0.3.1--nightly.19-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"2e28f8bdb4331f166e0d2f65edfc635f898d4b52","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.19","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-GjSPWpo5PpOPTiAouhoVGt19LpjT50lUoborM/VXe3EngNcabrmEmczHy6hZbYaCGboue4KZ9BBGVAfjFj78gQ==","shasum":"eabb38f620921667d806b1c248ceace0bea0212e","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.19.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAzHAIpn3yN/93YNkjVQI4/dAQ83m3RSBFrVxduMHp7OAiAQbuvmcrg0vzVoySkkT07tfGE11R6L7rQILtElRlpy/g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/+BXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqypA//WLU53JiR6vStPJXXds5q2pA7kGQ18mYXF3VPRcbHoJ2R55l1\r\n8/GJ6N9tRotsO/a6re/GOm0cgf6mqr7yV5Z51wVeOx+FHtgvEc1oD76j6i4i\r\nzXrcZVXJXCcUOK7kXM8XCLAMbxH6S/5EsF0FZNzpZ5G+EAUaoRKSTwo3FfZj\r\nyiKI6wyBWQnPIXDSNWcN+HqBrjfhEmA+32VYtJGLYGva8t46TRqB7cg1DeRa\r\nyXyNjdY1RVk/Q9TcWvAFsaPkPdW/lpKcE0XH1EYUbHjDeF1H2twwubcHlSdd\r\njaLb0hP6MBi+AxkBMotMyCOlxYsMah9DLKFshP0OlViDjpC4Q36plPgdmUlY\r\nZvWycJ2iloNGi5LFpoSAQn7g0VmsIuNJKruQGvJPfgKMV79TSa71H4AQmlyL\r\np3LuMf/guyHGHYjckx5QScV5FZSpyS9uq1IFtA9NYxo06ki3+ikoIla4572b\r\ni/QlrHZNTBWZ8tnGUuzpOhPTL6eS7Rg7wsnqlH0298nw68kAKW6gPb9in2Y6\r\n/OMBpLi5XtmcREYwLrYw3dpkK0oUYYIpSea8AmbyYEYwXhZujAfSm1YmHj9U\r\n6LUxAB73x4tJWWPqGjx19CFsNFOOMVzttKWz8EJrdCKpI3JftGwekyb+6TBo\r\nsctPzKy09rSeGySrtz48vYHw2tnZrhNWaa4=\r\n=kTKV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.19_1677713495336_0.24866957899371966"},"_hasShrinkwrap":false},"0.3.1-nightly.20":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.20","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.6","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.54.0","@typescript-eslint/parser":"^5.54.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.1","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.20](https://img.shields.io/badge/version-v0.3.1--nightly.20-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"600080e9b22fe63a28f499a4c1375d58aa407764","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.20","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-NKe6NWi/NbewidCWPTS1xwTIoZ2/0uKOfARn1aR5ZGDtvb+fNwDxwDq0IUq1fpD6N1Yd+mnuH2bIeYMvM7dTSg==","shasum":"1c707fee8c4eeb9128cf49c236ed5982f1fb326f","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.20.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFX2sqpgXi2HdHAaZsnIu0iXHeoc/bGZRuAyEffmqYPTAiAs9wWKtRIxdZhW7sNAnJDoatUjd9/sfDehnQYjqPVqtg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAoNUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrEcQ//YYVSMI7B++ZWKDH4bcFZ5qWrtHoREv3CNl1LVV/Sr/ShZ+UX\r\nGo1avakY+mnliwzyCOwOk9c1+gBh/wGi3nyaG1S6X6eENcvAVlDei65L30F3\r\nfWct5SXw1K7jeY05NkoELcbW0lsFt7D9deH6kMgsgR+EiL2RliezB3u31HA1\r\nwKU470MV4NK2vNuU8ezOblwhXLmNdH2sxQx0EzO1iljbKNVnmUPmKkC/+wBF\r\nWbiE9TNIBnMr3m7Ff5syDRSBWg4rb0EjNZKw4mIT4AgmSKAq1Gr0VjSZWsJo\r\nlbsjzOa3emk+84OoUhaJv1EzjXn2/1tfaJ31tHHQxKPvqeSKs0fdK4f7Vyhz\r\nJt6WOywxx80Qh+qXH6y09/+kAHC+S+5Z+OTIblGowbflawh0CYXOPwxMBM7G\r\nCN0eIbjKNJMg8SkcAPPXe1CWq800393Ufo5yNiI6fbzKroljRPDcZ8JulZQT\r\neRMQg90v8fPOqGK6hytzKHd7tts0H5qEhAZFdXQFEP5dVeeFCA2FFn13Di5v\r\nRphgwOGjlEv4xjipS10nslJmgZSiOw1MIvta3TDdh0bkKpU6fFKGt3yAZlx3\r\nnqiyZhv9Vn3LLGrY01AvDAS9ARQ4GobdzjA+QEwxIqt4ep8M7JxLydv5EX59\r\np8OJAV57KyKBnhr9DPIgXly1Y/ofdZEqGLg=\r\n=v+Fc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.20_1677886292692_0.7577271709479434"},"_hasShrinkwrap":false},"0.3.1-nightly.21":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.21","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.6","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.54.0","@typescript-eslint/parser":"^5.54.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.1","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.21](https://img.shields.io/badge/version-v0.3.1--nightly.21-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"d6a5204e661b6a158c55153b70033dc2b3af5f67","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.21","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-IDWvXMjmZJB4hNTTVl74fbc4sLOinOcr3hElMjIalkksiQUM0IdyX8e2BbHw/jorB1ATFHmEgYnn/ve1VRYrmA==","shasum":"411b049af074617a53f9529fc83f6d81f25aaa1f","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.21.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzKSC9r+nfTuNkPUpx57lS+dDrndPrY+KttXSDThU33wIhANw8oxDqLP8JfjSzSlJisyVsqmaFLHtEoZWMCLLY7BgO"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkA9TVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqvfw/+IrHGg4dIB06c2h7so/wBezXnz6DitfFsG3/OcohyWi4WYbbU\r\nCAIYVNfs45V5Fw3AYfhjAKBjLm32ss3QDabAOZTg6oySFl0FDEZf/NFSpBg+\r\nI77ypzcm656WWJSO5kuDCKxAJYjlCvfNEUJJ1HBikaaUGMU7A8Fsk173v04b\r\n5qNADMCCiS05shEYWcvzQrNc4ENt1xr7L5jpNiF0cDoc69e6Ws4WpsxPyMRq\r\nobZn92HYVGp82lj/VkILmzeKbTOzoHeZr9Wsgw4cPG6uWzeYix3QhwvqXBo4\r\n52/jDds73XzjhCShBgmtG1uKB6RPM6hKKXhx8JMmMXWteaAEBYMRtrSTvoGe\r\n6ci727Xmbc3MDe/27BnQdMgY0AcVKWvuISeLXO+TaFM7jBy9K/dkMTH5n0QE\r\nkNq7ybS/twpbuU3wsXJ4iLPpMJvjoTWipyHowjHB/e1434F/YBRdY2J+PwpJ\r\nL0LAW0iBOIKkBJoo5+urWskxXKN/YHNI5KReQQ6XWIHrfzJ4LX9k9n4SHLwv\r\n3yRhW8CHl38XtCN1lS8rUJscQIJAOifQl2gy3VsUxC+lCGoVp+LkQyUi39CD\r\n854cG4iFcoaXkZPXwMFZ9uJsjOfJ+EYinn7Nc9qXFed8nXJJ1fgRJda3PUOZ\r\nc+c7vY0Q5PzeSjkphpFWgCd09RleKUqtefA=\r\n=c3dx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.21_1677972693410_0.587057277023235"},"_hasShrinkwrap":false},"0.3.1-nightly.22":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.22","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.6","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.54.0","@typescript-eslint/parser":"^5.54.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.1","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.22](https://img.shields.io/badge/version-v0.3.1--nightly.22-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"b88ce140bcd230899ef946f908ab46472cd478c3","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.22","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-R9WtcEQKU7gRS6H9TVh1iQgaBQEWISELBVZez05x21kkaKOmQq9hVVT/Yaz+BkeWU6u8Qz/nQ2dmPmSsZd02nw==","shasum":"64f5d3251d18c680d4bdeb9bd92bcfa0754f3186","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.22.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHFX3VFXjwHpstRu1M9Wt+LbeDHrjNdM9k+fQwy6efcqAiEA4ivpqjzrrqh2Z8xfvDLsdWO1Jh1istfTyH0yemxDY4g="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkBSZiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmritA//Rnq8K5UH/Z+hmCwPCaN+N20MPilmXkA16Mvb1fYZMEe+3eAs\r\nINn0jClT1OYYuqLmpbIX0YGb09EPwXrG5vZyEAeSMk+Wtoo2y5Nz4IlOVlet\r\nFEVhuK+BPSlEw2vR/vM54aHfNfTXX94cy7K7XQgt3VhRYzEM6dZkUYyLNF8w\r\n6avUnOk1agAwqPtQtlX9YNpK3keLtDeHr4j3mQPQpBdNVYr8Y420E4Tpc1s0\r\nqf9a0ShF7nGlHJQoYE1Cb7xSJek+RxahWuxy19oIDz/+0NkrxrhBuv5gSXdq\r\nfS9vWxCt7nVZeVbn7LosAYEB0OAFK7MMmjFyOkmtptlvR7pjj+QsLXh6azrL\r\nGaklwpGglL84bDgKo0RdavNIl1U549D+tkFUxVUQPaIWepM6futm8DIfcyfs\r\nGBIPhKtP8yGLBI8sbfYfVJmvDBD8rJ+J++HvqnPWETYfPSu3gTT6nkZBExoE\r\niQPkEy+qXDPJY1Go6XA+YA6QSbv2+mkb6vZ7A2iz+U0h+iAtEy41Atm7Q+E8\r\nq5Lm7aIke1yc7Wb8cvozB3GXJF/JdMTJKsR0wodKsy1HAa6yyhKM3pc7BCoC\r\nTT6Mj91gm8HIt/F/U2cUbvKRPqChsXMD79Yd8U24B86e70Ay8mHtNDYzNNz+\r\nX2xu2FmmP65xtnZ8BQVuiub5iKag+XDrlBs=\r\n=pxZN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.22_1678059106153_0.21473522590235405"},"_hasShrinkwrap":false},"0.3.1-nightly.23":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.23","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.6","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.54.1","@typescript-eslint/parser":"^5.54.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.23](https://img.shields.io/badge/version-v0.3.1--nightly.23-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"fe1e2f0843ba80072c2a7504036c0f7a013fc555","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.23","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-UHjV2Wnt9IHfOkZ4TQrLqf6TSZmBiPDRv4xKnxzsinQYhlTm+jf1JGlkkiQH0U5ao/Hpjz/KVWkWbts5+CnO9g==","shasum":"acc55690bd28adacabb4149bdb7a8239e9df20a4","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.23.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCnpfCHF1UKe73JdaSaKR8gEgKOitqup6zS+VyOTL0CyAIgNA6ESRqPYRuC9WLrGRy8d+XCkisR7O+Zj3g12ut3Tso="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkBnfYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrnEw/5AO6h4U8VKkMAqyhZ15nYpDjl9VVNl6Xs3AkuS9VCTC6MVz5w\r\nAqyF3wYIBMHOQA6adbGWkn6FH4cyJ6vKgusUVo6jINZDEqjH76G2zZGM+AzK\r\nEWw/QhYYGyrARyJBThuGoxodkW83GbK0z/GPGK2xRBvUhYMeQJUB7z+gdRon\r\nNnLpJO1tN1n79YJpKq63Hw7kOJrjOxVpYsYXq5N6ihy5zzjdzJTsT8k+uEKp\r\nrB2GjZo+QU6ZADocUC3ioGPg3Vsw6JYLRe2S6sDGhSjbq9t200QzE7MjB0KB\r\nE7KqiTq1STipNZ3Ym6anbX+jxGqWRuQfHOa0Uz7adov6jlbjGkSbhmCHQEGJ\r\ngME10dmn4+n6chLJabfagtx6RyvYtX80pZoJgWeO6ea2VKwZELHEN3wtY7+d\r\ndMr1rxY5xhuJF0BJj3/QgFiC3eSkK/jBNFCSV65bY7SjryWzgZNaPQm2vgJ4\r\nQdd5Lhhc37RtwvgjHN8UdgzRobCaq7Y2XUKgoI+OTLj9+j/ZItmbaqAGV/Yw\r\ndBGjs907pttm3VC95F+Iqi1W7y+k2Z1Gcu5TAbpxJhIx3jYkWKtoX2pxb8aV\r\nwVNB0LR5HS0eSFg5XDE7AI4wnEjykOYWoheu5yBzaxYGzAZHpHl1Nv+CdIBR\r\n1bBaW2PlN1g5DztjWBM1c5auWaIg0Gsacmw=\r\n=g7uO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.23_1678145495832_0.1318617121957002"},"_hasShrinkwrap":false},"0.3.1-nightly.24":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.24","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.6","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.54.1","@typescript-eslint/parser":"^5.54.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.24](https://img.shields.io/badge/version-v0.3.1--nightly.24-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"cd9aa80122f4d4f873354317e7f45bd500c202b2","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.24","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-tUtUMeGN/190DmF2YJ64D9bUZWorqWk9LXRWmeCPNBOEMSde1ozW74eoU/X8Q/nJsS4fiHSYlg5cS/bNdZz8xw==","shasum":"2ca8a92aeba8783aa4fcd9c4185a63f75bb0c3f8","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.24.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIASqiG4BXYOwUa9s8kw3qRSd7xv1XzBekFcUr0Vqw/FTAiEAkb7UAsfEc7xKAzOzN+lanUZ0201DphWyMtwaf9WxRNg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkB8leACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpuXw//VzRqBQpFShPZnbuBUypjcIlj5sYF5FDyeYVHZ0Fi31W0QCCt\r\nhMuvlGkPQE8jzYjgTQIbX9NRpo0QNLV+MZPh+3KdDLd9NtPRWqYrtjMIAPEw\r\nbHOmQB5nzAd7m98sVocfjbn66xhVIK9gmglmyiXjhDMdGQqAw+JHgWt3CUnJ\r\neo4d8zoM1yJKtfwHxn5NM0Y+uDrUg/IFGi55SC5/OheHqhOC6FWhz2WgbE87\r\nussORLFOgtDpMeRX/+eQbdfL8QpLh0X58RNPUMAM355YpS2NavURU2bnrRtF\r\nOIJ2KoM+6d2B6gCGSotPXUV49ytT7DixDZoch8jgnMEGT946IDqumcEaK1nT\r\ngL68AbFl7fk0KbdLgfXyAFXNoyBp8PZCw+io7vi9wh6zUtRYIkP0TM8Wfaet\r\n/dPAfh/tp4SLNLq/d8k2jtJyVREmlr/6fNCkM9XTVW+UUnSGpzFuteTaYlpF\r\n1rPoxA30OtPI8Af44YMN4si8nZbKIQjK14QgOyGK91At8j4B52NfzGPjzhmJ\r\nHQFLfjyCq0d4thBTP0HnXAvNnkSri8w9WHJeruZYp92BNJQe02njdNcOLFbk\r\nxN1bLoaqqmVrsz/aBsM7ce9NAYQpYACRh+Rwhk9IOesBanJoHP0Y/8qfJCAW\r\n2UzKHSTEUoUDlC58eX6lwIjbUqjjFkzJNN4=\r\n=k5i2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.24_1678231902021_0.560415218556926"},"_hasShrinkwrap":false},"0.3.1-nightly.25":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.25","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.6","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.54.1","@typescript-eslint/parser":"^5.54.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.25](https://img.shields.io/badge/version-v0.3.1--nightly.25-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"dddb1ca3431a5db4ebcfccbbaca8f8c7058d3f64","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.25","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-DTJMg3bhRNNgJvlq1p12eJALl6bApCLycOdoVETKG9J6jFizBV22ZdIuvxfNcq6x2qzrOvkULnOLSGeOfxU2lA==","shasum":"516e7d4356378e22ecc30fd8c7c3fa9be91cd023","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.25.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICdoYpQiMhex4MD+xXPe2EctCzYdU5nCHT6Pqk3EnxefAiEA4uwPZF5wNfGSl4y6bcNJdMbvBVjwnjNeygYvHw3v5c8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCRrWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoAFhAAl5bUFWKa00PEL5BZLXvEWKP0sefTc+I5DIP9sXX7jv9Sixcr\r\nENn5AppwapLk6j/wRfO87jl0q24sE0cq4C6zLb6jzyHljEBi/yOjeq7gfbgk\r\nqubCg+w/R4vhGrag//NNY/fQ3h0DFZ9PmQyhScxug5TURMZ4xsCXSS9WETvM\r\nHEzJ2AbFWnGLBUzCI7ZhYjHp1BmhXnKwL9l8iynZF59UhMkx6iKC0z4K3Cw8\r\nKEqaE7V4cOBTVAD/lqmjNixPwN+FpFaUduCmpEL7C4p44yRY4PNE0fFLioF0\r\nv4iBQWeStsTdDSuewKQoOAp/ppT4vd5pOBf6LtYXVdTky45DJrLmpOg6DI9X\r\nnSO7JzfCfbS1Oh8rAoKgCErJ+wLlW6NJ8G2P+EO+kk5PnowcXA5oj+5Kc0Rd\r\nAUrKeDSbvOirqUvuvaLDl6xpMWy+Dt1VAzZcnf9gZLEHx6cvIHRHGIaatsGf\r\ngyjcAKdWfaySGg+DvMoRyWI7S6Tdr7mkzNnPZ6MTiXX6tf5dKMHB7MjpMiSY\r\n0sKG+xZ/YcxuG0yBQb9U1rI8D+HMCd2GQ2UTT76Ub2+VV2DC0428yQb2LspE\r\nqUni7G+y0ITf9nUQ3zLeAXaJT9lW05ts+yVKX2lZyr33P42vdIxrgv2fopv9\r\n5vjKJvbnx+x4QWrh0Y6UyfDxHMYcUsmMDSo=\r\n=2qk1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.25_1678318294125_0.2634622129338946"},"_hasShrinkwrap":false},"0.3.1-nightly.26":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.26","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.15.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.54.1","@typescript-eslint/parser":"^5.54.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.26](https://img.shields.io/badge/version-v0.3.1--nightly.26-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"1616407b59f0b1d246028d3e2dcad9edd3598c71","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.26","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-c4yMtLZPyQ5UdbxhKL5RnPKoJyLwmNBdvWswxISMwtQmI/nAyv1vIjbOAXwitEvcnMfZjQzTH+d3CRSzldgrNg==","shasum":"21e7868036cf7c1399efdbec3fec270804a8880b","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.26.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDinFEEb9wF/DP+9kSmRL7qt8aDWXTt+EN4haQZhmzC8QIgdYEmZHYd4gQq+ckQDFcaRVE+W0QFepDvGH6My2SMp/c="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCmxpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpz6RAAiR23g9ayI5LRshKzp21dn32cgNyIYBtJOoXBui8uYshiNWbt\r\nFtbqiDnjpftXil0jPef8t9NMuxOEncoLwL+1U+1XpcRDKxvFBEx+7zgjeUoA\r\nEBcDmp/58pZQ9OpoiIXWEKEqTS31i2DGFImWlKxcLT3t18CFMjX2qahNhCt2\r\nWGeFtVLAWv/K9C1USbePghHe8919u1KSQ3FmQijGNNHoA3MWpF4/zaIOWdtV\r\nZbrLQzzQO/Tqd+K8hQjwmeH/Sxyi6mzbyWKSXLNdpwUBVnM1ZzDVyr+qDUYX\r\nxjOPITRJwy2Kyu2dtxcbcbx/vyhjT1fRu8hTJI3HsKMxhZBvAodDkXvH0XXZ\r\nltajlzRaA2qEYIpfTdMqH5/qV/IqVvPzzwbIdLpgl0AxYegzS/ZxOOifUmgX\r\nng/nqK5eYS7McWAxbKamAGEQFcJt8SV9HogbHJ37hZoEas8VKyULbatQG3Vm\r\n1YGG2xqePyJY8kuFBBub57hmqddywRDq+kRCo40nxKRiFrbyxgaQUp74pq4g\r\n5r5Ordg51Kz7gv1R8wXSuj7gNQniazlUIs/qW5Z4dNa8hU/4RAsTLtJ47K+b\r\nAcLgxDCsrdKoFCpEfbQ8HSIsKcJnZ+pT4poii04hCBUBEhkxzrC2B94CuDF2\r\nV/rhsnu9WR68ikJUzl5YK3mlyrgz0AwHCsg=\r\n=guG9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.26_1678404713111_0.4409151975094405"},"_hasShrinkwrap":false},"0.3.1-nightly.27":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.27","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.15.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.54.1","@typescript-eslint/parser":"^5.54.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.56.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.27](https://img.shields.io/badge/version-v0.3.1--nightly.27-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"aa082cb7ea55d262806a146c241a9ec6476ce07d","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.27","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-fc2wZXppGAT/INQE0pzg9DPj/TW2Rir7AJ7ZlhEm1ZQgdcZFCUuJ8sWb8unEOeKNZzkCJpqw/RLD1ca4PD3tfA==","shasum":"e9829da310cf831e715010330edfb4c882617c1c","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.27.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5ngM2A1F6QFIeZYDt0jOGbbnsoIrKOIZc8CV9mL+T6gIhAJkj8N9Ht9KayvCLmlYZ+C83I/wjeQhJBEmc+5r/sUml"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkC73TACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVWQ/8DLdfGnFrNedXhvIuNOTm42kf3AAcmdyefI+wXvoBMkvbQGJM\r\nSFvoWbj/zbuNFclSBEAwh/BdXConyKblXYzHeWg6+/MgimPqepRo7AlZZ92H\r\nGDZ9z3KEUYAEzmofXWLSYRkXNF6YBM4BdW/uAskdovut4AHLV2pIYbEXCSzK\r\nN/z6OTVbVsuh1aOvj+eQ4+ZZl3Y97zCrszf/DrflWXddgmIDcjq0RZU+9Ama\r\ne1IiK2JRuNrS+rCZNj2O+Ci6XtL0Fgz8wA314Tgx7uXW8rMSRr6yggvt9lC1\r\nojF3x/Ah5qgJhyFrryhtuKjg+/9zsKZ6q+o0J/kqhDDG63BytOIhrH2N22Nb\r\nTRnv4Pg7lV94TiRRxZJ7dGmxPhh6y7aZbu4ggHPJ/jD7DxVrzo+VORGxpTpx\r\nzhrVVBAW+lLGo8+gi1lEXjLY/+l7xt7jDCSLM6718Uff0WBAZUIZQbW4Lede\r\nRjWYWAUUGvPlB1wOEZv+4O9Z4QZUPKESMCssE3X1856lEbQJ4Nk5DwUTfHge\r\n+COgPJQ1ZS7Vg+W35rDYBAYl1EJbvWS2MSaqdSa5CCafYtWF1nTVrO5WxcdW\r\nGeqZcYY8tHlMHXuDRHDswJopU+29V8Rix2V6/h5S86mJTWONh0BfaLORBf5v\r\np/350kieGc61xEwjNwSwIbPsHy/TM0VjuNY=\r\n=KbNs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.27_1678491090855_0.2175551186279896"},"_hasShrinkwrap":false},"0.3.1-nightly.28":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.28","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.15.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.54.1","@typescript-eslint/parser":"^5.54.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.56.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.28](https://img.shields.io/badge/version-v0.3.1--nightly.28-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"fea68739923f2f4c33ef7d64068e59a1aa75b491","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.28","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-W9vmKk43i7/XnVtA1pfa2Rv0qy+t/0QjuFAJnIHTxlzsO+wollCZl/vr1VEEM4ecatg8rpsJsGNBnZ2DfGRFLQ==","shasum":"671e8b8d3a0c7ef8844be999f58c751a0f5b4742","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.28.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEuP5Z+LjZKXx7JM6hMjviRbnOcMWqwq5b+wfMjy77wgAiBsJW8NOb7kef29b7S6HUrsyKYM5rXdMsAPoAE9Sexsnw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkDQ9UACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoFOA/6A8SKnhkYLbx7y8HI8w+xX4nvwKsD+W+tQdWNZvLT+VUk2c+7\r\nDKWk8WQ/jAhYhJHNfwGOW9aBAnJ+VsuRtmLnhxDjXbB+cVq3ol+Xa+8dGlsS\r\nXvIMb9siGCJW2cvXuy7ZmnDXMkr6/Vt5e99WOuoIckIqLKZlwNVJQ+D6f4+J\r\niMaLg4T7Ch2VRApIGPkJVNt0rNIa+SA8oYSJgceJiBf/9n+tj6PUNCagpebG\r\nV8zGZRP20re2YZiCH71FxZVm9B5cugxW6Fqxxw1blLq5xl/83h9+Ax4EdZlZ\r\nctEh/elFpKetBw8MnaxE8t4BLBeTIxU5633Idst8Di0zdd/SXHcw26qlZSns\r\nNa09aqghrj3aRnZZkpRE5Y17AfOKJKY10OssaYL1M4eXbJfdsjhSMe4SMwSl\r\nmnU+jKM/LUSP4hcfDggFX7hzB2jQYLO1X3Bkpan2qpYqo0At9ZHuhP91cI1p\r\nob8DE4oA63U+8DQwrIoL/9oRoR2ZisQGg78ByePHu2sfy8LRrbr0qttVupRQ\r\n2EDvEPgS/vUunxixO6rpQmNHKfEd9022cESx8RGuUh4FbFE1QsYCl2eZ85Gv\r\ngin7XKaA350wc6BaBxL3w5EG3ACES0tYgveOTcGDd8oZCz6rysIcZlRXS0Or\r\nIBPNr6i0pBO+3jJ+8di0L29TXwOg543y200=\r\n=YRL7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.28_1678577491831_0.02748179028609754"},"_hasShrinkwrap":false},"0.3.1-nightly.29":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.29","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.15.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.54.1","@typescript-eslint/parser":"^5.54.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.56.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.29](https://img.shields.io/badge/version-v0.3.1--nightly.29-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"8ae39221ca3e2d2abee9b9fc7cf7827082886138","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.29","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-71CSFMYUXU8XSSP58erG/b6rZtzA1n1aSy+5NmNXpaTBsla/BPUqNj6gBRgUWYicSivEpJslvw9bpaZ9j+h/Qw==","shasum":"24511249775d9fa8cd5a9afa78c0d7dab85289a1","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.29.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID6mf9tvJ4obEq1ocEkLqnUbJ5Ny0UG6jLT7ymHAs2fzAiAf/WCSeWZGwSo70rGEITxy7f2N2M4pG1LzNYEGZwGz1A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkDmDUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr7MQ//fnWDr+wa2uSP9QKpFSpxBb7WfRdzQPjdou59i8JBomceUx0J\r\ny0xUJLZeQVBJpxKft9BivH25i3PEU3rUFJ0Za6IWO+xCjuoj1UbhpdKFnstP\r\n7FmDtRNp6Q5bPa8OcjTez2QFivpuTlMv0VA4TZR0MPgD8m0U/GVI6CnlB050\r\nBi6BfVXZRhzRRoc6/41K/Iiw5Lq6gC6+ka4FIozAwOO4wzD/yI7z+WymGf1F\r\n05oDKSBPKKeKIrCxE9O6pBZB9has0nehaYNFUseT+CKVaN3sH3ByXdwJV8DM\r\ni5Evbm33HuqPWYh7WXS8Pq273dqnr/yedjYL/VsETD1y9DE4eSEmQH/eDX4S\r\n0T7BxB3SaFpVsfV4dI0Yg6K8RuUV8BI6lFvy0PPGoLWglnZNaHzVS3UAziZt\r\nXTu+3WiVjlaXoLZGqTeYa9KwlPDvoVzMde3Gb9c/Tv9Yv8Haa1+WDArhA0PL\r\nqnoC7YIwoBuGqCHU5tcCohybta8SwwKrM+BvqLEn14UhxUfPkgdA8jWfcS6S\r\nd1XCWAAWaBvPDqZm7CNV89l1vheOE4JKrH1GkwmNHLx54/r6vX5KDMmtn3+C\r\nTc2BhlI6Vehtm5yFIhEoxRzwRkpHM4K8Q7SXBYLhnSihqvPZxDYInvja4r65\r\n4ZYbLzawOYJya3bvGngzLT8s/kLkDBoLVYo=\r\n=N2tG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.29_1678663891801_0.0381115950043911"},"_hasShrinkwrap":false},"0.3.1-nightly.30":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.30","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.1","@types/node":"^18.15.2","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.55.0","@typescript-eslint/parser":"^5.55.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.56.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.30](https://img.shields.io/badge/version-v0.3.1--nightly.30-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"3904028540655a152fad5c21371356d7e99bcff2","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.30","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-XE7VSwdObo9FRLiMtvU++eQW32QKyt60jnFHLAed36RYIm40jJYsysNBGD77OEiVMYC6EtF8dzZZkhisN8dwyw==","shasum":"4897cc80edfeda239784e785a208677b205084d0","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.30.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIKvd97SmRSCLWta34Kmj1SJZuCMPCBSVgETShivG9jwIhAMsvThDJQGgyu+zQ6bQ8JCaoWDkbaH6WP7JCK+fjQMmb"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkD7JOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpsNxAAk+6f/aKgoqBUbFxwBXCSgflutgpyK/xxUOzSll2v8j7EYcV5\r\nsDJF5Lyq/vJLVX7FV76JNBosJHkaJDKM8W+TSFKzGwNAwL1IOboRRyIwe/MF\r\n3BR+DdtoAH8DbqYo6gdh6HkP5t5B5fiW+/fJfA/w/JxiKVjItmPttRhfUwz+\r\n+8CHuMupHiL88XnEvaKt7A0odCG3JWViXTIsx1swtgRl2fhBjR9X8Emb60M8\r\nyJcrN4Ab3jRXRsg6Brd/AOnwuz1ifCFGFMb5cDMJBVeRBUJ2Bv80Ki/4DSNe\r\nMjpyIXgIkmiHOrbbfx2oGn0TNmgq1Hg8qB61jHjZFZ3lrvuqmHL+ASP8fzyO\r\n6hvYWYvPQo4hvc4YERs1cCY0+iynye9yx1Ewf7gsfc/FKos51vv+gQ8sqOXo\r\nrHLgZektii0GJXMPYReJVToQdxUq9lskTlDwkhCyFivLTI0mWYLYGyLyzXvf\r\nlrnrmBLIejKZQMJCid6C1b8MfeH+rsskDY1rN07B0TSXzmruFs7+GRaGkRKR\r\nHxJVWo1/bccgoa0YDwaS/uoV8HLtVIe9WMkPG56vXSwO7u8y6IpXjEmRjyY0\r\nBsizLpQZ6bbq0+hPFyLdYuj3za5Lo1a8EaMDokRtGReH28Bih2EMWvzbeXip\r\n5H7VQsZjGlTbiG71+KKNO7vPbpXgWpuVWvE=\r\n=gkHi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.30_1678750285775_0.11682236329604345"},"_hasShrinkwrap":false},"0.3.1-nightly.31":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.31","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.1","@types/node":"^18.15.3","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.55.0","@typescript-eslint/parser":"^5.55.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.2","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.56.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.31](https://img.shields.io/badge/version-v0.3.1--nightly.31-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"ced7b288e3bd9d0321c87b76dc625f0e4d4fc88f","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.31","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-HyrdrjnuMq48SERfyU5IjIbeYsVqBxOO47Hw4HhBfuHl6EEnTOfMRfQWz9hjfOEi0Gl6oq7YbqaYj+HDqyuzGQ==","shasum":"186517b29b7acfdf33464d0e438e8c21dea45fd5","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.31.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqYpA03e1rTIFhIBYhFvaa0cI0TrmLbLh2TB5AShDjwAIgXpA/6AgirfCfUpQZFLj5+tDfkJJXxjxAYNOhRsSBzE8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEQPhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoOrQ//UO1boMd1XUZeE74EOFI4UTDuK6mRySafNZlw3nvhezYnujyx\r\n1gnwuMvsVA/cJyDi/FQCyDoZMzaPejGrSKrravhueDPbaktLwL+ndezeHkXO\r\n8PQfPjOhLR4UMHEHfXOTaVv8DJ64fJZRJFW2DvwrvlNKcGr6hpvqBRLR5les\r\nCZPhUY6lFe60AgU0UHBvaiMU0xIzox/K9L/JvHtzVjhcW+cGdir4Rj8ZBZHl\r\nls9WMfR09xBuC6g6cc8W+epsBVSDvPyUSwRSxN/Peh4Rz6BvgyEqEKhyWFpl\r\n+IT2v5wpPQght8Ndj2iIw7woskow91kZDM4OBv8m9Ab4D3kEDvnb5IMxNRSh\r\nHqtQZv2ydZHFfeWyTY1kNAP2A2HzXvDI3NVc+Fv46lMCGx7q+FYddqCrAyph\r\nLW/ZzzfvGsCNjxRSvuzsfsut/lnNsTJSImK1GUjlVYhfH+2AB6JwboDbKt8g\r\ngl7SggBijFXs4UxnBw/y83Tcr0eajdUCfq3O5Gy721WTsyvUdtDtVFLP/AYA\r\nw0cTOGs9c9x7iH59t+axX5WbLvBU1+Hcs9nNh+1obvxvB9dWTMWE+whNfo/x\r\n8M0E6yqLi0FH3gZGH7THIQU+hfihavRflzzIutnbDLR3cUAlxjcOJ748YC72\r\nF03//cQa89Yq2yrt28JFHMXQmafk2FG0K6w=\r\n=c5Ol\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.31_1678836705812_0.5298309434155362"},"_hasShrinkwrap":false},"0.3.1-nightly.32":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.32","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.4","@types/node":"^18.15.3","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.55.0","@typescript-eslint/parser":"^5.55.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.3","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.32](https://img.shields.io/badge/version-v0.3.1--nightly.32-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"20f296c6cf59354ababf5b4d7a97184c9d56e1ac","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.32","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-XEN0+sF/ZSnzdwwHBpNn9VC6RYnWK/HH9r+/HEhGTlvREbH5z3pfYwKhrlCQpaHrbASbJ+8v3IidmkfdmLc/kg==","shasum":"977cd449f2db45b8ec3d9774b46c0f54a6446802","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.32.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDio9LLMhhkspR0G0Mak2xYyUIm0PTu5bOAgI/yJzI+kgIhAJpn6RlpV7NpRWTBxHJljyFxCEvNH8fGNTPjkZ9Mwffx"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkElVJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqkjA//UJD2/2efW4A1kDRMYfDVTFNyNPIr7ft47z/sIX8O1rSc2ZWa\r\npGXYTcNPQoY5QZAiOyJuSlq7bummgjPSCfWCZKpWB8Wffl0x9LzkkgaEW8+P\r\nu23sDBmUkZSIe2ngGonREj3ioEErrbM8yjP7Je5IFc6zqsRmcmXkhHBwfa3c\r\nNPrjFNQrn5XWpJh+n8LGFQM/5FKPQ8hGJVBFjAlcosp6LMN/aQTtSA4efqMR\r\nBVpwhcxfz1U7YOywtmqAt7MefYN0fSHJ2Ve0lK+l3UJS25BXmy6oE4/GU7Jt\r\neAjz/diMoucLDWs2B8gpaNBoCvbQWzTbUtgbVL8U8tKL8QL7nZnT3YKKj1TR\r\nVLR6/VnmcOQlAvk262oHCxnmn0XZvSWZW2/PM09J9+vlwbcZndTUzgQQy7g/\r\nvP0WNB6UBC9kntdubJ8mA5os5IpkEpTka5HbN4jK/exXVAEKQxRp30GIF8YU\r\nq9ghIKyDJxl2ws7PHytGVU03ac2g7I5BJNurlhRqk8+JJ9WOcKUGQyLNTGIt\r\nPtbvDlN63j5q8zWRddJu9qWjGfU6BD+7j+oZmz7maUGfq26qx50v5cGSgMCk\r\nlsmnlia3jcbcHU4LVeCzpuXTlLsWoQwENo4TSUsW2l96ohJ5aUiINT2ONzxF\r\n0/GQrdkF8D6Bqa9hz38e1oH10SFOpMgkn9c=\r\n=Avmy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.32_1678923081485_0.7299244210137066"},"_hasShrinkwrap":false},"0.3.1-nightly.33":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.33","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.3","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.55.0","@typescript-eslint/parser":"^5.55.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.3","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.0","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.33](https://img.shields.io/badge/version-v0.3.1--nightly.33-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"8cbf019680d3d6504b56b862493528a4d55938c9","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.33","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-gZ5V82Lv50R6rUhqtkI166JT114Dh9lZWIu8tVyopwTGRiK6ArFXsuWXu8h3HgEEiIqXrg8QKLNkaAsmCYF2jA==","shasum":"3b163014adc068f6c9441b84be09443b10aa8c78","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.33.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGtVJ4BDcTynpQqfMKeOAOugDDVfkTkXR5z7gEVM1TtlAiEA1BSFYu/GtP+i4obI9n4/WMx+J7BB8b20/ZGAbKxerSo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkE6bWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoxtQ/9FZVNqC6pr8W0fAPF+CQ0p/y+HKzRPjiL9UzqTKUL2isRHP1R\r\nRTu5XSPH5wAV3eqCLQd/wBqq6TXkLVnFkKX4u0xMLIQrTCpgADCfafNNh04P\r\nDKlFV2aKhqxryXqrhSyCinDFYUupbiEFV6LZ9E/SHWhBEc35Y+IX6yjESLZr\r\n8+2jsQbQVJmO2U0OK70CPtIBI5k486uHFhmsCw2giPfdW1WoVkUe4An+FlqX\r\njjSACYK5Cdvv4UuyTMtCRhXJBNyhGGvQ+cXYojGwdGvqdqUWxm4S6tDHDOkL\r\nltpWiCWUJwR+dqw4VCW4V3yfOpSKLHE+Z+2sdgzR1Z7RGnU2fQNARMuMINdL\r\ncJsFn/rwqHB7yW355bu/xxGk8nstVNB2BCZwwo2ff9VZtK4JC8tS17ljO585\r\nso4wOb2oQ+a5jU2Lhrf8vOfRf8jcXnmJcZptLaEa+Jo339Ewu/qL5ESz/rj8\r\nxilc4uGWt8zwkf6f6Dwizskm+qY+X2ai06AsFrGRYtl2mbcMsb/IbfD4g4B4\r\ngfkuAT4aAUDgqhL91K4WHxfqLv5YBe/9yEI7ZivW4M59jYmIaVcTLm+dXpib\r\nSsbERypNGgnLJT7dI5gfljtndXNXo8yXtGEmWjcOOCoec5wjjAltiF/4hlbN\r\nbjq2YPcPHGGubwUmto3A1bv6qTVlqN79K6c=\r\n=q1ry\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.33_1679009494559_0.22971765612545902"},"_hasShrinkwrap":false},"0.3.1-nightly.34":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.34","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.3","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.55.0","@typescript-eslint/parser":"^5.55.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.3","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.0","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.34](https://img.shields.io/badge/version-v0.3.1--nightly.34-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"4a09ea84c35838f19bd25c1185f52323b80aa492","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.34","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-xL/SJybAkoNnLnqomPLT7oGszmOhVkpVnD7vFVo5KHYgwEkD9WWfZV7fkt4ywai0pqK1pq+1iCF+VtW1fezYyw==","shasum":"704145b058bbbeaa3eac9f80f81221f84c9c99fa","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.34.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICvScoxG5+QiDFcICitcLa2v8rC+HLQVQq3mOdvnCh4dAiEA6tST+XGDdHyLFijKT7zT1PnzNJ8vXl8nd6FICym11w0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFPhTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqOvw//W+SxmS9zk3Jv6ozq5I0qPzy/AtgDDN3LrK+HNU6RGo/Yiymf\r\nqxt5ojZdwUBLtq7y4a3+zX8Y+lOWg8bCMJEPkNTZAUhUPqzvbCpIuwUu9JW4\r\nF64FxQxlS5xlBvGq96IA7Kk8K42ZSsr/pmI7LW/GAcMPrN3/6Rjh7GlvXIAw\r\ntFJDkRluXq3UafkSafaH96ESA1QRAE7W29Ce13NVZWm27UYHjmecG6R7Gj/A\r\ns9t/k3j1cst2uqzQum9qOTspxdsfuZI7l0G2k55FToRKbYPOFfuMtiZaHe1i\r\nu+HVDcigpXfnB2QXBpBfhGOIU0nzMpIo5PoojuubXnkUOyPTZkLckq8SkZ2s\r\n2fHI+xgdM0WJuWLFoGTtMb/sw1ZP+GYrBQOeZBBtkk2nCVXM5xjMqBhPZrMN\r\n85CNWW/B45uWN6ajYNSnKXpJ6tKMvWg68y64rCF1sc6wXL9q2HqTjYlJvWCZ\r\nsOp4I4XcRzdoZZbCAEuNAUq9rYyk7TbmTS9qLGCPfiazXxtdcwrXg1kXJWbV\r\nV0hWqPxxf99J+jkfSCjVguUptmMSsNGARRrsrLymGQo4pViq1/VsZxa2AEYO\r\nNdE+daN+Ptlz4tveBhBYmLxdpjXc592V8r8jH3lYiwuJ5nXo1FMh/o9j5tPX\r\n43MjFeW178gCzsM9HZFchLyLXpxHa8m2SzA=\r\n=eto7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.34_1679095891277_0.8041781708928195"},"_hasShrinkwrap":false},"0.3.1-nightly.35":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.35","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.3","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.55.0","@typescript-eslint/parser":"^5.55.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.0","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.35](https://img.shields.io/badge/version-v0.3.1--nightly.35-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"334fa14985e4f721ee9c54b4a1576523683ae161","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.35","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-cHzKBDngtHwyEN/qMne+J2fPOQ/onZUDo4kBc1UozfPsAgwj4iHvssjYCh/u3lPTv27WovSB+8F+uI/sXJT0zQ==","shasum":"c484b4250b693985916e64cb6cf100d6316574be","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.35.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTWB9KEcoSNg3UuRJ6wGV9m/t9XSp4PVrz/edI225D6QIgVPyIv0dAApy4nD76w1lDomyAS/UXfkYLg+8R7gUkXcU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFknaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpFLw/+PAKH1ic8Stq9QXXg69sLBAystSFUEK5Ky6dHKHnejtmsfn8s\r\nkXvG+WbJI/d1NOu3VVKg+kkX3Lnl+4hnq4Y0PhDcLlOmu+erdSexiSiZiU0l\r\n7N5jkdmUHk1wiCEpF5OsdcH5bU6Ff6kd7BnKDIPF5eGsndxXmBz5AEvqffib\r\n/exvkVuz6NZ6dQ6eassVLPzhH36+YsnIpRH90EuDg7W+KW43pcIMEJ3E2SLR\r\nLgoGFTPDQrYP+VQd5kTaQc0dv8mOBUWYn5WGD8YKd6G7kZIyBl/3sww4LL/4\r\n1/JSpfJ/OqZQhF845jmzgJgHIIdBcNu/oBp24G78SiAh1Nr3L0p3gxLWa/xl\r\nsGW45q3wYwvDQ1AM6CcBMwsN3PR9cqZVI3V67BEvG4VTIlKiwpGS/rww9Z+C\r\nlp3FfopGy545zhvc9i3kiRCWTQW3Lka9C4WcLzpT+478b6njSCZZI7ZXdvmP\r\nNYZ4Gp6P+RRLF6VM6BmK/WRV5sD8Gaxz1w4eEBanC71+SCUu3k2+t5lATlPS\r\ncthdOIFR46Xg28csIVDqHP/bii9FfUpsGfxvkNqaKWtqKFzxIIUA227OgAwm\r\nZQtEZd2IPsffPUZxJ299ZMeQEA3Pp9LlL9k+gWZaNsMa37xUqAfqlhm2x1vG\r\nJ6rn+W7CYqVU0YlBmS91aeAvMFVNX5T3oOA=\r\n=vSg7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.35_1679182298397_0.5612666733300702"},"_hasShrinkwrap":false},"0.3.1-nightly.36":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.36","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.3","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.55.0","@typescript-eslint/parser":"^5.55.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.0","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.36](https://img.shields.io/badge/version-v0.3.1--nightly.36-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"6268f2c317ed1d18a9a454909aac9dbfac3f4a2f","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.36","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-x+JyceGScWVFJyiEbKmKbATox+/7c/f6lgq7spd9taCseDl+viv7tIx+KvKKU6lxWZdecQHh1XiieLS/9KqCUg==","shasum":"f56e64e789110a8d966885ab2c0f8dc34f113d33","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.36.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCaez+Gh2P3s6mNK1zDyQu9rl9PJ9GK5BG8eTng4sP2JgIgHKz72nY/BOatFTqy84t+XCM1nESNyT357H2PvWYAavg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkF5tFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqo+A/8CiGwPYU6vI1OGGpyvCUiTu4oYHvpTDXh7wt5nI0XuITXXI4a\r\nuVkCAbOUmqVqWCL9MrWCVE55pAf2KdNIUL0bGIDdYI5AkkT9OQtiK5B+rucg\r\nDnXfUhSUYFAiYBN1HUmDwvSL2Ey4CtDSG65uoZ7xr2elrpIfyTj66+mOYYEY\r\nafXjNRs496HCM0PFSIf0JyNXZt/7Tx5QXTsQVwHSCY16AQaia5rtoQcpev7s\r\nS7BqZNoXtVq5VVqe5H6UIfV2FHT5WNk/StokPNWLOhHuowUK17DiPlMJFK8o\r\n+KJJCQnJ93frnwh8GTSu3zCX0NhY/U1UW3Gr7O1ZvLvdt7ZUD1I/ZFddQiIY\r\nIBKAuOOR5qXc9tD7eEP75II4jTME////wgaXNHnY0wxR8yUpz1RRMXiMqL+s\r\npV2G7+O2IqqyUnY6F6KC8Soler4sV6OgiKmEK3SuZG28DFTooBjq7MzntcLZ\r\nF3mnm9SmsMSQpPJT4QhgLHO6UGiN3OxGoTPZYRIY4RB4rh2QZ007jgzFXmDy\r\nbruIsRDIhb+Lreva3fBBstxxeYsT7/8xCk9USgrVhwxZjhrDgpcERsOseen+\r\nOQNMWJnVv9jpqmPqAfT2kvJJxMLgmAPzRJIDlHpnUePZ3CkhlXiVTFklNO8V\r\nJt/6GeBXVPzR6PbeOM75d1ZZLXvzxPPnSG0=\r\n=Get3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.36_1679268677390_0.17882640120685145"},"_hasShrinkwrap":false},"0.3.1-nightly.37":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.37","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.5","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.5","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.37](https://img.shields.io/badge/version-v0.3.1--nightly.37-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"c6655cae0eca8ae6d47885b29b24857afc64a7c9","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.37","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-5nKROlGBpMbn1Kf3mEF1k1oW/KD93u1/hKzKV3Qg5eG3lt23lo6cMoYIqBSy1DmdPWdkbB/TssgQ2E6C6w+7sw==","shasum":"d804efa1929d8062e9a96b338a4940aed857e706","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.37.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEvU+7d4a22S/9GM6UbKAfps6v8rgl0NxJJfeSRRbkCXAiEAp4XjLmjfuOMpy38q1Wy3Y/g9EliuftbGCm91y2bJRPc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGOzoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpZ+w//RM5WyVjqXmM74nAKE6A8LApiqgZqfwesQ7GBTd6xxSHfg2mN\r\nfGoTuKGo6mr8Av/AcowzujeBf9guURNvhIQpbr8Vz3dAKTcEuTXFkY2fVRif\r\n/dhFdG9RwHSoUour8n3gJ6hpDgjGDt0KffY5DMTsNOD0qs3AuVQZK51Wyf5p\r\nuY6ryWxaNbmIhpRl1z/kSvEouzS29ziFyvBuepBJm4BmSkEsIQ72ILRBLW3F\r\nH+AR6Vo+sdfPhH22DHCTjv+YdptKXeD1KSOBmGOP6jCVg521WU0m3L3clkeC\r\nZV2NPVWWB6EiujFMmdXjkSWUEjBXY3c1XWm37218aN9+L4UzCMUxyiAIEFNr\r\nzbZstgc5lNauxi9vugPO4E8nLCQG3uRn5qSndth0qega5S9V2LPXOb0SUOI9\r\nOLx5jBqyOscVXVG41x1/XCmWtjLZLSVs5MJ0OcJIzNY52n2ge80BAEOEepnR\r\n654aEfvkP1Gh5C6sHEifV1td8dzOBovowxKafxF1+HE8rVGLMdj41E2NXmwm\r\nKc30hKLqD2D7MrCbO08nXRI3W5k+MJ2D6woQmvUKu9FQwwZi535NTDCuWCiF\r\nwbebSxb6paHOlbQh3flw7H+bGG1QrnJl1hvTyIPalvHeJ/7YR19Py47ri34K\r\nIEWfy0JV0mjmVXl1zrFDUCh0rho3e46cnkg=\r\n=ruqj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.37_1679355112375_0.21438463692724707"},"_hasShrinkwrap":false},"0.3.1-nightly.38":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.38","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.5","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.23","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.6","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.38](https://img.shields.io/badge/version-v0.3.1--nightly.38-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"28e353f3f5372d74055490581f423acd0b2c5a6e","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.38","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-xfsFAUTKYPIY9OG7Bec8XOotF9B4LsIGXV1jGQZYP9RGw/f4n6tGrDOMGMWe+8aM17zXyAnQCxkEFUbaD0We0w==","shasum":"d69f08a7671dcd505e3a0632351d2ec98dd40967","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.38.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+VQb/1VfcNN/Avwe/dCPHfx11AMmHlOhAlpcjuoy5fAIgf2tbFg9uauWJyKMmTJfFGH3okCJC7Fi4Gsv3y28uSfg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGj5GACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqNSw/9GuKqPMzjVYypmGHOOr65fUCTyrHaPsO8K1aB2B4YFLtE/VAz\r\nXM159mdUcYJFXSNNxVYxM6YbPqzb4Weyb5VSZGPtPInoXlZ2k2WEfQmIOVdS\r\nqo0wGQ1W7lvGrN+pIOQvI2DWbGvUAFPhPoMHUmCOfhkNaPCB9YgQkFi5kO/0\r\nPBQ99NMetuNaewkLFQ1+SS8LkoFHba7s3ymK1Dl6xUo8VBHxKX6mA39dyRu7\r\nkaPGBOmXPblYIUiSXSIF9eiz5LkoymtY2kUlsWi248bwVn8UZrCNSY9sHgPN\r\nYnnp6NpoI6KKGITMUcEvMrZiDdFyLqi862DdK0gLZ7OSJcSZOpr04ONn89mL\r\nLzdwPzBd7e18swtGkAI2B+HWfeKgPJwi3tQqIA2zCpaSJ13IUVlR52cVapcd\r\nS8uJWeSRQwRZJwOYscWIYRiiJfnBNZ2dnTTSy9ZBzIeRB1SkS6UfgTEj9F2M\r\nBav3/Wy0CjnXuwfI8/nzJ3rUjeJthB1O+wPb1hFvLEgVLGu5z2hM3EB3sgVr\r\nc8EtsgpJVZB3IDKCO87HWq9Wz9dsMiy8uBAQ4teBxX055LpxoKGXN7roLpAL\r\nvt4NMmll14js1InXmaRU9tCyXVYjCdTUDyfIgf+lR+6bSmze24hCDJuXLW2s\r\nLxdpU201MGTsRPNAR8fl3dr8mdCrPfiiSbM=\r\n=RVOu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.38_1679441478486_0.6643359085015488"},"_hasShrinkwrap":false},"0.3.1-nightly.39":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.39","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.5","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.23","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.6","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.39](https://img.shields.io/badge/version-v0.3.1--nightly.39-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"9f4a2c0b2b6772b0820fbc25f7457dd790bba4b2","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.39","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-riOh1ZsQ7NBG+54NJaBGHiu5yB61gqcyTMzoJLU1Bn3/saHuy38VKcZfEfj6jKJ/HHaEMeSCjdwXqPSXJMlFKA==","shasum":"37904a9c3840df1293171bed5592ccc870e7fcc9","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.39.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFxE13puBk9FCfZKSqnnxEiZh1fzVca0KyhtZKfya9uNAiAK/fCnflN7rAEaKWXM5OdZpmY96MMJCzZ0nF+3v2TiEA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkG4/cACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmog1A//QL5GZ0s3ldcuY+hji5+xlbf1+XeYwkKqJL8taNxAKypTdlxM\r\nuh2xCkvTH4eMtE6vTPnj02sk11f4oAeVatTFo1ISsy6xet4SxhzOmVq4NKhP\r\n1j1ZWZ8TOVmi1s6MMt46drp4ldLEhbx11V1QeMCjp+Iig31D/QlNFctg1IKx\r\n4a+h0a2azzzB5YsNST3kVUq6ngyPz9OXxaDJzbsJ+7Yvt3AbKQCpn/JJtwTi\r\nuvn92sgGv/3w8Rp6ty4dW+vvCR2HGT4wWdqH/GYIbW9WMerb2oGmMgTe3z7+\r\n9lZPw2LSD2u2U8vu9B3vA0ZrjYfT2a2jeOGJ8NH/Qg+dU3YxMWdEEPZTvGwA\r\njHXhxexCKPzWWeuADxECYMMe78xlgaaMUXr4Qchx979d3lQ8cHlnnrZqsqIe\r\ne+/vyZ54ncKYj81BvD1MD/ddvYxTRNmvCce8v7vASbqUK4onZ0TuSlKvk7sx\r\nn+tX9d360UhziGVcfWnJzIk2rwboVQC641OLIq2MiC7C4VOdl7x8fH0uYORK\r\nvHUX8MQa5qtKbqnNvjP08/Ua+PihIvxBX1XUxW7Hor9JSMeFaKGHSL5lLCTp\r\n1k9Y6wlhl+mHbIWCatLkM0ZpqAlJ6nKPD/HTIhbZ8LzwwUwXaJWaDGh0P3D+\r\nh4DykMzrs8iQkx3nG+ybwV8F7+Hk2cXKsiA=\r\n=lkIs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.39_1679527900561_0.9400980875781131"},"_hasShrinkwrap":false},"0.3.1-nightly.40":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.40","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.6","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.23","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.6","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.40](https://img.shields.io/badge/version-v0.3.1--nightly.40-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"58c0c370ea6d5a0cbb09d5090c1bd93cce64ac52","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.40","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-x1tAQxNeDxjSCY4zmDshg6XUsaRAwiCdLunj7Rhb9uAO/pbNL8v6c850awKsB5nj/9C84OnSwXz2LH1CQOmAzA==","shasum":"35d678b90dcaa69f58ceb6c229ae4e04e008d899","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.40.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCns9vuNtV0VvfuOUrfvpwIkznglbwXGEMPqAOWJWh6hQIgeqcxXHjlQZbkcByLPQM01NunjdYMzYQoobP61BHd2sQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHOFPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrfwg/+IOKSu+0kqbT+NXZvEl2GQuDf045pmULgfypGoaQOpSS7cFvh\r\nKAdsabW2v+gJAfYcc4Cf+bxOlM0u8b7LG9ylSj4E/c6Kh5UH2yoKuQCDfqoq\r\nTV6FYiWcwsxHoP5yQvt5miIQp/NFebRxwxJDYMDct/PAu4jyYBgwn0MScV/a\r\nOARPIsQA6i6rsN8xxCSZf7Awd0lHCM9eGl6Lp+tEnVecsy0Dp3rJLN/JzVRL\r\nP0h/UN8S+k7zMcxckZ3il33Lr8J+4o0/sPOPi8gqfHfEemn5mTWfcEfDjb6k\r\niuOUrvyWzuflenUJ7HiXAtnk7mS6hrR+iZAkLmNq3AKie6gIg3dz0VDhnQza\r\n00BVoAfYqP4q8fxkY7jC4CofQmuvpF7DU9U5Fmj8A/L9svjI7WZnYQ34mWLi\r\nIrX1k6mZRMJWiSMRLsTev7uVWmXEcAGL5MVpgxC90qdmtJnDtMl4FU4no5s6\r\nLRTzDMK4IhVYqTenRMRMHHZjdma0k0nfc9fRj/FuVp66ijZRqkHqW1Lf9X4N\r\nBAH32KBg/eaNFArEufwwhvU/NQC04TyRoNAAnrEfPNeN3jJqj3sFUzD6ffV2\r\ndMlSm0E5bKdVhamwMbqNHNIYVCsg3DHUYFWi1EoRA3VTx4IC9aRcTKz/97ht\r\naAaQUNK0hwDlAnRyUZMEwF+I439EvXQxtJw=\r\n=ypuw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.40_1679614287050_0.3554948208154749"},"_hasShrinkwrap":false},"0.3.1-nightly.41":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.41","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.8","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.23","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.41](https://img.shields.io/badge/version-v0.3.1--nightly.41-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"5246cde95bd38eb544f87625d9264909bf41f642","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.41","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-A+stQrRms+4fDGmvJW2uXuFoy/bkeNrqVHJhRJ+vpC+eRsM7OW1QLVjczT89GO8y354pNrKWauM1jLtNflHRMA==","shasum":"6d8fe2e915af768dd15790e3ea3ab39bec1aad4a","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.41.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHg+vzk8pphrs8Ms6B1HcoMXJtJs8+VWNgH7k3jD7UjLAiB+DesVg/IpRsh4++JD3KN3Q5t8xK3vzQzjB66BiP/gOg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHjLVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmredA//b6KhyL1woZ59EK4yS4XQeA7hJsr5EZsDZAUz3s6t0vSCxLIL\r\n09huLno2GI5Yi3ByEpT8CUzip2kGFfY6bP4QmemvUcHtYRABHO5ldNZfKGxW\r\notg5OeQgpWEHJ+NCCJGMpWS6aE+wk03z5s/Qyfs5i2ixro8jwy7oClAnWsDS\r\ny4vjR6Ilgv1ItF4TPqkqaHYYXQVaOYT1TXVklWSgDtG5sJ//3HLGehmrQorN\r\nkL/PH3YeDPkcvAjOFhbZYwy/WFgEfGKprDrHrz+ZUsOPEmx19N+xXB7FxwHh\r\nA31LrjhpPMwcR9ibea/llydvgNKx9dRTXDEok6PBjMhbgaFpryK42DGUjHfh\r\n4JO04DMe1CMg0XUi95+XVGCANtUU2ovO9UzLrEz6Hdw1SIzA4/S/C1mhvHNZ\r\nMDAea3rfeHcWkuN2+wPvy7H8S2e18xBHBWdl2QeOnySvgYtY8kuxkfeUUMUt\r\nfTOxUaxbO9hsAhyrsLx3s/fWJAD6c5xz3ik2Suh4VtQzpeMOTBuOMg2Gz8KB\r\ndY6/xfnA5MnVgAPqLq5Uai45Quwj7iJjnbyoshXKjxrL1sbP6PsvXMXl5tTn\r\n0HlVW4CVAqoYZwbqIzc/wET4ep82yac/DGIib2h1aEKbK9EsJDo7aebKIvL3\r\nHXcVTzNFZkxtUo7FTFi7nONbyhQkw+2OkXg=\r\n=dDp/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.41_1679700693611_0.5338194829609799"},"_hasShrinkwrap":false},"0.3.1-nightly.42":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.42","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.10","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.23","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.42](https://img.shields.io/badge/version-v0.3.1--nightly.42-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"0ee931084a99ea34a898a2e077a414a897d90286","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.42","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-+KpwpXjvZxMl84VPOAY2CpZHcmQy+JWlwgrZMO2ROVvKZYsMpeUouIiiYbWX/921G8phRLQ04TPoovnGNkyOpA==","shasum":"9894483223650b21398a9d8f2f8e555bf289d097","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.42.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAEQANAJMWoXswlECZMwsVqARIqMl36tuNYYUpLG7TDgIhAP+Zr7U/OKmbcqwL7LstFv7+xbPBJWOLuWV47V4YqCVP"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkH4RRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqN5g//RfXag3PUkB0l1cu+v7yBHvM9m4Ko3q+5s42ydHDGmHmuTK12\r\nZmwmON2fUuEOD38BfSkiAjF2dNWM//4q7Po+s3ga8bCv4EVURVpx2eEKNbGD\r\nxtzSoY+lJYenHB2qYLngwBLy+qy2/T0L4rXivZZKC0gaiaweORpNjrkaBWex\r\nfaJ4GXd5RrsZTNN1KDJj9i1hoekipUU5ketghCZ9M0SNv9GJm/aIEvPaJhSP\r\nXo1s6GwlBpfPbd+myr1vR4zk6oBQ2W0SILgK2U7eguwUdedBltFwDacPo+X7\r\nzk3NYUMesJdGeoovwjPYwvlD8lqm8y89BWgPtCC4sam4XKp2hWkLiRrZLM2h\r\nVyoQE835ru7j3Hx+ih3dGpTreyffW9y55Ys2b16k9cyONY7hZjv4Ztechiq/\r\nZojMDYNvp1+8oqb0pmhI3wOMqLYuHbBgSg20znvIrqFqOUrvT97EBK4YKB+e\r\nm1S54EPFXq8J9wprY7tGPidrhHNKbs7mDg99KhASP1Pa8MHsc1DVcj34ax+y\r\nHQ36fOf9WMVQEKjIJ/sFHTcp1GkxRz0BmpDtZ5GXaWY6tEnneic2DzsumW1a\r\nZnJk8Qn3WepmnO6HhBObREkTk5whuK5tgmjMHJ1L1HfFoEnh+nOnNLk87Ade\r\n3Cd6VZHVa+EMYeY/SuiKaoKagZTC4CGBI4Q=\r\n=j62A\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.42_1679787089286_0.15666933407328276"},"_hasShrinkwrap":false},"0.3.1-nightly.43":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.43","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.10","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.23","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.43](https://img.shields.io/badge/version-v0.3.1--nightly.43-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"df3a35cd60c509424d3372c1a89b06a0a1ad5576","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.43","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-uObLTkmwYUow1qJ4rE1Kgx8pclfoU6dPfb8sTZirBcQQ2vbC19BjI1Kvpsz/ocPuaQ5Yd8a6J4A9gSAi9BJEJQ==","shasum":"3e5f8637cd93b51540c2ada44c7c7c63da052be6","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.43.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDN+LlUUuAyhSnUMiruL0ii80OXVO80icYSPccJ57LZZAiEAubFFAxoKxBPv3wGB52mCtuJcLyByeS0zesvNW60r0dI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkINXPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrx/Q/+MQPXXh6vb5gYbf7qOYnmIgBj2kpaUAgZgYfjXbSZAbXY6CIL\r\ncCf++quMc8w8JtRMB/8b+7BzRVazV6KY73UtwUFep2Kv3jlwJBJKiNqu/d1h\r\nWEkUYtoLfPkRM54dKbJGHH5JPQX63HnZbX8bWix7u9qHjl5DyihkXyk/9glO\r\nbBkHIilC46BMa1EkM2Kl0Y8UvBfJbkI3reWACYMsq4Rm3LgD27dlMwhrI6zP\r\n7cx00EoVb/O9Z8YZaS9x9QIjRBPAnpGtLpTu77Hk5S9mAbbovjpws80zTmih\r\narMWutopOKEHXhdqzMnvPz3F+lLksjifilyJEkFlmpurkCQ4y08MhlC/h5hM\r\n9EqOONH5QNOAyJ+jq5TPVLajFCoVEPmHbY7hmDZ4DVzoSVz6f/WfXWPnLYiM\r\np+kaYo/3NCxB2Shb7/aLDm0w/TyA3hTq4dukD2dospvnNyM3Tfzfgy9jbtot\r\ngjNlLxMQamwwbw59SiILxv0WT8mag6hMlM/pxiItewg1yAKJ5jUx9MPLr3XO\r\nlxWRFUkwQ+bnI2HrE/CoGQwnI5JtpVzJW6hl70QeyBGan+6VPnjnN9ypliIO\r\nSS+kRgt+P1pRzGNVQPSCHlzgAUmz2K1FYpGrDUZdwgQPy+G0KFmvA02lQl8b\r\nf6SN8wz0mtPFwQAHA+tuPo6q4XLtyiV2e5k=\r\n=bdlX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.43_1679873486955_0.024094823190844217"},"_hasShrinkwrap":false},"0.3.1-nightly.44":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.44","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.10","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.0","@typescript-eslint/parser":"^5.57.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.44](https://img.shields.io/badge/version-v0.3.1--nightly.44-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"2ed1cec1b8dec404399648a779bca68af1540e3d","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.44","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-oucy0tuOJo0r9+cXF8NDAsulFpzJ6SfHK8KCmYhS3Yw85zKcmx0z2kvmLuS7KfRZxJza4S5605kGZsEtnaD+TQ==","shasum":"ff89ef8ef40508fda51e5d03f6a8f7d32dcfb2c8","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.44.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAo0lDJh0h5q3DUmf7H+tbNnFH6Lhw5CeoLu+0DJ4718AiEAnhMJtFlzrGxsiTWube04iKhC1+N3Bl3posAqF2LjosI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIidQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqrPw//QkAs8ShUsiE8g03xoxbVtTZig6OaMlRotyTvjCdpoTJEWIyl\r\ndQztjb/3QcP0kMG7UIU9XwrEQMTGRQ+hyjHdIewcCef7OJeiBZs76gvHB6LG\r\nxG38s48mzv9B+J6IB3f2sh0ZUl+HNQ4TnKNWV1tE8WaY3n/nwueYI2JZjD2+\r\nB/7pGRGVgPqAMniKG7qSUw1vKu96y8To8mmqEOCniB2El6QffB42G27wRus4\r\nO+1y1hbE9QMySZCwIgvTNK8FYacsCnvozMOkndAZysClNCWzBIXWOQf0imQG\r\namgu+wKY915/MXuEJ9AI0fLEFQ7vfDDQi8xufm2rAw/uGoCSsjaYgH1j5Be7\r\n9qGUs3/7GZFv8bvvIvnCUUvsj+EkA6lziSiuxwp2pHU70dYaqC4Z65BwM+k5\r\nGxZRGYuE1OH7m00vucqXiJEr4AErs9z1s6Vq9TnUcfXtiniCkdYGJQxvEmuC\r\nETSnvFZj81NeuiqO+dLlVp9SoU9QRFh3JM48QDXdjY2fxyCVuft27vx4k4/i\r\nB0CqglDmYbcg74o+WP4Mb5IErglxM0GWNyBDEmbKQWuG5HckEhajMRRtqrSu\r\nZJPCBwlY2EHSA1eSF77yy9vwhqM++zQO5SVuKycTc9F5Ef0/S5W1PPMHpTZs\r\ntEE+yq7pvu6FceR39C8pOQEPYBXYAamJ9BQ=\r\n=1Ysz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.44_1679959887988_0.4763181322856298"},"_hasShrinkwrap":false},"0.3.1-nightly.45":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.45","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.0","@typescript-eslint/parser":"^5.57.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.45](https://img.shields.io/badge/version-v0.3.1--nightly.45-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"3c260f1894c16e9abfd31eaa3d2356cc5715fcc1","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.45","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-lQmvF/9AUTxPYS0Hz/SR+xsCWbBTQFckRVh0HOx1uCr/ZL4Y7GjgPRK41kCqGblOlJVn9mU6OTSXfzD4ld9xnQ==","shasum":"dc88a1884c216e2a5f899f15f359489e4785e072","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.45.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxkq1thAZgSlkbcksRDiaeio0AMTCOh2s9v+d3GYa/JAIhALmiRcvDnUSkh3ZoRMfqdyeaXQzv3g0QuzFN+Mj9EWj5"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkI3jOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmonTg//aIMFjiOWzkUaBm8Vlti3qQQdCC/f+VO5bA/ifEZx478RPaEW\r\nnjxR/8bzhnlj7NM8cO+B0FIYvAYRcXWWZaGIPPnINNZNSVm3+TRuIDzjr6Wi\r\nsXk/UrnqXQ3P0x8brapsWRVUWFbCKfL8S45hs5IrO8UBCQVfjKmLLcDFM06F\r\n6H7Wunhdp+JYsSZIMrMlhS2jXSLniEANdP+j0MYiaVIodaSaNWWD2RAUj9iA\r\n2yi45QquKQHxHZEadUu/Wxku1YRStLxG5SUbr7ogUf51pE4k/kdo40OkQhDg\r\ntOtHhfAe/snYDDQXJcQo3uJ+ZdKhwY5g3JZsaZi62Ewu0QPHDP0GUvIqu24M\r\nxh5E/c/yeft/xNNh5mkwH/P8C/CEH0MLC0fX57/D8/pJAJZ9nZGFmQq2jBD/\r\nh7vTCE0TgSdVuJD1++nAhhiXf0JnR6z7CiIczXwWbsR7QjWclEr0ujEQxe+g\r\nDBOe2QpFFopoOLVaA/1LiipR4suiFO7gYwIQ38afE0r3IZvhzBTHcvCab5Oq\r\nYWdhBJMAUkW/r+9dYhC4zdWIWbC5P7ruKFAQt9OgjWcCmKNSpCynvbdiV9oF\r\nso2ayxtMvuImiEKkiUYwW3yE7gat/1yxZY8pIZixmZXWfnTuBcOgL7mEN47R\r\nVE3JnPfCYFDqz2cHBOXfDBPWp2FeujBzmdY=\r\n=HT1p\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.45_1680046286519_0.3430786039648275"},"_hasShrinkwrap":false},"0.3.1-nightly.46":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.46","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.0","@typescript-eslint/parser":"^5.57.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.46](https://img.shields.io/badge/version-v0.3.1--nightly.46-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"7b9db4b8549ac20adfc7c7c685d216ee63858f17","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.46","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-YVVABNJtoO6wLa7D8J6rCYTc650r6VDY77lrGxyHi+nnBtS5o7MtB+d9xPzPnMe4DcJFosIvJnh1AAxmDCU/tg==","shasum":"f06366d647dea0eac6a0610f775de99574aa99c5","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.46.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICql8aLccvw5HZbVdBmBF3qKGJVRbv3Q6tWqpCRh5nJwAiEA3SR8njnsgHNd/3orswAki4rtV32DLQcr756ZbxrM/U0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJMpVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqqTxAAkcu02v0uNVs/6QykV9SXCOP95ZWoVR4EcfrO14Q9PrbB1SSQ\r\nDM0lU8rBErEjA2V1fCNmq5GhVVY3iKtv5a58fLxvCoJHwgTE1klMVzoimI0M\r\nB3MlWytmgN3BgHWyXiAXzWFsLl0HCmsz1AGPfXiTxez+AqeQ/Afra5RKiukN\r\nFHh99TJnEdQl7LOrrSQSqy2KaZjuFQjFEJI0dJvXHSXcmJ3qvtT5X/4p9ubn\r\nxgn98l2eOK+XKVEDrLpbDPzyTne8duwFxw7EKAnILPw9VE2jwKfZmH+Y59fk\r\nc/p+WCoDGiwA9ouzAo2XZxTtJNCd7G6X7nOazbPuqF3JkBuYoRl/tOb6lx+V\r\nwIBaHTABhI5SkX8RqdoIZoQN+WQarzySFo0UMNt8WXDCHx8UC25r0WZIpOTf\r\nAau9mzwOk/DlFGRh1x0XtwxHCBcTy02+eP3yWiHeaasuB4KhtIxbGfwxeEhn\r\nASQAyH4kPnCRCfQ9sevlAz0NoTq+MmBoZ9fw5phqXfU69KGxSfGIhoUxxWRr\r\nccVxkEkhDcxDnhQISbjMEQcVfTT2TcwuWXuuKUDJKdtRt/Y9tH6NcWn8kDOA\r\n9SplYOKMibpFgMEkz/K0CmxzJ7HM1yQw6ICwiYFgspl95+SeI64EufDbwl2/\r\nGarIhTDQ6K7u1Emr8iJtAY371lb2rZpqLNw=\r\n=zyKz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.46_1680132693551_0.694451445248244"},"_hasShrinkwrap":false},"0.3.1-nightly.47":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.47","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.0","@typescript-eslint/parser":"^5.57.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.47](https://img.shields.io/badge/version-v0.3.1--nightly.47-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"508abbf7eea24484e4eecba5dddcd94abda05733","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.47","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-r10bTwKa+4qA+48XkMQUzIUfmJdmJmuGOooyO15JY4uv5bFqUjtzdyDOH8urnk5NNZztUsZJvSjLgQ44K5/fqQ==","shasum":"9891559c20b0403a35c694bec0c793b2aae46331","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.47.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEpesr8RoN3e712jTk0DvRyC/sLCnqERydUKurZpOxrPAiBzaVcTMg9dd1ZeZGrIqUaLqVfjElDcsHNwnAoF/egp9Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJhvPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpF7g//S57WCLaF1YQOm6iUOuSvpXgyf5DvMiShPxS63deqTImaPwxr\r\n0NCcl0dYWuiM0XasuLP9mcZEnSpJRLA0zjOqPhNk7bN2wxJyqLx0k+o5Q1aQ\r\nygQWHBEXGSlAEcNfkv5OTnfL3eUy7tM5HUkukjFL34flQ6qQFLs6bCsll3+O\r\npiuOKmoLn4E27pryUtDz0igpgXyuY5aCIyUo6ObseJ6JmTJ6/wAltDTeekXy\r\nUfAWYNCi45cC1DhCp8kTlaWBS/WCSzWkEGMNdk0MLNB/Ox3fKLDUJczSCoU7\r\ns0NzfTAhwKGKVnQem7mAnJ5i8kCrJjwvt68Z7MUSrWP+4gCLjQJnUXl8EwXg\r\nmwDPdN8/oJvHVVP8ryKaxyZzlDV5M1cUu/8YZpyVzm3z1y7gqiZkIV7ArMi4\r\ndGQWhHX0d79uN2NDqpNgGWhcbkS/N10+mgCGByly57wqy/nr0WM5IIZdPB7U\r\nNRgGBjbcZQGwkM61NYkkhH3GoXyzEnR1Gf3jxnz4s/rnvNFgmAm48xB5b3jE\r\nd7gFw+1D40y8W6YA28DfFK4ZgiSLszhf3+4ZN37W0lnsf7HoYmIbAb6pszfh\r\nYAHEX9koj47wQBVLJ/Sj3Sp9jrfE7XARhmFIEoKVO0j5ThiGp+TjmWl+PI8Z\r\ne7DY4LlxWAEvt5bF4MKuNONIneyrcb9+CT4=\r\n=VYIt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.47_1680219087171_0.8337367988400912"},"_hasShrinkwrap":false},"0.3.1-nightly.48":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.48","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.0","@typescript-eslint/parser":"^5.57.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.48](https://img.shields.io/badge/version-v0.3.1--nightly.48-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"bd879b65d80cb3adf8ae82fdd21e542975af2c3a","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.48","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-+fLciofFd9IiArCetWA2YfPoT221nkGSksHFme08/LwkyDecRUUdNYEmyde6gx4kg146QI9EZ6ceYrgIM802vg==","shasum":"de4b50b50259c909daa80fa2a7f9343b050ba886","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.48.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBVEaqQNvOiFBnvPFcenoWYNUpB3ExnnqmP+ITIJ0ZAgIhANY41KO1m8jWV2mRs3qADkcwA/Mp1N7ZcsZSkzds1FUZ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJ21OACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmolXQ//eNxD2Ddmr3S4BiC4FPwwJk/FhCqyl7LFiOH/ZPh/dIXuhbcZ\r\nIelJ1XUEJtgy3DWx9UdbT2y4rV4EbXqF4QBsnRpJoqDktbYHbw8Qu6dcwCdQ\r\n1oVdB53FBF7+5M02IsOqTfx+3Qjm/Iw1jHXw/31c283X+yKLQvsnmwHo754T\r\noZRRb9eFoLBJh9dbMI9dBS8Qj85s6HKeBk4ZA4ZGVIcQZwc8Z0x4ug6Y87pL\r\nkOlGM2xoxNBayvs9HTbojhU/ldA9COaOV546LI0StrVuuO9qCwXA/3g2y+Fb\r\ni+qRr8CO8VdKlVecZjzptn2eAginzn38MuSme+zNHDm01rkiW8eXmDOQ8y5h\r\nxY8kar+KlJGeqhDuRBbHVm+acB1IaJ4gE0GNNvMjm9PGrEDq1Q+StFj4ZNGu\r\n9lRQDazR3jDdUz+B5OlsGfEOgHapLVzCcdMHnt1x5dS2kzIYYiCsl4RMVheG\r\noLwNJFRnhYscrodMZ9Q6jqvFKRWJToTtwEaUEzeOemM7JzCtu9rhYbAGDO9W\r\nb3P1DHMClWoGN8siDbwFC+/fONwvjOyiSlNxLblNf34W0NC28FHjew5uawUx\r\nZB1BgvHaWZ04+lGoYrJeqKe2P4Qb/rtz4EujGtEm9hzVITEf6wE2oX4BUdd6\r\n0SrpjuCBcPRAyX9VM/JnFPQC4F3UWnFNiSs=\r\n=0Y9Q\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.48_1680305486545_0.9252281119942143"},"_hasShrinkwrap":false},"0.3.1-nightly.49":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.49","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.0","@typescript-eslint/parser":"^5.57.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.49](https://img.shields.io/badge/version-v0.3.1--nightly.49-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"c843912d8b0ede45c7f83420c5950f4a0d9c0ad2","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.49","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-wtpavyItwznJPoCDxL7jNDNkV+rmZmZzjzoo13GO+4m9TTByPjV0mMGG0hH/CviTLeimiKR5x0TiihvdrkgMnw==","shasum":"f749158b0a8797dae04b1f0f66873d8430420c7b","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.49.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDISV1TFK9sN5YxQkRuKTLyui4X/2Yw154c8MNn9YUKVgIgY8oSTqp36NczTOzGn0zo7vO6TnUNvXpbFV64x5r++eE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkKL7gACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqmLg//fiIIzD7rCSE5BvCTDey4iCiuAzIMBJrYif6gzKxkfoxq4DBv\r\nxi/WxMk7MktO3aUhCAEXvr6ji/MU2dtF5iDxlyEdd1fXIWBXBphGo2XPvy4j\r\nP8ARym+sDWgVWyCzxNL6aRgRJG/dirHas7HL1GvnqOWD1qvxUctCWp4jtfGf\r\nh9Qc3MQXUkfNGG/t9TpML8ry8W27xJkDMMIZHics6o/weor05nkxNAkxa6sV\r\nigoE156jsJR99/xby04QXe5fpIn3Av5Wh9FYD2jx6QvRhEiB6XaqaY9H+AIp\r\ngE2EaUybGOnMlRiRRQkfFAVb+7v2I7kjw2pjkZeJC+BkT/ICGqs3dQub7wog\r\nKkx3EvcmK1E6HPoq7Ju/fF3tzw5/m2yAzvE8hhgvDJojcjPO2jOg1Aee/XO9\r\nmi8kwaomaKiiDCsGDQeJ4EOKQoQ5vDiOgxiSyqQDqbs2q1CLHJjwFaKL6Ov9\r\n5vdbMn74kpENMtDvjHHqf5oIgUCZmm6SpqZXtoXnIJQN6c4mvZ4HWuoDjB4X\r\nwax9avj+Fj8iRez0ndrtlTBkkxl0RSkVu0WzAT8WSf82lC3QeqPg3LrSLHYp\r\nPPk+sMXBkaTEagqR2BmWaE3B7TgWWUzXPwYJnAdDY50yh3MVT2TBrsUhvmil\r\naCc7YUlOLnS/mml0ITO7BjMtcHr2moEADg8=\r\n=Su6H\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.49_1680391904290_0.31087305144949084"},"_hasShrinkwrap":false},"0.3.1-nightly.50":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.50","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.0","@typescript-eslint/parser":"^5.57.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.50](https://img.shields.io/badge/version-v0.3.1--nightly.50-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"6fa6bdd285ee8ddbb8ce66f7657543cedfa3fc55","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.50","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-3ozsYSlK4k0kqPmRiljf3JiP2rQwF5/PgueguP0c6ptoF2ssuyH5UNoPdoc0WrW5+vooaXLeF9SHz/izfSSRdQ==","shasum":"7eeab0d701d50ea7be4df7e9115a2079f8b7a660","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.50.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDCNKjtsfU1xcOqrlqVZamHJTYixctruBE1fimPst3LdAiEA/JhRFnJP117qs+e5yGOdW2riifDgt4xMmklK2dPVlwM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkKhBLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmph6g/+K9iHjaGwiqQTkNwm54ZkAXZWZzcfsipd7EytL1Wcv/f1Hwie\r\nftKLl0qn31gmvlZrWO9IVL4lMxCVKz3g2eYLZ4wDFjEwLcihXgI1xi8ni4Ip\r\nCYUBapqgRM17gcsrkc3ks3znvTOyT6polQvFBdXxYE9XxHSmVs9ROjAUJbOv\r\nCVo7CCqqcxEEjNmKST2IhZ5u6UoAI1wvU7IJPUccRtQq/SR9qiWA3ygxm82G\r\nyY14QjgA1GiKkgnmh0CwhcCiMOMTOVve8AKuJBV1318e/q4pk9qsgOqPUWUd\r\nrmQYh3fIM6xbSb9sD81ieDozsTPvcPmYAgvWbLQxoI+lDq2DcIpmAIynDL3P\r\nVo2aQsbc392lnO/twpKTRGWHY5LWS88CHbuwyRJjgXqKUW9S/gkmeRA14rAE\r\nmzRUFETHPpgwQwtmP8chp+7D8Cw6GPfbXU0zNjdtsm0lGeRVjBrSD6HlQrLt\r\nXA7ReHftjeswqo1FTaS7fQtSdWWVeG/9sxmREIKMI6x3i/5U3hhEKhOFaZ5c\r\nSTluKzmAB4SSvxww4lTOg/lbfDLqwv0g/HB08NtR5hPgTLGSs+qHeE3NFGPh\r\n/vRscY1/bkUxUdonP3uaw5vgb4JIiAmJuCug8I+lQiDL0kswluXVRI9Yd8Bc\r\n9WBX4fGJS+6PKi5kgmejL2V10Ojck9QmIIg=\r\n=qRm9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.50_1680478283564_0.7840634985602735"},"_hasShrinkwrap":false},"0.3.1-nightly.51":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.51","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.1","@typescript-eslint/parser":"^5.57.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.51](https://img.shields.io/badge/version-v0.3.1--nightly.51-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"7e2981cb8b90669e7d4672a17ef0bc6c9df24ba3","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.51","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-j1TPlQTYmVtiA5+z1Vo3JSQBBTQIAcokUCJdNyU5iiGeB0ko52ov2wfznj4lHQTy1r4/GTGgkNa8HrLmjH95vg==","shasum":"21d6b41b816df04e64f53d6c25b8d60f867113c6","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.51.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEcBcUW46VQh/iNwCZjVzEjl+nr4bnbb2uTBRnPPdbYgIhAKNY+VQ4FabMbquSeYlk3jScvk8Ca+1dZWSZpgWB6daV"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkK2HlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo1Wg//Sfv2XwS7y1dV/iSqymZBRcaF3vn6fFEhmHjDPkYnBPyVOKPf\r\n/BjF/hyYMdwf4jPipMqcLVWv0oMEjL+4fAiVRWUk9zoeJgkrKAfxHDfxXVO0\r\n+hitLU++fdTQXiXD98O9c+JkaGYten8Va09dy4iu3+UZtvVHUaskmjCKzLq8\r\nnkXUmqaitTfn6fPQM7JSbW5dY4w7aT7e2ytK61FhUAJU1ch5Yi1lgd6UnjoD\r\nuHeEzhZBbPDRT2VkcVwjIRwVkO8xmTnEU78wRcHAXIByzbphcEicjpF0jSA3\r\nhjhOoH3gANF0EYchbYjIWFoXgKJAahWzqd4N9IFKE91CHJlPsMEe5dR4NkOj\r\nyfL/cFyDSlcAMXz5V8ph5P98QtFDSiv+j44jzQ8RPVewT0InXgvINyis86qm\r\n3L5tDLGD+1f38aLVupUdG/bjf/RB5w572qgIpjuekqDIPMkl6x7jJ9shhvnp\r\n6PVcE75fIfepKrxHQikeUGHGIrdpYK48p9iI2lIiAjqclIhCe/M25mJonhSl\r\nBhQNBaNPxcAczFyivgYfymC4jOUWRp7Gkv4n2FUHD5HQoPqvk9iLH2OAWGKZ\r\nBniRUPmV2saRgiaVVe+lU8mY7MuKL68DMneRgL4R4NyWiPDi70Lszct7TXSS\r\nS+P90WSv8P1Al584hPXwwR3UZ53WRxkYuZQ=\r\n=qnoi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.51_1680564708818_0.08791143168714544"},"_hasShrinkwrap":false},"0.3.1-nightly.52":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.52","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.1","@typescript-eslint/parser":"^5.57.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.52](https://img.shields.io/badge/version-v0.3.1--nightly.52-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"cb0c76e31053e988ed147540332537b6676750df","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.52","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-n+KXV2tkvzz+NaCtYcEzO4iLtvwoprc6kOFOWB72flqQcOxKnZ0rtFRNUSZQGGOs7XywKb/iO3B2rT2IxGaIHg==","shasum":"c94948a9779148ae569e78f9fa421fc83df9b2f7","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.52.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrXN6dGRNE8rJ4wxAZalC7wjsQBBYp6/DN0pvdv9Fw+AIhAPutEa//gZeHhh2uJcBOg3glRzec2HEV6W9vjHX6qP0C"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLLNNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoWvRAAk/uK4u1wu3145nzOm1BG6EtUUw42sqtT9Ns7iyeFdSItCtSS\r\n76zwfspOvEpt15q1MIpEjRb9DZ8ekre4qB7uHlO6bkWWojrQN1L5WIXQepCl\r\ngk0NbddI/rLqXy/rNS1mRI2clD8RbDgRl16HeA0Gs0Pf//ovPLu53bY2xfnl\r\nrYX9+OfbuRF5A9ojFT6lK9YhH1N3VcVmXPGX7XYwE1hvdotwm4wNgLY9n+Ty\r\n9f7rxg38ByaEEFE0tKLk2hQUS4XpldMthrJzSv1ibbyYcVpk9Q+mKgQIitO3\r\nkBaA6g2PVpsLNtn/ESHAvEvn6F+Bsn10ZAc5IfddO3ZFVh226DIXl1i6dCuJ\r\n0eShye6N4omHS6dXoPfv201zNWUyw4LAwUW4/2MSJRjuFxAXzAg3D1SX+FxT\r\ni63lLvEhX78tJZS8noLAp0wWI2m8mAE75GYt6liyuso2tfRuf87fftuihVjC\r\nfNoyKFOkuhU6tqjY2FVeP5r3oMfdZsjihDbuIaYlGcWyMYwU2U4sEZtk+vKI\r\nao4N31iPMOHrTqMbzvMli8ae8xHs9Lqadt0K4bs2EFhg+50WUSwZuMXwV98E\r\nTBSw2ctWzxJRw2ZKTkKo+giPYHyay+oMGQbBICPngVVt4m63usMZXUNEZc8T\r\n1qXtdbJxh8Nh6mWA9mManm9eiVyyERhhawU=\r\n=ouKt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.52_1680651085577_0.3041272453243695"},"_hasShrinkwrap":false},"0.3.1-nightly.53":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.53","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.1","@typescript-eslint/parser":"^5.57.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.53](https://img.shields.io/badge/version-v0.3.1--nightly.53-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"3f43961b71904f29f4bde4d9248e6496aebf53a5","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.53","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-1JGK3nfmGHfOG+mX4/GY9S7SIIJKSpuHe+1jgv7q5DSj8IC5nSwAc1mazt64oV/ph5vXVFjDXSOpJL9fuQM15w==","shasum":"2cee56c91e3dc0dbd73215a52afcdd771794936c","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.53.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBBOwsco3xjw31wL8xlY2XyyzN4CoqGo0HH/nTw3LVE4AiB+6cYgrjRWJ7OViB3S3o/rDjwPrBAhFomG+03/V547Ag=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLgTKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpcLw//XK5NKGi6ySMDt6K6QzlpDEO4W37HZtwe8de0dRNfKvYoa2BE\r\noU7dsJtzMiu9FfB5EZ9V0fGXxG1zQwLTUx66GdQEQUvqv+OWnJzJnGeY2tfr\r\n3JSH32AFZLdpOauYFbbR789SocdlR8kbrnjqndkT0ZM9D0rfHrCcLsY+fzJT\r\nCra4laup9DgUC06lzj/svHSqdzYFDVYUkAj5Q1usq5avAy4G0Ck2O25tLLtD\r\nUB4yk1/8mU/jKTS4dhfzJ76EYH3RKaCFVad4Rz7EL6eoWMpK3UA9LnJ54WeX\r\nGfZljn+8okM0S3S4qqp79180hgXSKb4/1EvTNB/ULVVmd3oQgl7zV0YBf3lo\r\nGlCbWE7mEm2wnxxeXUUtrMNKjD3lwtYw0vJsIzDEE0gA46h3xKrz1W6w7X/I\r\nK2KYMPsYuaVCQmdTf6Pppbew6b7Uvm/KvtTW9H/GX8VUiLDxd2Sh2FmGU/FL\r\niuBtoxRn1iwkw1bsw5alo7/HXDgUiUUeUKqs5yAfYFZJi4BH2RvRT/If3zki\r\npIwEwa0ghHD90CQUzANPF6qZp9Ylvbu2BBc6v2uYESJkDlRKk5U5AWLZmS3t\r\nJsNdg7VwAjYxLp4911G+0kiwWH9YutoKP3eAsRRSJm9rd+DJVI2lzrGll4v3\r\nzbQKol5kytTc7+zC+FUXMuMMMcvigXtvqoo=\r\n=Y+TC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.53_1680737481964_0.7601109609132144"},"_hasShrinkwrap":false},"0.3.1-nightly.54":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.54","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.1","@typescript-eslint/parser":"^5.57.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.54](https://img.shields.io/badge/version-v0.3.1--nightly.54-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"ae81ac60946656724efea40f93516bef5a013db6","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.54","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-8NlxvwBYbLPDwkL6rg3dG77vK8d8A8IsKs7ENv4AILAqbuyu47AspdB8A55cBhP0cZPx/zQvwjEYe9ocPuQ9zg==","shasum":"3f1fd5b09ea3d763585e42bd72aec3eef056c9c0","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.54.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGWEpegQqtOQocQ5oLFnFdbVJnEOgwr8aQQDr+WbryyTAiBecx94prX+QkT1DvPyq9fEC9j+Qg6QLomgJFbUdpjTjg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkL1ZYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqO2w/7BRlYoo22Jv+c6j02YulDW24P28tEnuEkpEEu88Jreh7EErsV\r\nS5Zm6DG0wwNnw+2+TZ1SHNU7Rn8Sh6CIwifkiIIz90NG7ZwRpw4Gpkm27NHC\r\nAmmwKNAQ7JqXuv2E8vGWypWjFVPmt2IYiBXRvcujpc1oe1wA7mhKVxcNZ2C+\r\nqyLbSzHrMC1gdr+sPNRB856jYJ8qsrcAiIuhl+b52benbBdqMHJwd+qWD9LJ\r\nFfrcq+JXQ0htI/+MBS9uJnhlM+z2hau9HW0Dwz5h3SfLCLXcYKt+KSJVx5se\r\ncvzLG1d+XbwjJdgD0iQxStaVSpkWRZck/362+J8cwrFjomwXBRLbagZVtrub\r\n5RcJbx/SaMS9GgGAITbmojbuWjPa1cwEMk/lAYOBnkdO9ttxHxN87Xj8clQN\r\nSZqlWgUTNfaGkafAYmSx7hDXSmp0scu/UMztqTWMXJDiZ45PN2t9LRuUef1M\r\n7LCgCdZigOma06Hk89aenA3ljiPIF3olIiXBEWAUY3LtCNiWkz8xIT1K9FvY\r\noeY8F5Z1ObAZM4Z5HDTWgm6g0hCG9UdcbFEd8xExwqiWtiMT29vGYshRTkIS\r\nDopHtqPdffHmy/gH0TJrn2StQT1Sl/z0YDW3IZO6XKB9tKbVDZ+UIWLf2lIQ\r\nybXPYHY/3DMvaYrMx4V39O9l6M5ufuWWupY=\r\n=SFue\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.54_1680823895999_0.6040176939566442"},"_hasShrinkwrap":false},"0.3.1-nightly.55":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.55","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.1","@typescript-eslint/parser":"^5.57.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.55](https://img.shields.io/badge/version-v0.3.1--nightly.55-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"c9e02c9ff360a44864913371685825d33ad84835","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.55","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-efMa3IZhez9OOdC1KjF57FgF7VucpUFndNG7EBIpMtyIK8gavs9CuR2rhWoiA3lJtG4ErdBKeC0CqIe+ni52oQ==","shasum":"f90e22c3deb34a671a2ad0a019ff1f86e09617b6","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.55.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYfqI8cwC83vpAxnCMeUnEX9O3URzXBSaQcov86Szx9QIhALiER/ZyhEzakdom8+wY5uvDRk9r0d07/EYjGzwXwLU0"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkMKfJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoqUxAAg4KiKihEl6RZ4gpvHZu7hqujpQhsV+hm8JvGIPRR7jbsS5pi\r\nYc6a4qksV45nt9+PgYb0bc6Zj7WnCeS3m3klxiHf+uxtZ42g7CCZcotSdOdd\r\nFyHQv+a3uVEcCN0YDRP2DCdYiZl3IVltkoYf7oellZQ432MEs3eSVqEp9y6O\r\nIkuyt60Wn3pe4cUaGfZRIbPnFhi5/Tq1YsgaHSmBLXqETdwaEfZpAoWPmXzr\r\nq/aAV09rw6CqHvPoxHn6IRfYwXkczKEwnS06OgwP1LJ3kmFQbAvxFVqYjpCH\r\nGrzp33maM68ain1YUrKqrVTWYIqvHDlvxKfNop8MsXX42UcHXqvHYhaQ9Vem\r\nz8bzNJA+dI8qiv38EiB0sEkIBzXcYt27gKME0zKUDDKwATxBJ9h6JnjIHIQe\r\n3O9DBauHsy9aTXT6O907k9S094mj+QHAuZVHlZiwfIg/RMnb/38nDz/ntj5q\r\nhhESA5etn7daS0dEcw3G48Jy/4RZMJs9GFF2j+1CrStY/fXpKcDpte0/bPYi\r\n+M5GCCzwlSH6oL/zc6OP1gLVMI+Ns15ManLUbDyZbCfgE2yR7afoq8mCjojw\r\nuhUGjsCW5KK9sGWTaLPoYbtMjv8YLeMJjRj/3lKrw9rcmkp7SE4EUgV2ykIF\r\nzPGM8NM/oEkRnL1zWbke2fzgG6FdsMIwA5o=\r\n=Axge\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.55_1680910280943_0.7351897528309845"},"_hasShrinkwrap":false},"0.3.1-nightly.56":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.56","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.1","@typescript-eslint/parser":"^5.57.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.2","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.56](https://img.shields.io/badge/version-v0.3.1--nightly.56-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"e6dcad0974837d67b3fd44ed1e85c6f73d381af4","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.56","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Jd48FjdtLkQacpnJuBYS+2qRNQyMttX742HpJ5ByPjbXwcWq31sqNKIeMVHWC7I1rmJFngPLwRDUpREYCv2j8Q==","shasum":"56d16bdc21152e876e4eabe874557c68aa745a0f","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.56.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3BxEoQLgJ+ADS3bQgdz2/YV+qpUkDqw63fQhdRoQMWQIhANbgFR2OJ3p6HpL7opvlXDUolnhX7DSgq2e/P0n3cr54"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkMflHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr7AxAAmDYVGqdKfVdLYY8hrCsudm1EycQj/WDOAnl6qz8e1RhCe3BO\r\npTRBhXoKOagw7rrd9+azuv/u9vxN3v87Ic9bf2KulFgqNiN/Ia6yev2bUf7r\r\nMqr90eKnkP156Rl4QWJkOLs/w3xJAcQ1Nyes/HL6mVvZAWAU19pEVm+ZLP1v\r\nbpjrKUeS3lmpHU8EmrtLxK4C1TuONnoVfcS/fI+LXqWW4qUUkWmI7ZUK16Jw\r\ndebMRzSEKCscMi/YkE79KxJqahtbTxhQl9tgO9wBde7IJd+1heMeS/zF8TLv\r\n02lVWlyizpmCm0Uk4YjB/8UB0KhK8TrtrBl1moZdWVt4PUdEsl+PLyvCnX3P\r\nQ9YMy2XA+IMJfzGqsafrtOWTgzIoxWckx3GRmaUM3VbYd5Sz+RhdXG1MxGEA\r\njwvrL4dg2hYJn4El/IbMCkvliMBAKLz2QxVFirJXdWnS5JqydHldw9UHbMCC\r\nPSqdhlTJucKi15pAnvzxOitA6boMicHahGbzDIF6HwZyQzMLp2jpQz7VMU9c\r\nxYijg9LQjX7EJ79rpvqH0ugyu3fZ2636tnj73Jr/nmuaalTyq89WWDaHooVn\r\nw/R7+LDhSRFdCrfJpKDsqJw/WK7ulrHLr69uXq05pUjhP6J8x4mFcre24wrl\r\nMTqCMCeY/jPhYTR6ONgN9PGO9nbMcwOiqGQ=\r\n=KTcN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.56_1680996679419_0.08593692588640045"},"_hasShrinkwrap":false},"0.3.1-nightly.57":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.57","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.1","@typescript-eslint/parser":"^5.57.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.2","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.57](https://img.shields.io/badge/version-v0.3.1--nightly.57-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"337f98eb87d7e259949ef3a964fb475b4ff9b3ff","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.57","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-jDR+Lq8j3rto4ip9UPAiOml5jl1RG5JK2I+NXaRSDStCpxI0FNvNXa5tVEhcUGUWdZnsB+ywmcJ3jsvFu7YdDg==","shasum":"f4a054d138c361a123059fc8c3af2b50aef87497","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.57.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBA1w8goN1FfY/1konXc+qXVlMVfeiaQi0Pdi+RQzuHDAiBXJ2iSpCfsPWmAWS7eqvGOOYRii97tabLX3fcaPefc0g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkM0rSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpvcQ//W+fswAf2x0WsIadv1O0BM/t1Iewn/VaIuWc7uZm7L/oCxBRk\r\nLMJhj5id0Db1+sqf388k3UuXlVozhzez8ILhQ9MvC3jbfhpZ4F7v421SqqPa\r\nzbU+wrMeVurU+abWI2HMB9WcxGxtVcNqv50KNXPsAA9Z+EqDVv2GprIKN6Zz\r\ndt9vtpkL4Zsyx9ncojgJvTpTBN/D5kPdEd6YuOYdaOP6vBO8pWh3lPkkMO4o\r\nO3ffC4O9xAvrSI8tyPN24kNrPTb8qPS2yvKITtbXnxWW+QFhwjVYDvrFavAR\r\nNnijEQ2Lps6zu6mxsWqDmJ2bMNP7bDCbD76tFWyczebASq5WNCUC4AxbLYmu\r\ngFBNa8pX3V57f/vwl6rkLhEvBjEHVwBeHqneLtYaQXiCc3gLPCb7IzQScIkf\r\n62FAx4ZiW9MJlmvETwtzJGX84VJd3WN1glAMmTCXN7WmUMlAIHVZieUhB24y\r\n6++Sg1bxmIfaI4TlxZrQyapgSR5Wor9IkoxvmeYROaB6o5KnyHtAtIHidq1+\r\n7HgvnBW8dxoqg2b+rJORzjuCHlsz0RJ03k13s55ixIRTCfkQU0Aet9B1DB4K\r\nqrQBAH/0PtJ4IyeKpzGaVqIc9cIyTe0pCmRA1hXb3Dv0BqyB5pyWyqMyLl8K\r\n52YjEHH29RTz+yMRDIVPIiwe8qHzB+p/Lzs=\r\n=3WW0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.57_1681083090453_0.6982430135518225"},"_hasShrinkwrap":false},"0.3.1-nightly.58":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.58","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.58.0","@typescript-eslint/parser":"^5.58.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.3.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.58](https://img.shields.io/badge/version-v0.3.1--nightly.58-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"8c344d5f2b81af9b5c5ab759ea743db24d28b386","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.58","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-CRcKujwr4lGCz/PgwaHtCbENqepJkWOWS/5VLtbRrrfvMYojbmRA9nJ3ejS47VvW70TL/jO4qcNL430QWQsKsw==","shasum":"70e4e0cd11c5a2eacc2c7356cf015a64c09002f6","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.58.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH+Mu/F8c8viIMSbyMUDuPkpJPHOf3tS1SAwNI97goXnAiAgnzDh9geGEENlpyhy1kkWA94HdqAD6x5b5SFUDa7w2w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNJxOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqSvRAAlHNZF7Zv1asH2yjAEtEsD3E7a3n2jINAPa9eiVf8lbWqex+T\r\nmdn2HEPVuLQcHduwwOw9g4gHormNpnyR2LGA3PK86cBJlB/2e1VcCRD+wX3n\r\n897vks6iRpntqWn4u7aQYgbjc5PaqBXhsHvf+N8gDVzic8lEIecJLaHP12+N\r\n6r3FMpj3KOvfBN3U5T83n6Q7SZMJrRW/9PzgariQW8iopfKc+ZAyfhbYPjIp\r\nXKahwvPO6xEQNDGcC41rQ+TX5InN5ENg3nNt230h+G01vvxu/+JeLkTJ+vdS\r\nsKI6jQCRpGeoxUx7UZRh5z1BY4ymA1Y17nHtknZKTBmq8Lp+zmyeKnWmoqd+\r\nqZb6L+DPWMjgvGZO9nHKnlneaeexN2i3zm3MUTm/GPMW6+4yW7i7aKqIiCGm\r\nHYviiaqpLF4/Lt4LssE7aZi+JqNszBqLcBc1iZBr21AS+4OZycfdjM4ymHoM\r\nc9GANzXTKxynfnnXggn7TWoilblmHt2DVHsTq8oTYz/igzOtnclt0PZhi0TA\r\n7MbGLKZoxI0f2oGElH+pGplpTKF544LAEhsLbA/GPbG2vpJS7h4qfiN/EZ7U\r\nPg+vNQspNnU3YssdWQOsLusDeD22DQxPL5DzRJzwwhSW8L4DgBc1jEwg/6z4\r\n3URmBkArbOkZSCahZFKzqoRYOjR4nguK2eo=\r\n=Qncj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.58_1681169486504_0.258727918537079"},"_hasShrinkwrap":false},"0.3.1-nightly.59":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.59","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.58.0","@typescript-eslint/parser":"^5.58.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^41.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.59](https://img.shields.io/badge/version-v0.3.1--nightly.59-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"5ff0a9bd352737fd7423bcecc6ba8e91f45d3308","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.59","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-rZL9a3b/JZvGOapXl+WaZS64mA6bLAmJx4dMohatPGOOBXO/c7VNI5QkDOORtGQiW706pa33LmIRX3g9GUcwug==","shasum":"e6477c266eb928ae30f86c3e7cbf8f67458850d3","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.59.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAXPVMGgqMImGO8QhAP1ONgZuEIvohRNaolGCEp9J3upAiEA2sGrSJOlzNLtJIIw79uUscYwj4Q9P5QNWpSAIvGcy68="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNe3NACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqJXg//YcXk+gVLBCxBahON/GFlLYyetfl2/uU3O+yiWWKP6cTh1tAR\r\nbRodrGpbeer1T1cl3YnFLjP/cYzGtrS+htfKHMb6BaDZJuY0w5eP0yu5/aMw\r\n29TtRN2xcFauuAK8rGZ6e8vljZ7GF7I1+RnBxxKWgXJj0bWEoGznN1586JYV\r\nYOSubMMDGGBpjjF9r+kGxHBKLbVhTQfbi3KJa0tQJTq9bXKd1KtHVabv1Phm\r\nViz+aURUOhhAJGgJgS+lfMenPya3Q0B5giunPrL5tNER9Nm3lUtp4dinyGCi\r\nXB+bhKhIBxEAmP5WqlUvs3xxD4e7MMdK0OVXEsWV7NV/RzTylbLvBqd1fVns\r\ni4FMiZjVYd/dRo+7UQKJ33BJMSu/5kfK5nPYPTWrFjOtxxhRbAKpoBaBUGtZ\r\nMwreRkA8m7OnKgHSSjnhpJ3va0uJ2L95ZA8alRfrSi7R804vW5YZoPpt66ky\r\nVlqILexZNxUeahQzPbqHfEtRxypw1zNYKzz8cEq0LeRNp6FstF7c/q+aYOTe\r\n2A4m19FPd+vieAQROpst5kBjAEreLBIZEcyD1a6ekXOMscAa+Masu3xvjnbS\r\nb0QlHeJoDtnVeB2rfZohS1Em4Kq9cmkAutVLkHdlk6o6BJdQcvhKE5CW9ESH\r\n88tfHY7/ttt15xAK+GFoqwNdGexxYA2NOQU=\r\n=sfRp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.59_1681255885021_0.18297262902392997"},"_hasShrinkwrap":false},"0.3.1-nightly.60":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.60","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.58.0","@typescript-eslint/parser":"^5.58.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^41.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.60](https://img.shields.io/badge/version-v0.3.1--nightly.60-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"0dbf5c65d1f0daba664d12b89413af305d894f16","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.60","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-UIigd+zjOys0wi9Ch3Ql4gQKL/ZqZwahFUtlP9+O82V36BQbQ5qDDWqFUDu1P+Vht0RLchNxYdBeFvv76QOVoA==","shasum":"16c55d7989d5f9b6f76f68515bfa90cd1fd47bff","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.60.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKKg21EX9FwJ2pT75HkGQh4aV1ddi1iAK5750sb2S0XQIhAKJ9YgNYHYTSaLmf498W1k9audDK0yNpcFmteARaDCeF"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNz9WACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrvRw/+JntdJJzZU8Mpflksv74wmlljBjoHGUw0dfTt0KHVipGvHDCA\r\nXRb8zOfp40z+lURh5I+3E3p47ryEw/V3aa9qu46u6rvK6lsEpwltkpEuPu8N\r\nCjZxnf4oFXefZrmBqP0+HKzl6Kyv0OeLYGMly0o/m+PCeDaqqO6jrZ4Xr7FK\r\nRWlE1wselbWWwOnrPCbePWdd6jJQ7t+IXQRrJ8JiOz3ccneJUn01D1YZud96\r\nU7pmXCSmNv8ZHftWSkjaBrVLyuN0jpy3TYqGJsmqMpW8AYXsbhcDCZcXuWzg\r\nobIRK70d5tUkWpGX9T+UIw0V2djkyJ5atvV1DBHaM6qVuN74A+iwJm0PQoZr\r\nGHcE7YvrGu+sCUMIG4Rt44tSqs2H6uxbGAagw9DYjLf1+G55cS/06TpXzfFt\r\nR07ObTY1SbcfQsR0c2nU8xpC0mw68CJFaxcs+2tJRFUfX2w59MlR/Hmn0ixu\r\nCQYfsaM9qacqJonw6uM6iCkqee4g/jgnz+SYMljsb1uhgbb2pJKDI7NB/dnO\r\nRuRfwSwnT7U4+lWjkrcrt7YrVNMcAlpDooIHL4llvotER+8EY2iB6yMG+QsB\r\nmZ6nPg0RPonXqaCbOwXHsPKLMG+BuhS649v+Dy7saQgdQ4KhIYhg9vFqndJc\r\nYAcuLfPsOinbGaN9bCC6Q04xio8Eb1aojxA=\r\n=yjR7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.60_1681342294663_0.3783030084896497"},"_hasShrinkwrap":false},"0.3.1-nightly.61":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.61","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.58.0","@typescript-eslint/parser":"^5.58.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^41.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.61](https://img.shields.io/badge/version-v0.3.1--nightly.61-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"742e963afbeb648088208f10f064f1a7ec384372","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.61","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-xbWHXcvjvf1uLkY1qh30e7JvoEd/yqzPcW+8e1D1P/xdkH2ETDvKuu/kk7yvj+0FMG1fqhcu4v5fr22A6RhOlg==","shasum":"57aeb4ea6312e5d20f6ad59e76f1991b68bf1c1c","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.61.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrWH1+qNqYW/4+cfs3sUywKuZ5+jC+9CwMOcI6aePwfAIgJjL6Wopn6F7qPuHpdvrFl1EJzla+wZ1tP3aiF0Uj/EY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOJDYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoQDA//cwRCRB7ITzTxlGGhL2V9SZKBY1JRfWKbXznTtoNnTB0/bLvz\r\nZWNcVeq3LuCWlckS7pKUORGBrYwfr3/RI8qPre97DaGO6bvpEDnGVDZQUhKn\r\nN1ecfLK63qsASNt1KXvs0gIiOHNyyG2+MbBuJKi+r8+/h9tDB/cFmfDwe0xd\r\nzrB6jnQF+t+seBLj+dY82IzZ9DeA+YBjjwoROQ9GEyK0/t2LWqPh1HDHEkYX\r\nMzDcFFwPdrZGtSvfdYeyUFvUE0kvOs83kAp/FME9/vXpO3Ui+EchHX2TyVTs\r\nOa+frhZQh/vHRQ9fqjJGEx84jIldXcwYtO0NMb8BCu7EZmbO6ngc4ecCMA+h\r\nOm54UUlhJ/p5yJHjBVOFo0tijJN8XUr5MCExLGwlCD/cetEOFtRoWeZuPJ74\r\ncQOm7bAnaxS8jjQHO96PYb6tT+C5p3F4CeRo8hB51+vAjW2EQx3FB04qafMk\r\nAXbnbs9V7Z1UtO0QHz6U8/yM28GCBbRSqa1hxN3Wo0TH3iPdjnc2inGF4DV9\r\nHU8IKAnpsZHd681tfdmpM8fbIoZyVnFdkIoS9K65bqLuzgO6G4y9EuiVqInd\r\ny3zCHdGnjaUSTlT0YBVoz1k+YjE1lybiI+BqDBnCdmXx5mA/LPVrSRf1ruQc\r\nx8vP0t/WUMyneki4fkOCkpYUH4QgVHBhkKY=\r\n=x30u\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.61_1681428696602_0.7382534176643702"},"_hasShrinkwrap":false},"0.3.1-nightly.62":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.62","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.58.0","@typescript-eslint/parser":"^5.58.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^41.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.62](https://img.shields.io/badge/version-v0.3.1--nightly.62-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"848c4ec3baa0fcd78ccb1ee75256a7a419da17a1","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.62","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-6EsORTII2W3YrAMoWBpGQCOa+ZHRf5hG6YI168nCMc65o1wG+ZfoVmBNeaf25eQGdHym76QuvUY80GIqrjJlcA==","shasum":"257999f0e3dc490009a9d6a9f2ede9d228e25802","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.62.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTxOSP8o+I+y2xDGwSCYfbPR3jgeKzEyvpr5oNpa2jsgIhAO3T7XBEKzcMGLG5JqdOE2/RU6x6v0wU4XGr7Elwbs5V"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOeJKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqJ8RAAnBNqEQAx7n8TCx9kvWVQe6zgwdEfIWl3j3QAMLxNR/BGstNW\r\nzaRhaosYSl2LTo0aGBOAvr8o1v/10ELxpQcDD4z2fAHAPCb+6BgWrMq8453p\r\nqtBVYyuDdn4yJOxzoK3HCXvfICuMUZoGv6fzdJdUOZ/n+gBP7jxKogulKr9y\r\nm9Fbs2H41dz+ayUiao73LwR2zj3hKbBglmB+WFZqtqtTbrD07iiaBlUFyrrk\r\nbiA3s0J4Q7BRM5wCdMotNvtyDPWYty4tE6Uwj/5oaCGjwylrpyXF31lIHIgd\r\n9QmSvWIqfmTgd050wXIcsTevNzjmmUZ7qup/30yMB53MW87+9ctVw1GYophB\r\n2dk6Eo3kM61SufcJdot6LzvmTW1zbO6HtI4yzW1xBFDhBq8NlDMjpJ1b0u26\r\n7HVX/aS9P8JepuYD42YssjdEx8g+iucoDiukYJfhx5ZYLViqLhocjCKGCDuu\r\nfDmofIWaZUb0YdGV2Rzo/TurQyLeBP2u8so6SyVSx5PHuz3x6ur+JHBu6wYI\r\nDTslUaOx1+Iji7byk1QhvnWFzfjnL+WtWcZbx8nuIhknJ54SOtHFtD8jdADs\r\nl7Poxmv5qTV8I/HiqKjjz1znGr9FBcmgh8Ag5/IYda+UuFyTDLIPvWe+CKwL\r\n1irsnAAnoFdhAGApY3IwBONqrjUHe4jDqX0=\r\n=vO5H\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.62_1681515082671_0.6844421945410006"},"_hasShrinkwrap":false},"0.3.1-nightly.63":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.63","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.58.0","@typescript-eslint/parser":"^5.58.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^41.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.63](https://img.shields.io/badge/version-v0.3.1--nightly.63-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"6d0266e5eae3b27520c0c423dea700c03e7526c9","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.63","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-TM7rSCTwftHFCzVmZOTKJkCW9DUx6N5o1sZ4XtjcK2JE8I0+5QqfIi286rcsb5PfMRctUbJTsyIjMP/W5wiVSA==","shasum":"e6b4cd8b03b8e27c26903ad9ad728146f2fb5bef","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.63.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA+7/RMQ0cgPxxU2PzfYpoysQjdM0ktFyKwAkXP79SFZAiBP62Xn4DDVv6l9reQ/f+jTpEOAQu/JvloBHQco/aX22w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOzPLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpEhA/9F/XdX6MbNH4iBTjkvt1eyssNnB4VCo2MNjtH/78N7LBpWR/V\r\nnCGMVeokbNGiL5Fk1sknr7DKOci6BH6/aveylUGbJx7JNZvwbdkHokgQDRmf\r\nE1qdf9yvDAThX69uyWlat+anh6kxsjMlxxD//FXxje+/R8NVLgraLlgypHk3\r\nPSaTDkhiKhmWbst7ejflmUyOkb/rtFQaU1XES2RU/3i6TZsMYeN933CVz1lp\r\nsGXlYHBAG+vooyeR0u13VQKbpU7dndrSIml/Fn56XzEFZ5VHvS1Pm4g4Y1bv\r\nlfxHCrpk3LF6RKIl5jjWdCGYfSvWOBN308MHO8mD+Q/SHa/r9vxr7WbYgbsV\r\nsnQhZHJCTeS7DcMHNKV63Pgpcd6khgRG9MS/0Al823EbiixqfKNAWdWL2JZ6\r\nFBP7QA4MU3E4etNXZVbTUHutkZLwZEydqST7Bp8279DNPzamgLc70tpgjX3L\r\nWoevbGE+zXGCn3FY/5TswOtoVc5sIi7gAUQhZVzrf251zKLn8gIZoCi2Rnnr\r\nPsMICqbN8UXHqxvOMiS66iLdFPgu/fq6+GYLtVFvAN5ZDo1FueLUKM0eIlGG\r\noMezQXN0qUMDlrPJq5rFlXVz0FDzh3thb/nDJlr4TVa4N+Y9ef4W3eWO6B6i\r\nnDGJD89lK8EfoQD1fnpwMXLSuGGQEWA2UAA=\r\n=c5fy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.63_1681601482839_0.507736650452129"},"_hasShrinkwrap":false},"0.3.1-nightly.64":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.64","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.58.0","@typescript-eslint/parser":"^5.58.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^41.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.64](https://img.shields.io/badge/version-v0.3.1--nightly.64-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"4fe4b99d09cca23b3a01b291931ef9d7bee879cc","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.64","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ebfCbA+wvo52QN2tJ2vsjyK+UOpzLYRf8hXJH5/d8lwp0LzFzK+iPnDAT6ydWtO0dbYdfb0ecFdOePz0wAEM0w==","shasum":"5183af3bd2f00641b77db9a634da3fc12e068f49","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.64.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnSDM5vSON7SRspHm+2S1nEiozW2mvM9+A4NwG/C4PdwIhAOL99/Uqx5653ZDDeMd5oRUs3sr92Dg4QrcV27V5OM9W"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPIVPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrQZxAAhLcrlkJBiWdtFjRmMt3mzWEBm5L2QmJ7MDngZFTOyqqBTC7m\r\n7U30C8RldOgBHS2c/jzfR3O78l66PFfwHzxysShGHsc/mhNlwyD3RT6OkX89\r\nRJ7UwC8VXVTJVftC+2BQrEFBmQ8xKB1JIjWiYi4q7kzMJ5BopO2H33vIM8Bg\r\n7nOFxNUfma6P7J4Ny0aIL5YJxuoNxuqeYSXIwP92S77FfUvn0NLiobCBcKcw\r\nFeiNKUzrvistdm4BMcosOZN0R8GmUMV1Nurlqf1+cforhB0604G08csJZtLg\r\nQRskQ0n6aMW3bKBjkhx5JcXf/Hhn31PbXRdebn5GZZb3acH5tZB1UkoCJOj5\r\nin+KXuiSSQHyH6BL3cmrn04u5RPATEYz/gXB+cyakV/9+oPyvDxZBO5BTZPx\r\n5EUCgDG2j8JeIq+Tqc7k74h1Nw0YuljfLnTwkWcNwt7ZZiAJzSxg4E5cKio0\r\nW0+JddnPEoB8Yeah01+w0Lg0+gF9VXsWOaOnV/GbUkBfBWPN8eA9/N4e9Mfx\r\nHNMAI7RuvEqf6DdzOtO/isRh5YA4WCYRp/UCsz3ob3bung+XgnuoX5RIe/RO\r\nYfOiGekyRdTpEIsHchPptEez+zGzb1vdxGRg5scTmgZsjmT2sqFsbVWtJJVj\r\nSOVRRLza6B0FGocTXRLkuJ4lofWQaxvz3ro=\r\n=OchG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.64_1681687887580_0.15409963778890767"},"_hasShrinkwrap":false},"0.3.1-nightly.65":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.65","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.0","@typescript-eslint/parser":"^5.59.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^41.1.2","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.65](https://img.shields.io/badge/version-v0.3.1--nightly.65-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"53b7f3204c5c4364175e29b9c07b283a21f18039","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.65","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-3CgX5GBBViFTl2WccqwV8JL43qoQbtjfpepipMywa4Z77VA735BSKfaz8YWNsNLgxEKy7Ksiox/znreaeFlHuQ==","shasum":"2d274da2d73d1b356432f641c7f24f17cdb3a159","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.65.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFM+cI2vjjd8SvReOPLDEfsrDsa9B6atDJILLH0FFNBkAiEA5/Q+T3oBhV4lkU/qyMezA6zk0hkeCyV8Kf7c4SvOLEo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPdbSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqXeg/9GLOt/fxWqeGvYdlFP5d5qPl3flnMtu7Pb8SpbG8NvWZS78LN\r\n+kLIXYc58UNaRunD1ddAqQv4chVQ3GYlYZPXd5oR02nuncKbFJvFu52sjAPX\r\nRJuB8/I6tX5ssoLZ0xIHuA6H0pIQ44YDln+Xby8rEhF9e4nM5blHa7ggVeOA\r\nTFFSa41XAKfVeRCE1TD6/3szNZctQ6go0M6+suGo+J0gxTBK1F+WMg1DmQ7S\r\nPrzzghL/wxtf3aCJ944cOGyiH+9e0vT6qofD//hDdofY/Y54KVr+undymA1X\r\nuJpx4JIcntKYBDsg2Tw6+AKWozcWvZRJjZ2xn5DjaMOYsDyBMMJn/AML9F+y\r\nbv2ZUZ5u/wMg86bWnIC+a3qE2yOz73ADvRtII28tzd8Zl24GgWr0mdo+3e6F\r\nYzwpM1WbtIGKoI8Xypw3W4QnlrjnsxNaKfHqWLMJdMom/Ao2elrKS83KWJsF\r\nDUh1r7H/JLTamCKgeOUONQDNWNShofj17mZFwp0hdLzsZgaFMx+zWDjcNxQK\r\n4tjmY8Ixs1hFww+ZutZtNXuHoZNTdXh3emWQU+T/QkSPWsAKSCfKgH3sk6aK\r\ns3YtgKoIblH5kas0ot0JPKteX2f8Isz7XHxy+eAOJC+voRBsmZhiRu/YA99v\r\nRFJ+jt8Dmn0t/qh5gJg0iaO+EA5lFOoV2hU=\r\n=H5AG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.65_1681774290480_0.42703705155745597"},"_hasShrinkwrap":false},"0.3.1-nightly.66":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.66","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.0","@typescript-eslint/parser":"^5.59.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.0.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.2","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.66](https://img.shields.io/badge/version-v0.3.1--nightly.66-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"5affb6cf4a881a865b6ede6a875ce7e3b2494ad3","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.66","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-M/qrIXqct38SfpZXhYf2ZOK7nkxuZWqru5G8tKUwp4XzmbZ/gE5VplJMyvmHIjHFZfZCnhAzF9w89HKPOwYHXA==","shasum":"8223e6681f3a0a34a78444cd82263e6fce2961d0","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.66.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC6vdznIMf1iav1a5UsWRWHfVIgMaxCp5OuYhR2/3C50AiEAkVDoTJmVPXSbDbh5XU50RK53qYuP3G5DoMa8V+g8UOE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPyhbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq7SQ//TT8nPwOF8H+yFp7RXuc9BXJZ7+/w1wbukQtbmKgnkbWp3RfP\r\n1WjSN4INorYsxbANVT7kCY//yF10W4R5k506avsdB7awbfcmqzugePqWiIYW\r\ncxUx8NF+rHTkZOHYNGxf0ejwK6N6bNTQYIM+3yqB14oBYmoflrLEZhTlq9QC\r\nWudSVM5ejnPy9u+GveGwd1XFt4yWIce3DWE9MnGKXW+F4XQuUJ/OiQHD2RrB\r\nQrrWjqKnyJ4Ks015B6V0XT8uA9Ke6yh7ACHwADJSs06HyVPOnPUcgLsuRVma\r\nTJ50ccnawq1ssj5fACF/Bm5XpRjhzeFagR776xMSuvt/fkf8puNveotAiSJK\r\nNHBIPwyYJUNrFQyH5apSVrv655v60ASpi07WvVVaro6WncT/ZpuMCN0tuSUN\r\n9VBmhn7gHPS+3HL41QgG1jmRzLwFvAdhj33ZlXKzy/O6Bo/6rRozJfucGQ/8\r\nzyQW1MEkFthAZiEGJT9pAueqMm+rHPkW3eQcSyoy07DOuLc8DhHwLNRU0qmI\r\n2b85TkHXYp8Jf+4RjO6ZzmLMHTyu4ITu0WYBxBd+UhpgEIkjJOnROrPSqspF\r\nC3nhLiX+uDGpXZ3LX+VFpxRLOBT3oMz1D1Ykl9wsfXWZS5PdXVjNrvkHEJUq\r\ndosyDCtcrI2yz4SqrxSbFys+q8C8T+Sz9Fc=\r\n=KKuk\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.66_1681860699415_0.4136455287565115"},"_hasShrinkwrap":false},"0.3.1-nightly.67":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.67","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.15.12","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.0","@typescript-eslint/parser":"^5.59.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.0.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.2","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.67](https://img.shields.io/badge/version-v0.3.1--nightly.67-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"623ba7715b8366024afdf88362434a233d018f40","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.67","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-FH3GpVpp5XXsB1LlFVuhedMM6bus9n/SFvvlFZyG2FmOkeJy9qjoQvsdkeRFjTWcSA7ZVc3nCbaOjkt2/gkxnw==","shasum":"4e7c607c8a363b592df22c17109bfbdacf9687a5","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.67.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH7xwt4FTSCeT5m6bL7DWElgq9zD/yKQ9lz1/o2/GWXlAiEAiC8oCk4r0wz6R6ChLcJ4Ko3M8KN9x+Go1syugOrEhlc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQHnPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqyIBAAiAKYT2m/5AvH3457u+gac3g3F9IM8iYFqhXJBF5qRIuDW7QV\r\nvxGnK0GoFUq2+jSdcV97RjBqHLKHU0JGQT8j0RkUQIm24ip8m/Kht2VwY0lj\r\nhxkOOZcxbZqbPM9pX0wNSWMVphTA27/tDJjRTi4gNWxu0UFRB9Q4WuD82w+T\r\ng3DZH1qjpxJ3zwZStf7SmVrnVDHjQrVzfZW3JQe+CmKLhpqlvcylTYtD85h0\r\nGAw2cV3BYsBQlLfwS7VCmleUfBE75ADhWw8EzYs3JZXcI6BN8x+gTVLRRHqv\r\n/LWiDS4k/R74+DH9LONVUkbmpZ0Mz8Y7Sn0hOZVmiCtVTnNesjOS54hprTGi\r\npz1PBRwBemNEjeetVGSEoSg0wMCP2Oy/FelUDq9bIpkBdk78JHoOu1NPKGsl\r\nY/WToI+FWpjL5021dZKXO5fK/X0p+xBAeSkQsv/efXt69K0gUoegN4ckyg+/\r\nZ83bRQjgbNK2MGf67kQsPLmJIm5kugBWCevp58D89HpxrzS6ZA/vOrOzcnb4\r\nLm3Ha8n2P3sx2F4tNd+H/M7fYXlBcL5BtEGDQBT+0cgIeOgql19PTXN6pHdl\r\nc3FxJypnqteE9dPpfaMFFhLt6gfcgZ2JoYO6DWvg0gPztClAYjSkUuDqcACT\r\nce8VT6c3o7qDtIAaL0izO0GXgaHB4fTYfc0=\r\n=BC1B\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.67_1681947087186_0.7413793834506857"},"_hasShrinkwrap":false},"0.3.1-nightly.68":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.68","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.15.12","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.0","@typescript-eslint/parser":"^5.59.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.0.7","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.68](https://img.shields.io/badge/version-v0.3.1--nightly.68-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"8490408ced77194c5dc72de3fb4375c9d05d3491","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.68","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-OGUt62Sjv6rhrgm1Xai0s9ZZVlJtA2nG8BjCbN+aQH9UivC9JRD6gqQM8KTpHEbmhQHoYuUm/K5SJr22zSuu/Q==","shasum":"ededd1802f632f79626247e0f5b2812241ccd3df","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.68.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBdfRdOM1rpB68qU7djWDO8aDPobzI6mlBM5JPAdK0EDAiBPFOAOZbAuTqjSwoVGz1kUEkDHxM/keIGbbqsz/MltlA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQctUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpbAg/7B2CaJp1gNd1bAguntdYne4+hxGWk8SqV+zs6ACQT0wTzBR6W\r\njOV32uuYBWksMOtpTPeSjyUI0BmhLnf0j8ni2OEVExu1IpZISdSxv7HS5WhB\r\nbQ3ZsjF9Bqp2dtcw6YEb5yHfoMrx3CCZ+xWt35jpJ7RXvjGzwWLLpcPOkVg/\r\ngHxzfv2BwoYgZ/K9hssUGIAiRd/eidJKJNzvtlKGYb08YjidZ2DHmsdKV/1s\r\nFB4KsdGUZ3Y2BjDy/jiCFJj/2VJWnjRzYdAycaVe2VnwbkHKVol0JYnk53d0\r\nlvjY82NrYwpvYolmtgtd1NUosds/M8vI9Pp5F0ZWse33l0z6vfR5zZh0Ft0s\r\nh3ljbjiGK1crk7ujhhNZI7QEYlXjrxfwlBf5LFBBjH/rP2+jNQAZoi3b1Qxv\r\nE6WyGU0yPvQIXLzJXepVcO1MmF+oogq4IoT0Mbwqrwl06c99HQ3heBjavwEd\r\ni57S8pkaFx2lThmOSgTUzNHduohKZ2axgzXQdZHZznXjwEo5znhwLReX1zU9\r\ndikEwmCjQB7NDS8mUj/IMYuQ7+aRlBzt42IXVJD4U7PWg7XAWSkYBHiROq/g\r\npOipmi1xYwernium3Wm4ep4s3F+3U+pNwYM4JA9tKh68YK+91H2+40G5xAI8\r\npkmlihzJ2JAE0mvwUuyaO7N3sf0gXOoHy8A=\r\n=3PKX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.68_1682033492211_0.32534191797807854"},"_hasShrinkwrap":false},"0.3.1-nightly.69":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.69","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.15.13","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.0","@typescript-eslint/parser":"^5.59.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.0.7","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.69](https://img.shields.io/badge/version-v0.3.1--nightly.69-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"960a4e711f6eb0965c61d20b64f414cd31fbd3d0","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.69","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Y4ixYWa0T2laf+73UdATQ3946R557BmjRX/7s+Od612XBgDybzpMjEbP4P4NIdF/1jlQyCujSZwkDvNH6S0jqA==","shasum":"6286f654bfbc549acd34a1bb85a430e6b8308b61","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.69.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuJN+CpWN+ca0MmBBAyinXzgNeqgVzmw2Ev1R+Frxr6QIgQHyDN2HlGOdEHQFaGr/UA0d7EWstSx2uk2OFwCzAG3M="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQxzGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqAuxAAjbVNqZ7l63oWSD6iwcJRQm+yTnjynE6wW8R8+4tp8OInXMr+\r\n2nb/SyBl25uvsGVLZQbdbjx1NzY+0DRklXaS6W7jI3Hap1BK90clL8WGmP4i\r\ngfRkkqis+fP0qo5adwvU4+ElGk+j8Qlo0GZJXHXrn3d/dfTQGwazUT4tQrF6\r\n4H0WAGUiZiD5kz5OWyfofTiSnSzhesTULlrP+UN3Di4DPcJgVY/OjZsQGLMG\r\n9bYY8E71CVydWmhHMYyCNrNv3mw7gXG6zlK2pobGeTSz5X4oHREm8z731fo3\r\nFO2s/weOQZHqtOlREqpash7lbBAUNbmBmWtVpiBnRWQESLcc3OZgDLeQv4n7\r\npVoJNQCvkrxUUmmDaNMxnfwF2ynfiP0hT/IUMGS59WiWOMOYwDijDObTR2HU\r\nhZ2pnhX+/ajP2ynwYmblRdC82lWlCtqIWcqaV/nsrfWMdMi8UvWTvB4eXb/f\r\n2+WVSgkNRY3aB61P9Gm9wyUqYDLBssa96wKiigB6LIMLtTtwZ+U1TPtZf2qo\r\nH3AMGI/NPkV6N2sgTO9f+f7Qiqg5lQEfWzrTEKlkQ+parZqdp4Oc9hocAN9a\r\nZqoOyCop7FkJ5TI+DCD87rIqXu3tnq8rEKFyPnRTJpt53sbChOTtTBqiRJgn\r\nS730QzKrIAJzupgzzzu32sf/TIY5rTxFKNo=\r\n=oJGH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.69_1682119878132_0.385766473028891"},"_hasShrinkwrap":false},"0.3.1-nightly.70":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.70","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.15.13","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.0","@typescript-eslint/parser":"^5.59.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.0.7","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.70](https://img.shields.io/badge/version-v0.3.1--nightly.70-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"2f089ba81e0b83802b309b551567b788b78b7305","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.70","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-cSpi+6INrFKTRjhH0pXQBdg6RN80R8d65bNc/Q+UuqqoGTjtVFmjgrShQsZ9XhFnufl5o8a9M0ed/ZBZvCAQnQ==","shasum":"796d485bad03313077a663aa9b7dc745d6e42d8e","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.70.tgz","fileCount":8,"unpackedSize":32969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCosZTwoJ4CjDYfPijwlcDz3hVDTW+RcHnsZWQJGJdIrQIgFZ1tL+/EHFrgNDUkqA8BQe0shBQBHXcDTxLoxckXlbw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRG5hACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVUw/9E2pYEUVVAl6vuGK/OuCVOEXpeh7A/ozBeDS8GsQUZxY9RhAL\r\n1++G/VSwvGSi2OF84+PsPSpra5tpeckjTVGN/IzxPK9K5Da+f0PcaFIADL7r\r\nkVtDuMxUvNIYPV1r4ndwO7Fx70+g8obCTrfsKtWPK5ofDgiyJE1tvy7K58HZ\r\no4g9fEqmD87aa5uFqheW5KzZ3mwrSTlQOLhMQrMsCCiM5QPF912TDzaz+MDc\r\nxWtiSvtsI+Nso0LXFAwFubZuLGHDQS0en5tQMvMitz6YC5i6NjETYpsvNyeF\r\nAUUl0U2eD4QEqcFRyP/Hx+Wg804s52RxpTdhlgDOk35o8xj1MPLc0/47XvVA\r\nwfRt5Ma92sp+pcui5VRmwDYIT7UUs5UORQMNXnNVvGTMytWFW4pGJdBCiNee\r\ndg7eMmCaUa/M02QjkuM84ISAnbvCAy/EJSRT/ucA/KGk994DJbO7FCls/dlo\r\nCPC2pmKU0FY695A6agW2FlaxNhfKB0uNcVKd5QFmWyeLPWYRnUZ2SAOcWQQ7\r\nkn8/8F8Gjpz/g88KaVGiAwi9Z8Nm+14ByONEixVnsiReHseWJy29Scjkxvvx\r\nKfADMzoBvNqDLjQ77+hvxDotS5hjyYMKRZGNIXotx+6CWFxbHcdja+wmqjrs\r\npBuz/ehTOmR96a8ODLkb8OkAOEV+2k4mg6I=\r\n=+wrF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.70_1682206305700_0.5076189159254672"},"_hasShrinkwrap":false},"0.3.1-nightly.71":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.71","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.16.0","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.0","@typescript-eslint/parser":"^5.59.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.0.7","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.71](https://img.shields.io/badge/version-v0.3.1--nightly.71-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"a4ba906830b18960545eab0c40a33bf9cc541b72","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.71","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ZvtR/qK/idnicvA6eeEGFJ5ZStudVXRI2dFGHG9h9V0r8p4bqjRwzpMMmwcq30K/hgQgHpjSCXpEorll+6v1sg==","shasum":"2d96e99007e6754cf7bf188782aabd71ed197fe4","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.71.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxB5b8SMxtKSTGSfHXKpuRoW7FjRBxR8EcbH1746TDaAIgbZbNXxni26ezIwSNb+Yxhssn19K4pLoO2chUB+DEV38="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRb/cACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqSkg//fFY8r368DnZPHGPa/ZZTsS3zomn4NkL4YEPebLPtbvxMqVef\r\nvwRKL9baF4Cfx9RoekeslQF2/rt/vlQ9/3xbkcrbYQWjxc49LDSgXi7ZdCxs\r\n0WnnHzQ6I6m5jhQNRtsZQ4kCf8YEmZHrBDWa7By4bNa4wYeezuhVk9ydyJQm\r\nIrcO6wteO4s1AICGDqhpgx6jg0e3MQyg6tXJyz9cMMKKYvDhIppf0FRvexuU\r\nQgYXHUZsJpDbwDLgXEl4UzRSWKaxKrC38QTAjhpTDmi3rb7AqsnHH+0HvvcE\r\nnvVTrOfvVCvyQtY9RsJmPssHmFL3Yxul6oeNTgPROUo0htGxYb6bubu2d9Tg\r\nafzjY34SxRQmHUfWpB3J9PUtqslr6XdxNrZZWf01P6JVleUPhzCbGN3tkgiB\r\n8t/0/isKHSQSRpPswYptPA3GmX4C03WEHKWiCeYssGk/UkjR3TccDNV1Hg7A\r\nEQ3Ryl30BAnCtEHnDUJJVKj5wWK6LfjQbojT9YxFI5h/nx7xTop0nZWg3DUI\r\nd6vQSZBJKSQyTjNYQkm5pRkJy+oTpmS5tsC+0HaY8OXBfW2U9oQJQRFrKr4Z\r\ndaabKuhyYK2AKxt+j7rU8sUwih9LY1jEBXcy/cnqCJ7WJZLClKC6JfLirz4F\r\nMsi/LMlS9BA39EIp5E7Rnbot3M4RlykOt5o=\r\n=LAvu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.71_1682292700086_0.07088503922823919"},"_hasShrinkwrap":false},"0.3.1-nightly.72":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.72","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.16.0","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.1","@typescript-eslint/parser":"^5.59.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.72](https://img.shields.io/badge/version-v0.3.1--nightly.72-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"25a468c33b320fcd0f4e3536237e505a3064b904","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.72","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-qEI5QR3kufg8MqDHQq/fdPjpPlFa4P1imjPjWqQh+jDcgDXe67uO7BYKpcsTX19DATKEYO8HY+uL0GTFUlBCuQ==","shasum":"26ce6cfa8666b0053ec249b293793b661a487051","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.72.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9UGhg6TXk/hNPoZFb2Jw6xkpkD+8cGX1xyL+0eh0dWwIgTtHz95CEJWIKwpAa4OAodjtlUhZKGDTCgRPRvFcFN0s="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRxFTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrPIg/+PYKZzwHmzEsDhdtnxDD8ljJqddAvhlY3Rr7Je4EyQa7PRCJG\r\nxO0yZ08qdZpBYxV7V9Q+AtE+Uyi0To0uXOwqbSyZXlnR+DPDErbv+V8M2JKX\r\nIMFB9GBnycNNvDzyDfiPBOVELPIrHsfomQ6AGVGodK1JCfCWinUIE3P7/Hxm\r\nSMqoBb30hy8hGpFLFzOeMaLuEPC28Hd9guBNZ+u73kGqrB7KzSa1igIAbUTn\r\nDAY09Zie7dfs2wPjQKaB2GgFuAguV52L4G3/QXBAm2vwdijosQX5kZv+kL8Q\r\nEXeBNzhBK5wggMOLDco7AcjT6ub68t/wSP9b5UIA81+kTEfiOd4UJZyuOejk\r\niptlE8YSJT6miEWq9/d2OV94w8QcrujOyTA3lyp9uytbPktuvWDhUi53luKR\r\ndH3KU/uzF7EH//hvw78jzSgBYWN57/aE07tH+9NThAz8oSdKJwbiXGpSHRzk\r\nKOvg5D15sa/5G2TVWYL2HIOmF59FrJlMt6A+0O7LQB0Rzy1ndZ8T44nXRW/W\r\nQhtGo4COkQcbD9OZcwWeJ7V3OpWl8XYIY1QaKljQ+KfLWQDmXdD+aAxIHO3W\r\n5cykbKFAYtmtHdSYrSbcq3Hr2vjYGiLdJtm54xGQ0qnQQojcCinvP+lSljuU\r\n17NceVY9fq01Cm1oAQiUfyFggsl8Ik/ZmPc=\r\n=hczW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.72_1682379091111_0.4240371401131131"},"_hasShrinkwrap":false},"0.3.1-nightly.73":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.73","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.16.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.1","@typescript-eslint/parser":"^5.59.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.2","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.73](https://img.shields.io/badge/version-v0.3.1--nightly.73-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"a5aeabb9bc5dddc257b03ad3865dcf1024a4f569","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.73","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-8CB72UA0PVdqoSSqlAYNKgYusfxkE8kXrJ4k2+rx7/CbQMU02M+3Lqk6hPriBnZob6Y+2w/cSevCAUKY9NUejQ==","shasum":"b32bbdf2713c4c6844b403a887bd5d1598b9f342","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.73.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDlE8fM1AH39FJ3f2l/QG4BXOIJpKMc7pXwWe/4nLKINAiEA5d9miOQmmYmBnBomvm9zkJLZQzOspCGi305nWvPE2wk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSGLLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo+cRAAhZmlg8yR3vHLRZKeOYtiNsYsvV6mI6r/NqIiKZraywK+L6Yn\r\nGeKlGud+JSFhOoW09YP4rm/CrlTQma2XKk2PWXNMc1ljPgaban3fvYXhqA8h\r\n7vQRuhPQLxb+SGNmPPqWi29nsVFIn6XicqByYPNkW6apguE6ZD8z9l7E2Nr5\r\nXhwCqKYGoyjqvNSN0eFesCZ1NIAAv4D4qaKNF46To5IMtHT1ysyhS0mAaZ+V\r\nLSISx3jmuSKxlx5mMZCTqXCsITI5TRfyvCu94CwZ1uv3Mpj+M+z1OtbRwLso\r\nQEAoOvD7VB4YgbHHtL5HETFZjkKByw725z+FdlzhnNTi4w5/nk52NYqWQdcL\r\nfx95YpUiOKw+uWTSThHQTBiD32pHw9zq7jgD+YlrQzyiMrFzdel9vtsAjH8h\r\nn3PH84AIbsAS0kxBJxJdVFYlSOszhACN2QKXTwnXirkdmGqtlU09LFkWsdQb\r\n8tryyQ3BTbCbuqttP93lmYbqgx3muBaRAQ2MLpiQYhA2ZI4yjRRWUmSyi4mP\r\n67knwqq6SlP+f3y5ReN75kIMUI9B575q1pllMwgjIW92e00wlO+EBOClcIKO\r\n77pUZb0uuLHLkD7qL0owG3G5eWdqAO1piuL7v6WlV6CHs+cLZJwiK/lZeECE\r\no/BMrFL1UKb6pHBLaWsLTb30vyJeErCD4XA=\r\n=PwD3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.73_1682465483218_0.8650382048031864"},"_hasShrinkwrap":false},"0.3.1-nightly.74":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.74","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.16.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.1","@typescript-eslint/parser":"^5.59.1","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.3","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.74](https://img.shields.io/badge/version-v0.3.1--nightly.74-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"53f6d0a031228d60bd6383c7ab4220e15b1e8b20","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.74","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-h8D+B/De8+gBCLzIuDNWCd4uqrMfz20Laq5y1S8GCL3xBRJhNbUifZRkmGvnu8hCrzrgQTm+N0/dMb8G3dQSiA==","shasum":"ca43503a38adb4cbb4b9f19d8033bed585f5551d","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.74.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDN1IOiUBve6941iBkWR1JULSq10JksnBcLy8jKAXbCVAIgSlm5wdVQftjH+GWtnDpASNUk2v1xjydNeN8zrkYW6FQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSbRYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp/Fw/+M6lKSGx3rVJ/ldcEFe8w4GhNuNPPneezlln+Fv4YCfdlBjea\r\nOZYfhCvcMQJ+U7j114TNpunUQNBwkTp4jQoRGgMGknvFkCwniFMw31yc77VE\r\nd0gaRgUcltY8nqv0bua6MylXKhHJFl4SyELvYlKUe7FO+DYRJLMRN+58VnEd\r\nTvITt4FspUNmmTe1xNHsT6dSHqLRXgzYcT8w0o+BdkzUX4WFbQKp/1dTtHn8\r\nSfDhRWCN6yWtaY9lh/tzlTffuKJ7MNXD7z2gf2GkTMuadWDKyBaF3d6QgVB1\r\nrRjx3vfa9w2Z459JidGpCUAjiJi6i6tj52vHBeN3FvhhFk2UkHXJV/0OoL9O\r\nZFaRewbjHmcXk40mZIUZhkpn04Ht24nNzko49ZOGS4LnMD8W9O8uIJF9gBE9\r\n4eIdI+Ccq5WjgZK4XxcLsONxVe149kKXWJ/QuXKj7wDACmRiqF+nD92ZfQzr\r\nCPR6R8ncDacIJ+/dE1VemgZSlvH22dh2N9+hKL40oN+VlLuECbPxtEHrr8Ks\r\ndkXh/gd/nKEL7LBZsNbjXvuYAEyOo/2wJ/6rYX2aWG5VZd1mPgcu2WuRDI0m\r\ns5ZOa4k6OeCcyvLdBSEqjxmGDGKaCkgtL5q1gt0U5SLwdNqzCfspyBiHxZYw\r\n+EPLTiHToJ6KNmnWGBHPO5P/GQUtQNu6EAw=\r\n=5+EL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.74_1682551895863_0.3327717259627263"},"_hasShrinkwrap":false},"0.3.1-nightly.75":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.75","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.16.2","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.1","@typescript-eslint/parser":"^5.59.1","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.3","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.75](https://img.shields.io/badge/version-v0.3.1--nightly.75-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"5ba5b89dc57b2ce6f5b382c4d5711e208d32203a","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.75","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-r1FktIWBQln3/6YiYnv/v287WH/qREgOcEQHBbZosn/2LfIABkcFguDOccPGMbVAxWz3zONsNVJIonchnC1G4Q==","shasum":"ae9a0cc796cc3961cc543d9068b4a1099a730aef","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.75.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIea3bk3LziEtsT/vGJsbZwytFjplvvU23OmvQJ3O9ZwIgSlipIrBQVHCXa7hiZO7YKpIW2CukZx1m0qz1VuE9sT0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSwXJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr8cRAAl8vBO+O0x8so6Ryc5nfKcvuq35Y/fbn2P3E+L/ugisnS29q5\r\nqLnPoaucxkhcc1ZDs7eR/Jo+eullVIPXgIohwmd5Vbn3V6Pfx3CY5Noh4xju\r\nWi8LHEYhINOk0wA/+vXYhX5/zrs1VV7BhECj2/YpDbXCZwnnkxlRrhAR8qHe\r\nDXceRRPdxpDnCDXfV7u5k/OasQO9Xk1oqeJwLLOrwp0tWv6nH50zTK2PdxkL\r\nS6AHeyJslYE15eEVvcyj/QYoBondxEzo4bbKl5Au2M5nUSZXjR3OHYoSy7FV\r\na3XLnk5ic9rGw+UrDHV0KmVSOU0Oquwd0GXrpVUIOO6XU5D324yYwLpD4ZBq\r\nyN7r4kug6bYO/dSTKfJ/THiPziPCdWkJ+mctdTkbeHNm5rIfItj+VuJGR7TQ\r\nVr6CwmcU8WSh7vqiotfzKRaX3DTgViX+LbOVseLJaV6Pa0on+9AVUWC2RHfr\r\noWvsXVHpsovr6elpRBtI1HTgLSs7lGsyjGOFduLnfGOVCFviyPI6EjIMy5r3\r\nWMulAYoHow5X/2hLgJv49Zv3UcoVsTBAgOS0tkpwM4odd+9J5trYVPTZCvrB\r\nU4ELzQJH3gRfHRnaSbQuyMB3yyl2YRozzLyjs41spY/72k0rJeIn8GO7rync\r\nXFKzrglE89Y2UX8UTw4OhfzwmtdmRUv6eFs=\r\n=rbkG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.75_1682638281641_0.9545770644728795"},"_hasShrinkwrap":false},"0.3.1-nightly.76":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.76","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.16.2","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.1","@typescript-eslint/parser":"^5.59.1","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.3","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.76](https://img.shields.io/badge/version-v0.3.1--nightly.76-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"c10e15044b9e048f0ec8ae79a8f92cebf784baf4","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.76","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-+IZAXj2ba67tjsYNpTSpel1yRPjtPn5Mc2s9to7g+BWIB86y5v09Hmo54ktIeUgx0m6Kwxz+n58P5NhU6nr5rg==","shasum":"481e56de6502a43a937bd48d3b06aa80588a7645","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.76.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEQKu5rJFIFcRoRjNKuLrT2anV+qkvYeH9OqlZv8kT4lAiEA14iYoeAxACpFM/WqrzVOUDG1NFsinUVP2WZ14IzK1Ug="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTFdJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqKQg//Vdx2shnmtjymQ5ibdUfZb3JK2nVNt1CPUWyl+gKHNQNeC86F\r\nLMujRQ0gl/Izr6yoIj5uYekIEwt2r15/5F0eBb+aNHI9sWKlVDYaPlt9VvXV\r\noHJLC6woCZSjktbDCqXXjeJoJyxnDW9Yb8tL1rjCB+sxaV5RVyC8Vg8oCDap\r\n3dqJiA3BWFoKsL9NtGgYX06JPQVUi50KStDj68tsgheJi2zzRA6EEt181b0e\r\nXr7K7XLPw6BpHjYPa5N4vGDcvJFisKAbKKtHtByyf5xqEdsYBln0EsYxpXPy\r\neHFwaSR6V7tw+kJPdcvx/HrlGXJAANXtTP8Oie803Nscgw0ie5jJ54s7qDeF\r\nMK+PIgbjwYSep263CTGIkD0nzTUoQfj+wFwkaZ9BNNUU+XnrvTUhQ+o9xVbU\r\nBnEQD+2fS+muLheSLfKEE+TpoTOGIuU5XXcJ5K1aDsceTGpGoFRLDWl+/4RF\r\nh5v4m2LNowgFm55won9WZtPxk8zJ4Gpjc1NAUYchWeytGpHhgCgza3rsQn5y\r\n84YWVxb0qM2jNGFDj1NMYRvtVoavtn6v1v2s3rlqBI4Ym7d7jgJoyDzxVBiR\r\n75MHTjMmObqPNiYWAa12+gcHkjzb3lu+qfmjstwt6oBfPIREmzIUuvDoIfLW\r\ne9ZiqsvK1nskwp1Pnokkda8pmmA2PQo+SEY=\r\n=BM3j\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.76_1682724681186_0.20918159354426868"},"_hasShrinkwrap":false},"0.3.1-nightly.77":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.77","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.16.3","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.1","@typescript-eslint/parser":"^5.59.1","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.3","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.77](https://img.shields.io/badge/version-v0.3.1--nightly.77-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"6fe03e1f0d02f9a9a608c995eafdb79245b2dc41","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.77","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ojSUr0oX5BDE4yHF9EjpQDYVXgIOmqLA+/fhjQAyHBeRhOlTo8IY4BIGkHneBbcQjyJ3snKE/DWUUkhcurG/Gw==","shasum":"17ad7eb15ce6f518bbc41a31bf0f2300c2401e11","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.77.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDUa1BuyfBKCmfDf1/DD8d/YAm0RgmmaMMSqGgj/v338AiAqfL5omibSwVR/9ic9Yjocsk+5Y9zr4Rmx9PNP7PHLCw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTajHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo1bg//ZDf533QNzsyYo58XDA/L5oV/dVFE4hvtJGSNOujEl+UgqL1/\r\nFCE0B57mNWmGNB35FoQIEZn3l9UYR9Rr3ADXUFKXU6i7G9CnQoVQk/hdoQ4I\r\nVL/+Qbd2BKyH0V8yE2u5qqsBNq9Qe0NE9qGGx7TyQw2Y6dZL+zkiiwGxJI8z\r\n4t2fC4xIsw2Atp1XK6nEELYv/Jhi/LH+3F+J4CR2RQmpys3WWCHYKo8opoqh\r\nY8F3pb1ycZs6o2gRhzLThVqJP64TLsMOvFhxs/siLKvQe9ZQlhl0QNul+McV\r\nn9H6CAM1/I1W8SwvhQ1nv6APOUCqPX/CLvQkGoVaOgJm/vp9dAmaJuyyMVEL\r\nAwYOcV/BL+pM4cPWQPTp8LH/eDsTpf4AAWE85ffzzmHY8gzTYlH5ndNDri/K\r\nlIjyEvS70ifsG8pid3Ol7NHhPfPMAxkPvjreUcGGTRyHUxZIBIv88EeUpLrf\r\ny+YwZ66OcOVCMuPnrnDmKNSsqvsgEJ/LGT/NzcTJZBaGXGX9VbXH7S3xxDW2\r\nnU9euuc+IC5jqYO3gF0yFe6gco2Mt9LZ8QDK2qHTNEyzrzUcvaYmFX1AQzwD\r\nStnD+KPdWzZEd0TY8k21q8zJDdat1nGIqzIIoHEGZ60mXqXFXa4zOMyp9uZO\r\n9GiNwGTDzccJ3PHerf+cgl/7BOqdiwCS0Pk=\r\n=tQer\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.77_1682811079117_0.22012851775944275"},"_hasShrinkwrap":false},"0.3.1-nightly.78":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.78","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.16.3","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.1","@typescript-eslint/parser":"^5.59.1","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.3","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.78](https://img.shields.io/badge/version-v0.3.1--nightly.78-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"8619b03a03290ad62b615c70d3d24bc0e7a96159","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.78","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-/o80lAug+6Js3h6X3x8MElYb+/MTot+G30Xe+s7OQhjipPjF5BB82VRZvF4VLLsdOhGAadtQwNNUz7WweoDjWQ==","shasum":"83c47593286cc20908cae67704a1ed462a86cdab","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.78.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDebVqPw82NBwe1rUg59hZGcH6RC4XYpSyMNo0UM+5YhAIgGFVUIDnrWbjcn8T/0wU/rgbgRepsFNtUu0vd1DPPLvA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTvpMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoe3RAAmEt6rzj35EAmR0NnV5cfNdDtLMYUQcDRdoPwrhryh0J7xfHL\r\njWWW0dWn2+JwdxpNTnXwvOaCT9YboZkxWXOz1YNOEg2zksvSKmzoTwDX5bcR\r\ncjj+4s1MHcGerQUWkaPUVuZva9b9F9NPUsvYKJwOcOrLWSpSFD8ib9Ce75FR\r\nByE0VsH4FCg3zPewLhL84+hkBQ+3Dv0/FlMPgU2u9ulhmNMZsbDPtke7KS58\r\nDQoFNtx02gTKOUWxuPQK7/GymtE7AI6v71u+SZ68WpqlQXRWjahdDuHrZQX1\r\nsYydV+g0g7zZXTAGXhUlnw+J4iVzVM/FswJujTcfhdseZFUcxoLoRqktoFN1\r\nvrnQmQbAjSEuxfIbAFSoGxVlIGB5mL4RltlJQRtlNQtMhX+qM/S0oY+xrt6m\r\nqltVatO8+Fil3uIz9p4xsgoPljuBRJJogrYaC6Fgcifgnh6ZXO9WDmBAf1X9\r\nooBAMatJ9Q4MNSuVSjuE6QlKGI7bJjgCm/R/hIvXWKA+c+nWTr1GvceIokbT\r\nATx6h/xeI3eoMp1DlNMQZXOpWuwF26eY5wDiIEJ5KIeZB3Lm4bAPrq3ubEtS\r\ntlD/6opz2bbeFiyDs1puP7SFrewertYOw95NxOR8NTB/COqB7eblO6MOeH+U\r\n7Y9YCufmi3HkVRgkOI+x/qcOp/dnlNfGj34=\r\n=ggLG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.78_1682897484191_0.15986645449344472"},"_hasShrinkwrap":false},"0.3.1-nightly.79":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.79","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.16.3","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.4","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.79](https://img.shields.io/badge/version-v0.3.1--nightly.79-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"eba35bd3da658c002bf1d5af7632d1a1051add2d","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.79","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-afenKhi95+3Vi6lX8Fwah+L3gc8GPPhIinS4jJeNcNOfCihRTrKkhFzkpPk0m6ldor+iTh21pwQUH68UehvtWw==","shasum":"4de6c3833b972f0b4b50f8ab2485e62a7e2b6b66","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.79.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJDJln7ihSsL8igq5FHO+5KNCYqr+6bxRxp5VjN+IzDgIhAIjMgK5dpX2JoJd9NvSMvRnA+HM1pyVzRE9lvWuq+qph"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUZ1aACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoQCg//fnahtKq9E6iQDn39YtYSPz3K4Dyoc0rl9A/urV9XBLQWtAEi\r\nWXEeamMu50zD3mYy5S6qhvhh+w1IdSr4l41/KVPDAIhltDWgMeyok+9lZDga\r\ndA0FTPjh74Hf8KlleXr+ivIU8mWa5djs8Cr9Rwg5A44wxP3qgEbJrBtA9DM1\r\nU5iWFRO+DG9blKtf2Hr5z1Wj3T+r1HbY6NL8/uadhVHn84WfbWWJQrRG4zKN\r\nwAc9y2FNC7fNClTGe5Hedw7Dmw8uqSuo9MOkSK6aLaqVriqc685q/mrLEBSb\r\niH6gS6YQTwkVY2BxJCouiTLlXPPRGGJhdKdSfaEayw9fa7Zj3JSVqIDDywpo\r\nkslkiwRBEI+DktyvojsWoH6eDfjfWhyaSL++vYiDq7pum/4JH9UXanwiapFz\r\nyr250pRuHZj4fLsVezIsCNPMU/C0DBrn/crmebMA9NOIey9mAc7of02VX0eE\r\nJ+TqfBTabSQMW/CQg4b9inSbalQze4ymhv7f+6sYz7hexeApIVVB4p/J7ShQ\r\nmZ6VNjXQyi+P+sA6qjHfjpSUEA/i3JHdAqEmEIYwH6ayXbArIdTtSsWRX/Dm\r\nz3SRPRx9uSQlqKZZh2dWd2DlhDLOye9R3jCETNVCxU451QI8GdPcf+HyACjY\r\nH0x5DVmsCBXdgnCR4exCdvYYhy/DX5hczpQ=\r\n=9ToV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.79_1683070297950_0.7551800667402404"},"_hasShrinkwrap":false},"0.3.1-nightly.80":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.80","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.16.3","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.4","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.80](https://img.shields.io/badge/version-v0.3.1--nightly.80-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"ced86c436a663c70e25893e3408832d5ecb69c8e","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.80","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-K73XL+BQbGPghJMPEd1dfgj+Vr17QHs3JIlDJ8sUy+xU66n2XepqdNrBZn0ZwvIbfKnI/8WM6xy/sCBrLg8cdw==","shasum":"849bb2f3de9246de50ae416d2aaaebd071906933","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.80.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6d/GuqEoPipbWx7puHGUQFzsCNcu/g7oZt2lzjCkJCQIhAN5I5IOKJBBaa/Rk5t2wsFs9oO1WsLrluSMnwSIi+iGe"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUu7QACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpnQg/+Kj4IQyRegM+zGKpEZTQptFDfXxreQ76PBz8bO6XC2S6q+ajr\r\nDgYKD5VpsXNkfF5C+qX1P341FOVmMogJwcz6secX0NkxkRuQ3fQfokMtWsrt\r\nNgtJA3dCvSwNj3BGL/4JJnW5spkKDAiTHGj18Nwk/SgXPvL/IRKUsUbgbSWS\r\nNT26IdZHtArQd38OwpSTz800MAWZIOzxcQi7OBwuw3v3hwO4XQulgj5q1GGZ\r\nTXIHP7Bp+3uDBqf17bnR+9KO6i+Hls1PuIU4SkhrjNXuEQNH1xOd9DdICwIJ\r\n+n2wZ9YdwFt0Z7K3LCVTAZAzYOO25bqN0KThREA5GyN6TowY7D2uFjAVpGRv\r\nEJdme7EnNuzKY/j3lysX35PaeZUgoHseQnc2YzcB1uK1THuFpMDPucXXwin+\r\nkCdcVOrs1qDShHtqcNrWqBnHA/NU3Q7Dcu+F1xo4FICMCvALZjfDUBEGwomJ\r\nez0nFNKOuTBJDyDdyQxnaYhqKWFqxzJvr7pVonMqAbEflLyS8T/XUNWX2sUt\r\neGGVw44Ba8e8dwwfQOTmhNU9r7yPbs5RnZ46ufQUhIahpDqYHKSa1hxpe4CE\r\nY73gOw1AHGsST3EGq7oGJyfevKd0ySPzqpg6tbFU10xExLmtT5yZSbtVmhFX\r\n6HGYa6ArJx0ALDmH9k9JUquT2n/UoTkik1k=\r\n=Xu6k\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.80_1683156688247_0.7938182151668087"},"_hasShrinkwrap":false},"0.3.1-nightly.81":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.81","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.16.3","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.4","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.81](https://img.shields.io/badge/version-v0.3.1--nightly.81-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"9e9f08f57d67204ae0f3c5090917e1f3e3f9ae1b","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.81","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-E4usCnjkrWmycuFkvII69FkXhlYH99Ky0RkOgjkukB0T8IRxdi08qBjCIwjn7Q/iA0Vpi6C48fgvsBocFlfOiQ==","shasum":"1e747f55de1b255ae6782162838af56cb0812d54","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.81.tgz","fileCount":8,"unpackedSize":32968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFJg+ZDhchnFEpBN5LsUe96ajZfW9jmibDpjoohhxumAIgM1Ns6dfzUHG/1d2+WaF8kHJjBVmSsodZ/fN73xVLnpI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkVEBUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpuThAAmwkXVETiBMtlBXqrSk+bRh6m2D253C+VLl91WaSDEi4p8pP5\r\n9g+o2jcpPGr/XoRD0ifhn/gf04Od0kL1gkUPSaXN74bmuAnIMhatl/0SIlsZ\r\ncW/mBabZ5hwSR64ijqd/0F6M9jy/1tuO5+Tq2SmWd13KSLALKaKPu5zKlCfR\r\nv0m/xRqY06IgAStr67ihp79V4lrxvbiDRMRUvfN22W+GnQPnhjCG1mlOt7Kv\r\nSh/KxEydu8Anug+vzaBoYis2Ekn6GwBSKCCsEDk9Chx+8DbWG4+/KAnNjSvR\r\nuI9oAZfd/E+Eo3NRs14paz093Z1MX9pdHepuDqe3U7FuMbxwKzD0SwfvK75f\r\nnCwj0/wpP33qu+5untAoLxdpVx58vKNBfnIvPTMOyGjECcUBN24cIMoY72mH\r\n/nQ/QPHwmr64Ij64Hc/2J0YfCEkaYpicc8JvwEOSwZ2Ylyjr1ALUMysukaBi\r\nm7v01Sfk+2aIX2kjU5UbP4mbPZehgunq8cRK/oqjgxsloVC59YgbBLL0mA2h\r\noYHZ4EEMC9zMI8Gb7sHFKLLX7Fw3lqw8eTnDSnxYAI8cdLgD5jXuTaaTESO8\r\nAlTnwrSjEX1TpkoAhNAmUkpFmcw5R7Ts051BmIouDAY4zl6fOT4VaslJsPXG\r\n9ne+n3k1bmsz0KPsqFgx9GM86+qungVap7s=\r\n=u9WK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.81_1683243092366_0.17137781758460235"},"_hasShrinkwrap":false},"0.3.1-nightly.82":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.82","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.1.0","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.2.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.5","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.82](https://img.shields.io/badge/version-v0.3.1--nightly.82-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"d7868a8484bc332fcbe9d694c7be214b25fd89c1","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.82","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-2mvCUzkrJ42AMKfJlrAnca8WWBjejTZ4xibrPUKp0gUgF2nZnfAWSjIJfxW7jllfklJ6s1UElvw1uXakgvDiwQ==","shasum":"51a6e893817b49ca2154bf4b0daef152ac43a960","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.82.tgz","fileCount":8,"unpackedSize":32967,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQZTPpuA7I3YVmYKdKJOVf+h/nEeboMNrRGuCCQmsV4QIgAbbXfiK0qhp577c6qrdd4pK3V9EBmD2OQlcEHLlsTcg="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.82_1683329484370_0.2771950840488502"},"_hasShrinkwrap":false},"0.3.1-nightly.83":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.83","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.1.0","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.2.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.5","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.83](https://img.shields.io/badge/version-v0.3.1--nightly.83-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"8ed06148b7946a96454bc5bd4d029939ff0bed96","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.83","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-3OLvxuhA9wqVAWKVzcs53gG04Ddc5mT9dV0Oc2ziq6toH5d5t3xOH9Q0PBdb+U+zonuUxcutmEmkbJwP3Dc5IA==","shasum":"0c191807e3b687c51843b5cf46c6ecc964ac8128","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.83.tgz","fileCount":8,"unpackedSize":32967,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFUfyi+NNBx0gmVptGb4MGN+9loeMPv2pUjHlVdLjrB2AiAf0GPia4FzjVyUrg7SBWXdSRpzLLnNe2Gl0uF3VAHqDw=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.83_1683415890049_0.8249174511852582"},"_hasShrinkwrap":false},"0.3.1-nightly.84":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.84","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.1.0","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.0.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.5","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.84](https://img.shields.io/badge/version-v0.3.1--nightly.84-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"e766e8caca72e16d09c667205a398d5034de563c","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.84","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-sEFMYSam7cYgefyplFckz3GWfdReMStt8UHiQey0Nm+u3Yv17I2RcK7qpADZosAex5ULGTD6HXTgburaYx8jww==","shasum":"f7a9403355078b70d52a88a8559d6171f5b5f3d1","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.84.tgz","fileCount":8,"unpackedSize":32967,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHr3GZY9B9VcQHc7CF8qzTGzQR3rhZDq1kFVBQVj7eN8AiEAuFXqojdZzkhBu0Nt75iTMa3DTaEIKaKn1zcUzf0qqQI="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.84_1683502279948_0.3033029373616021"},"_hasShrinkwrap":false},"0.3.1-nightly.85":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.85","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.1.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.5","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.0.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.5","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.85](https://img.shields.io/badge/version-v0.3.1--nightly.85-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"7b2726387552e9c480b0468dc2208fae0366e224","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.85","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-PCtfSLDJsKKVhe2OfLaiaXs2rA65u/kgICKddoboObA97RuldX6GCtPo+9LAc6gO/+LdaBPQjkUy/rI6dku3KQ==","shasum":"d3215d632fc16ceb706401e8fbb0dbb927498331","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.85.tgz","fileCount":8,"unpackedSize":32967,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG+jbBjPAkWyZe4Y37GQUDj3ZnBelVyFbdDSfek4qmC+AiEA+wF/B9C3dKdqJG7SwIBrp4lyZMZ6Jcj3Xr7bIqF9Sag="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.85_1683588701847_0.1266448378802274"},"_hasShrinkwrap":false},"0.3.1-nightly.86":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.86","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.1.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.5","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.5","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.86](https://img.shields.io/badge/version-v0.3.1--nightly.86-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"46383e66f8c029689aab2e88289ffd6d254ee567","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.86","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-1VdptkG7rctzE2YkE44qgNi6rVtz6Xadpz5LPu/JNRUE0wiQ6yyzGL08+dWy6uw/6SSug8CLomGI8fgLnuRvVQ==","shasum":"2c4a12a91c18903e6073307dd36d36e34012e489","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.86.tgz","fileCount":8,"unpackedSize":32967,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqFqYEPESfcIr6vtfHD0E9o4OJ/SsgKpnd8pOEGshhjwIgUAdmAfYORkZz+ADG0oro1DTEpPUHG4lE6KXkVbJI+6E="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.86_1683675084906_0.8677236395547692"},"_hasShrinkwrap":false},"0.3.1-nightly.87":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.87","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.1.2","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.5","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.2","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.5","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.87](https://img.shields.io/badge/version-v0.3.1--nightly.87-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"5a4cd939f397c99bf92cdb49ba7f498fb0443088","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.87","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ueyZ3eFz2T+ECXc8D8ad/Wn1p7ww6wJka7K4NBh0R4p6I7USlIFuwreFF3S0Ar44HqyeHjOoghgbfcRe3aEfTg==","shasum":"dfdee9513d144f8c606ff4d1236afbbf57ca1e0d","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.87.tgz","fileCount":8,"unpackedSize":32967,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGGzVEUPzs3FBlqmNUyejO1CXqklGJ+6FwLCIC7LV0OnAiEAzG8ssSbA2fsewzIbdqpi/WdQUwywDYW8vfwpDlDnuAc="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.87_1683761494315_0.7885155613950212"},"_hasShrinkwrap":false},"0.3.1-nightly.88":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.88","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.1.3","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.5","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.3","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.5","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.88](https://img.shields.io/badge/version-v0.3.1--nightly.88-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"8119886f58ce8cd1c0d57942bbbcf7ea6cac2f8a","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.88","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-K6jDH3dUpAask2qiADg+86R051+VvsBaydWC9dr86dEjcRYQ+JRnsBcfqQ7jd/+T1BZPwtovIQFmIs7GVgO3Ng==","shasum":"dd9640f3ccc2b86968f637d14f9c42d17843ef5b","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.88.tgz","fileCount":8,"unpackedSize":32967,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICVKIaqFvFocFopiwaIoaSwQD63VIbTozlRFc/K/A4nqAiEAjURhiZPL1LO09AYQI0WbLeS9osWPOONcm+v6Szhesc8="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.88_1683847880387_0.181516745700524"},"_hasShrinkwrap":false},"0.3.1-nightly.89":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.89","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.1.3","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.5","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.3","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.5","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.89](https://img.shields.io/badge/version-v0.3.1--nightly.89-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"e281a52485094f0aec046c272a75d93c4dba8451","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.89","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-JNDjtKxEhoUDlgA9H4zrwa7+4PMWg+4YdNEPWbyz+2eQ08ga8YZMuUR0Re9mHhsaAuvUrVsRnkuN7vnUYqsIfQ==","shasum":"031c575274807d1d76671a9e3b18b73fa77f077a","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.89.tgz","fileCount":8,"unpackedSize":32967,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbkSOlLe65xTQ+s70lbqGlHT2pTgTCpHMD0JdHKT72JAIgUSvtDml5ge2pMPRvIKMzgEFdx8NMFbE+Xs1MbckgwiY="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.89_1683934298463_0.6546006530056261"},"_hasShrinkwrap":false},"0.3.1-nightly.90":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.90","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.1.4","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.5","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.3","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.5","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.90](https://img.shields.io/badge/version-v0.3.1--nightly.90-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"41abc364899cc99896c1ae2cce17c2b90f3e6f6b","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.90","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-z0f83YBqSGiEOdaEjZsf1YbBfCts1lOGKgJ2/4mBHalY/Kjga9HxXO3iSFi/OQ+GhUUqfQVSo61ubaQ+2vugyw==","shasum":"0e05c9fc32b4a5d01a1b01152522465104b5b4c5","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.90.tgz","fileCount":8,"unpackedSize":32967,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAF7rW9s7AvuTznhqvOodM8hZ0XT9nDvo+b79nEoEENWAiEAjdk1zxTAO/+lZo7vB6lzkgny3vfaPKbpmgBqy35YX3E="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.90_1684020691558_0.025770106938978188"},"_hasShrinkwrap":false},"0.3.1-nightly.91":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.91","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.1.4","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.5","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.3","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.5","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.91](https://img.shields.io/badge/version-v0.3.1--nightly.91-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"cd501cbb3f3e8b5ce418355ab9ac822c874308de","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.91","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-p/mh8SOawyeqpHs7Oy0VWb3eOwGUk3i7JRtKLpsRcUeRuJ5/W5D7fX8ietxhPXoT0DV/OWEaURcJqPr9ttgB+Q==","shasum":"aa603566151db3578f1021aafb99f3b2a95f2200","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.91.tgz","fileCount":8,"unpackedSize":32967,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXHWcILUsvM9cQVdCgnG15GeoIN4MWHvt1DLFiL8wk+wIhAP4ICtDdDrmHdXkUGTfd9Pmdae3yhRekOSIIbYLuyk4E"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.91_1684107081404_0.5014693956728433"},"_hasShrinkwrap":false},"0.3.1-nightly.92":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.92","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.1.4","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.6","@typescript-eslint/parser":"^5.59.6","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.4","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.6","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.92](https://img.shields.io/badge/version-v0.3.1--nightly.92-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"84120ba8ff1f7cbb1afadd552b76072428928b30","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.92","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-NI1O5gMPw3c41YYvHMFuE4IAe090YkWvJQELyqIAAMBlNJwgxasThqPiHCdKE0pUGY8/QZoCYin/6ZO5PTzGRg==","shasum":"ec16150e51daf3ef8e8f864c1267123a1c4fd978","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.92.tgz","fileCount":8,"unpackedSize":32967,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLvvzBQUfGzVVocJducvqLzr3vsQBiTv7V1yKKPeEvRgIhAO/+ovNEPNplLC+zjQvwqhIcfxc6U/1gbsulMGPvICIc"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.92_1684193506240_0.5800014332274355"},"_hasShrinkwrap":false},"0.3.1-nightly.93":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.93","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.1.7","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.6","@typescript-eslint/parser":"^5.59.6","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.4","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.7","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.93](https://img.shields.io/badge/version-v0.3.1--nightly.93-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"68b0a5e5d04204776b968ee23be7846ad5eeeff1","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.93","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-1uhebXON2fBPKxxqxfjLVTHOT9hTz2snmfC+zwHL++WXe1esLGwiXuyo+vfk6UhKjNm9W+c8RXPB9QTeWBQ2OQ==","shasum":"3426de64edf20faee0c50f0482b59c66ed85d78a","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.93.tgz","fileCount":8,"unpackedSize":32967,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHdc25GjdVGRCeuPUpmYEys+fyxX+oaVOLs3wLCaqswOAiEA0K5lZkHjdB2IJuVzkfqycFv7KEL6WAoDhoIiqkmR/Yg="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.93_1684279893017_0.9808836170341295"},"_hasShrinkwrap":false},"0.3.1-nightly.94":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.94","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.1.7","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.6","@typescript-eslint/parser":"^5.59.6","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.4","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.7","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.94](https://img.shields.io/badge/version-v0.3.1--nightly.94-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"0e8e55402628592149b5f05514e631bc7fa5c65c","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.94","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-TQOeSF6BndqA4QFq/Fi8sgxZ6eE/+Z6UCnRRy/tuwcgrDVtHWwBwvJ6c60vNXr0rkxFRZtB9sguVCI/RDpg0Og==","shasum":"9d42608ee2ab386058e53e8d398be4c4596f8517","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.94.tgz","fileCount":8,"unpackedSize":32967,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVwE20kOJnlGzPrOXangar+PYWgLywMW7HTiohLZl81AIhALoq+/kxs6Rs3ovUiySm2o1eypbZk+7sNsMeTYhCAV3h"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.94_1684366287516_0.38482445777912977"},"_hasShrinkwrap":false},"0.3.1-nightly.95":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.95","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.2.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.6","@typescript-eslint/parser":"^5.59.6","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.4","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.8","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.95](https://img.shields.io/badge/version-v0.3.1--nightly.95-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"89423b27490c627ccf34962b659fbcfda3d35684","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.95","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-28gmOfSoMCCGOKVEKKzHOSe7zP4bUDIB2tI9VGyrBUZ1veJ+Ayd7aL0Rsr0gnSp4lxmGyc8vMM2CsnZqBi9xsQ==","shasum":"215516fab20800bfca133b1257d48eae8c2fa958","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.95.tgz","fileCount":8,"unpackedSize":32967,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHAUCsb/E2IsAcvSGRbGbXrNTfkw+JgY9GYisqWARSugIhAJuLGYhn9PlSC8G3oPqOoelcmucU+lms8AJctb3S8qRY"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.95_1684452703012_0.9948271282180279"},"_hasShrinkwrap":false},"0.3.1-nightly.96":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.96","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.2.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.6","@typescript-eslint/parser":"^5.59.6","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.4","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.8","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.96](https://img.shields.io/badge/version-v0.3.1--nightly.96-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"d0038b9d81ee36c540e4d9983954ba7c07df59af","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.96","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-mscItXig6HgftKScKAQHZSLGCpWcNt3xVQByzilpZgLsY79v5OdpewzPAd5UkJgFY2AQmPvWQBBYhMwYj2NEhw==","shasum":"c93d0ad3221102935876bed00a19acfe57b595a6","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.96.tgz","fileCount":8,"unpackedSize":32967,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpukzRUs9isXhHWjrT1exyCg8EJYYzkC3WdexacQBq9gIhAM5I4aKr0AGaJ7hmNqsVEouNtGI43R7jYxZCB1bPFGKg"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.96_1684539089558_0.8016764708318436"},"_hasShrinkwrap":false},"0.3.1-nightly.97":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.97","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.2.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.6","@typescript-eslint/parser":"^5.59.6","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.4","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.8","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.97](https://img.shields.io/badge/version-v0.3.1--nightly.97-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"de6c4276937656fae47bd7ea508c1900ba2f337d","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.97","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-FALij7pLTiRzqWcImZiPkOE2n03Z6Hnfnx5Sowa7tO7sGRjfAv6pUZgoA5JtDDzxWynmYCqLnmB+fSVY+fQyGw==","shasum":"b114406228313547727862ac56736a870847430b","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.97.tgz","fileCount":8,"unpackedSize":32967,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDCOjIxsZy9erEK9jtUbzesvYExwa9UkP1ejFUKUuKOpAiAwPiCaEmqQqfgHk3qHzfdEeu+YtyrlyCGq9xwjfUIv0g=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.97_1684625491910_0.28324754569318"},"_hasShrinkwrap":false},"0.3.1-nightly.98":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.98","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.2.3","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.6","@typescript-eslint/parser":"^5.59.6","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.4","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.8","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.98](https://img.shields.io/badge/version-v0.3.1--nightly.98-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"acb2b1aa5f4219b5c2080473dc14ebc3a3e52d7b","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.98","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-88ofuHDuxqj6i92/uFACBe1GKxL31CZE2Ikvwj8NtpdaILBcYkAHIas/dN95e0dI8NtBn34V0B2Eg9GWmlPTWQ==","shasum":"fa16a72f3f84425052b04c9e2e4f0fcff00081fc","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.98.tgz","fileCount":8,"unpackedSize":32967,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDCPE0qgZAM899QrNe1QfKfIiW2Yktx7OFcsfPndVIiCAiBvHtHppDsveOs7+tnv8IfAs3WpjTnQydxhDdLNrjWgxg=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.98_1684711890956_0.8300614784947102"},"_hasShrinkwrap":false},"0.3.1-nightly.99":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.99","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.2.3","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.7","@typescript-eslint/parser":"^5.59.7","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.4","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.8","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.99](https://img.shields.io/badge/version-v0.3.1--nightly.99-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"9e07874c987deb012ae217eda33137d7d5dcac17","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.99","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-2RPvRDprR2wqCdYbvbPEv5xkWFKdfpkb+5YK+62uNfd4TW1n3ZdEjyeueUCuSCrq1mErBtenDejAJ+KcmuFf7Q==","shasum":"d977d1ca00edc7cbea76ef2f970484ad67a78f12","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.99.tgz","fileCount":8,"unpackedSize":32967,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGhtpUm4oXu95pa77NreftKK9QI3eUr702jglmlIOaPgAiEAmAWCjNvcQ04L4NpxcsdC3hZ+DnB2L4vlrJWs7AfQ14I="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.99_1684798302891_0.6544932704704474"},"_hasShrinkwrap":false},"0.3.1-nightly.100":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.100","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.2.3","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.7","@typescript-eslint/parser":"^5.59.7","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.5","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.8","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.100](https://img.shields.io/badge/version-v0.3.1--nightly.100-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"72818150bdaf257dfd18c1997c1a0d725fe24c13","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.100","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-sur3PmPijsW795btOew9PcODUVm6Q9hGp0QlVuIzdH9huTKva8dEpsvwQ3G5AQct+NuJyfNP4KDYV+IvAB24jA==","shasum":"82073f3841b767e45c1f126db5628213e3a69ed9","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.100.tgz","fileCount":8,"unpackedSize":32970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA4HTX0IYLFxkg3bWpRWoe3r3xrQrrMeEluCLTmlLR25AiEA4wWP/PPTKUmhhpe87SDJ8RL3R3kpTkoYWFsaH0R25IM="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.100_1684884687779_0.7457880231804741"},"_hasShrinkwrap":false},"0.3.1-nightly.101":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.101","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.2.3","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.7","@typescript-eslint/parser":"^5.59.7","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.5","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.8","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.101](https://img.shields.io/badge/version-v0.3.1--nightly.101-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"d8886ce0edebc5270ef93fce5cf31716b1ea9b8a","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.101","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Apn1WwuOqU1BAMVp5ws/KCO4NZaTNJ6LKoqVbVP6aI6RqngTbC/Dhjkw2UpB04dBGKCuD+xs6Ca40jQ9EAqCrg==","shasum":"bbf5cd939b7cf36e8cc3a1ebc216c8ed6fc88032","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.101.tgz","fileCount":8,"unpackedSize":32970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB1cY+cwFquvRrUMGOfs2eiJnV6eH2fG6ia95VVs1hOCAiBryhwgX5KAcb4Qqog6Yb2DsObMgaUbWR3i+hn1GBBclQ=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.101_1684971081015_0.36780808602180914"},"_hasShrinkwrap":false},"0.3.1-nightly.102":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.102","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.2.4","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.7","@typescript-eslint/parser":"^5.59.7","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.5","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.8","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.102](https://img.shields.io/badge/version-v0.3.1--nightly.102-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"a2a653af5fee011577b5cdff1674c06a141585bd","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.102","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-xxlcsefD2BEudk2comMlXOA7v5RhhTZaLAe5WwcIue4U4mrgRSeOIK2dAOo11p/gRRzbUsJbtP/3tFqikaTMcw==","shasum":"e7654bfc00581cfa998891d660b915eb3ade4b90","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.102.tgz","fileCount":8,"unpackedSize":32970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAasRsMvqjTMKYOGlF546KZJ786wZ9h5yd4sxeahor27AiBF28G48IM7gXuqhpPpa5gz4jKPyvqPvah5xvt3cxEgpg=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.102_1685057496592_0.5725331826680158"},"_hasShrinkwrap":false},"0.3.1-nightly.103":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.103","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.7","@typescript-eslint/parser":"^5.59.7","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.7","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.103](https://img.shields.io/badge/version-v0.3.1--nightly.103-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"c376cbdbbaf96bc54c70439608f00632e2c6f6c9","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.103","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Q3lFNQxyplxbXOh63aCROGOuSKM5A2sDpWfKYtKeuu99bPjyOdxwiiIPZ7SsMC3xmqOu+irYrzhttp1nk73QGg==","shasum":"a6248cb52f87c0c8dccdee46e5f75364eede5151","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.103.tgz","fileCount":8,"unpackedSize":32970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFshhSKxu3lUi9BtP+QkXvYKBpVQIRL6+Qd6YkkcRziAAiEA7zX4ueCvWlKpnZw9chQtQqCFJrin0xoelcxAaKiNGv0="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.103_1685143889484_0.20427410753318176"},"_hasShrinkwrap":false},"0.3.1-nightly.104":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.104","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.7","@typescript-eslint/parser":"^5.59.7","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.7","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.104](https://img.shields.io/badge/version-v0.3.1--nightly.104-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"abe3c9335313a9f0eae47f334f417d7e42b4b3cf","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.104","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-J8yoBBKop2ExpJWCs3hqMYgxyxdaHlzMQpX//+8pEpksCPqYVjymraShY9EKgvXSxllkQ+DK0S55LJi1wP+p/A==","shasum":"8cb56e39ca9cb6ba4e0ee5267f90d40bdba2f384","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.104.tgz","fileCount":8,"unpackedSize":32970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCilT19fKLAButcvBHajHecZUPXLvWsutr1gziMoK3pAgIgTOusraFjpaCVOuxy34TTYHNPX5DEHm2gAC9cP0gaWts="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.104_1685230301003_0.5629933389967912"},"_hasShrinkwrap":false},"0.3.1-nightly.105":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.105","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.7","@typescript-eslint/parser":"^5.59.7","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^45.0.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.105](https://img.shields.io/badge/version-v0.3.1--nightly.105-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"b8ac6b046bfc709821a35e3660ebae4543d89d83","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.105","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-RcTBdH70W52HuHR6LxELpRjx42575t15hPi0e/kcOwzfw/qyaG7GYX/pvFdsXBU6fN5H7lW3tNFwmlDde4K/hw==","shasum":"8b82249940e11a9eafa31d20b759587236dccb3e","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.105.tgz","fileCount":8,"unpackedSize":32970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGcvmX7BVrSQAsDeXjAW0Pmnn8uJxnvoGWKcpG0+yj2VAiAKOwkE2qQbTocKGyZYpoE4qGhbdUGVkoEUKE0QMgPl/Q=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.105_1685316685873_0.3409233657777715"},"_hasShrinkwrap":false},"0.3.1-nightly.106":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.106","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.8","@typescript-eslint/parser":"^5.59.8","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^45.0.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.106](https://img.shields.io/badge/version-v0.3.1--nightly.106-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"53dd18fdacb35ca9dcc41dc99a018cd30ba6afa1","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.106","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-1RUv4APDOl4j8iuMYcRzcUYTcEHvfR8NrA5QruivshbMQUw0drgwwj+0kAYYeCFA1pYC6P7gJpLYmxciueqPWQ==","shasum":"28526a880b690ea0c9d47fa4260dbc6414e2073e","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.106.tgz","fileCount":8,"unpackedSize":32970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGyW3+Ink+fDqi219JRXSFH2O1NmBrXR82/URW8RJG+6AiAK5S5cE85XqYut28fhWKm/XCYt8rZzpVJ57PHtLB+POQ=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.106_1685403100653_0.7091272495903953"},"_hasShrinkwrap":false},"0.3.1-nightly.107":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.107","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.8","@typescript-eslint/parser":"^5.59.8","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.0.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.107](https://img.shields.io/badge/version-v0.3.1--nightly.107-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"6b4e499e6744452079e148a2265a68913bc7f10c","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.107","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Xmb3K7zQz+L85JJL9bSGfjj3sfvnRoxK7J33eP22YLycUDrXzXB9z4XLKaLinO+kyAZyVVgyFssvFlHVxFaKSw==","shasum":"6afda350b0b72fad823ec357e8ad6519db0f23c8","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.107.tgz","fileCount":8,"unpackedSize":32970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDtZGB9RBDm6y5ZvENRbjyTkxrwmTSkHVJSeDD3+a1FMAiA1roWGg+CIqV6ArnVnQw7BSEI/EXoosLKw9VM+imv6Mw=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.107_1685489482760_0.7212157291334447"},"_hasShrinkwrap":false},"0.3.1-nightly.108":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.108","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.8","@typescript-eslint/parser":"^5.59.8","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.108](https://img.shields.io/badge/version-v0.3.1--nightly.108-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"7edc4f5bd65a259379521f45d3cf43d8db37df52","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.108","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ZVfWejbEqLwL1J1134We+xnY2IhK3seiksXoVjlc+1ndUDzfjzd2bv7ZUz1EuzvHMVuHBzUJAk6kKQeQ9Ikt9g==","shasum":"4dfc0bd96c896d8b6f99423b22b9f94a49ada302","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.108.tgz","fileCount":8,"unpackedSize":32970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgAmcyu1cH3ez2XYvVVgnAtwlJdqg/dc747MY4/atkLgIhALIw/E/vzWJM7x3uGQSG60NccvBuFrzhrqYWCA+nukko"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.108_1685575890737_0.5423551570588041"},"_hasShrinkwrap":false},"0.3.1-nightly.109":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.109","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.8","@typescript-eslint/parser":"^5.59.8","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.109](https://img.shields.io/badge/version-v0.3.1--nightly.109-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"017ba882468f7ce6344607c71b74f39742d1c9d2","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.109","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-SaXWHEdwUdwqYhDqM6ZwO84vDQfSNOM0PIGoOQclTA6QkoGS8KGM6Xw41VhAgczEZ2lAzmVy8dPDyYL2UEr5Mg==","shasum":"65b3f76a594b95bf451aa0e7353a9275ec909cd3","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.109.tgz","fileCount":8,"unpackedSize":32970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFCIv90URSpfoLYoLmyZ4ot/wbOZET4Wn73uNGXp3c7WAiBkC02vfPl0GF0mMC2JVgh+6MO0ZJyuGq+AG8D0LqB4dw=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.109_1685662288584_0.685740083237373"},"_hasShrinkwrap":false},"0.3.1-nightly.110":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.110","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.8","@typescript-eslint/parser":"^5.59.8","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.110](https://img.shields.io/badge/version-v0.3.1--nightly.110-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"1e598829a37c8064db7971a58be5ff5c4f2c573d","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.110","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-kn3lqkWcbdjExFDykJlflkJmIDDNxu42G8SaC6tQLG4c8TCMZpcLFOIW6XaddN7B3ZepEaeLuy/07MPgJq6r7w==","shasum":"54820dca580b6f5fd80937da2dcc9df79ab30715","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.110.tgz","fileCount":8,"unpackedSize":32970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKMxzDQ9DMFhnhXu+C/XwPLoEbuiZC37jySE+J0kKOJQIgGrInyxlo+8U36VNrhD0doMnANMZhH0wF3SGP+IRiDGo="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.110_1685748699588_0.31713656790808686"},"_hasShrinkwrap":false},"0.3.1-nightly.111":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.111","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.8","@typescript-eslint/parser":"^5.59.8","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.111](https://img.shields.io/badge/version-v0.3.1--nightly.111-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"fe38ed5a1aafa5e760866ea2cf88c55d9181b67e","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.111","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-fO5jo96/1DvPBO9qGPYh+sAuBkYQCdOBuARKa7pwXYNvuAXiiaI78bI0TyIJcV74iUmbTzyWtN0mzef+iHy+mw==","shasum":"587174c8d0e8758f39c619d76ad9817657b979ef","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.111.tgz","fileCount":8,"unpackedSize":32970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH9AZ2v5DHtIOw4rM2PD5HkQNaGtVyujOlVKNpvLrVScAiEAtW7O/GRKx+bLFSBcQoUhkZiHWge+FB6evJBiysHBN/M="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.111_1685835090363_0.8587399508453684"},"_hasShrinkwrap":false},"0.3.1-nightly.112":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.112","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.8","@typescript-eslint/parser":"^5.59.8","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.4","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.112](https://img.shields.io/badge/version-v0.3.1--nightly.112-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"130543e23f4c203977919c63587439e2b05e8046","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.112","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-DiHBFPO9vLSnVdWUWNlya7FEpVdveviowbo1LLp+kumP9hr53RnXwdPvi+bfQ6XMvn6iATcJAgoHZCgD3KbuBg==","shasum":"e34b6e5caef40d5b02f15be4faf3bbb7c15e07bd","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.112.tgz","fileCount":8,"unpackedSize":32970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCewSIUScaugLrtNJEVq28Q1YG7zZnrF1Chd99rkJl2vgIhALZvePh9cXbvtoD2be6uefHypIG0f0F0MzEY+OI7anFV"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.112_1685921479712_0.9847855684166753"},"_hasShrinkwrap":false},"0.3.1-nightly.113":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.113","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.9","@typescript-eslint/parser":"^5.59.9","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.4","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.113](https://img.shields.io/badge/version-v0.3.1--nightly.113-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"877404934b3b30589f54b884834bec8239f93789","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.113","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-rfdH/OpaiRhIl2UY59tPWM5AyKuFtL9qqclC26lvO6F7kdZPq6A84ZJyUs3yKRlJlTTieFy8NkMGZe7hLK6now==","shasum":"ba862706c6e876398d46508784fb457e6d7625e8","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.113.tgz","fileCount":8,"unpackedSize":32970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXLYRrUtiHkXSQl8Sy/k9O2ZLdiDpZDu1HRzxUhWEBlAIhAKZ1bVxeaZ49V3kGzShjY9h5LNPk+adcdkWQtWKV2ol7"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.113_1686007890134_0.798647175769367"},"_hasShrinkwrap":false},"0.3.1-nightly.114":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.114","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.9","@typescript-eslint/parser":"^5.59.9","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.5","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.114](https://img.shields.io/badge/version-v0.3.1--nightly.114-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"88dd59086f65ff3c16db5e966037c915e53f674b","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.114","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-KMagbYkmYMiRz6NnigBeHIL3V++/rCTvaH87h1NNxBQmaOouyd87iy35XmyZbk8tyf8tzw5QEP1WEXG5m09EIQ==","shasum":"54be58b8e2ff050cada22c0822180f728d23e7b6","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.114.tgz","fileCount":8,"unpackedSize":32970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBuCu4gaDSwbKbfb99tNAxkctwXp8psFJgif+6SvvyHQIgJS/H/T6AIaFt/A5PXvc4FfFkVDDtP7fyzW59gF8+yLM="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.114_1686094287526_0.2895245502586197"},"_hasShrinkwrap":false},"0.3.1-nightly.115":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.115","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.9","@typescript-eslint/parser":"^5.59.9","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.115](https://img.shields.io/badge/version-v0.3.1--nightly.115-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"5b79ce480249fca10f1471a8c380ebf79b7a2179","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.115","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-P2gNAfFjiLotQSZCsLshk/Lbgzxhr+GvVSisoTb5L8EMkaPe9r9LUk+WmXdTQs3fzHP17hTQ/ypWZlCEJt+JFg==","shasum":"007fd8ccc04f2acf3beabfcd98466da83ce1cecf","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.115.tgz","fileCount":8,"unpackedSize":32970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGTjx9TQD0bazxflklmTWrZKFNLXVBYXUhebyMbtWnhBAiBd346tLBTE2P+c+Aa0l7TEYUKRnImce4Y6GBtdifDHDA=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.115_1686180701457_0.9298117605792393"},"_hasShrinkwrap":false},"0.3.1-nightly.116":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.116","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.9","@typescript-eslint/parser":"^5.59.9","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.116](https://img.shields.io/badge/version-v0.3.1--nightly.116-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"674bd6a33d857bb41f4f99559348166877e68d61","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.116","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-+3wBVLS3SDxkRUIYBbB6jnS68PxwOpl3mBdfyc1jXmHNaFbeTvIUfnytv9NLgspuwpz8JU3LwE1jZCja9e7ERg==","shasum":"3b8a74f0a3e09b4e89f6ea23735df9f6085c40de","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.116.tgz","fileCount":8,"unpackedSize":32970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDypFtF6Np7LvS7+Itl8vf8SfXtNa3ZhdqWDxTJUCQGygIhAO4+zOVOq1KLOtpkF+SM7yORA/ehdB2g5Cv+FGA1hzPa"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.116_1686267076803_0.07818323294070151"},"_hasShrinkwrap":false},"0.3.1-nightly.117":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.117","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.9","@typescript-eslint/parser":"^5.59.9","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.117](https://img.shields.io/badge/version-v0.3.1--nightly.117-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"57838792581a42a30fa67c4424a9b02f2b0e5de9","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.117","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-079kKQtg4xQLXtuXcMlbiwfPYNzHz1sjW+3M8/DLoeRqlsYBd6gdY937P3wOT3d+3q9sy44TdIflV+geDZOqAA==","shasum":"9987001f8a363b44022793536869c5c1976025a8","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.117.tgz","fileCount":8,"unpackedSize":32970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClbmls6ewwGTl4nSScbYE7FLea9n6TsyxJhE3rO4WOnQIhAIKwg4pSJmmyM9nczAvjXoqYhusTZHW0C7PLazsaUCmp"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.117_1686353493799_0.27030351642906547"},"_hasShrinkwrap":false},"0.3.1-nightly.118":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.118","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.3.0","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.9","@typescript-eslint/parser":"^5.59.9","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.118](https://img.shields.io/badge/version-v0.3.1--nightly.118-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"c28eefc34517089159b072cbe29f2cbeed5700b7","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.118","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-47BlV76Ejh9gKc0TZUgxAefq6YE4Dkw8pKNFqbrYmGHZ5+dTFJwt0vug4mCuY1Cic5Tsdd7I2oSmFqUwlFBENg==","shasum":"ba9ee2e9f6f3a4cb7eee640f5b5a30065a4d1893","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.118.tgz","fileCount":8,"unpackedSize":32970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrvM/QBSbAQ1/erHrlnSnxSnrmsQbeOXyTNUTYAdG+NQIgOdYmg2ljRu3EK9Z5RME4Smyk2zUTrcgF8XWJSqCdH2Y="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.118_1686439893716_0.49302628748147836"},"_hasShrinkwrap":false},"0.3.1-nightly.119":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.119","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.3.0","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.9","@typescript-eslint/parser":"^5.59.9","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.119](https://img.shields.io/badge/version-v0.3.1--nightly.119-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"684e0d488edf3e96e1d1c8ae4f3db6129f8b8ae9","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.119","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-3w/hQE9C4mBDUWOmC61f+Uw225nQQK7TMqNEm0PRjDo9ooDYItxz0lKAgoXPcyy6CjAPVW0miBBqXGNSnjQdPw==","shasum":"52b1030f2e55f5976f957792955eeb544fca5067","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.119.tgz","fileCount":8,"unpackedSize":32970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICENnCR1XUegml++C9SzrT0PvPGBkHDgXJZF80wsT8u1AiAZm/xki6EpI/YUd4ToAvc9lPIEdH7hvhcm+8eoAtIq8Q=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.119_1686526295445_0.5219352106070776"},"_hasShrinkwrap":false},"0.3.1-nightly.120":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.120","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.3.0","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.11","@typescript-eslint/parser":"^5.59.11","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.120](https://img.shields.io/badge/version-v0.3.1--nightly.120-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"6fe58dd10c16cd1914c42d38cbccc38b1114adcf","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.120","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-E8mX84d9AsSwVrQueFwKQKZKcKpMYBAxp+hFinruX7iUIq+b6q3J9xomZ8Q5Rh2E7VZDrL1SGeKj5ayCuExqvA==","shasum":"8d62afdf06831ee8cc84f5d86c96f3c8cc18bbd1","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.120.tgz","fileCount":8,"unpackedSize":32972,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICcSRHPuV7VtwAVUgYAVcA5wvEYNNuTaZGRFWm5Ewm2vAiAJoqqnweqfrLpvWdi2pTVaFALdFGM7ey9UWP8GfJkhZQ=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.120_1686612709006_0.3760794052865206"},"_hasShrinkwrap":false},"0.3.1-nightly.121":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.121","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.3.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.11","@typescript-eslint/parser":"^5.59.11","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^3.0.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.121](https://img.shields.io/badge/version-v0.3.1--nightly.121-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"4e508df7dc4ca826f49e0cffb94a98fc12ac4bb9","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.121","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-BgEFpOndsIoEQ16slyaKP631uKrjQXGAKAYiwEZvOz8nqih2RwQYExXl7gZj7OdfPGI5inY+WRVhQ/g8TsP+Qw==","shasum":"eb5b2961d18b0ec0a3c75547108ddabd0e013358","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.121.tgz","fileCount":8,"unpackedSize":32972,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEaomLctM7welgaH5NC83S1UjuoaCmn8AUzTMuu2rtdlAiEAnn283+mcCb7d3WfFVWixHcL5r0Lc0CDhY53Ci9RCcYk="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.121_1686699108463_0.3794892513992465"},"_hasShrinkwrap":false},"0.3.1-nightly.122":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.122","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.3.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.11","@typescript-eslint/parser":"^5.59.11","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^3.0.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.122](https://img.shields.io/badge/version-v0.3.1--nightly.122-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"c78bcc64ccdf20394b0dd50b84ef24f8347547c8","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.122","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-p7/BVyY+uTwpxHNUsCqgQjHT0BURH3LIDMB9nYUh5kT8+p2e32ofcVruQVyZ7PvxSC+aH6fZyK/8v84gjM8dKA==","shasum":"516c6ab9bea80823dee31b416975f7e292d75982","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.122.tgz","fileCount":8,"unpackedSize":32972,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH8SbkUP4+KuGpGf+4GZUgL9IKlFlsxnEHrY30xqyVYkAiAlFR52FrnQHpOdSR9U+I+GsGQWaWdCqQlbCA8OK9eU0w=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.122_1686785482804_0.5625669217570637"},"_hasShrinkwrap":false},"0.3.1-nightly.123":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.123","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.3.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.11","@typescript-eslint/parser":"^5.59.11","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^3.0.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.123](https://img.shields.io/badge/version-v0.3.1--nightly.123-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"5c65e4dcd071264bf2ec26116a193a60351dffd6","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.123","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-rlb1pj+c9hmzDeWL7D2XRMcAnBbVZ4Kxb4KKbhWiRflQ6xFv0QgcsOa6Dzn0vPFbs5+SGVOO2OmeKl+H0FNH6g==","shasum":"89a68c7a25eda3c953e5d5458b7664324713bfcf","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.123.tgz","fileCount":8,"unpackedSize":32972,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICE7zHvYaungpiBEoAjRjNNqYEx6feJ3bTWD/cH84f6nAiAHdKwu75AVg73NDEPRSxzDlk2Q7sBZKcbh41944WlUrg=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.123_1686871890199_0.7382055206037144"},"_hasShrinkwrap":false},"0.3.1-nightly.124":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.124","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.3.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.11","@typescript-eslint/parser":"^5.59.11","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^3.0.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.124](https://img.shields.io/badge/version-v0.3.1--nightly.124-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"2a4aa6c541c477d0da2e5a1745c6ba4fbe7dc085","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.124","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-lCMqBIp2L3Jd/TYLt3NpqXQtQCNHdzvhhdJRemlabEke4hfirb4VYqQYiFEUja7iMJRB9+kQj6p4lhLsYmUxOg==","shasum":"ad5eafc51f5a342ef90639ac4f2cdda74ea59dd2","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.124.tgz","fileCount":8,"unpackedSize":32972,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGeuYPvwDcauijE4GiB0X8qdki+eH31rLb3rTs9dRdatAiBLgMmUL6FLlIyHHIzcH+1Lo+hxpmVJd0WddH7h/1a3BQ=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.124_1686958317288_0.13097611363502604"},"_hasShrinkwrap":false},"0.3.1-nightly.125":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.125","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.3.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.11","@typescript-eslint/parser":"^5.59.11","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^3.0.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.125](https://img.shields.io/badge/version-v0.3.1--nightly.125-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"b7df08878e08a49274d6e0aa866e0f2779f7cee0","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.125","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-zOSnRreEO2C8DYnSdPE6hQ+VrMMfhgGIbNL7bGJm9aY5raz2g0ea/j5Y3d25w0V+WmK2oBtrqoS2V1pZZQvWIA==","shasum":"15ebe47334e974d3437a84f8a1019eef1d3d0927","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.125.tgz","fileCount":8,"unpackedSize":32972,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdp1j+HX6Z7zxGohJLwbhqnf2sSRvdh1DJmrr9xIryywIhANNWqqxYZEtml6R2PJgbc3iOpYdPkC5BHOamn/Zq6ilk"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.125_1687044695114_0.4388102968395753"},"_hasShrinkwrap":false},"0.3.1-nightly.126":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.126","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.3.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.11","@typescript-eslint/parser":"^5.59.11","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^3.0.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.126](https://img.shields.io/badge/version-v0.3.1--nightly.126-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"146963fe606fe9bd899e9e291cbdcf87183a58d3","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.126","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-/iSglJrulNMwB+0npt20FIAgVUi++sabmzvT9MUU5ybfuKIFRyklw3XJYyoxbjorjboiJAYGNYkaI+x6EF3S5w==","shasum":"d3cd7af38a4a710c580bc64c10d0a8bab927e709","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.126.tgz","fileCount":8,"unpackedSize":32972,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEWC51pHJ7Yj5VNC4BUkzBeYxb0Mn9lMToqfEa86ZqnPAiBwczmT5iCq8bUEhFqjs051IAvvl3vQjbiYv5lcbQwA2g=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.126_1687131095909_0.4933551384142991"},"_hasShrinkwrap":false},"0.3.1-nightly.127":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.127","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.3.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.60.0","@typescript-eslint/parser":"^5.60.0","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.2","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^3.0.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.127](https://img.shields.io/badge/version-v0.3.1--nightly.127-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"8f53c22067b95526e9a04122314e4d5fa482a952","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.127","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-EyuRr5O9qQ6nhhRvlg+tGP+US1qtCVloqxAYzsphujvKldTxj8fGoElYhIBwv33/wKxwEVfKf4ulM9g806MyhQ==","shasum":"d8c11019ac69809a5958ca140c4e7f32a0677aaa","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.127.tgz","fileCount":8,"unpackedSize":32970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGMsHfzPD/9hacFwAr6P2YwQpVMSocn7ElCaxvsVhMdLAiBh3oD0jKX9S8qESaveePocjCqUcoMKiYQHkR5aU7kevA=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.127_1687217482774_0.6382541166255948"},"_hasShrinkwrap":false},"0.3.1-nightly.128":{"name":"@ptkdev/sveltekit-electron-adapter","displayName":"SvelteKit Adapter for Desktop Apps with Electron","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","version":"0.3.1-nightly.128","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-electron-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.3.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.60.0","@typescript-eslint/parser":"^5.60.0","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.2","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.2","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^3.0.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"readme":"[![sveltekit-electron-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-electron-adapter)\n\n# 🔌 sveltekit-electron-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-nightly.128](https://img.shields.io/badge/version-v0.3.1--nightly.128-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Electron](https://electronjs.org). Create your desktop apps with SvelteKit and Electron.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup](#-setup)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-electron-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make desktop apps with svelte kit and electron\n\n## 👔 Screenshot\n\n[![sveltekit-electron-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-electron-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-electron-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with electron-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-electron-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Electron Forge Project](https://www.electronforge.io/)\n6. Copy `build` content from sveltekit project and paste in `src` folder of electron forge project\n7. Run Electron project with `npm run start` or generate binary with `npm run make`\n\nI make a boilerplate that \"automate\" this process, but is working in progress: check [this repo](https://github.com/ptkdev-boilerplate/svelte-electron-boilerplate).\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ------ | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |        |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self'; script-src 'self'\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-electron-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"68a0d02dc085efbc96533871873533e25f1eb7e3","_id":"@ptkdev/sveltekit-electron-adapter@0.3.1-nightly.128","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-8vF7K6+UIcuzwH7Va9u5tmugGSY9W9n1RZpl7LRAhDiavYJwoI2YicXGCcvPg+COVt/WNw6Im2JRpsqZ/mHIFQ==","shasum":"13a8b73052d0c257a9bc3d2b754a873c58517a1b","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-electron-adapter/-/sveltekit-electron-adapter-0.3.1-nightly.128.tgz","fileCount":8,"unpackedSize":32970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtA+KDs8SDL155xS3ITShDxzE8synaRKp8D6wvDg7LjgIhALyFDQNdaNuGca2aEjVgrrqLB098lvY3e+544+5QVSWw"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-electron-adapter_0.3.1-nightly.128_1687390293418_0.45958306146891537"},"_hasShrinkwrap":false}},"time":{"created":"2023-02-07T18:42:54.744Z","0.1.0":"2023-02-07T18:42:55.080Z","modified":"2023-06-21T23:31:33.661Z","0.0.0":"2023-02-11T01:01:18.873Z","0.0.0-beta.1":"2023-02-11T01:10:09.202Z","0.2.1":"2023-02-11T01:14:19.974Z","0.2.2-beta.1":"2023-02-11T17:24:35.523Z","0.2.2":"2023-02-11T17:26:09.986Z","0.3.0-beta.1":"2023-02-11T20:17:59.255Z","0.3.0":"2023-02-11T20:20:42.101Z","0.3.1-nightly.1":"2023-02-11T23:31:25.322Z","0.3.1-nightly.2":"2023-02-12T23:31:37.674Z","0.3.1-nightly.3":"2023-02-13T23:31:27.422Z","0.3.1-nightly.4":"2023-02-14T23:31:35.944Z","0.3.1-nightly.5":"2023-02-15T23:31:22.382Z","0.3.1-nightly.6":"2023-02-16T23:31:18.704Z","0.3.1-nightly.7":"2023-02-17T23:31:24.068Z","0.3.1-nightly.8":"2023-02-18T23:31:18.841Z","0.3.1-nightly.9":"2023-02-19T23:31:21.557Z","0.3.1-nightly.10":"2023-02-20T23:31:20.976Z","0.3.1-nightly.11":"2023-02-21T23:31:30.121Z","0.3.1-nightly.12":"2023-02-22T23:31:27.085Z","0.3.1-nightly.13":"2023-02-23T23:31:39.046Z","0.3.1-nightly.14":"2023-02-24T23:31:16.607Z","0.3.1-nightly.15":"2023-02-25T23:31:30.490Z","0.3.1-nightly.16":"2023-02-26T23:31:18.292Z","0.3.1-nightly.17":"2023-02-27T23:31:45.542Z","0.3.1-nightly.18":"2023-02-28T23:31:28.072Z","0.3.1-nightly.19":"2023-03-01T23:31:35.488Z","0.3.1-nightly.20":"2023-03-03T23:31:32.901Z","0.3.1-nightly.21":"2023-03-04T23:31:33.606Z","0.3.1-nightly.22":"2023-03-05T23:31:46.326Z","0.3.1-nightly.23":"2023-03-06T23:31:35.973Z","0.3.1-nightly.24":"2023-03-07T23:31:42.167Z","0.3.1-nightly.25":"2023-03-08T23:31:34.289Z","0.3.1-nightly.26":"2023-03-09T23:31:53.254Z","0.3.1-nightly.27":"2023-03-10T23:31:31.025Z","0.3.1-nightly.28":"2023-03-11T23:31:31.983Z","0.3.1-nightly.29":"2023-03-12T23:31:32.010Z","0.3.1-nightly.30":"2023-03-13T23:31:25.999Z","0.3.1-nightly.31":"2023-03-14T23:31:45.938Z","0.3.1-nightly.32":"2023-03-15T23:31:21.650Z","0.3.1-nightly.33":"2023-03-16T23:31:34.734Z","0.3.1-nightly.34":"2023-03-17T23:31:31.453Z","0.3.1-nightly.35":"2023-03-18T23:31:38.594Z","0.3.1-nightly.36":"2023-03-19T23:31:17.542Z","0.3.1-nightly.37":"2023-03-20T23:31:52.547Z","0.3.1-nightly.38":"2023-03-21T23:31:18.713Z","0.3.1-nightly.39":"2023-03-22T23:31:40.691Z","0.3.1-nightly.40":"2023-03-23T23:31:27.185Z","0.3.1-nightly.41":"2023-03-24T23:31:33.823Z","0.3.1-nightly.42":"2023-03-25T23:31:29.482Z","0.3.1-nightly.43":"2023-03-26T23:31:27.150Z","0.3.1-nightly.44":"2023-03-27T23:31:28.212Z","0.3.1-nightly.45":"2023-03-28T23:31:26.659Z","0.3.1-nightly.46":"2023-03-29T23:31:33.840Z","0.3.1-nightly.47":"2023-03-30T23:31:27.323Z","0.3.1-nightly.48":"2023-03-31T23:31:26.715Z","0.3.1-nightly.49":"2023-04-01T23:31:44.496Z","0.3.1-nightly.50":"2023-04-02T23:31:23.751Z","0.3.1-nightly.51":"2023-04-03T23:31:49.083Z","0.3.1-nightly.52":"2023-04-04T23:31:25.796Z","0.3.1-nightly.53":"2023-04-05T23:31:22.256Z","0.3.1-nightly.54":"2023-04-06T23:31:36.169Z","0.3.1-nightly.55":"2023-04-07T23:31:21.106Z","0.3.1-nightly.56":"2023-04-08T23:31:19.650Z","0.3.1-nightly.57":"2023-04-09T23:31:30.598Z","0.3.1-nightly.58":"2023-04-10T23:31:26.670Z","0.3.1-nightly.59":"2023-04-11T23:31:25.236Z","0.3.1-nightly.60":"2023-04-12T23:31:34.864Z","0.3.1-nightly.61":"2023-04-13T23:31:36.755Z","0.3.1-nightly.62":"2023-04-14T23:31:22.847Z","0.3.1-nightly.63":"2023-04-15T23:31:23.160Z","0.3.1-nightly.64":"2023-04-16T23:31:27.756Z","0.3.1-nightly.65":"2023-04-17T23:31:30.675Z","0.3.1-nightly.66":"2023-04-18T23:31:39.565Z","0.3.1-nightly.67":"2023-04-19T23:31:27.378Z","0.3.1-nightly.68":"2023-04-20T23:31:32.445Z","0.3.1-nightly.69":"2023-04-21T23:31:18.376Z","0.3.1-nightly.70":"2023-04-22T23:31:45.919Z","0.3.1-nightly.71":"2023-04-23T23:31:40.291Z","0.3.1-nightly.72":"2023-04-24T23:31:31.313Z","0.3.1-nightly.73":"2023-04-25T23:31:23.362Z","0.3.1-nightly.74":"2023-04-26T23:31:36.060Z","0.3.1-nightly.75":"2023-04-27T23:31:21.831Z","0.3.1-nightly.76":"2023-04-28T23:31:21.352Z","0.3.1-nightly.77":"2023-04-29T23:31:19.312Z","0.3.1-nightly.78":"2023-04-30T23:31:24.424Z","0.3.1-nightly.79":"2023-05-02T23:31:38.090Z","0.3.1-nightly.80":"2023-05-03T23:31:28.532Z","0.3.1-nightly.81":"2023-05-04T23:31:32.570Z","0.3.1-nightly.82":"2023-05-05T23:31:24.593Z","0.3.1-nightly.83":"2023-05-06T23:31:30.209Z","0.3.1-nightly.84":"2023-05-07T23:31:20.119Z","0.3.1-nightly.85":"2023-05-08T23:31:42.036Z","0.3.1-nightly.86":"2023-05-09T23:31:25.113Z","0.3.1-nightly.87":"2023-05-10T23:31:34.486Z","0.3.1-nightly.88":"2023-05-11T23:31:20.596Z","0.3.1-nightly.89":"2023-05-12T23:31:38.694Z","0.3.1-nightly.90":"2023-05-13T23:31:31.736Z","0.3.1-nightly.91":"2023-05-14T23:31:21.604Z","0.3.1-nightly.92":"2023-05-15T23:31:46.446Z","0.3.1-nightly.93":"2023-05-16T23:31:33.202Z","0.3.1-nightly.94":"2023-05-17T23:31:27.739Z","0.3.1-nightly.95":"2023-05-18T23:31:43.215Z","0.3.1-nightly.96":"2023-05-19T23:31:29.764Z","0.3.1-nightly.97":"2023-05-20T23:31:32.147Z","0.3.1-nightly.98":"2023-05-21T23:31:31.111Z","0.3.1-nightly.99":"2023-05-22T23:31:43.053Z","0.3.1-nightly.100":"2023-05-23T23:31:27.944Z","0.3.1-nightly.101":"2023-05-24T23:31:21.180Z","0.3.1-nightly.102":"2023-05-25T23:31:36.766Z","0.3.1-nightly.103":"2023-05-26T23:31:29.686Z","0.3.1-nightly.104":"2023-05-27T23:31:41.145Z","0.3.1-nightly.105":"2023-05-28T23:31:26.047Z","0.3.1-nightly.106":"2023-05-29T23:31:40.856Z","0.3.1-nightly.107":"2023-05-30T23:31:22.949Z","0.3.1-nightly.108":"2023-05-31T23:31:31.784Z","0.3.1-nightly.109":"2023-06-01T23:31:28.734Z","0.3.1-nightly.110":"2023-06-02T23:31:39.750Z","0.3.1-nightly.111":"2023-06-03T23:31:30.570Z","0.3.1-nightly.112":"2023-06-04T23:31:19.869Z","0.3.1-nightly.113":"2023-06-05T23:31:30.369Z","0.3.1-nightly.114":"2023-06-06T23:31:27.716Z","0.3.1-nightly.115":"2023-06-07T23:31:41.651Z","0.3.1-nightly.116":"2023-06-08T23:31:16.964Z","0.3.1-nightly.117":"2023-06-09T23:31:33.979Z","0.3.1-nightly.118":"2023-06-10T23:31:33.924Z","0.3.1-nightly.119":"2023-06-11T23:31:35.650Z","0.3.1-nightly.120":"2023-06-12T23:31:49.263Z","0.3.1-nightly.121":"2023-06-13T23:31:48.659Z","0.3.1-nightly.122":"2023-06-14T23:31:22.980Z","0.3.1-nightly.123":"2023-06-15T23:31:30.364Z","0.3.1-nightly.124":"2023-06-16T23:31:57.484Z","0.3.1-nightly.125":"2023-06-17T23:31:35.270Z","0.3.1-nightly.126":"2023-06-18T23:31:36.086Z","0.3.1-nightly.127":"2023-06-19T23:31:23.067Z","0.3.1-nightly.128":"2023-06-21T23:31:33.551Z"},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron","homepage":"https://github.com/ptkdev/sveltekit-electron-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-electron-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-electron-adapter/issues"},"license":"MIT","readme":"","readmeFilename":"","keywords":["ptkdev","svelte","sveltekit","electron","electronjs","electron forge","sveltekit adapter","sveltekit electron","sveltekit electron forge"],"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"}}