Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
44 lines (44 loc) · 1.51 KB
/
Copy pathpackage.json
File metadata and controls
44 lines (44 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
"name": "markdown-viewer",
"version": "1.0.0",
"description": "A beautiful markdown viewer CLI with Electron",
"type": "module",
"main": "dist/electron/main.js",
"bin": {
"markdown-viewer": "./dist/cli/index.js",
"mdview": "./dist/cli/index.js"
},
"scripts": {
"build": "bun run build:main && bun run build:preload && bun run build:renderer && bun run build:tailwind && bun run copy:html && bun run copy:assets",
"build:main": "tsc",
"build:preload": "bun build ./src/electron/preload.ts --outfile ./dist/electron/preload.cjs --target node --format cjs --external electron",
"build:renderer": "bun build ./src/renderer/scripts/app.ts --outdir ./dist/renderer/scripts --target browser",
"build:tailwind": "tailwindcss -i ./src/renderer/styles.css -o ./dist/renderer/styles.css",
"copy:html": "cp ./src/renderer/index.html ./dist/renderer/index.html",
"copy:assets": "cp -r ./assets ./dist/assets",
"dev": "bun run build && electron ./dist/electron/main.js",
"start": "electron ./dist/electron/main.js",
"test": "bun test",
"clean": "rm -rf dist"
},
"dependencies": {
"electron": "^33.0.0",
"highlight.js": "^11.10.0",
"marked": "^15.0.0",
"marked-highlight": "^2.2.0",
"mermaid": "^11.12.2"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.15",
"@types/bun": "latest",
"tailwindcss": "^3.4.15",
"typescript": "^5.7.0"
},
"keywords": [
"markdown",
"viewer",
"cli",
"electron"
],
"license": "MIT"
}