@gtkx/cli 0.4.1 → 0.5.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/dist/create.d.ts +2 -2
- package/dist/create.js +2 -2
- package/dist/dev-server.d.ts +2 -2
- package/package.json +3 -3
package/dist/create.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export type TestingFramework = "vitest" | "jest" | "node" | "none";
|
|
|
5
5
|
/**
|
|
6
6
|
* Options for creating a new GTKX application.
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
8
|
+
export type CreateOptions = {
|
|
9
9
|
/** Project name (lowercase letters, numbers, and hyphens only). */
|
|
10
10
|
name?: string;
|
|
11
11
|
/** Application ID in reverse domain notation (e.g., com.example.myapp). */
|
|
@@ -16,7 +16,7 @@ export interface CreateOptions {
|
|
|
16
16
|
testing?: TestingFramework;
|
|
17
17
|
/** Whether to include Claude Code skills for AI assistance. */
|
|
18
18
|
claudeSkills?: boolean;
|
|
19
|
-
}
|
|
19
|
+
};
|
|
20
20
|
export declare const getTestScript: (testing: TestingFramework) => string | undefined;
|
|
21
21
|
export declare const generatePackageJson: (name: string, appId: string, testing: TestingFramework) => string;
|
|
22
22
|
export declare const generateTsConfig: () => string;
|
package/dist/create.js
CHANGED
|
@@ -275,9 +275,9 @@ GTK signals map to \`on<SignalName>\` props:
|
|
|
275
275
|
## Widget References
|
|
276
276
|
|
|
277
277
|
\`\`\`tsx
|
|
278
|
-
import {
|
|
278
|
+
import { useRef } from "react";
|
|
279
279
|
|
|
280
|
-
const entryRef =
|
|
280
|
+
const entryRef = useRef<Gtk.Entry | null>(null);
|
|
281
281
|
<Entry ref={entryRef} />
|
|
282
282
|
// Later: entryRef.current?.getText()
|
|
283
283
|
\`\`\`
|
package/dist/dev-server.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import { type InlineConfig, type ViteDevServer } from "vite";
|
|
|
2
2
|
/**
|
|
3
3
|
* Options for creating a GTKX development server.
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export type DevServerOptions = {
|
|
6
6
|
/** Path to the app entry file (e.g., "./src/app.tsx"). */
|
|
7
7
|
entry: string;
|
|
8
8
|
/** Vite configuration overrides for customizing the dev server. */
|
|
9
9
|
vite?: InlineConfig;
|
|
10
|
-
}
|
|
10
|
+
};
|
|
11
11
|
/**
|
|
12
12
|
* Creates and starts a GTKX development server with HMR support.
|
|
13
13
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gtkx/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "CLI for GTKX - create and develop GTK4 React applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"gtk",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"@vitejs/plugin-react": "5.1.2",
|
|
48
48
|
"citty": "0.1.6",
|
|
49
49
|
"vite": "7.2.7",
|
|
50
|
-
"@gtkx/ffi": "0.
|
|
51
|
-
"@gtkx/react": "0.
|
|
50
|
+
"@gtkx/ffi": "0.5.0",
|
|
51
|
+
"@gtkx/react": "0.5.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"react": "^19"
|