@moku-labs/web 0.1.0-alpha.4 → 0.3.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.
Files changed (39) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +64 -51
  3. package/dist/chunk-D7D4PA-g.mjs +13 -0
  4. package/dist/index.cjs +5972 -113
  5. package/dist/index.d.cts +2078 -106
  6. package/dist/index.d.mts +2078 -106
  7. package/dist/index.mjs +5859 -33
  8. package/package.json +65 -65
  9. package/dist/bin/moku.cjs +0 -1383
  10. package/dist/bin/moku.d.cts +0 -1
  11. package/dist/bin/moku.d.mts +0 -1
  12. package/dist/bin/moku.mjs +0 -1383
  13. package/dist/chunk-DQk6qfdC.mjs +0 -18
  14. package/dist/factory-CMOo4n6a.cjs +0 -1722
  15. package/dist/factory-DRFGSslp.d.mts +0 -114
  16. package/dist/factory-DiKypQqs.mjs +0 -1602
  17. package/dist/factory-k-YoScgB.d.cts +0 -114
  18. package/dist/index-DH3jlpNi.d.mts +0 -503
  19. package/dist/index-DaY7vTuo.d.cts +0 -503
  20. package/dist/plugins/head/build.cjs +0 -35
  21. package/dist/plugins/head/build.d.cts +0 -17
  22. package/dist/plugins/head/build.d.mts +0 -17
  23. package/dist/plugins/head/build.mjs +0 -27
  24. package/dist/plugins/spa/index.cjs +0 -26
  25. package/dist/plugins/spa/index.d.cts +0 -30
  26. package/dist/plugins/spa/index.d.mts +0 -30
  27. package/dist/plugins/spa/index.mjs +0 -24
  28. package/dist/primitives-BYUp6kae.cjs +0 -100
  29. package/dist/primitives-DKgZfRAO.d.mts +0 -71
  30. package/dist/primitives-Dhko-oLM.mjs +0 -58
  31. package/dist/primitives-yZqQkOVR.d.cts +0 -71
  32. package/dist/project-B8z4jeMC.cjs +0 -1383
  33. package/dist/project-guCYpUeD.mjs +0 -1244
  34. package/dist/test.cjs +0 -82
  35. package/dist/test.d.cts +0 -61
  36. package/dist/test.d.mts +0 -61
  37. package/dist/test.mjs +0 -79
  38. package/dist/wrangler-BlZWVmX9.mjs +0 -369
  39. package/dist/wrangler-Bomk9mU-.cjs +0 -423
