{"_id":"@akrc/electron-next","_rev":"1-f41b2d0aa06e6082c28069295d6afb9a","name":"@akrc/electron-next","dist-tags":{"latest":"3.2.1"},"versions":{"3.2.0":{"name":"@akrc/electron-next","version":"3.2.0","description":"Build Electron apps using Next.js","main":"index.js","types":"index.d.ts","typings":"index.d.ts","exports":{".":{"default":"./index.js","types":"./index.d.ts"}},"repository":{"type":"git","url":"git+https://github.com/akarachen/electron-next.git"},"keywords":["electron","next","electron.js","next.js"],"author":{"name":"leo"},"license":"MIT","dependencies":{"app-root-path":">=2.0.1","electron-is-dev":"^0.3.0"},"gitHead":"afeacb688790a1135be7c6c72c6a42db2dc9501c","bugs":{"url":"https://github.com/akarachen/electron-next/issues"},"homepage":"https://github.com/akarachen/electron-next#readme","_id":"@akrc/electron-next@3.2.0","_nodeVersion":"19.6.0","_npmVersion":"9.4.2","dist":{"integrity":"sha512-H0gUROexLwCMCN4/4+o7pCUltEPt4U5i3V2meiHhPEDw/2AT1GH7vgBIjVIFf1dSQ58nHZaJ6f03UKgIZIPKZQ==","shasum":"3b564f868f096205c6ec1836158f5916a0af0a88","tarball":"https://registry.npmjs.org/@akrc/electron-next/-/electron-next-3.2.0.tgz","fileCount":5,"unpackedSize":6491,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfSmmyq7y8JPoMgQhmUx7NK4If8jJxvG0ST5NQxAMksgIhALYjum20aIvpb5xgzwTfo36l0v0RxHAma2PTPOTW2Uei"}]},"_npmUser":{"name":"akarachen","email":"akarachen@outlook.com"},"directories":{},"maintainers":[{"name":"akarachen","email":"akarachen@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/electron-next_3.2.0_1685630272732_0.1528809007664398"},"_hasShrinkwrap":false},"3.2.1":{"name":"@akrc/electron-next","version":"3.2.1","description":"Build Electron apps using Next.js","main":"index.js","types":"index.d.ts","typings":"index.d.ts","exports":{".":{"default":"./index.js","types":"./index.d.ts"}},"repository":{"type":"git","url":"git+https://github.com/akarachen/electron-next.git"},"keywords":["electron","next","electron.js","next.js"],"author":{"name":"leo"},"license":"MIT","dependencies":{"app-root-path":">=2.0.1","electron-is-dev":"^0.3.0"},"gitHead":"8c5c4078a9ca75bea10337e288dccad7a390ae9e","bugs":{"url":"https://github.com/akarachen/electron-next/issues"},"homepage":"https://github.com/akarachen/electron-next#readme","_id":"@akrc/electron-next@3.2.1","_nodeVersion":"19.6.0","_npmVersion":"9.4.2","dist":{"integrity":"sha512-GmwKahT9qgfMSAEeW/UiBUvi6sDTBcHei4BAGHUT+4gYvsUITiWB+mZ/VF6dj3ASHBqqFL+vg0PYj2Q8oag1dA==","shasum":"3db2785e761133ea949daf6b73db38362811f0ae","tarball":"https://registry.npmjs.org/@akrc/electron-next/-/electron-next-3.2.1.tgz","fileCount":5,"unpackedSize":6810,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDi73OCvv/ihjHB2M1x8U+qG3DgBnqFFuCDEL7YlvUImgIhALlrpuclRl7UKz4fVpCvSun8/K8tUAnJwjkcvss11War"}]},"_npmUser":{"name":"akarachen","email":"akarachen@outlook.com"},"directories":{},"maintainers":[{"name":"akarachen","email":"akarachen@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/electron-next_3.2.1_1685630799595_0.573530163070902"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-01T14:37:52.668Z","3.2.0":"2023-06-01T14:37:52.886Z","modified":"2023-06-01T14:46:39.868Z","3.2.1":"2023-06-01T14:46:39.750Z"},"maintainers":[{"name":"akarachen","email":"akarachen@outlook.com"}],"description":"Build Electron apps using Next.js","homepage":"https://github.com/akarachen/electron-next#readme","keywords":["electron","next","electron.js","next.js"],"repository":{"type":"git","url":"git+https://github.com/akarachen/electron-next.git"},"author":{"name":"leo"},"bugs":{"url":"https://github.com/akarachen/electron-next/issues"},"license":"MIT","readme":"# electron-next\n\nThis package lets you use [Next.js](https://github.com/zeit/next.js) for building the renderer of your [Electron](https://electron.atom.io) apps!\n\n- In **production**, it ensures that the `file://` protocol (which Electron uses to load your static assets in the renderer process) works properly with your Next.js bundle (generated by `next export`)\n- While **developing**, it takes care of the whole flow required for building the renderer code\n\n\n## Why I fork this lib\n\nThis lib works well in every next release, see [Next.js examples](https://github.com/vercel/next.js/tree/canary/examples/with-electron-typescript).\n\nBut:\n\n1. It doesn't have TypeScript declaration file.\n2. The author haven't update it for a long time.\n\nThanks for the original author's brilliant work, it save lots of time for me.\n\n## Usage\n\nFirstly, install the package using any node package manager:\n\n```bash\npnpm add electron-next\n```\n\nThen load it:\n\n```js\nconst prepareRenderer = require('electron-next')\n```\n\nAs the final step, call the package:\n\n- `<path>`: The path to the directory containing the renderer (relative to the app's root directory). If the paths for development and production aren't the same, this can be an object holding a `development` and a `production` key with their respective paths (string|object).\n- `<port>`: Used for running [Next.js](https://github.com/zeit/next.js) in development (number, **optional**, defaults to `8000`).\n\n```js\nawait prepareRenderer(<path>, <port>)\n```\n\n## Caught a Bug?\n\n1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device\n2. Link the package to the global package directory: `npm link`\n3. Within the electron app of your choice, link it to the dependencies: `npm link electron-next`. Instead of the default one from [npm](https://www.npmjs.com), it will now use your local clone of the package!\n\n## Author\n\n- Leo Lamprecht ([@notquiteleo](https://twitter.com/notquiteleo))\n- Akara Chen ([@akarachen](https://twitter.com/object_nullll))\n","readmeFilename":"readme.md"}