@youtyan/code-viewer 0.9.1 → 0.10.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/README.md +13 -3
- package/dist/code-viewer.js +1200 -718
- package/package.json +5 -4
- package/web/app.js +1302 -113
- package/web/index.html +8 -2
- package/web/style.css +328 -0
- package/web/vendor/THIRD_PARTY_NOTICES.txt +24 -0
- package/web/yaml.js +6134 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@youtyan/code-viewer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Local browser-based code and git diff viewer",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
],
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "bun run build:web && bun run build:server",
|
|
31
|
-
"build:web": "bun build --target=browser --format=iife --outfile=web/app.js web-src/app.ts && bun build --target=browser --format=esm --outfile=web/mermaid.js web-src/mermaid-entry.ts && bun build --target=browser --format=esm --outfile=web/shiki.js web-src/shiki-entry.ts && bun build --target=browser --format=iife --outfile=web/vendor/highlight.js/highlight.min.js web-src/highlight-entry.ts && node scripts/generate-third-party-notices.mjs",
|
|
31
|
+
"build:web": "bun build --target=browser --format=iife --outfile=web/app.js web-src/app.ts && bun build --target=browser --format=esm --outfile=web/mermaid.js web-src/mermaid-entry.ts && bun build --target=browser --format=esm --outfile=web/shiki.js web-src/shiki-entry.ts && bun build --target=browser --format=esm --outfile=web/yaml.js web-src/yaml-entry.ts && bun build --target=browser --format=iife --outfile=web/vendor/highlight.js/highlight.min.js web-src/highlight-entry.ts && node scripts/generate-third-party-notices.mjs",
|
|
32
32
|
"build:server": "bun build --target=node --format=esm --outfile=dist/code-viewer.js --external pg --external mysql2/promise --external @redis/client web-src/server/cli.ts",
|
|
33
33
|
"check": "bun run typecheck",
|
|
34
34
|
"typecheck": "tsc --noEmit",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"test:postgres:down": "docker compose -f data/test/postgresql/docker-compose.yml down -v",
|
|
50
50
|
"test": "bun test",
|
|
51
51
|
"lint": "biome lint web-src package.json biome.jsonc",
|
|
52
|
-
"verify": "bun run check && bun run lint && bun run check:format && bun run build && bun run check:bundle && bun run test && node --check web/app.js && node --check web/mermaid.js && node --check web/shiki.js && node --check web/vendor/highlight.js/highlight.min.js && node --check dist/code-viewer.js && node dist/code-viewer.js --help && node scripts/node-smoke.mjs",
|
|
52
|
+
"verify": "bun run check && bun run lint && bun run check:format && bun run build && bun run check:bundle && bun run test && node --check web/app.js && node --check web/mermaid.js && node --check web/shiki.js && node --check web/yaml.js && node --check web/vendor/highlight.js/highlight.min.js && node --check dist/code-viewer.js && node dist/code-viewer.js --help && node scripts/node-smoke.mjs",
|
|
53
53
|
"pack:dry": "npm pack --dry-run",
|
|
54
54
|
"prepack": "bun run build",
|
|
55
55
|
"prepublishOnly": "bun run verify"
|
|
@@ -75,7 +75,8 @@
|
|
|
75
75
|
"markdown-it-footnote": "4.0.0",
|
|
76
76
|
"mermaid": "11.14.0",
|
|
77
77
|
"shiki": "4.0.2",
|
|
78
|
-
"typescript": "5.9.3"
|
|
78
|
+
"typescript": "5.9.3",
|
|
79
|
+
"yaml": "2.9.0"
|
|
79
80
|
},
|
|
80
81
|
"optionalDependencies": {
|
|
81
82
|
"better-sqlite3": "12.9.0"
|