this.gui 1.2.13 → 1.2.15
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 +5 -8
- package/bin/{cli.js → cli.cjs} +4 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# this.GUI
|
|
2
2
|
|
|
3
3
|
###### A collection of components and building blocks enabling GUI generation powered by AI.
|
|
4
4
|
<img src="https://res.cloudinary.com/dkwnxf6gm/image/upload/v1761276578/this.gui.npm.png" alt="This.GUI logo" style="zoom:34%;" />
|
|
@@ -21,8 +21,7 @@ yarn add this.gui
|
|
|
21
21
|
import { TopBar } from 'this.gui'
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
**.GUI** provides a rich collection of **atomic** and **composite** **components**
|
|
25
|
-
ready to use:
|
|
24
|
+
**.GUI** provides a rich collection of **atomic** and **composite** **components** ready to use:
|
|
26
25
|
|
|
27
26
|
```tsx
|
|
28
27
|
import { Button, Card, Text } from 'this.gui';
|
|
@@ -42,15 +41,13 @@ export function Example() {
|
|
|
42
41
|
import GUI from 'this.gui';
|
|
43
42
|
```
|
|
44
43
|
|
|
45
|
-
All components are theme-aware and automatically inherit styles and tokens from
|
|
46
|
-
the `GuiProvider`
|
|
44
|
+
All components are theme-aware and automatically inherit styles and tokens from the `GuiProvider`
|
|
47
45
|
|
|
48
46
|

|
|
49
47
|
|
|
50
48
|
## Initialization
|
|
51
49
|
|
|
52
|
-
To initialize **This.GUI** in your project, wrap your application with the
|
|
53
|
-
`GuiProvider` and optionally set a theme:
|
|
50
|
+
To initialize **This.GUI** in your project, wrap your application with the`GuiProvider` and optionally set a theme:
|
|
54
51
|
|
|
55
52
|
```tsx
|
|
56
53
|
import { GuiProvider } from 'this.gui';
|
|
@@ -100,4 +97,4 @@ or build a thin wrapper like the example above.
|
|
|
100
97
|
|
|
101
98
|
## 🪐 License
|
|
102
99
|
|
|
103
|
-
MIT © [
|
|
100
|
+
MIT © [neurons.me](https://neurons.me)
|
package/bin/{cli.js → cli.cjs}
RENAMED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
/**
|
|
2
3
|
* This.GUI CLI (TypeScript)
|
|
3
4
|
*
|
|
@@ -7,14 +8,10 @@
|
|
|
7
8
|
*
|
|
8
9
|
* Compiles to dist/bin/cli.js when the package is built.
|
|
9
10
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import fsExtra from 'fs-extra';
|
|
11
|
+
const { execSync } = require('child_process');
|
|
12
|
+
const fsExtra = require('fs-extra');
|
|
13
13
|
const { copySync } = fsExtra;
|
|
14
|
-
|
|
15
|
-
import { fileURLToPath } from 'url';
|
|
16
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
17
|
-
const __dirname = path.dirname(__filename);
|
|
14
|
+
const path = require('path');
|
|
18
15
|
const appName = process.argv[2] || 'my-app';
|
|
19
16
|
const templateDir = path.resolve(__dirname, '../templates');
|
|
20
17
|
const targetDir = path.resolve(process.cwd(), appName);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "this.gui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.15",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/this-gui.umd.js",
|
|
7
7
|
"module": "dist/this-gui.es.js",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"bin": {
|
|
17
|
-
"gui": "./dist/bin/cli.
|
|
17
|
+
"gui": "./dist/bin/cli.cjs"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
20
|
"build": "vite build && node -e \"import('./vite.config.js').then(m => m.buildFinished())\"",
|