gohere 0.4.0 → 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/README.md +18 -3
- package/package.json +1 -1
- package/vendor/linux-x64/gohere +0 -0
- package/vendor/win32-x64/gohere.exe +0 -0
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Tiny local dev URL launcher for `.localhost` projects.
|
|
|
6
6
|
http://myproject.localhost
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Run `gohere` inside a package project or static folder. It starts or serves the project on a hidden local port, routes a clean `.localhost` hostname to it, and prints the URL.
|
|
9
|
+
Run `gohere` inside a package project, workspace root, or static folder. It starts or serves the project on a hidden local port, routes a clean `.localhost` hostname to it, and prints the URL.
|
|
10
10
|
|
|
11
11
|
No script edits. No port memorization. No repo config.
|
|
12
12
|
|
|
@@ -26,14 +26,21 @@ go install github.com/roie/gohere/cmd/gohere@latest
|
|
|
26
26
|
|
|
27
27
|
## Quick start
|
|
28
28
|
|
|
29
|
-
`gohere` supports package projects and static files.
|
|
29
|
+
`gohere` supports package projects, workspace roots, and static files.
|
|
30
30
|
|
|
31
|
-
Run the default
|
|
31
|
+
Run the default command:
|
|
32
32
|
|
|
33
33
|
```bash
|
|
34
34
|
gohere
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
+
In a package project, this runs the nearest `package.json` `dev` script. In a workspace root, this discovers workspace packages from `pnpm-workspace.yaml` or `package.json` workspaces, starts each package with a `dev` script, and gives each package its own route:
|
|
38
|
+
|
|
39
|
+
```text
|
|
40
|
+
gohere web -> http://web.myrepo.localhost
|
|
41
|
+
gohere worker -> http://worker.myrepo.localhost
|
|
42
|
+
```
|
|
43
|
+
|
|
37
44
|
Run a named package script:
|
|
38
45
|
|
|
39
46
|
```bash
|
|
@@ -46,6 +53,14 @@ Run multiple server scripts:
|
|
|
46
53
|
gohere dev:web dev:api
|
|
47
54
|
```
|
|
48
55
|
|
|
56
|
+
Run any current package script exactly as written by naming it explicitly:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
gohere dev
|
|
60
|
+
gohere build
|
|
61
|
+
gohere preview
|
|
62
|
+
```
|
|
63
|
+
|
|
49
64
|
Run a raw command:
|
|
50
65
|
|
|
51
66
|
```bash
|
package/package.json
CHANGED
package/vendor/linux-x64/gohere
CHANGED
|
Binary file
|
|
Binary file
|