@hamedb89/localghost 0.4.0 → 0.4.1
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 -5
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -54,13 +54,13 @@ yarn dlx @hamedb89/localghost
|
|
|
54
54
|
bunx --package @hamedb89/localghost localghost
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
From a Localghost checkout, test a real consumer repository against the local checkout without changing the consumer's manifest or working tree. This is repository development tooling and is not part of the installed npm package:
|
|
58
58
|
|
|
59
59
|
```sh
|
|
60
60
|
./bin/ghost consumer test faaast --repo /path/to/faaast-landing -- pnpm run bench:noop
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
The command creates a detached worktree, installs its dependencies, builds and links the local Localghost checkout, runs the command inside the worktree, and removes the worktree afterward. Add `--keep` before `--` when inspecting the isolated checkout after a failure.
|
|
63
|
+
The command creates a detached worktree, installs its dependencies, builds and links the local Localghost checkout, runs the command inside the worktree, and removes the worktree afterward. Add `--keep` before `--` when inspecting the isolated checkout after a failure. The FAAAST adapter uses a separate `.consumer.test` hostname suffix to avoid colliding with a normal `.localhost` development session.
|
|
64
64
|
|
|
65
65
|
On the first interactive run, Localghost can create `.localghost`, explain the `/etc/hosts` change, write `ops/local/Caddyfile`, and print the browser-facing URL:
|
|
66
66
|
|
|
@@ -630,8 +630,8 @@ localghost ps [--json]
|
|
|
630
630
|
localghost update [--json]
|
|
631
631
|
localghost upgrade [--cwd path]
|
|
632
632
|
localghost release [patch|minor|major]
|
|
633
|
-
localghost dev [--config file] [--config-pattern regex] [--https|--ssl] [--auto-repair yes|no] [--trust]
|
|
634
|
-
localghost run [--config file] [--config-pattern regex] [--https|--ssl] [--auto-repair yes|no] [--trust] [--dynamic-port] -- command
|
|
633
|
+
localghost dev [--config file] [--config-pattern regex] [--https|--ssl] [--auto-repair yes|no] [--clean-caddy] [--trust]
|
|
634
|
+
localghost run [--config file] [--config-pattern regex] [--https|--ssl] [--auto-repair yes|no] [--clean-caddy] [--trust] [--dynamic-port yes|no] -- command
|
|
635
635
|
localghost routes [--https|--ssl]
|
|
636
636
|
localghost print [--config file] [--config-pattern regex]
|
|
637
637
|
```
|
|
@@ -666,7 +666,7 @@ import { localGhostPlugin } from "@hamedb89/localghost/vite";
|
|
|
666
666
|
- Preview the exact Pages artifact locally with `npm run site:serve`, then open `http://127.0.0.1:4173/`.
|
|
667
667
|
- npm publish is guarded by `prepublishOnly` and the release workflow publishes with npm provenance.
|
|
668
668
|
- To release the CLI, run `localghost release patch`, `localghost release minor`, or `localghost release major`. The command dispatches the **Release** workflow from `main`; it synchronizes version metadata, verifies the package and runtime matrix, commits and tags the bump, publishes npm, and creates a GitHub Release with generated notes. GitHub CLI must be installed and authenticated.
|
|
669
|
-
- From this repository, `./bin/ghost release minor` (or the shorter `./bin/c release minor`) pushes `main` and dispatches the same guarded GitHub release workflow. Use `./bin/ghost check` for the release verification locally, `./bin/ghost release status` to inspect recent runs, or `./bin/ghost release retry v0.
|
|
669
|
+
- From this repository, `./bin/ghost release minor` (or the shorter `./bin/c release minor`) pushes `main` and dispatches the same guarded GitHub release workflow. Use `./bin/ghost check` for the release verification locally, `./bin/ghost release status` to inspect recent runs, or `./bin/ghost release retry v0.4.0` to retry publishing an existing tag.
|
|
670
670
|
- Runtime dependencies are intentionally small: `commander` and `execa`. Vite is an optional peer dependency.
|
|
671
671
|
- No postinstall scripts, hidden Homebrew installs, surprise browser tabs, or broad hosts-file rewrites.
|
|
672
672
|
- Update checks are best-effort, cached for 24 hours, and can be disabled with `LOCALGHOST_NO_UPDATE_CHECK=1` or `--no-update-check`.
|
package/dist/cli.js
CHANGED
|
@@ -2102,7 +2102,7 @@ import { existsSync as existsSync7, mkdirSync as mkdirSync3, readFileSync as rea
|
|
|
2102
2102
|
import { homedir as homedir3 } from "os";
|
|
2103
2103
|
import { dirname as dirname4, join as join10 } from "path";
|
|
2104
2104
|
var LOCALGHOST_PACKAGE_NAME = "@hamedb89/localghost";
|
|
2105
|
-
var LOCALGHOST_VERSION = "0.4.
|
|
2105
|
+
var LOCALGHOST_VERSION = "0.4.1";
|
|
2106
2106
|
var UPDATE_CHECK_CACHE_TTL_MS = 24 * 60 * 60 * 1e3;
|
|
2107
2107
|
var UPDATE_CHECK_NOTIFY_TTL_MS = 24 * 60 * 60 * 1e3;
|
|
2108
2108
|
var UPDATE_CHECK_TIMEOUT_MS = 900;
|