-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
77 lines (77 loc) · 2.62 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"name": "tdk",
"version": "0.0.16",
"repository": "https://github.com/Teal/TDK",
"description": "零配置的前端组件化解决方案,提供 API 文档生成、在线演示、自动化测试等功能",
"license": "SEE LICENSE IN LICENSE",
"author": "xuld <xuld@xuld.net>",
"engines": {
"node": ">=10.12"
},
"bin": {
"tdk": "dist/cli.js"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"dependencies": {
"fast-pinyin": "^0.0.1",
"h2server": "^0.3.0",
"js-yaml": "^4.1.0",
"markdown-it": "^13.0.1",
"markdown-it-multimd-table": "^4.1.3",
"prismjs": "^1.28.0",
"tutils": "^2.2.1",
"typescript": "^4.7.3",
"uslug": "^1.0.4",
"svgo": "^2.8.0"
},
"optionalDependencies": {
"less": "^4.1.1",
"memory-fs": "^0.5.0",
"sass": "^1.41.0",
"sax": "^1.2.4",
"svgpath": "^2.3.1",
"webpack": "^5.52.1"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.27.0",
"@typescript-eslint/parser": "^5.27.0",
"@types/markdown-it": "^12.2.3",
"@types/node": "^17.0.40",
"@types/prismjs": "^1.26.0",
"@types/svgo": "^2.6.3",
"@types/uslug": "^1.0.1",
"mocha": "^10.0.0",
"nodemon": "^2.0.16",
"nyc": "^15.1.0",
"ts-node": "^10.8.1"
},
"scripts": {
"start": "ts-node -T ./src/cli.ts start",
"prepublishOnly": "npm run build",
"build": "tsc -p tsconfig.json --declaration",
"watch": "nodemon -e ts,tsx,json -T ./src/cli.ts start",
"tdk": "ts-node -T ./src/cli.ts",
"test": "mocha -r ts-node/register/transpile-only --ui exports **/*.test.ts",
"coverage": "node -e \"process.argv[8] = require.resolve('mocha/bin/mocha'); if (process.argv[14]) { process.argv[13] = process.argv[14].replace(/^src([\\\\/].*)\\.ts/, 'test$' + '1.test.ts'); process.argv.splice(14, 1) } require('nyc/bin/nyc')\" nyc --reporter=text-summary --reporter=html --report-dir=coverage --temp-dir=coverage/.nyc_output --extension=.ts --include=src/** mocha -r ts-node/register/transpile-only --ui exports **/*.test.ts"
},
"tdk": {
"outDir": "_gh_pages",
"doc": {
"displayName": "TDK",
"introButtons": [
{
"label": "了解更多",
"href": "docs/introduction.html"
}
],
"features": []
},
"build": {
"doc": {
"baseURL": "/TDK/",
"injectFoot": "<script>var _hmt = _hmt || [];(function() { var hm = document.createElement(\"script\"); hm.src = \"https://hm.baidu.com/hm.js?e87106e91bf2099d61880bb0b4071413\"; var s = document.getElementsByTagName(\"script\")[0]; s.parentNode.insertBefore(hm, s); })(); </script>"
}
}
}
}