@moku-labs/web 0.1.0-alpha.4 → 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.
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.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
  }