@within-7/jetr 0.7.5 → 0.7.7
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 +3 -3
- package/dist/cli.js +10 -14
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @within-7/jetr
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Static site hosting CLI. Deploy files to Cloudflare R2 with one command. Incremental uploads, custom domains, password protection.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -27,7 +27,7 @@ jetr login
|
|
|
27
27
|
jetr
|
|
28
28
|
# Site name [my-blog]:
|
|
29
29
|
# ✔ Deployed!
|
|
30
|
-
# URL: https://my-blog.
|
|
30
|
+
# URL: https://my-blog.your-domain.com
|
|
31
31
|
|
|
32
32
|
# 3. Re-deploy (remembers site name)
|
|
33
33
|
jetr
|
|
@@ -49,7 +49,7 @@ jetr login --token <jwt> # direct token (for CI)
|
|
|
49
49
|
|
|
50
50
|
### `jetr create <name>`
|
|
51
51
|
|
|
52
|
-
Create
|
|
52
|
+
Create an empty site without deploying files.
|
|
53
53
|
|
|
54
54
|
```bash
|
|
55
55
|
jetr create my-blog
|
package/dist/cli.js
CHANGED
|
@@ -491,21 +491,20 @@ async function promptSelection(options) {
|
|
|
491
491
|
|
|
492
492
|
// src/cli.ts
|
|
493
493
|
var program = new Command();
|
|
494
|
-
program.name("jetr").description(`Deploy static sites instantly
|
|
494
|
+
program.name("jetr").description(`Deploy static sites instantly
|
|
495
495
|
|
|
496
496
|
Just run "jetr" in any directory to deploy. First time? Run "jetr login" first.
|
|
497
497
|
|
|
498
|
-
The name can be a simple name (
|
|
499
|
-
|
|
498
|
+
The name can be a simple name (auto-assigned subdomain) or a full domain
|
|
499
|
+
like blog.example.com for custom domain hosting.
|
|
500
500
|
|
|
501
501
|
Examples:
|
|
502
|
-
$ jetr Deploy current directory (
|
|
502
|
+
$ jetr Deploy current directory (name from .jetrrc or random)
|
|
503
503
|
$ jetr ./dist Deploy the ./dist directory
|
|
504
|
-
$ jetr ./dist my-blog Deploy
|
|
505
|
-
$ jetr ./dist
|
|
506
|
-
$ jetr ./dist blog.example.com Deploy to external domain (shows DNS setup)
|
|
504
|
+
$ jetr ./dist my-blog Deploy and assign a subdomain
|
|
505
|
+
$ jetr ./dist blog.example.com Deploy to a custom domain (shows DNS setup)
|
|
507
506
|
$ jetr index.html Deploy a single file
|
|
508
|
-
$ jetr *.html *.css my-site Deploy multiple files to a named site`).version("0.7.
|
|
507
|
+
$ jetr *.html *.css my-site Deploy multiple files to a named site`).version("0.7.7");
|
|
509
508
|
program.argument("[paths...]", "directory, file(s), and/or site name to deploy").action(async (paths) => {
|
|
510
509
|
const config = loadConfig();
|
|
511
510
|
if (!config.token) {
|
|
@@ -569,12 +568,9 @@ program.argument("[paths...]", "directory, file(s), and/or site name to deploy")
|
|
|
569
568
|
);
|
|
570
569
|
console.log(` ${chalk2.bold("Size:")} ${formatBytes(result.totalSize)}`);
|
|
571
570
|
if (customHostname) {
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
console.log(chalk2.yellow(` DNS setup required:`));
|
|
576
|
-
console.log(` ${customHostname} CNAME jetr-serve.lixilei.workers.dev`);
|
|
577
|
-
}
|
|
571
|
+
console.log();
|
|
572
|
+
console.log(chalk2.yellow(` DNS: ensure CNAME record exists`));
|
|
573
|
+
console.log(` ${chalk2.cyan(customHostname)} CNAME ${chalk2.dim("jetr-serve.lixilei.workers.dev")} (Proxied)`);
|
|
578
574
|
}
|
|
579
575
|
console.log();
|
|
580
576
|
if (mode === "directory") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@within-7/jetr",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.7",
|
|
4
4
|
"description": "CLI for Jetr static site hosting",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"files": ["dist", "README.md"],
|
|
10
10
|
"scripts": {
|
|
11
|
-
"build": "tsup src/cli.ts --format esm --target node20 --clean",
|
|
11
|
+
"build": "node -e \"const v=require('./package.json').version; console.log('Building v'+v)\" && tsup src/cli.ts --format esm --target node20 --clean --define.PKG_VERSION='\"'$(node -p \"require('./package.json').version\")'\"'",
|
|
12
12
|
"dev": "tsx src/cli.ts",
|
|
13
13
|
"prepublishOnly": "pnpm build"
|
|
14
14
|
},
|