svedocs-cli 0.1.0-beta.1 → 0.1.0-beta.2
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 +9 -0
- package/dist/{chunk-QD6TB2KV.js → chunk-VMZTD7VT.js} +999 -516
- package/dist/create-svedocs.js +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +3 -1
- package/dist/svedocs.js +1 -1
- package/package.json +1 -1
- package/templates/cloudflare/src/app.d.ts +18 -0
- package/templates/cloudflare/src/routes/+page.svelte +2 -1
- package/templates/cloudflare/src/routes/+page.ts +16 -4
- package/templates/cloudflare/src/routes/[...path]/+page.svelte +2 -1
- package/templates/cloudflare/src/routes/[...path]/+page.ts +17 -6
- package/templates/cloudflare/svedocs.config.ts +6 -0
- package/templates/docs/src/app.d.ts +18 -0
- package/templates/docs/src/routes/+page.svelte +2 -1
- package/templates/docs/src/routes/+page.ts +16 -4
- package/templates/docs/src/routes/[...path]/+page.svelte +2 -1
- package/templates/docs/src/routes/[...path]/+page.ts +17 -6
- package/templates/docs/svedocs.config.ts +6 -0
- package/templates/minimal/src/app.d.ts +18 -0
- package/templates/minimal/src/routes/+page.svelte +2 -1
- package/templates/minimal/src/routes/+page.ts +16 -4
- package/templates/minimal/src/routes/[...path]/+page.svelte +2 -1
- package/templates/minimal/src/routes/[...path]/+page.ts +17 -6
- package/templates/minimal/svedocs.config.ts +6 -0
package/README.md
CHANGED
|
@@ -9,6 +9,9 @@ CLI package for `svedocs` and `create-svedocs`.
|
|
|
9
9
|
- `create-svedocs [dir] --template minimal|docs|cloudflare`
|
|
10
10
|
- `create-svedocs [dir] --package-manager auto|pnpm|npm|yarn|bun --install`
|
|
11
11
|
- `svedocs create [dir] --template minimal|docs|cloudflare`
|
|
12
|
+
- `svedocs upgrade [latest|version|tag]`
|
|
13
|
+
- `svedocs upgrade 0.2.0 --no-install`
|
|
14
|
+
- `svedocs upgrade --check-only`
|
|
12
15
|
- `svedocs dev`
|
|
13
16
|
- `svedocs build --mode edge|static|spa`
|
|
14
17
|
- `svedocs ssg`
|
|
@@ -24,3 +27,9 @@ CLI package for `svedocs` and `create-svedocs`.
|
|
|
24
27
|
- `svedocs deploy cloudflare --write`
|
|
25
28
|
|
|
26
29
|
The CLI loads `svedocs.config.ts`, `svedocs.config.mts`, `svedocs.config.js`, or `svedocs.config.mjs` before running content-aware commands.
|
|
30
|
+
|
|
31
|
+
Create templates are fetched from GitHub first (`backrunner/svedocs@main`) and fall back to the bundled templates when GitHub is unavailable. Set `SVEDOCS_TEMPLATE_SOURCE=bundled` to force the bundled copy, or `SVEDOCS_TEMPLATE_REF=<branch|tag|sha>` to pin a remote template version.
|
|
32
|
+
|
|
33
|
+
Generated projects get `svedocs` and `svedocs-cli` from the template `package.json` dependency entries. They are installed from the package registry by the selected package manager only when create is run with `--install`.
|
|
34
|
+
|
|
35
|
+
`svedocs upgrade` checks the project dependency span, upgrades both `svedocs` and `svedocs-cli`, and runs the detected package manager by default. Use `--no-install` to only rewrite `package.json`, `--dry-run` to preview the plan, or `--check-only` to run compatibility checks without changing dependencies.
|