-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
50 lines (50 loc) · 1.54 KB
/
package.json
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
45
46
47
48
49
50
{
"name": "@xiaoyibao/knowledge-base",
"version": "0.4.0",
"license": "Apache-2.0",
"engines": {
"node": ">=18"
},
"browserslist": "> 0.5%, last 2 versions, not dead, IE 11",
"dependencies": {
"@opendocsg/pdf2md": "^0.1.31",
"@tech_query/node-toolkit": "^1.2.1",
"commander-jsx": "^0.6.9",
"core-js": "^3.37.1",
"dom-renderer": "^2.1.8",
"dotenv": "^16.4.5",
"edkit": "^1.2.1",
"happy-dom": "^14.12.3",
"koajax": "^1.1.2",
"office-text-extractor": "^3.0.3",
"tsx": "^4.16.2",
"web-utility": "^4.4.0",
"yaml": "^2.4.5",
"zx": "^8.1.4"
},
"devDependencies": {
"@parcel/config-default": "~2.12.0",
"@types/node": "^18.19.39",
"husky": "^9.0.11",
"lint-staged": "^15.2.7",
"parcel": "~2.12.0",
"parcel-transformer-mdx": "^0.3.3",
"prettier": "^3.3.2",
"yaml-convert": "^1.0.1"
},
"lint-staged": {
"*.{html,md,css,less,json,yml,js,ts,tsx}": "prettier --write"
},
"scripts": {
"prepare": "husky",
"install": "npm run init-env && npm run init-data",
"init-env": "cp -n .env.example .env",
"init-data": "find data/ -type f | grep -Ei .+\\.yml | sed -E 's/(.+)\\.yml/\\1/' | xargs -I {} npx yaml-convert -j {}.yml -o {}.json",
"test": "lint-staged",
"clean": "rm -rf .parcel-cache/ dist/",
"start": "npm run clean && parcel src/index.html",
"build": "npm run clean && parcel build src/index.html --public-url .",
"tool": "cd tool/ && tsx index.tsx",
"debug-tool": "cd tool/ && tsx --inspect-brk index.tsx"
}
}