getfilepress 0.1.33 → 0.1.35
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 +2 -2
- package/package.json +5 -6
- package/scripts/ensure-lease.mjs +0 -24
package/README.md
CHANGED
|
@@ -68,9 +68,9 @@ pnpm ship # build getfilepress + Wrangler Pages
|
|
|
68
68
|
|
|
69
69
|
No admin UI. No visitor comments — permanent. Genie is `filepress dev` only; `preview` and `build/` do not include it. Production is files.
|
|
70
70
|
|
|
71
|
-
<!-- xfacts-
|
|
71
|
+
<!-- xfacts-label -->
|
|
72
72
|
|
|
73
|
-
##
|
|
73
|
+
## xFacts label
|
|
74
74
|
|
|
75
75
|
- **AppFacts:** [viewer](https://appfacts.dev/v#af1.eNptktFr2zAQxv8VoWenZq952giMdU27QUIpjDJU-eyoPeuEdHJqQv_3nRzHa6FPxt_9dPfdJ530oNdfKu1ND3qtW4cQIqSkK81jKFJPniIEEiWx4ZxEM5bdAKKgs-BTwW6v92fCvuj1SaPxXTZdqeylz85GF7hSuwGQoVI_zWAu2ma3q9SP_e1Wzsfs2U1O7qiBq-fio43i7UhR-urz-RvH06wRne9ElQ7y_5QdNvJ377hYO1DiuYyUmxZNBPVbLJWeFt2Hbd8q3UCQ1f6ctJfK1zQNek71yzQrlCCM8-q_mbfqjJ7JmWkjeQbffMINbqEmp4qJcKlyjr6ho5-JEoey5AeIyZFfsNYkXr32uAomJogz_SBwEcq6F_IY5QZwQWQ7pLEHzx_nZu9aB81M2ck9qxDJSixTv0dJerBLMp-EGUW-pH3p-wvR9GYuIlmD6tu1glewmaeFHpcLO-kgj0Z6_e2Nl085EXzoyxOExEvEK3sAW_LU5TkmxxTHMpk5pHVdd44P-enKUl9vDBscJanvFDtYbbeb-t1V_wOMmPsr) · [raw](https://github.com/Catalyst-Forge-LLC/filepress/blob/main/APP_FACTS.md)
|
|
76
76
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "getfilepress",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.35",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "FilePress — file-based Markdown blog engine. Link this package from a content-only site (config + posts), then run `filepress build`.",
|
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
"scripts/copy-path-mounts.mjs",
|
|
40
40
|
"scripts/assert-no-genie.mjs",
|
|
41
41
|
"scripts/create-site.mjs",
|
|
42
|
-
"scripts/ensure-lease.mjs",
|
|
43
42
|
"scripts/postinstall.mjs",
|
|
44
43
|
"scripts/link-embedded-packages.mjs",
|
|
45
44
|
"packages/core",
|
|
@@ -60,10 +59,10 @@
|
|
|
60
59
|
"build:www": "pnpm docs:www && pnpm filepress build --site getfilepress",
|
|
61
60
|
"ship": "pnpm build:www && wrangler pages deploy sites/getfilepress/build --project-name getfilepress",
|
|
62
61
|
"deploy:www": "pnpm ship",
|
|
63
|
-
"dev": "
|
|
64
|
-
"serve": "
|
|
65
|
-
"dev:demo": "
|
|
66
|
-
"dev:www": "pnpm docs:www &&
|
|
62
|
+
"dev": "localslip claim demo --port 5179 && pnpm filepress dev --site demo --host 0.0.0.0",
|
|
63
|
+
"serve": "localslip claim demo --port 5179 && pnpm filepress dev --site demo --host 0.0.0.0",
|
|
64
|
+
"dev:demo": "localslip claim demo --port 5179 && pnpm filepress dev --site demo --host 0.0.0.0",
|
|
65
|
+
"dev:www": "pnpm docs:www && localslip claim getfilepress --port 5180 && pnpm filepress dev --site getfilepress --host 0.0.0.0",
|
|
67
66
|
"create-site": "node scripts/create-site.mjs",
|
|
68
67
|
"sync-siblings": "tsx scripts/sync-sibling-sites.ts",
|
|
69
68
|
"siblings": "tsx scripts/siblings/server.ts",
|
package/scripts/ensure-lease.mjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Idempotent LocalSlip claim for FilePress (and sibling) dev ports.
|
|
4
|
-
* Usage: node scripts/ensure-lease.mjs <name> <port>
|
|
5
|
-
* Missing CLI → one line, exit 0. Existing lease → keep it (do not rewrite).
|
|
6
|
-
*/
|
|
7
|
-
import { spawnSync } from 'node:child_process';
|
|
8
|
-
|
|
9
|
-
const name = process.argv[2];
|
|
10
|
-
const port = process.argv[3];
|
|
11
|
-
if (!name || !port) {
|
|
12
|
-
console.error('usage: node scripts/ensure-lease.mjs <name> <port>');
|
|
13
|
-
process.exit(1);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
const opt = { encoding: 'utf8', timeout: 8000, windowsHide: true, shell: process.platform === 'win32' };
|
|
17
|
-
const got = spawnSync('localslip', ['get', name], { ...opt, stdio: ['ignore', 'pipe', 'ignore'] });
|
|
18
|
-
if (got.status === 0 && String(got.stdout || '').trim()) {
|
|
19
|
-
process.exit(0);
|
|
20
|
-
}
|
|
21
|
-
const claim = spawnSync('localslip', ['claim', name, '--port', port], { ...opt, stdio: 'inherit' });
|
|
22
|
-
if (claim.error || claim.status !== 0) {
|
|
23
|
-
console.warn(`localslip: skip claim ${name} (install the CLI to pin this site to ${port})`);
|
|
24
|
-
}
|