I totally respect zeit/next.js library, but with Electron, there is no de-facto-standard for now.
So I wrote Nextron in this spare time, Golden Week, in Japan.
Once you installed
- you can write all renderer codes with Next.js
- you can build all cross-platform packages for release usage by only one command.
$ npm install --global nextron
# Install scaffolds for quick start $ nextron init <YOUR-APP-NAME> $ cd <YOUR-APP-NAME> # for development # it starts development process (with HMR(Hot Module Replacement) featuire) $ yarn dev # for production # it builds the electron app for release usage $ yarn build
nextron init, folder structure below is created.
. ├── common ├── main │ └── index.js ├── package.json ├── renderer │ ├── next.config.js │ └── pages │ └── home.js └── static ├── icon.icns └── icon.ico
At this time, we can:
- develop whole renderer process with Next.js!
- foget to know how we build electron packages for release
At this time, this Nextron project is highly WIP, so PRs are welcome!!
May the code be with you!