-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
120 lines (120 loc) · 3.47 KB
/
Copy pathpackage.json
File metadata and controls
120 lines (120 loc) · 3.47 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"name": "@kne/react-file",
"version": "0.1.37",
"description": "React文件操作组件库,提供文件上传、多格式预览、下载、列表管理及文件系统浏览,支持i18n",
"syntax": {
"esmodules": true
},
"main": "dist/index.js",
"module": "dist/index.modern.js",
"source": "src/index.js",
"scripts": {
"init": "husky && npm run init-example",
"start": "run-p start:lib start:md start:example",
"build": "run-s build:lib build:md build:example",
"init-example": "modules-dev-libs-init",
"build:md": "npx @kne/md-doc",
"start:md": "npx @kne/md-doc --watch",
"build:locale": "microbundle src/locale/*.js -o dist/locale --no-compress --format modern,cjs ",
"build:lib-main": "microbundle --no-compress --format modern,cjs --jsxImportSource react --jsx React.createElement --jsxFragment React.Fragment",
"build:lib": "run-s build:locale build:lib-main",
"start:lib": "microbundle watch --no-compress --format modern,cjs --jsxImportSource react --jsx React.createElement --jsxFragment React.Fragment",
"build:example": "cd example && npm run build",
"start:example": "cd example && npm run start",
"test:build": "run-s build",
"test:lint": "cross-env NODE_ENV=development eslint src",
"test:unit": "cross-env NODE_ENV=test jest",
"test:watch": "jest --watch",
"prettier": "prettier --config .prettierrc --write '{src/**/*,index,prompts}.{js,jsx,ts,tsx,json,css,scss}'",
"lint-staged": "lint-staged"
},
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [
"prettier --config .prettierrc --write"
]
},
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "git+https://github.com/kne-union/react-file.git"
},
"keywords": [
"react",
"file",
"upload",
"preview",
"download",
"file-system",
"image",
"avatar",
"antd",
"i18n",
"office",
"pdf",
"zip"
],
"author": "linzp",
"license": "ISC",
"bugs": {
"url": "https://github.com/kne-union/react-file/issues"
},
"homepage": "https://github.com/kne-union/react-file",
"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"
]
},
"peerDependencies": {
"antd": "*",
"react": "*",
"react-dom": "*"
},
"devDependencies": {
"@kne/microbundle": "^0.15.5",
"@kne/modules-dev": "^2.0.33",
"cross-env": "^7.0.3",
"husky": "^9.0.11",
"npm-run-all": "^4.1.5",
"prettier": "^3.2.5",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"dependencies": {
"@ant-design/icons": "^5.5.1",
"@extend-ai/react-docx": "^0.7.1",
"@extend-ai/react-xlsx": "^0.10.2",
"@kne/button-group": "^0.1.3",
"@kne/create-deferred": "^0.1.0",
"@kne/global-context": "^1.3.2",
"@kne/iframe-resizer": "^0.1.3",
"@kne/json-view": "^0.1.1",
"@kne/markdown-components-render": "^0.1.10",
"@kne/react-fetch": "^1.5.5",
"@kne/react-file-type": "^1.0.9",
"@kne/react-intl": "^0.1.12",
"@kne/use-control-value": "^0.1.8",
"@kne/use-ref-callback": "^0.1.2",
"@kne/use-resize": "^0.1.1",
"classnames": "^2.5.1",
"dayjs": "^1.11.13",
"jszip": "^3.10.1",
"lodash": "^4.17.23",
"react-pdf": "^10.2.0",
"react-to-print": "^3.0.5"
}
}