package/package.json CHANGED
@@ -1,19 +1,35 @@
1
1
  {
2
2
  "name": "@moku-labs/web",
3
- "version": "0.1.0-alpha.4",
4
- "author": "Alex Kucherenko",
3
+ "version": "0.3.0",
4
+ "description": "Content static-site generator + SPA web framework for TypeScript, built on @moku-labs/core.",
5
+ "author": "Oleksandr Kucherenko",
5
6
  "license": "MIT",
6
7
  "repository": {
7
8
  "type": "git",
8
9
  "url": "git+https://github.com/moku-labs/web.git"
9
10
  },
10
- "homepage": "https://github.com/moku-labs/web#readme",
11
11
  "bugs": {
12
12
  "url": "https://github.com/moku-labs/web/issues"
13
13
  },
14
+ "homepage": "https://github.com/moku-labs/web#readme",
15
+ "keywords": [
16
+ "web",
17
+ "framework",
18
+ "static-site-generator",
19
+ "ssg",
20
+ "spa",
21
+ "preact",
22
+ "typescript",
23
+ "moku"
24
+ ],
25
+ "publishConfig": {
26
+ "access": "public",
27
+ "registry": "https://registry.npmjs.org/"
28
+ },
14
29
  "type": "module",
15
30
  "main": "./dist/index.cjs",
16
31
  "module": "./dist/index.mjs",
32
+ "types": "./dist/index.d.mts",
17
33
  "exports": {
18
34
  ".": {
19
35
  "import": {
@@ -24,85 +40,69 @@
24
40
  "types": "./dist/index.d.cts",
25
41
  "default": "./dist/index.cjs"
26
42
  }
27
- },
28
- "./build": {
29
- "import": {
30
- "types": "./dist/plugins/head/build.d.mts",
31
- "default": "./dist/plugins/head/build.mjs"
32
- }
33
- },
34
- "./spa": {
35
- "import": {
36
- "types": "./dist/plugins/spa/index.d.mts",
37
- "default": "./dist/plugins/spa/index.mjs"
38
- }
39
- },
40
- "./test": {
41
- "import": {
42
- "types": "./dist/test.d.mts",
43
- "default": "./dist/test.mjs"
44
- }
45
43
  }
46
44
  },
47
- "bin": {
48
- "moku": "./dist/bin/moku.mjs"
49
- },
50
45
  "files": [
51
46
  "dist",
52
- "README.md",
53
- "LICENSE"
47
+ "LICENSE",
48
+ "README.md"
54
49
  ],
55
- "scripts": {
56
- "build": "tsdown",
57
- "test": "vitest run",
58
- "test:watch": "vitest",
59
- "test:coverage": "vitest run --coverage",
60
- "format": "biome check --write .",
61
- "format:check": "biome check .",
62
- "lint": "eslint .",
63
- "typecheck": "tsc --noEmit"
64
- },
65
- "peerDependencies": {
66
- "preact": "~10.28.0",
67
- "preact-render-to-string": "~6.6.0"
50
+ "engines": {
51
+ "node": ">=22.0.0",
52
+ "bun": ">=1.3.14"
68
53
  },
69
54
  "dependencies": {
70
55
  "@moku-labs/core": "0.1.0-alpha.6",
71
- "gray-matter": "^4.0.3",
72
- "reading-time": "^1.5.0",
73
- "unified": "^11.0.5",
74
- "remark-parse": "^11.0.0",
75
- "remark-frontmatter": "^5.0.0",
76
- "remark-gfm": "^4.0.1",
77
- "remark-directive": "^4.0.0",
78
- "remark-rehype": "^11.1.2",
79
- "rehype-raw": "^7.0.0",
80
- "rehype-sanitize": "^6.0.0",
81
- "rehype-stringify": "^10.0.1",
82
- "@shikijs/rehype": "^3.22.0",
83
- "shiki": "^3.22.0",
84
- "unist-util-visit": "^5.1.0",
85
- "feed": "^5.2.0",
86
- "satori": "^0.19.1",
87
- "@resvg/resvg-js": "^2.6.2"
56
+ "@resvg/resvg-js": "2.6.2",
57
+ "@shikijs/rehype": "3.22.0",
58
+ "feed": "5.2.0",
59
+ "gray-matter": "4.0.3",
60
+ "hast-util-sanitize": "5.0.2",
61
+ "p-limit": "6.2.0",
62
+ "preact": "10.29.2",
63
+ "preact-render-to-string": "6.6.0",
64
+ "reading-time": "1.5.0",
65
+ "rehype-raw": "7.0.0",
66
+ "rehype-sanitize": "6.0.0",
67
+ "rehype-stringify": "10.0.1",
68
+ "remark-directive": "4.0.0",
69
+ "remark-frontmatter": "5.0.0",
70
+ "remark-gfm": "4.0.1",
71
+ "remark-parse": "11.0.0",
72
+ "remark-rehype": "11.1.2",
73
+ "satori": "0.19.1",
74
+ "shiki": "3.22.0",
75
+ "unified": "11.0.5",
76
+ "unist-util-visit": "5.1.0"
88
77
  },
89
78
  "devDependencies": {
90
- "@biomejs/biome": "2.4.2",
91
- "@types/bun": "1.3.9",
79
+ "@biomejs/biome": "2.4.16",
80
+ "@types/bun": "1.3.14",
92
81
  "@vitest/coverage-istanbul": "4.0.18",
93
- "eslint": "9",
82
+ "eslint": "9.39.3",
94
83
  "eslint-config-biome": "2.1.3",
95
84
  "eslint-plugin-jsdoc": "62.6.0",
96
85
  "eslint-plugin-sonarjs": "4.0.0",
97
86
  "eslint-plugin-unicorn": "63.0.0",
98
- "globals": "17.3.0",
99
- "happy-dom": "^20.0.0",
87
+ "globals": "17.4.0",
88
+ "happy-dom": "20.9.0",
100
89
  "jiti": "2.6.1",
101
90
  "lefthook": "2.1.1",
102
- "publint": "0.3.17",
103
- "tsdown": "0.20.3",
104
- "typescript": "5.9.3",
105
- "typescript-eslint": "8.56.0",
91
+ "publint": "0.3.21",
92
+ "tsdown": "0.22.1",
93
+ "typescript": "6.0.3",
94
+ "typescript-eslint": "8.58.0",
106
95
  "vitest": "4.0.18"
96
+ },
97
+ "scripts": {
98
+ "build": "tsdown",
99
+ "validate": "publint",
100
+ "lint": "biome check . && eslint .",
101
+ "lint:fix": "biome check --write . && eslint --fix .",
102
+ "format": "biome format --write .",
103
+ "test": "vitest run",
104
+ "test:unit": "vitest run --project unit",
105
+ "test:integration": "vitest run --project integration",
106
+ "test:coverage": "vitest run --project unit --project integration --coverage"
107
107
  }
108
108
  }