@lakutata/template-electron-vue 3.0.0 → 3.1.0

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,10 +1,25 @@
1
1
  {
2
2
  "name": "@lakutata/template-electron-vue",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
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
+ "homepage": "https://lakutata.com/guide/ProjectStructure",
6
+ "bugs": {
7
+ "url": "https://github.com/lakutata/lakutata/issues",
8
+ "email": "admin@lakutata.com"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/lakutata/lakutata.git",
13
+ "directory": "packages/template-electron-vue"
14
+ },
15
+ "author": "alex.ma",
5
16
  "keywords": [
6
17
  "lakutata",
7
- "lakutata-template"
18
+ "lakutata-template",
19
+ "template",
20
+ "electron",
21
+ "vue",
22
+ "vite"
8
23
  ],
9
24
  "license": "MIT",
10
25
  "files": [
@@ -15,7 +15,7 @@ A [lakutata](https://github.com/lakutata/lakutata) Electron application. The pro
15
15
 
16
16
  ```bash
17
17
  npm run dev # the renderer served by Vite (hot reload) in the window of the application, with its DevTools
18
- npm test # the tests of the packages (the actions of the main process, without Electron)
18
+ npm test # build the packages and run their tests (the actions of the main process, without Electron)
19
19
  npm run build # build the packages, in the order of their dependencies (ui, then app)
20
20
  npm start # start the built application
21
21
  npm run package:host # the installers of this platform: dist/installer (deb, dmg, nsis…)
@@ -11,7 +11,7 @@
11
11
  ],
12
12
  "scripts": {
13
13
  "build": "lakutata run rebuild",
14
- "test": "lakutata run test",
14
+ "test": "npm run build && lakutata run test",
15
15
  "dev": "lakutata run dev --parallel",
16
16
  "start": "npm start -w app",
17
17
  "package:host": "npm run build && npm run package -w app -- --outdir ../../dist/installer",
@@ -27,6 +27,6 @@
27
27
  "typescript": "^6.0.3"
28
28
  },
29
29
  "engines": {
30
- "node": ">=22"
30
+ "node": "^22.13.0 || >=24.11.0"
31
31
  }
32
32
  }
@@ -12,8 +12,8 @@
12
12
  "clean": "lakutata clean",
13
13
  "build": "tsc",
14
14
  "rebuild": "npm run clean && npm run build",
15
- "dev": "npm run rebuild && electron build/App.js --renderer=http://localhost:5173",
16
- "start": "electron build/App.js",
15
+ "dev": "npm run rebuild && electron . --renderer=http://localhost:5173",
16
+ "start": "electron .",
17
17
  "test": "node --test \"build/tests/**/*.spec.js\"",
18
18
  "package": "lakutata package installer"
19
19
  },
@@ -15,7 +15,7 @@ const directory: string = resourcesPath() ?? path.dirname(fileURLToPath(import.m
15
15
  */
16
16
  const renderer: string | undefined = process.argv.find((argument: string): boolean => argument.startsWith('--renderer='))?.slice('--renderer='.length)
17
17
 
18
- //One instance of the application: a second one gives its window back to the first one
18
+ //A single instance of the application: a second one exits, and the first one brings its window to the front
19
19
  if (!electron.app.requestSingleInstanceLock()) {
20
20
  electron.app.exit(0)
21
21
  } else {
@@ -28,9 +28,9 @@ export type ConfigOptions = {
28
28
  */
29
29
  ipcMain?: IPCMain
30
30
  /**
31
- * The port of the HTTP entrypoint of the development, none by default: the actions invoked by the tools (Postman,
32
- * curl: POST / with their pattern and their input), the events pushed to them received (GET /events, Server-Sent
33
- * Events), the id of their client in the header id (or the query id of the events)
31
+ * The port of an HTTP entrypoint for development, none by default. Tools (Postman, curl) invoke the actions with
32
+ * POST / and the message (the pattern and the input), receive the events pushed to them with GET /events
33
+ * (Server-Sent Events), and give their client id in the id header (or the id query parameter)
34
34
  */
35
35
  devPort?: number
36
36
  }