Built to be the fastest and most extendable development environment combining both Electron and NuxtJS using the latest technologies.
- Electron 12
- Nuxt 2.15 + Vite 2
- TypeScript 4.2
- Nuxt Configuration
renderer/nuxt.config- Only supported for
target: "static". - Setting
ssr: truemay cause routing issues on reload.
- Only supported for
You need to install Node.js to run the code.
You will then need to install Yarn using
npm install -g yarnAfter installing Yarn, install the dependencies by simply running
yarnTo run a live development build, run
yarn devTo create a production build, run
yarn buildThen, to locally run the production build, use
yarn startTo release a publishable version, run
yarn releaseThis is where the nuxt app itself is contained.
Hypothetically, deleting renderer/ folder, and creating a new nuxt app using
yarn create nuxt-app rendererWill work, just keep in mind the known limitations, and for an optimal configuration, choose Yarn for Package manager, Single Page App for Rendering mode, and Static for Deployment target.
This is where the main electron instance is created.
Anything imported from the index.ts file will be bundled
along for production and development.
The bundled file location will be dependent on the main field of
package.json. If you do change the location, make sure it's
included in .gitignore.
This contains all the code written to both create and run development and production builds.
External configuration may come in the future if requested.