@witchcraft/nuxt-electron 0.0.10 → 0.0.12
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/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -21,7 +21,7 @@ startup.exit = async () => {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
const module = defineNuxtModule({
|
|
24
|
+
const module$1 = defineNuxtModule({
|
|
25
25
|
meta: {
|
|
26
26
|
name: "electron",
|
|
27
27
|
configKey: "electron"
|
|
@@ -180,11 +180,12 @@ const module = defineNuxtModule({
|
|
|
180
180
|
copyFromVite.map((v) => [v, viteConfig.define[v]])
|
|
181
181
|
),
|
|
182
182
|
...createConstantCaseVariables({
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
183
|
+
// on windows the backslashes in the paths must be double escaped
|
|
184
|
+
electronRoute: electronRoute.replaceAll("\\", "\\\\"),
|
|
185
|
+
electronProdUrl: electronProdUrl.replaceAll("\\", "\\\\"),
|
|
186
|
+
electronNuxtDir: electronNuxtDir.replaceAll("\\", "\\\\"),
|
|
187
|
+
electronNuxtPublicDir: electronNuxtPublicDir.replaceAll("\\", "\\\\"),
|
|
188
|
+
electronBuildDir: electronBuildDir.replaceAll("\\", "\\\\"),
|
|
188
189
|
// ...options.additionalElectronVariables,
|
|
189
190
|
// nuxt's runtimeConfig cannot be used in electron's main since it's built seperately
|
|
190
191
|
// also we must stringify ourselves since escaped double quotes are not preserved in the final output :/
|
|
@@ -366,4 +367,4 @@ const module = defineNuxtModule({
|
|
|
366
367
|
}
|
|
367
368
|
});
|
|
368
369
|
|
|
369
|
-
export { module as default };
|
|
370
|
+
export { module$1 as default };
|
package/genDevDesktop.js
CHANGED
|
@@ -3,6 +3,11 @@ import JSON5 from "json5"
|
|
|
3
3
|
import fs from "node:fs/promises"
|
|
4
4
|
import path from "node:path"
|
|
5
5
|
|
|
6
|
+
if (process.env.CI) {
|
|
7
|
+
console.log("Skipping desktop file generation in CI.")
|
|
8
|
+
process.exit(0)
|
|
9
|
+
}
|
|
10
|
+
|
|
6
11
|
if (["darwin", "linux"].includes(process.platform)) {
|
|
7
12
|
// eslint-disable-next-line no-console
|
|
8
13
|
console.log("Generating dev desktop file.")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@witchcraft/nuxt-electron",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "Nuxt module for working with electron.",
|
|
5
5
|
"repository": "witchcraftjs/nuxt-electron",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@alanscodelog/utils": "^6.0.2",
|
|
29
|
-
"@nuxt/kit": "^4.
|
|
30
|
-
"@witchcraft/nuxt-utils": "^0.3.
|
|
31
|
-
"@witchcraft/ui": "^0.3.
|
|
29
|
+
"@nuxt/kit": "^4.3.1",
|
|
30
|
+
"@witchcraft/nuxt-utils": "^0.3.6",
|
|
31
|
+
"@witchcraft/ui": "^0.3.24",
|
|
32
32
|
"defu": "^6.1.4",
|
|
33
|
-
"es-toolkit": "^1.
|
|
33
|
+
"es-toolkit": "^1.44.0",
|
|
34
34
|
"vite-plugin-electron": "^0.29.0",
|
|
35
35
|
"vite-plugin-externalize-deps": "^0.9.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@witchcraft/ui": "^0.3.
|
|
39
|
-
"unplugin-icons": "^22.
|
|
38
|
+
"@witchcraft/ui": "^0.3.24",
|
|
39
|
+
"unplugin-icons": "^22.5.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependenciesMeta": {
|
|
42
42
|
"unplugin-icons": {
|
|
@@ -48,23 +48,23 @@
|
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@alanscodelog/eslint-config": "^6.3.1",
|
|
51
|
-
"@alanscodelog/semantic-release-config": "^6.0.
|
|
51
|
+
"@alanscodelog/semantic-release-config": "^6.0.2",
|
|
52
52
|
"@alanscodelog/tsconfigs": "^6.2.0",
|
|
53
|
-
"@nuxt/eslint-config": "^1.
|
|
53
|
+
"@nuxt/eslint-config": "^1.15.1",
|
|
54
54
|
"@nuxt/module-builder": "^1.0.2",
|
|
55
|
-
"@nuxt/schema": "^4.
|
|
56
|
-
"@nuxt/test-utils": "^3.
|
|
55
|
+
"@nuxt/schema": "^4.3.1",
|
|
56
|
+
"@nuxt/test-utils": "^3.23.0",
|
|
57
57
|
"@types/node": "latest",
|
|
58
58
|
"changelogen": "^0.6.2",
|
|
59
59
|
"electron": "^38.0.0",
|
|
60
|
-
"eslint": "^9.
|
|
60
|
+
"eslint": "^9.39.2",
|
|
61
61
|
"husky": "^9.1.7",
|
|
62
62
|
"json5": "^2.2.3",
|
|
63
|
-
"nuxt": "^4.
|
|
64
|
-
"typescript": "^5.
|
|
65
|
-
"unplugin-icons": "^22.
|
|
63
|
+
"nuxt": "^4.3.1",
|
|
64
|
+
"typescript": "^5.9.3",
|
|
65
|
+
"unplugin-icons": "^22.5.0",
|
|
66
66
|
"vitest": "^3.2.4",
|
|
67
|
-
"vue-tsc": "^3.
|
|
67
|
+
"vue-tsc": "^3.2.4"
|
|
68
68
|
},
|
|
69
69
|
"release": {
|
|
70
70
|
"extends": [
|
package/src/module.ts
CHANGED
|
@@ -337,11 +337,12 @@ export default defineNuxtModule<ModuleOptions>({
|
|
|
337
337
|
copyFromVite.map(v => [v, viteConfig.define![v]])
|
|
338
338
|
),
|
|
339
339
|
...createConstantCaseVariables({
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
340
|
+
// on windows the backslashes in the paths must be double escaped
|
|
341
|
+
electronRoute: electronRoute.replaceAll("\\", "\\\\"),
|
|
342
|
+
electronProdUrl: electronProdUrl.replaceAll("\\", "\\\\"),
|
|
343
|
+
electronNuxtDir: electronNuxtDir.replaceAll("\\", "\\\\"),
|
|
344
|
+
electronNuxtPublicDir: electronNuxtPublicDir.replaceAll("\\", "\\\\"),
|
|
345
|
+
electronBuildDir: electronBuildDir.replaceAll("\\", "\\\\"),
|
|
345
346
|
// ...options.additionalElectronVariables,
|
|
346
347
|
// nuxt's runtimeConfig cannot be used in electron's main since it's built seperately
|
|
347
348
|
// also we must stringify ourselves since escaped double quotes are not preserved in the final output :/
|