-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathpackage.json
194 lines (194 loc) · 7.55 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
{
"name": "@nutui/nutui-biz",
"version": "1.0.0",
"style": "dist/style.css",
"main": "dist/nutui.biz.umd.js",
"module": "dist/esm/nutui-biz.es.js",
"typings": "dist/types/index.d.ts",
"sideEffects": [
"*.scss",
"dist/esm/**/style/*",
"dist/style.css",
"dist/styles/font/*"
],
"description": "京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序",
"keywords": [
"nutui",
"nutui2",
"nutui3",
"react",
"nutui-biz",
"webpack",
"react component",
"vite",
"jdc",
"jdcfe",
"taro"
],
"author": "jdcfe",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/jdf2e/nutui-biz.git"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"files": [
"dist",
"README.md",
"package.json",
"LICENSE",
"CHANGELOG.md"
],
"scripts": {
"add": "node scripts/createComponentMode.js",
"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",
"dev": "npm run checked && vite --open --force --port 3001",
"dev:theme": "npm run generate:themes-dev && npm run checked && vite --config vite.config.theme.ts --open --force",
"replace:scss": "node scripts/replace-scss-alias.js",
"build:dts": "node scripts/export-props.js && npx rollup -c rollup.config.dts.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": "npx rollup -c rollup.config.es.js",
"build:locales": "vite build --config vite.config.build.locales.ts",
"build": "npm run checked && vite build --config vite.config.build.ts && npm run build:es && npm run build:css && npm run build:loader-style && npm run build:dts && npm run build:locales",
"build:site": "npm run checked && vite build --config vite.config.build.site.ts",
"build:site:oss": "vite build --config vite.config.build.site.ts --base=/nutui/biz/",
"build:theme:site": "npm run checked && vite build --config vite.config.theme.ts && npm run generate:themes-dev",
"lint": "eslint ./src/packages/calendar",
"lint:fix": "eslint --fix ./src/packages/calendar",
"publish:beta": "npm publish --tag beta",
"prepare": "husky install",
"upload": "yarn build:site:oss && node ./jd/upload.js",
"test": "jest",
"test:demo": "jest --testNamePattern=^should match snapshot$ --runTestsByPath ./src/packages/card/__test__/card.spec.tsx",
"generate:file:taro": "node scripts/taro/generate-nutui-taro.js",
"checked:taro": "npm run generate:file:taro && tsc --project ./tsconfig.taro.json",
"generate:file:taro:pages": "node scripts/taro/generate-taro-pages.js",
"dev:taro:weapp": "npm run checked:taro && npm run generate:file:taro:pages && cd ./src/sites/mobile-taro && npm run dev:weapp",
"dev:taro:jd": "npm run checked:taro && npm run generate:file:taro:pages && cd ./src/sites/mobile-taro && npm run dev:jd",
"dev:taro:h5": "npm run checked:taro && npm run generate:file:taro:pages && cd ./src/sites/mobile-taro && npm run dev:h5",
"replace:taro:types": "node scripts/taro/replace-taro-types-alias.js",
"build:taro": "npm run checked:taro && vite build --config vite.config.build.taro.ts && npm run build:taro:es && npm run build:css && npm run build:loader-style && npm --taro run build:dts && npm run build:locales",
"build:taro:es": "npx rollup -c rollup.config.taro.es.js",
"build:taro:weapp": "npm run checked:taro && vite build --config vite.config.build.taro.ts && npm run generate:file:taro:pages && cd ./src/sites/mobile-taro && npm run build:weapp",
"add:taro:config": "node scripts/taro/generate-taro-route.js"
},
"engines": {
"node": "^14.18.0 || >=15.0.0"
},
"lint-staged": {
"*.md": "prettier --write",
"*.{ts,tsx,js,vue,scss}": "prettier --write"
},
"dependencies": {
"@babel/runtime": "^7.16.5",
"@bem-react/classname": "^1.5.10",
"@nutui/nutui-react": "^1.4.7",
"@nutui/nutui-react-taro": "^1.4.7",
"@react-spring/web": "^9.3.2",
"@use-gesture/react": "^10.2.9",
"classnames": "^2.3.1",
"mobx-react-lite": "^3.4.0",
"react-router-dom": "^5.2.0",
"rehype-raw": "^6.1.1",
"react-transition-group": "^4.4.2"
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.16.5",
"@babel/plugin-proposal-object-rest-spread": "^7.16.5",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.16.5",
"@babel/preset-env": "^7.16.5",
"@babel/preset-react": "^7.16.5",
"@babel/preset-typescript": "^7.16.5",
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@jd/upload-oss-tools": "^1.1.23",
"@loadable/component": "^5.15.0",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-node-resolve": "^13.1.1",
"@rollup/plugin-typescript": "^8.3.0",
"@tarojs/components": "^3.5.5",
"@tarojs/plugin-platform-weapp": "^3.5.7",
"@tarojs/taro": "^3.5.5",
"@tarojs/taro-loader": "^3.5.7",
"@testing-library/jest-dom": "^5.16.3",
"@testing-library/react": "^13.3.0",
"@types/jest": "^27.4.1",
"@types/loadable__component": "^5.13.3",
"@types/node": "^15.3.1",
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
"@types/react-router-dom": "^5.1.7",
"@types/react-syntax-highlighter": "^13.5.2",
"@types/react-test-renderer": "^18.0.0",
"@types/react-transition-group": "^4.4.4",
"@typescript-eslint/eslint-plugin": "^4.24.0",
"@typescript-eslint/parser": "^4.24.0",
"@vitejs/plugin-react": "^1.1.3",
"@vitejs/plugin-react-refresh": "^1.3.1",
"autoprefixer": "^10.4.0",
"axios": "^0.21.1",
"babel-plugin-react-scoped-css": "^1.1.1",
"eslint": "^7.26.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.23.2",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-markdown": "^2.2.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.23.2",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-unused-imports": "^1.1.5",
"fs-extra": "^10.0.0",
"glob": "^7.2.0",
"husky": "^6.0.0",
"inquirer": "^8.0.0",
"jest": "^27.5.1",
"jest-canvas-mock": "^2.4.0",
"lint-staged": "^11.0.0",
"lzutf8": "0.6.0",
"map-stream": "0.0.7",
"marked": "^2.0.3",
"mobx": "^6.6.2",
"postcss-import": "^14.0.2",
"postcss-modules": "^4.2.2",
"prettier": "2.3.0",
"react": "^18.2.0",
"react-color": "^2.19.3",
"react-dom": "^18.2.0",
"react-markdown": "^7.1.2",
"react-syntax-highlighter": "^15.4.5",
"react-test-renderer": "^18.2.0",
"reactcss": "^1.2.3",
"remark-directive": "^2.0.1",
"remark-gfm": "^3.0.1",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-dts": "^4.2.2",
"sass": "^1.45.0",
"shelljs": "^0.8.4",
"ts-jest": "^27.1.4",
"ts-node": "^10.7.0",
"typescript": "^4.8.2",
"unist-util-visit": "^4.1.0",
"vinyl-fs": "^3.0.3",
"vite": "^2.1.5",
"vite-plugin-dts": "^1.1.1"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"resolutions": {
"@types/react": "18",
"@types/react-dom": "18"
}
}