fastygo 0.1.3 → 0.2.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 CHANGED
@@ -7,8 +7,9 @@ This release installs:
7
7
  - `github.com/fastygo/framework` v0.4.0
8
8
  - `github.com/fastygo/modules/render` v0.1.0 and templ v0.3.1001 as `go tool templ`
9
9
  - optional markdown, view, and a local Codex bbolt binary from `github.com/fastygo/backend/cmd/server` v0.1.0
10
+ - embedded Codex fixtures through `github.com/fastygo/modules/content-json` v0.1.0, or an external Codex origin
10
11
 
11
- Targets are `local` and `vps`. The process listens on `127.0.0.1`.
12
+ Targets are `local`, `vps`, and `vercel`. Local and VPS processes listen on `127.0.0.1`. Vercel gets a Go Function at `api/index.go`.
12
13
 
13
14
  ## Install the command
14
15
 
@@ -24,7 +25,7 @@ bunx fastygo init . --module github.com/you/shop
24
25
  From the Go module:
25
26
 
26
27
  ```text
27
- go install github.com/fastygo/cli/cmd/fastygo@v0.1.1
28
+ go install github.com/fastygo/cli/cmd/fastygo@v0.2.0
28
29
  ```
29
30
 
30
31
  Linux amd64 and macOS arm64 can also use `install.sh`. It checks `SHA256SUMS` and prints the binary path.
@@ -35,7 +36,11 @@ If Go 1.25 is missing, `init` offers to download it into the user cache before i
35
36
 
36
37
  ```text
37
38
  fastygo init . --module github.com/you/shop --target vps --with codex
39
+ fastygo init . --module github.com/you/site --target vercel --content fixtures
40
+ fastygo init . --module github.com/you/site --target vercel --content codex
38
41
  go run ./cmd/site
39
42
  ```
40
43
 
44
+ `--content fixtures` is the default. It embeds a Codex manifest and the Home entry. `--content codex` reads an external GoBackend through `CODEX_ORIGIN`; the token stays out of the repository. `--target vercel` does not install a local Codex server. Use `--with codex` only for `local` or `vps`.
45
+
41
46
  `fastygo init --help` lists the flags. A second `init` stops when `go.mod` is already there. `fastygo add markdown` updates that module.
package/bin/fastygo.js CHANGED
@@ -8,7 +8,7 @@ import { arch, platform } from "node:os";
8
8
  import { dirname, join } from "node:path";
9
9
  import { fileURLToPath } from "node:url";
10
10
 
11
- const version = "0.1.1";
11
+ const version = "0.2.0";
12
12
 
13
13
  const packed = {
14
14
  "win32-x64": "fastygo-windows-amd64.exe",
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fastygo",
3
- "version": "0.1.3",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "author": "FastyGo",
6
6
  "description": "Install a FastyGo site once. Versions stay in the project's go.mod.",