staticalize 0.2.2 → 0.2.3
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/esm/deno.d.ts +2 -0
- package/esm/deno.js +14 -4
- package/esm/deno.js.map +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.22 → 1.0.23}/_get_file_info_type.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.22 → 1.0.23}/_get_file_info_type.js.map +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.22 → 1.0.23}/ensure_dir.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.22 → 1.0.23}/ensure_dir.js.map +1 -1
- package/esm/main.js.map +1 -1
- package/esm/staticalize.js +1 -1
- package/package.json +5 -5
- package/src/deno.js +14 -4
- package/src/main.ts +8 -10
- package/src/staticalize.ts +1 -1
- /package/esm/deps/jsr.io/@std/fs/{1.0.22 → 1.0.23}/_get_file_info_type.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.22 → 1.0.23}/_get_file_info_type.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.22 → 1.0.23}/ensure_dir.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.22 → 1.0.23}/ensure_dir.js +0 -0
- /package/src/deps/jsr.io/@std/fs/{1.0.22 → 1.0.23}/_get_file_info_type.ts +0 -0
- /package/src/deps/jsr.io/@std/fs/{1.0.22 → 1.0.23}/ensure_dir.ts +0 -0
package/esm/deno.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ declare namespace _default {
|
|
|
14
14
|
};
|
|
15
15
|
let imports: {
|
|
16
16
|
"@std/assert": string;
|
|
17
|
+
"@std/expect": string;
|
|
17
18
|
"@std/cli": string;
|
|
18
19
|
"@std/testing": string;
|
|
19
20
|
"@std/fs": string;
|
|
@@ -27,6 +28,7 @@ declare namespace _default {
|
|
|
27
28
|
"zod-opts": string;
|
|
28
29
|
configliere: string;
|
|
29
30
|
dnt: string;
|
|
31
|
+
"@hono/hono": string;
|
|
30
32
|
};
|
|
31
33
|
namespace lint {
|
|
32
34
|
namespace rules {
|
package/esm/deno.js
CHANGED
|
@@ -14,19 +14,21 @@ export default {
|
|
|
14
14
|
},
|
|
15
15
|
"imports": {
|
|
16
16
|
"@std/assert": "jsr:@std/assert@1",
|
|
17
|
+
"@std/expect": "jsr:@std/expect@^1",
|
|
17
18
|
"@std/cli": "jsr:@std/cli@1",
|
|
18
19
|
"@std/testing": "jsr:@std/testing@^1.0.0",
|
|
19
20
|
"@std/fs": "jsr:@std/fs@1",
|
|
20
21
|
"@std/path": "jsr:@std/path@1",
|
|
21
22
|
"@libs/xml": "jsr:@libs/xml@^6.0.0",
|
|
22
|
-
"effection": "npm:effection
|
|
23
|
+
"effection": "npm:effection@^4.0.2",
|
|
23
24
|
"hast-util-from-html": "npm:hast-util-from-html@^2.0.3",
|
|
24
25
|
"hast-util-select": "npm:hast-util-select@^6.0.4",
|
|
25
26
|
"hast-util-to-html": "npm:hast-util-to-html@^9.0.5",
|
|
26
27
|
"zod": "npm:zod@^4.1.11",
|
|
27
28
|
"zod-opts": "npm:zod-opts@0.1.8",
|
|
28
|
-
"configliere": "npm:configliere@^0.2.
|
|
29
|
-
"dnt": "jsr:@deno/dnt@0.42.3"
|
|
29
|
+
"configliere": "npm:configliere@^0.2.3",
|
|
30
|
+
"dnt": "jsr:@deno/dnt@0.42.3",
|
|
31
|
+
"@hono/hono": "jsr:@hono/hono"
|
|
30
32
|
},
|
|
31
33
|
"lint": {
|
|
32
34
|
"rules": {
|
|
@@ -34,7 +36,15 @@ export default {
|
|
|
34
36
|
}
|
|
35
37
|
},
|
|
36
38
|
"publish": {
|
|
37
|
-
"include": [
|
|
39
|
+
"include": [
|
|
40
|
+
"mod.ts",
|
|
41
|
+
"staticalize.ts",
|
|
42
|
+
"task-buffer.ts",
|
|
43
|
+
"config.ts",
|
|
44
|
+
"main.ts",
|
|
45
|
+
"README.md",
|
|
46
|
+
"deno.json"
|
|
47
|
+
]
|
|
38
48
|
},
|
|
39
49
|
"fmt": {
|
|
40
50
|
"exclude": ["dist", "build"]
|
package/esm/deno.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deno.js","sourceRoot":"","sources":["../src/deno.js"],"names":[],"mappings":"AAAA,eAAe;IACb,MAAM,EAAE,wBAAwB;IAChC,SAAS,EAAE,OAAO;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,UAAU;QACf,OAAO,EAAE,WAAW;KACrB;IACD,SAAS,EAAE,KAAK;IAChB,OAAO,EAAE;QACP,KAAK,EAAE,0BAA0B;QACjC,SAAS,EAAE,gHAAgH;QAC3H,WAAW,EAAE,gCAAgC;QAC7C,WAAW,EAAE,gCAAgC;KAC9C;IACD,SAAS,EAAE;QACT,aAAa,EAAE,mBAAmB;QAClC,UAAU,EAAE,gBAAgB;QAC5B,cAAc,EAAE,yBAAyB;QACzC,SAAS,EAAE,eAAe;QAC1B,WAAW,EAAE,iBAAiB;QAC9B,WAAW,EAAE,sBAAsB;QACnC,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"deno.js","sourceRoot":"","sources":["../src/deno.js"],"names":[],"mappings":"AAAA,eAAe;IACb,MAAM,EAAE,wBAAwB;IAChC,SAAS,EAAE,OAAO;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,UAAU;QACf,OAAO,EAAE,WAAW;KACrB;IACD,SAAS,EAAE,KAAK;IAChB,OAAO,EAAE;QACP,KAAK,EAAE,0BAA0B;QACjC,SAAS,EAAE,gHAAgH;QAC3H,WAAW,EAAE,gCAAgC;QAC7C,WAAW,EAAE,gCAAgC;KAC9C;IACD,SAAS,EAAE;QACT,aAAa,EAAE,mBAAmB;QAClC,aAAa,EAAE,oBAAoB;QACnC,UAAU,EAAE,gBAAgB;QAC5B,cAAc,EAAE,yBAAyB;QACzC,SAAS,EAAE,eAAe;QAC1B,WAAW,EAAE,iBAAiB;QAC9B,WAAW,EAAE,sBAAsB;QACnC,WAAW,EAAE,sBAAsB;QACnC,qBAAqB,EAAE,gCAAgC;QACvD,kBAAkB,EAAE,6BAA6B;QACjD,mBAAmB,EAAE,8BAA8B;QACnD,KAAK,EAAE,iBAAiB;QACxB,UAAU,EAAE,oBAAoB;QAChC,aAAa,EAAE,wBAAwB;QACvC,KAAK,EAAE,sBAAsB;QAC7B,YAAY,EAAE,gBAAgB;KAC/B;IACD,MAAM,EAAE;QACN,OAAO,EAAE;YACP,SAAS,EAAE,CAAC,cAAc,EAAE,eAAe,CAAC;SAC7C;KACF;IACD,SAAS,EAAE;QACT,SAAS,EAAE;YACT,QAAQ;YACR,gBAAgB;YAChB,gBAAgB;YAChB,WAAW;YACX,SAAS;YACT,WAAW;YACX,WAAW;SACZ;KACF;IACD,KAAK,EAAE;QACL,SAAS,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;KAC7B;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_get_file_info_type.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.
|
|
1
|
+
{"version":3,"file":"_get_file_info_type.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AAGxD,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,CAAC;AAElD;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAQrF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_get_file_info_type.js","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.
|
|
1
|
+
{"version":3,"file":"_get_file_info_type.js","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.ts"],"names":[],"mappings":"AAOA;;;;;;;;GAQG;AACH,MAAM,UAAU,eAAe,CAAC,QAA+B;IAC7D,OAAO,QAAQ,CAAC,MAAM;QACpB,CAAC,CAAC,MAAM;QACR,CAAC,CAAC,QAAQ,CAAC,WAAW;YACtB,CAAC,CAAC,KAAK;YACP,CAAC,CAAC,QAAQ,CAAC,SAAS;gBACpB,CAAC,CAAC,SAAS;gBACX,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ensure_dir.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.
|
|
1
|
+
{"version":3,"file":"ensure_dir.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.23/ensure_dir.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,iBAuBhD;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,QAuB9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ensure_dir.js","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.
|
|
1
|
+
{"version":3,"file":"ensure_dir.js","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.23/ensure_dir.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AAExD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,KAAK,UAAU,SAAS,CAAC,GAAiB;IAC/C,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC9C,mBAAmB,CAAC,QAAQ,CAAC,CAAC;QAC9B,OAAO;IACT,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,CAAC,GAAG,YAAY,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;YACnD,MAAM,GAAG,CAAC;QACZ,CAAC;IACH,CAAC;IAED,oCAAoC;IACpC,oEAAoE;IACpE,IAAI,CAAC;QACH,MAAM,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACrD,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,CAAC,GAAG,YAAY,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC;YACxD,MAAM,GAAG,CAAC;QACZ,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC9C,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC;AACH,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,UAAU,aAAa,CAAC,GAAiB;IAC7C,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QAC5C,mBAAmB,CAAC,QAAQ,CAAC,CAAC;QAC9B,OAAO;IACT,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,CAAC,GAAG,YAAY,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;YACnD,MAAM,GAAG,CAAC;QACZ,CAAC;IACH,CAAC;IAED,oCAAoC;IACpC,oEAAoE;IACpE,IAAI,CAAC;QACH,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACnD,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,CAAC,GAAG,YAAY,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC;YACxD,MAAM,GAAG,CAAC;QACZ,CAAC;QAED,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QAC5C,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC;AACH,CAAC;AAED,SAAS,mBAAmB,CAAC,QAA+B;IAC1D,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CACb,2DACE,eAAe,CAAC,QAAQ,CAC1B,GAAG,CACJ,CAAC;IACJ,CAAC;AACH,CAAC"}
|
package/esm/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";AACA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";AACA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI;IACxB,IAAI,MAAM,GAAG,MAAM,CAAC,YAAY,CAAC;QAC/B,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC;QAC3D,IAAI;KACL,CAAC,CAAC;IAEH,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,MAAM,CAAC;QACZ,KAAK,SAAS;YACZ,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;YAC5B,MAAM;QACR,KAAK,MAAM,CAAC,CAAC,CAAC;YACZ,IAAI,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC;YAC5B,IAAI,MAAM,CAAC,EAAE,EAAE,CAAC;gBACd,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC;gBAC1C,KAAK,CAAC,CAAC,WAAW,CAAC;oBACjB,IAAI,EAAE,IAAI,GAAG,CAAC,IAAI,CAAC;oBACnB,IAAI,EAAE,IAAI,GAAG,CAAC,IAAI,CAAC;oBACnB,GAAG,EAAE,MAAM;iBACZ,CAAC,CAAC;YACL,CAAC;iBAAM,CAAC;gBACN,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;gBACpC,OAAO,CAAC,GAAG,CAAC,gDAAgD,CAAC,CAAC;YAChE,CAAC;YACD,MAAM;QACR,CAAC;IACH,CAAC;AACH,CAAC,CAAC,CAAC"}
|
package/esm/staticalize.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as dntShim from "./_dnt.shims.js";
|
|
2
2
|
import { call, resource, spawn, until, useAbortSignal, } from "effection";
|
|
3
3
|
import { dirname, join, normalize } from "./deps/jsr.io/@std/path/1.1.4/mod.js";
|
|
4
|
-
import { ensureDir } from "./deps/jsr.io/@std/fs/1.0.
|
|
4
|
+
import { ensureDir } from "./deps/jsr.io/@std/fs/1.0.23/ensure_dir.js";
|
|
5
5
|
import { stringify } from "./deps/jsr.io/@libs/xml/6.0.8/stringify.js";
|
|
6
6
|
import { fromHtml } from "hast-util-from-html";
|
|
7
7
|
import { toHtml } from "hast-util-to-html";
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "staticalize",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Download a dynamic website and turn it into a static site",
|
|
5
5
|
"author": "engineering@frontside.com",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/thefrontside/
|
|
8
|
+
"url": "git+https://github.com/thefrontside/staticalize.git"
|
|
9
9
|
},
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"bugs": {
|
|
12
|
-
"url": "https://github.com/thefrontside/
|
|
12
|
+
"url": "https://github.com/thefrontside/staticalize/issues"
|
|
13
13
|
},
|
|
14
14
|
"module": "./esm/mod.js",
|
|
15
15
|
"exports": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
},
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"configliere": "^0.2.
|
|
30
|
-
"effection": "4.0.
|
|
29
|
+
"configliere": "^0.2.3",
|
|
30
|
+
"effection": "^4.0.2",
|
|
31
31
|
"hast-util-from-html": "^2.0.3",
|
|
32
32
|
"hast-util-select": "^6.0.4",
|
|
33
33
|
"hast-util-to-html": "^9.0.5",
|
package/src/deno.js
CHANGED
|
@@ -14,19 +14,21 @@ export default {
|
|
|
14
14
|
},
|
|
15
15
|
"imports": {
|
|
16
16
|
"@std/assert": "jsr:@std/assert@1",
|
|
17
|
+
"@std/expect": "jsr:@std/expect@^1",
|
|
17
18
|
"@std/cli": "jsr:@std/cli@1",
|
|
18
19
|
"@std/testing": "jsr:@std/testing@^1.0.0",
|
|
19
20
|
"@std/fs": "jsr:@std/fs@1",
|
|
20
21
|
"@std/path": "jsr:@std/path@1",
|
|
21
22
|
"@libs/xml": "jsr:@libs/xml@^6.0.0",
|
|
22
|
-
"effection": "npm:effection
|
|
23
|
+
"effection": "npm:effection@^4.0.2",
|
|
23
24
|
"hast-util-from-html": "npm:hast-util-from-html@^2.0.3",
|
|
24
25
|
"hast-util-select": "npm:hast-util-select@^6.0.4",
|
|
25
26
|
"hast-util-to-html": "npm:hast-util-to-html@^9.0.5",
|
|
26
27
|
"zod": "npm:zod@^4.1.11",
|
|
27
28
|
"zod-opts": "npm:zod-opts@0.1.8",
|
|
28
|
-
"configliere": "npm:configliere@^0.2.
|
|
29
|
-
"dnt": "jsr:@deno/dnt@0.42.3"
|
|
29
|
+
"configliere": "npm:configliere@^0.2.3",
|
|
30
|
+
"dnt": "jsr:@deno/dnt@0.42.3",
|
|
31
|
+
"@hono/hono": "jsr:@hono/hono"
|
|
30
32
|
},
|
|
31
33
|
"lint": {
|
|
32
34
|
"rules": {
|
|
@@ -34,7 +36,15 @@ export default {
|
|
|
34
36
|
}
|
|
35
37
|
},
|
|
36
38
|
"publish": {
|
|
37
|
-
"include": [
|
|
39
|
+
"include": [
|
|
40
|
+
"mod.ts",
|
|
41
|
+
"staticalize.ts",
|
|
42
|
+
"task-buffer.ts",
|
|
43
|
+
"config.ts",
|
|
44
|
+
"main.ts",
|
|
45
|
+
"README.md",
|
|
46
|
+
"deno.json"
|
|
47
|
+
]
|
|
38
48
|
},
|
|
39
49
|
"fmt": {
|
|
40
50
|
"exclude": ["dist", "build"]
|
package/src/main.ts
CHANGED
|
@@ -5,12 +5,11 @@ import { main } from "effection";
|
|
|
5
5
|
import { staticalize } from "./staticalize.js";
|
|
6
6
|
import { config } from "./config.js";
|
|
7
7
|
|
|
8
|
-
|
|
9
8
|
await main(function* (args) {
|
|
10
9
|
let parser = config.createParser({
|
|
11
10
|
envs: [{ name: "ENV", value: dntShim.Deno.env.toObject() }],
|
|
12
11
|
args,
|
|
13
|
-
})
|
|
12
|
+
});
|
|
14
13
|
|
|
15
14
|
switch (parser.type) {
|
|
16
15
|
case "help":
|
|
@@ -20,16 +19,15 @@ await main(function* (args) {
|
|
|
20
19
|
case "main": {
|
|
21
20
|
let result = parser.parse();
|
|
22
21
|
if (result.ok) {
|
|
23
|
-
|
|
22
|
+
let { base, site, output } = result.value;
|
|
24
23
|
yield* staticalize({
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
base: new URL(base),
|
|
25
|
+
host: new URL(site),
|
|
26
|
+
dir: output,
|
|
27
|
+
});
|
|
29
28
|
} else {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
console.error(result.error.message);
|
|
30
|
+
console.log(`\n\`staticalize --help\` for available options`);
|
|
33
31
|
}
|
|
34
32
|
break;
|
|
35
33
|
}
|
package/src/staticalize.ts
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
useAbortSignal,
|
|
9
9
|
} from "effection";
|
|
10
10
|
import { dirname, join, normalize } from "./deps/jsr.io/@std/path/1.1.4/mod.js";
|
|
11
|
-
import { ensureDir } from "./deps/jsr.io/@std/fs/1.0.
|
|
11
|
+
import { ensureDir } from "./deps/jsr.io/@std/fs/1.0.23/ensure_dir.js";
|
|
12
12
|
import { stringify } from "./deps/jsr.io/@libs/xml/6.0.8/stringify.js";
|
|
13
13
|
import { fromHtml } from "hast-util-from-html";
|
|
14
14
|
import { toHtml } from "hast-util-to-html";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|