A simple and flexible Electron app kit
# Using pnpm
pnpm add @hywax/nue-kit -D
# Using yarn
yarn add @hywax/nue-kit -D
# Using npm
npm install @hywax/nue-kit -D
To fully explore all the features of Nue Kit, check out the repository for a ready-made starter template
import { BrowserWindow, app } from 'electron'
import { createNue, createStore } from '@hywax/nue-kit'
function createMainWindowApp() {
const store = createStore()
const mainWindow = new BrowserWindow({
...store.get('app.mainWindowPosition'),
width: 800,
height: 480,
})
return createNue({
store,
window: mainWindow,
isProduction: false,
singleInstance: true,
locales: { /* ... */ },
modules: [],
})
}
app.whenReady().then(async () => {
const awesomeApp = createMainWindowApp()
await awesomeApp.hooks.callHook('electron:created', nue)
})
A huge thank you to everyone who is helping to improve. Thanks to you, the project can evolve!
The Nue Kit is based on open source code, according to MIT License.