-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
102 lines (102 loc) · 3.14 KB
/
package.json
File metadata and controls
102 lines (102 loc) · 3.14 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
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{
"name": "developer-document",
"version": "0.1.0",
"description": "用来部署一个开发者文档系统",
"scripts": {
"init": "npm run init-server && husky",
"init-server": "cd server && npm install",
"start": "run-p start-frontend start-server",
"start-server": "cd server && npm run dev",
"start-frontend": "cross-env PORT=3040 MODULES_DEV_PUBLIC_URL=/ COMPONENTS_NAME=developer-document craco start",
"build": "cross-env COMPONENTS_NAME=developer-document MODULES_DEV_PUBLIC_URL=/ craco build && npm run deploy && npm run deploy-prod",
"deploy": "cross-env OUTPUT_HTML_PATH=build/entry.html DEPLOY_URL=/ API_URL=/ RUNTIME_ENV='env:staging' npx @kne/npm-tools entryHtml",
"deploy-prod": "cross-env OUTPUT_HTML_PATH=build/entry-prod.html DEPLOY_URL=/ API_URL=/ RUNTIME_ENV='env:prod' npx @kne/npm-tools entryHtml",
"create": "modules-dev-create",
"create-biz": "modules-dev-create --template @kne-template/components-biz",
"test": "craco test --coverage",
"eject": "react-scripts eject",
"prettier": "prettier --config .prettierrc --write 'src/**/*.{js,jsx,ts,tsx,json,css,scss}'",
"lint-staged": "npx lint-staged"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"{src/**/*,server/**/*}.{js,jsx,ts,tsx,json,css,scss}": [
"prettier --config .prettierrc --write",
"git add"
]
},
"files": [
"build"
],
"repository": {
"type": "git",
"url": "git+https://github.com/kne-union/developer-document.git"
},
"keywords": [],
"author": "linzp",
"license": "ISC",
"bugs": {
"url": "https://github.com/kne-union/developer-document/issues"
},
"homepage": "https://www.kne-union.top/#/components",
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"jest": {
"moduleNameMapper": {
"^@common/(.*)": "<rootDir>/src/common/$1",
"^@components/(.*)": "<rootDir>/src/components/$1",
"^@utils/(.*)": "<rootDir>/src/common/utils/$1"
}
},
"devDependencies": {
"@craco/craco": "^7.1.0",
"@kne/modules-dev": "^2.1.20",
"@kne/react-fetch": "^1.4.3",
"@kne/remote-loader": "^1.4.4",
"@loadable/component": "^5.16.3",
"@testing-library/jest-dom": "^6.4.2",
"antd": "^5.14.2",
"axios": "^1.6.7",
"classnames": "^2.5.1",
"cross-env": "^7.0.3",
"http-proxy-middleware": "^2.0.6",
"husky": "^9.0.11",
"lodash": "^4.17.21",
"npm-run-all": "^4.1.5",
"prettier": "^3.2.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.22.2",
"sass": "^1.75.0"
},
"dependencies": {
"@ant-design/icons": "^6.0.0",
"@kne/antd-icon-select": "^1.0.0",
"@kne/app-children-router": "^0.1.7",
"@kne/axios-fetch": "^1.0.7",
"@kne/markdown-components-render": "^0.1.10",
"@kne/token-storage": "^1.0.0",
"@kne/use-ref-callback": "^0.1.2",
"dayjs": "^1.11.20"
}
}