@lakutata/template-electron-vue 3.0.0-beta.0 → 3.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lakutata/template-electron-vue",
3
- "version": "3.0.0-beta.0",
3
+ "version": "3.0.0-beta.2",
4
4
  "description": "The Electron template of the lakutata projects with Vue: the main process is a lakutata application serving the actions of its controllers to the Vue renderer (Vite) over IPC, packaged by electron-builder.",
5
5
  "keywords": [
6
6
  "lakutata",
@@ -2,7 +2,7 @@ import {Application, resourcesPath, type ILogger} from 'lakutata'
2
2
  import electron from 'electron'
3
3
  import path from 'node:path'
4
4
  import {fileURLToPath} from 'node:url'
5
- import {installerConfig} from './config/Config.js'
5
+ import {config} from './config/Config.js'
6
6
 
7
7
  /**
8
8
  * The directory of the preload script and of the built renderer: the resources of the packaged application
@@ -20,7 +20,7 @@ if (!electron.app.requestSingleInstanceLock()) {
20
20
  electron.app.exit(0)
21
21
  } else {
22
22
  Application
23
- .run(installerConfig({
23
+ .run(config({
24
24
  directory: directory,
25
25
  renderer: renderer,
26
26
  mode: electron.app.isPackaged ? 'production' : 'development',
@@ -39,7 +39,7 @@ export type ConfigOptions = {
39
39
  * The options of the application
40
40
  * @param options
41
41
  */
42
- export function installerConfig(options: ConfigOptions = {}): ApplicationOptions {
42
+ export function config(options: ConfigOptions = {}): ApplicationOptions {
43
43
  return {
44
44
  id: '{$APP_ID}',
45
45
  name: '{$APP_NAME}',
@@ -3,7 +3,7 @@ import assert from 'node:assert'
3
3
  import {createServer, type Server} from 'node:net'
4
4
  import {Application} from 'lakutata'
5
5
  import type {IPCMain} from 'lakutata/adapter/electron'
6
- import {installerConfig} from '../config/Config.js'
6
+ import {config} from '../config/Config.js'
7
7
 
8
8
  /**
9
9
  * The ipcMain of the tests: the actions are invoked as the renderer invokes them, without Electron
@@ -51,7 +51,7 @@ describe('{$APP_NAME}', (): void => {
51
51
  //@end
52
52
  devPort = await freePort()
53
53
  app = await new Promise<Application>((resolve: (app: Application) => void): void => {
54
- Application.run(installerConfig({window: false, ipcMain: ipcMain, devPort: devPort})).onLaunched((launched: Application): void => resolve(launched))
54
+ Application.run(config({window: false, ipcMain: ipcMain, devPort: devPort})).onLaunched((launched: Application): void => resolve(launched))
55
55
  })
56
56
  })
57
57