-
Notifications
You must be signed in to change notification settings - Fork 266
/
package.json
222 lines (222 loc) · 9.24 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
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
{
"name": "@nutui/nutui-react-taro",
"version": "2.7.4",
"style": "dist/style.css",
"main": "dist/nutui.react.umd.js",
"module": "dist/esm/nutui-react.es.js",
"typings": "dist/types/index.d.ts",
"sideEffects": [
"*.scss",
"dist/esm/**/style/*",
"dist/style.css",
"dist/styles/font/*",
"dist/styles/font-jmapp/*"
],
"description": "京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序",
"keywords": [
"nutui",
"nutui2",
"nutui3",
"react",
"nutui-react",
"webpack",
"react component",
"vite",
"jdc",
"jdcfe",
"taro"
],
"author": "jdcfe",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/jdf2e/nutui-react.git"
},
"files": [
"dist",
"README.md",
"package.json",
"LICENSE",
"CHANGELOG.md"
],
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"scripts": {
"add": "node scripts/create-component-mode.js && npm run prepare",
"generate:file": "node scripts/generate-nutui.js",
"generate:themes": "node scripts/generate-themes.js",
"generate:themes-dev": "node scripts/generate-themes-dev.js",
"checked": "npm run generate:file && tsc --project ./tsconfig.h5.json --noEmit",
"changelog": "node ./scripts/generate-changelog.js",
"dev": "vite --open --force",
"dev:rtl": "VITE_RTL=rtl vite --open --force",
"dev:jmapp": "VITE_APP_PROJECT_ID=jmapp vite --open --force",
"dev:theme": "npm run generate:themes-dev && npm run checked && vite --force --config vite.config.theme.ts",
"replace:scss": "node scripts/replace-scss-alias.js",
"build:loader-style": "node scripts/generate-loader-style.js",
"build:component:css": "node scripts/build-component-css.js",
"build:css": "npm run generate:themes && vite build --config vite.config.build.css.ts && npm run build:replace ",
"build:replace": "npm run replace:scss",
"build:es": "vite build --config vite.config.build.disperse.ts",
"build:locales": "vite build --config vite.config.build.locales.ts",
"build": "npm run checked && node scripts/create-theme-typings.js && vite build --config vite.config.build.ts && npm run build:es && npm run build:css && npm run build:loader-style && npm run build:component:css && npm run build:locales && node scripts/add-comments-to-dts.js",
"build:site": "npm run checked && vite build --config vite.config.build.site.ts",
"build:site:jmapp": "npm run checked && VITE_APP_PROJECT_ID=jmapp vite build --config vite.config.build.site.ts",
"build:taro:site": "npm run checked:taro && npm run generate:file:taro:pages && pnpm --dir ./packages/nutui-taro-demo build:h5",
"build:taro:site:jmapp": "npm run checked:taro && VITE_APP_PROJECT_ID=jmapp npm run generate:file:taro:pages && VITE_APP_PROJECT_ID=jmapp pnpm --dir ./packages/nutui-taro-demo build:h5",
"build:theme:site": "npm run checked && vite build --config vite.config.theme.ts && npm run generate:themes-dev",
"lint": "eslint ./src/packages",
"lint:fix": "eslint --fix ./src/packages",
"publish:beta": "npm publish --tag beta",
"prepare": "husky && npm run generate:file && npm run generate:file:taro && npm run generate:file:taro:pages",
"test": "vitest --coverage",
"test:ui": "vitest --ui --coverage",
"generate:file:taro": "node scripts/taro/generate-nutui-taro.js",
"checked:taro": "npm run generate:file:taro && tsc --project ./tsconfig.taro.json --noEmit",
"generate:file:taro:pages": "node scripts/taro/generate-taro-pages.js",
"dev:taro:weapp": "pnpm --dir ./packages/nutui-taro-demo dev:weapp",
"dev:taro:jd": "pnpm --dir ./packages/nutui-taro-demo dev:jd",
"dev:taro:h5": "pnpm --dir ./packages/nutui-taro-demo dev:h5",
"dev:taro:h5:jmapp": "pnpm --dir ./packages/nutui-taro-demo dev:h5:jmapp",
"dev:taro:alipay": "pnpm --dir ./packages/nutui-taro-demo dev:alipay",
"dev:taro:weapp:jmapp": "cd ./src/sites/mobile-taro && npm run dev:weapp:jmapp",
"build:taro": "npm run checked:taro && node scripts/create-theme-typings.js && vite build --config vite.config.build.taro.ts && npm run build:taro:es && npm run build:css && npm run build:loader-style && npm run build:component:css && npm run build:locales && TARO=1 node scripts/add-comments-to-dts.js",
"build:taro:es": "vite build --config vite.config.build.disperse.taro.ts",
"build:taro:jmapp": "npm run checked:taro && VITE_APP_PROJECT_ID=jmapp node scripts/create-theme-typings.js && vite build --config vite.config.build.taro.ts && npm run build:taro:es && VITE_APP_PROJECT_ID=jmapp npm run build:css && VITE_APP_PROJECT_ID=jmapp npm run build:loader-style && VITE_APP_PROJECT_ID=jmapp npm run build:component:css && npm run build:locales && TARO=1 node scripts/add-comments-to-dts.js",
"add:taro:config": "node scripts/taro/generate-taro-route.js",
"prepublishOnly": "node scripts/prepublish.js",
"postpublish": "node scripts/postpublish.js"
},
"lint-staged": {
"*.{scss,md}": "prettier --write",
"*.{ts,tsx,js}": "eslint"
},
"dependencies": {
"@babel/runtime": "^7.23.9",
"@nutui/icons-react": "^1.0.5",
"@nutui/icons-react-taro": "^1.0.5",
"@nutui/jdesign-icons-react-taro": "1.0.6-beta.2",
"@nutui/touch-emulator": "^1.0.0",
"@react-spring/web": "~9.6.1",
"@use-gesture/react": "10.2.20",
"async-validator": "^4.2.5",
"classnames": "^2.5.1",
"lodash.isequal": "^4.5.0",
"lodash.kebabcase": "^4.1.1",
"react-transition-group": "^4.4.5"
},
"devDependencies": {
"@babel/core": "^7.23.9",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.23.9",
"@babel/preset-env": "^7.23.9",
"@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@commitlint/cli": "^19.0.3",
"@commitlint/config-conventional": "^19.0.3",
"@loadable/component": "^5.16.3",
"@mdx-js/mdx": "^3.0.1",
"@mdx-js/react": "^3.0.1",
"@mdx-js/rollup": "^3.0.1",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-node-resolve": "15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@tarojs/components": "3.6.22",
"@tarojs/plugin-platform-alipay": "3.6.22",
"@tarojs/plugin-platform-weapp": "3.6.22",
"@tarojs/react": "3.6.22",
"@tarojs/taro": "3.6.22",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^16.0.0",
"@types/fs-extra": "^11.0.4",
"@types/loadable__component": "^5.13.8",
"@types/lodash.isequal": "^4.5.8",
"@types/lodash.kebabcase": "^4.1.9",
"@types/node": "^20.11.19",
"@types/postcss-import": "^14.0.3",
"@types/react": "^18.2.57",
"@types/react-dom": "^18.2.19",
"@types/react-syntax-highlighter": "^15.5.11",
"@types/react-test-renderer": "^18.0.7",
"@types/react-transition-group": "^4.4.10",
"@types/testing-library__jest-dom": "^6.0.0",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"@vitejs/plugin-react": "^4.2.1",
"@vitest/coverage-v8": "^2.0.4",
"@vitest/ui": "^2.0.4",
"autoprefixer": "^10.4.17",
"axios": "^1.6.7",
"babel-plugin-react-scoped-css": "^1.1.1",
"eslint": "^8.56.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-markdown": "^5.0.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-unused-imports": "^4.0.0",
"fs-extra": "^11.2.0",
"glob": "^11.0.0",
"happy-dom": "^14.2.0",
"highlight.js": "^11.9.0",
"husky": "^9.0.11",
"inquirer": "^10.1.4",
"jscodeshift": "^17.0.0",
"lint-staged": "^15.2.2",
"lzutf8": "0.6.3",
"map-stream": "0.0.7",
"markdown-it": "^14.0.0",
"marked": "^14.1.1",
"mobx": "^6.12.0",
"mobx-react-lite": "^4.0.5",
"postcss": "^8.4.35",
"postcss-import": "^16.0.1",
"postcss-modules": "^6.0.0",
"postcss-rtlcss": "^5.1.0",
"postcss-scss": "^4.0.9",
"prettier": "^3.2.5",
"prettier-markdown-table": "^1.0.2",
"react": "^18.2.0",
"react-color": "^2.19.3",
"react-dom": "^18.2.0",
"react-markdown": "^9.0.1",
"react-refresh": "^0.14.0",
"react-router-dom": "^6.22.1",
"react-syntax-highlighter": "^15.5.0",
"react-test-renderer": "^18.2.0",
"reactcss": "^1.2.3",
"remark-directive": "^3.0.0",
"remark-gfm": "^4.0.0",
"rollup": "^4.12.0",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-dts": "^6.1.0",
"sass": "^1.71.1",
"shelljs": "^0.8.5",
"ts-node": "^10.9.2",
"turndown": "^7.1.2",
"turndown-plugin-gfm": "^1.0.2",
"typescript": "^5.3.3",
"unist-util-visit": "^5.0.0",
"vinyl-fs": "^4.0.0",
"vite": "^5.1.3",
"vite-plugin-dts": "4.2.1",
"vitest": "^2.0.4",
"vitest-canvas-mock": "^0.3.3"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"resolutions": {
"@types/react": "^18.2.57",
"@types/react-dom": "^18.2.19"
}
}