create-gui 8.0.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/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "create-gui",
3
+ "version": "8.0.0",
4
+ "gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
5
+ "bin": {
6
+ "create-gui": "run.js"
7
+ },
8
+ "files": [
9
+ "run.js",
10
+ "dist"
11
+ ],
12
+ "sideEffects": false,
13
+ "main": "dist/index.cjs",
14
+ "publishConfig": {
15
+ "access": "public"
16
+ },
17
+ "scripts": {
18
+ "start": "./run.js",
19
+ "//": "disabling for now need to migrate to new stack",
20
+ "test-disabled": "NODE_ENV=test node -r esbuild-register ../../../node_modules/.bin/playwright test integration.test.ts",
21
+ "test:debug": "bun run test --debug",
22
+ "test": "bun run build:test && vitest run",
23
+ "test:web": "bun run test",
24
+ "build:test": "bun run build",
25
+ "prerelease": "rimraf ./dist/",
26
+ "prepublish": "bun run build",
27
+ "build": "hanzogui-build --skip-types --bundle",
28
+ "watch": "bun run build --watch",
29
+ "clean": "hanzogui-build clean",
30
+ "clean:build": "hanzogui-build clean:build"
31
+ },
32
+ "dependencies": {
33
+ "@expo/package-manager": "^1.1.2",
34
+ "chalk": "^4.1.2",
35
+ "commander": "2.20.0",
36
+ "detect-package-manager": "^3.0.1",
37
+ "fs-extra": "^11.2.0",
38
+ "opener": "^1.5.2",
39
+ "prompts": "2.1.0",
40
+ "rimraf": "^5.0.1",
41
+ "validate-npm-package-name": "3.0.0"
42
+ },
43
+ "devDependencies": {
44
+ "@playwright/test": "^1.49.1",
45
+ "@hanzogui/build": "8.0.0",
46
+ "@types/node": "^22.1.0",
47
+ "@types/opener": "^1.4.3",
48
+ "@types/prompts": "2.0.1",
49
+ "@types/rimraf": "3.0.0",
50
+ "@types/validate-npm-package-name": "3.0.0",
51
+ "esbuild-register": "^3.6.0",
52
+ "tempy": "^3.1.0",
53
+ "vitest": "4.0.4"
54
+ }
55
+ }
package/readme.md ADDED
@@ -0,0 +1,14 @@
1
+ # `create-gui`
2
+
3
+ ```sh
4
+ npm create hanzogui
5
+ ```
6
+
7
+ A script that creates a [hanzogui monorepo](https://github.com/hanzoai/gui/tree/main/example-monorepos/blank) for you in seconds.
8
+
9
+ ## Contributing
10
+
11
+ - Clone the root repo.
12
+ - `cd packages/create-gui`
13
+ - `yarn`
14
+ - `yarn test` to build your local app into a gitignored `create-test-app` folder
package/run.js ADDED
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env node
2
+
3
+ const command = require.resolve('create-gui')
4
+ const args = process.argv.slice(2)
5
+
6
+ try {
7
+ require('node:child_process').execSync(`node ${command} ${args.join(' ')}`, {
8
+ stdio: 'inherit',
9
+ })
10
+ } catch (err) {
11
+ process.exit(1)
12
+ }