@gjsify/vite-plugin-gjsify 0.64.52 → 0.64.54
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/lib/index.d.ts +8 -0
- package/lib/index.js +2 -1
- package/package.json +8 -8
package/lib/index.d.ts
CHANGED
|
@@ -76,6 +76,14 @@ export interface GjsifyNativescriptOptions {
|
|
|
76
76
|
* `gi://` line). Off by default: it makes the widget toolkit a build-time dependency.
|
|
77
77
|
*/
|
|
78
78
|
giRenderer?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* GI namespaces answered by the REAL `@gjsify/node-gi` namespace instead of the renderer's
|
|
81
|
+
* sparse arm — `Ns` or `Ns-Version`, e.g. `['Gio', 'GLib']` for code that needs
|
|
82
|
+
* `Gio.SocketClient` beside a widget port. Only meaningful with `giRenderer` (without it every
|
|
83
|
+
* `gi://` is already an empty module); needs `@gjsify/node-gi` as an app dependency. A
|
|
84
|
+
* namespace beyond the core set must be declared in `giNamespaces` too.
|
|
85
|
+
*/
|
|
86
|
+
giReal?: string[];
|
|
79
87
|
/**
|
|
80
88
|
* Compile `poDirectory/<lang>.po` into `locale/<lang>/LC_MESSAGES/<domain>.mo` assets of the
|
|
81
89
|
* build, so the Android GLib gettext finds them under `<filesDir>/app/locale` — the Vite mirror
|
package/lib/index.js
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
import { createRequire } from 'node:module';
|
|
41
41
|
import { existsSync, readdirSync, readFileSync, statSync } from 'node:fs';
|
|
42
42
|
import * as nodePath from 'node:path';
|
|
43
|
-
import { gjsImportsEmptyPlugin, giRendererPlugin, platformResolvePlugin, nativescriptSuffixChain, NATIVESCRIPT_PLATFORMS, browserSuffixChain, BROWSER_REFUSED_SUFFIXES, detectNativescriptPlatform, nativescriptPlatformDefines, cssAsStringPlugin, gresourcePlugin, gschemaPlugin, GSCHEMA_REGISTER, nativescriptLocalePlugin, nativescriptGiSelectionPlugin, } from '@gjsify/rolldown-plugin-gjsify';
|
|
43
|
+
import { gjsImportsEmptyPlugin, giRendererPlugin, giRealPlugin, platformResolvePlugin, nativescriptSuffixChain, NATIVESCRIPT_PLATFORMS, browserSuffixChain, BROWSER_REFUSED_SUFFIXES, detectNativescriptPlatform, nativescriptPlatformDefines, cssAsStringPlugin, gresourcePlugin, gschemaPlugin, GSCHEMA_REGISTER, nativescriptLocalePlugin, nativescriptGiSelectionPlugin, } from '@gjsify/rolldown-plugin-gjsify';
|
|
44
44
|
import blueprintPlugin from '@gjsify/vite-plugin-blueprint';
|
|
45
45
|
import { deepkitPlugin } from '@gjsify/rolldown-plugin-deepkit';
|
|
46
46
|
import { ALIASES_NODE_FOR_NATIVESCRIPT, GI_RENDERERS } from '@gjsify/resolve-npm';
|
|
@@ -485,6 +485,7 @@ export function gjsifyNativescript(options = {}) {
|
|
|
485
485
|
};
|
|
486
486
|
const giRenderer = options.giRenderer ? GI_RENDERERS['nativescript'] : undefined;
|
|
487
487
|
return [
|
|
488
|
+
...(options.giReal?.length ? [giRealPlugin({ namespaces: options.giReal })] : []),
|
|
488
489
|
...(giRenderer ? [giRendererPlugin({ app: 'nativescript', ...giRenderer })] : []),
|
|
489
490
|
gjsImportsEmptyPlugin({ emptyGirs: !giRenderer }),
|
|
490
491
|
// Platform-specific source variants (`*.android` / `*.ios` /
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/vite-plugin-gjsify",
|
|
3
|
-
"version": "0.64.
|
|
3
|
+
"version": "0.64.54",
|
|
4
4
|
"description": "Vite plugin presets mirroring `gjsify build --app browser` / `--app nativescript` — dev (Vite/HMR) parity with the gjsify CLI targets.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
],
|
|
44
44
|
"license": "MIT",
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@gjsify/empty": "0.64.
|
|
47
|
-
"@gjsify/resolve-npm": "0.64.
|
|
48
|
-
"@gjsify/rolldown-plugin-deepkit": "0.64.
|
|
49
|
-
"@gjsify/rolldown-plugin-gjsify": "0.64.
|
|
50
|
-
"@gjsify/vite-plugin-blueprint": "0.64.
|
|
46
|
+
"@gjsify/empty": "0.64.54",
|
|
47
|
+
"@gjsify/resolve-npm": "0.64.54",
|
|
48
|
+
"@gjsify/rolldown-plugin-deepkit": "0.64.54",
|
|
49
|
+
"@gjsify/rolldown-plugin-gjsify": "0.64.54",
|
|
50
|
+
"@gjsify/vite-plugin-blueprint": "0.64.54"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"vite": "^8.1.3"
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@gjsify/cli": "0.64.
|
|
62
|
-
"@gjsify/unit": "0.64.
|
|
61
|
+
"@gjsify/cli": "0.64.54",
|
|
62
|
+
"@gjsify/unit": "0.64.54",
|
|
63
63
|
"@types/node": "^25.9.2",
|
|
64
64
|
"typescript": "^6.0.3",
|
|
65
65
|
"vite": "^8.1.3"
|