@witchcraft/nuxt-electron 0.0.8 → 0.0.10
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/README.md +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -6
- package/package.json +91 -92
- package/src/module.ts +1 -1
package/README.md
CHANGED
|
@@ -260,7 +260,7 @@ Note we would ideally also remove "/" from the prerender, but this requires manu
|
|
|
260
260
|
|
|
261
261
|
A `routeRules` redirect won't work, because it will trigger a request to electron's file protocol handler which we don't know what to do with.
|
|
262
262
|
|
|
263
|
-
A redirect from a page (e.i. `if (process.client && isElectron) { navigateTo("/app") }`) works, but it takes a little big of time to navigate. This is still needed for development redirecting, but not in production.
|
|
263
|
+
A redirect from a page (e.i. `if (process.client && isElectron) { await navigateTo("/app") }`) works, but it takes a little big of time to navigate. This is still needed for development redirecting, but not in production.
|
|
264
264
|
|
|
265
265
|
#### Build
|
|
266
266
|
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -9,11 +9,6 @@ import { startup, build } from 'vite-plugin-electron';
|
|
|
9
9
|
import { notBundle } from 'vite-plugin-electron/plugin';
|
|
10
10
|
import { externalizeDeps } from 'vite-plugin-externalize-deps';
|
|
11
11
|
|
|
12
|
-
const dependencies = {
|
|
13
|
-
"@witchcraft/ui": "^0.3.2"};
|
|
14
|
-
const pkg = {
|
|
15
|
-
dependencies: dependencies};
|
|
16
|
-
|
|
17
12
|
startup.exit = async () => {
|
|
18
13
|
if ("electronApp" in process) {
|
|
19
14
|
try {
|
|
@@ -52,7 +47,7 @@ const module = defineNuxtModule({
|
|
|
52
47
|
},
|
|
53
48
|
moduleDependencies: {
|
|
54
49
|
"@witchcraft/ui/nuxt": {
|
|
55
|
-
version:
|
|
50
|
+
version: "^0.3.2"
|
|
56
51
|
}
|
|
57
52
|
},
|
|
58
53
|
async setup(options, nuxt) {
|
package/package.json
CHANGED
|
@@ -1,93 +1,92 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
2
|
+
"name": "@witchcraft/nuxt-electron",
|
|
3
|
+
"version": "0.0.10",
|
|
4
|
+
"description": "Nuxt module for working with electron.",
|
|
5
|
+
"repository": "witchcraftjs/nuxt-electron",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/types.d.mts",
|
|
12
|
+
"import": "./dist/module.mjs"
|
|
13
|
+
},
|
|
14
|
+
"./electron": {
|
|
15
|
+
"types": "./dist/runtime/electron/index.d.ts",
|
|
16
|
+
"import": "./dist/runtime/electron/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./genDevDesktop": {
|
|
19
|
+
"import": "./genDevDesktop.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"src",
|
|
24
|
+
"dist",
|
|
25
|
+
"genDevDesktop.js"
|
|
26
|
+
],
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@alanscodelog/utils": "^6.0.2",
|
|
29
|
+
"@nuxt/kit": "^4.0.3",
|
|
30
|
+
"@witchcraft/nuxt-utils": "^0.3.2",
|
|
31
|
+
"@witchcraft/ui": "^0.3.2",
|
|
32
|
+
"defu": "^6.1.4",
|
|
33
|
+
"es-toolkit": "^1.39.10",
|
|
34
|
+
"vite-plugin-electron": "^0.29.0",
|
|
35
|
+
"vite-plugin-externalize-deps": "^0.9.0"
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"@witchcraft/ui": "^0.3.2",
|
|
39
|
+
"unplugin-icons": "^22.3.0"
|
|
40
|
+
},
|
|
41
|
+
"peerDependenciesMeta": {
|
|
42
|
+
"unplugin-icons": {
|
|
43
|
+
"optional": true
|
|
44
|
+
},
|
|
45
|
+
"@witchcraft/ui": {
|
|
46
|
+
"optional": true
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@alanscodelog/eslint-config": "^6.3.1",
|
|
51
|
+
"@alanscodelog/semantic-release-config": "^6.0.0",
|
|
52
|
+
"@alanscodelog/tsconfigs": "^6.2.0",
|
|
53
|
+
"@nuxt/eslint-config": "^1.9.0",
|
|
54
|
+
"@nuxt/module-builder": "^1.0.2",
|
|
55
|
+
"@nuxt/schema": "^4.0.3",
|
|
56
|
+
"@nuxt/test-utils": "^3.19.2",
|
|
57
|
+
"@types/node": "latest",
|
|
58
|
+
"changelogen": "^0.6.2",
|
|
59
|
+
"electron": "^38.0.0",
|
|
60
|
+
"eslint": "^9.34.0",
|
|
61
|
+
"husky": "^9.1.7",
|
|
62
|
+
"json5": "^2.2.3",
|
|
63
|
+
"nuxt": "^4.0.3",
|
|
64
|
+
"typescript": "^5.8.3",
|
|
65
|
+
"unplugin-icons": "^22.3.0",
|
|
66
|
+
"vitest": "^3.2.4",
|
|
67
|
+
"vue-tsc": "^3.0.6"
|
|
68
|
+
},
|
|
69
|
+
"release": {
|
|
70
|
+
"extends": [
|
|
71
|
+
"@alanscodelog/semantic-release-config"
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"commitlint": {
|
|
75
|
+
"extends": [
|
|
76
|
+
"@alanscodelog"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"publishConfig": {
|
|
80
|
+
"access": "public"
|
|
81
|
+
},
|
|
82
|
+
"scripts": {
|
|
83
|
+
"build": "nuxt-module-build prepare && nuxt-module-build build && nuxi build playground",
|
|
84
|
+
"build:only": "nuxt-module-build build",
|
|
85
|
+
"dev": "nuxi dev playground",
|
|
86
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
87
|
+
"lint": "eslint \"{src,test,playground/app}/**/*.{ts,vue}\" \"*.{js,cjs,mjs,ts}\"",
|
|
88
|
+
"lint:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit",
|
|
89
|
+
"test": "vitest run",
|
|
90
|
+
"test:watch": "vitest watch"
|
|
91
|
+
}
|
|
92
|
+
}
|
package/src/module.ts
CHANGED