@moku-labs/web 0.1.0-alpha.3 → 0.2.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 (38) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +71 -23
  3. package/dist/chunk-DQk6qfdC.mjs +18 -0
  4. package/dist/index.cjs +5514 -36
  5. package/dist/index.d.cts +2078 -104
  6. package/dist/index.d.mts +2078 -104
  7. package/dist/index.mjs +5394 -28
  8. package/package.json +60 -60
  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/factory-BHhulW27.d.mts +0 -90
  14. package/dist/factory-D0m7Xil2.d.cts +0 -90
  15. package/dist/factory-DVcAQYEZ.cjs +0 -1710
  16. package/dist/factory-DwpBwjDk.mjs +0 -1602
  17. package/dist/index-CddOHo8I.d.mts +0 -413
  18. package/dist/plugins/head/build.cjs +0 -35
  19. package/dist/plugins/head/build.d.cts +0 -17
  20. package/dist/plugins/head/build.d.mts +0 -17
  21. package/dist/plugins/head/build.mjs +0 -27
  22. package/dist/plugins/spa/index.cjs +0 -26
  23. package/dist/plugins/spa/index.d.cts +0 -30
  24. package/dist/plugins/spa/index.d.mts +0 -30
  25. package/dist/plugins/spa/index.mjs +0 -24
  26. package/dist/primitives-BBo4wxUL.d.cts +0 -69
  27. package/dist/primitives-BYUp6kae.cjs +0 -100
  28. package/dist/primitives-Dlfi3JTx.d.mts +0 -69
  29. package/dist/primitives-gO5i1tD8.mjs +0 -58
  30. package/dist/project-1pAh4RxJ.cjs +0 -1270
  31. package/dist/project-BaG_ipVz.mjs +0 -1203
  32. package/dist/route-builder-CKvvehVO.d.cts +0 -413
  33. package/dist/test.cjs +0 -82
  34. package/dist/test.d.cts +0 -61
  35. package/dist/test.d.mts +0 -61
  36. package/dist/test.mjs +0 -79
  37. package/dist/wrangler-BHdkyMRj.cjs +0 -423
  38. package/dist/wrangler-Coyrznz4.mjs +0 -369
package/package.json CHANGED
@@ -1,19 +1,35 @@
1
1
  {
2
2
  "name": "@moku-labs/web",
3
- "version": "0.1.0-alpha.3",
4
- "author": "Alex Kucherenko",
3
+ "version": "0.2.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,79 +40,52 @@
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.8"
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
79
  "@biomejs/biome": "2.4.2",
91
- "@types/bun": "1.3.9",
80
+ "@types/bun": "1.3.10",
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
91
  "publint": "0.3.17",
@@ -104,5 +93,16 @@
104
93
  "typescript": "5.9.3",
105
94
  "typescript-eslint": "8.56.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
  }