1 | {
|
2 | "name": "choerodon-ui",
|
3 | "version": "1.4.5",
|
4 | "title": "Choerodon UI",
|
5 | "description": "An enterprise-class UI design language and React-based implementation",
|
6 | "homepage": "https://open-hand.github.io/choerodon-ui/",
|
7 | "keywords": [
|
8 | "choerodon",
|
9 | "design",
|
10 | "react",
|
11 | "react-component",
|
12 | "component",
|
13 | "components",
|
14 | "ui",
|
15 | "framework",
|
16 | "frontend"
|
17 | ],
|
18 | "contributors": [
|
19 | "choerodon"
|
20 | ],
|
21 | "repository": {
|
22 | "type": "git",
|
23 | "url": "https://github.com/open-hand/choerodon-ui"
|
24 | },
|
25 | "bugs": {
|
26 | "url": "https://github.com/open-hand/choerodon-ui/issues"
|
27 | },
|
28 | "main": "lib/index.js",
|
29 | "module": "es/index.js",
|
30 | "unpkg": "dist/choerodon-ui.min.js",
|
31 | "main-pro": "pro/lib/index.js",
|
32 | "module-pro": "pro/es/index.js",
|
33 | "unpkg-pro": "dist/choerodon-ui-pro.min.js",
|
34 | "files": [
|
35 | "dist",
|
36 | "lib",
|
37 | "es",
|
38 | "pro"
|
39 | ],
|
40 | "typings": "lib/index.d.ts",
|
41 | "license": "MIT",
|
42 | "peerDependencies": {
|
43 | "axios": ">=0.18.0",
|
44 | "lodash": ">=4.17.0",
|
45 | "mobx": ">4.5.0 <4.8.0 >=4.15.7",
|
46 | "mobx-react": ">=5.1.0 <6.2.0",
|
47 | "react": ">=16.8.6",
|
48 | "react-dom": ">=16.8.6"
|
49 | },
|
50 | "dependencies": {
|
51 | "@babel/runtime": "7.x",
|
52 | "@better-scroll/core": "^2.4.1",
|
53 | "@ctrl/tinycolor": "^3.2.0",
|
54 | "add-dom-event-listener": "1.x",
|
55 | "array-tree-filter": "^2.0.0",
|
56 | "async-validator": "1.x",
|
57 | "choerodon-ui-font": "0.2.x",
|
58 | "classnames": "~2.3.1",
|
59 | "codemirror": "5.58.2",
|
60 | "component-classes": "1.x",
|
61 | "core-js": "^2.5.1",
|
62 | "create-react-class": "^15.6.0",
|
63 | "css-animation": "^1.5.0",
|
64 | "css-unit-converter": "^1.1.1",
|
65 | "dom-closest": "^0.2.0",
|
66 | "dom-lib": "^1.3.1",
|
67 | "dom-scroll-into-view": "1.x",
|
68 | "draft-js": "^0.10.5",
|
69 | "element-resize-event": "^3.0.2",
|
70 | "enquire.js": "^2.1.6",
|
71 | "htmlhint": "0.10.x",
|
72 | "insert-css": "^2.0.0",
|
73 | "is-negative-zero": "^2.0.0",
|
74 | "is-promise": "^2.2.2",
|
75 | "js-yaml": "^3.12.2",
|
76 | "jshint": "^2.10.1",
|
77 | "jsonlint": "^1.6.3",
|
78 | "jsonlint-mod": "^1.7.5",
|
79 | "mini-store": "^2.0.0",
|
80 | "moment": "^2.24.0",
|
81 | "mutationobserver-shim": "^0.3.3",
|
82 | "prettier": "~1.18.2",
|
83 | "prop-types": "^15.7.2",
|
84 | "querystringify": "^2.1.0",
|
85 | "quill-delta-to-html": "^0.9.7",
|
86 | "raf": "^3.4.1",
|
87 | "rc-editor-core": "~0.8.3",
|
88 | "rc-motion": "^2.4.1",
|
89 | "rc-virtual-list": "^3.2.6",
|
90 | "react-beautiful-dnd": "13.0.0",
|
91 | "react-codemirror2": "5.1.0",
|
92 | "react-easy-crop": "^3.1.0",
|
93 | "react-image-lightbox": "^4.6.0",
|
94 | "react-intersection-observer": "^8.31.0",
|
95 | "react-is": "^16.12.0",
|
96 | "react-lazy-load": "^3.0.13",
|
97 | "react-quill": "^1.3.5",
|
98 | "react-redux": "7.2.0",
|
99 | "react-slick": "~0.25.2",
|
100 | "resize-observer-polyfill": "^1.5.1",
|
101 | "rmc-feedback": "^1.0.0",
|
102 | "scroll-into-view-if-needed": "^2.2.25",
|
103 | "smooth-scroll-into-view-if-needed": "^1.1.28",
|
104 | "string-template": "^1.0.0",
|
105 | "tslib": "^1.9.3",
|
106 | "warning": "~4.0.3",
|
107 | "xlsx": "^0.17.0"
|
108 | },
|
109 | "devDependencies": {
|
110 | "@babel/core": "^7.6.2",
|
111 | "@babel/plugin-proposal-class-properties": "^7.5.5",
|
112 | "@babel/plugin-proposal-decorators": "^7.6.0",
|
113 | "@babel/plugin-proposal-export-default-from": "^7.5.2",
|
114 | "@babel/plugin-proposal-export-namespace-from": "^7.5.2",
|
115 | "@babel/plugin-proposal-object-rest-spread": "^7.6.2",
|
116 | "@babel/plugin-transform-member-expression-literals": "^7.2.0",
|
117 | "@babel/plugin-transform-object-assign": "^7.2.0",
|
118 | "@babel/plugin-transform-property-literals": "^7.2.0",
|
119 | "@babel/plugin-transform-proto-to-assign": "^7.5.5",
|
120 | "@babel/plugin-transform-runtime": "^7.6.0",
|
121 | "@babel/plugin-transform-spread": "^7.6.2",
|
122 | "@babel/plugin-transform-template-literals": "^7.4.4",
|
123 | "@babel/preset-env": "^7.6.2",
|
124 | "@babel/preset-react": "^7.0.0",
|
125 | "@stackblitz/sdk": "^1.3.0",
|
126 | "@types/classnames": "~2.2.8",
|
127 | "@types/codemirror": "0.0.72",
|
128 | "@types/element-resize-event": "^3.0.0",
|
129 | "@types/is-promise": "^2.2.0",
|
130 | "@types/insert-css": "^2.0.1",
|
131 | "@types/lodash": "^4.14.136",
|
132 | "@types/prettier": "1.16.1",
|
133 | "@types/prop-types": "^15.7.1",
|
134 | "@types/raf": "^3.4.0",
|
135 | "@types/react": "^16.9.0",
|
136 | "@types/react-beautiful-dnd": "^13.0.0",
|
137 | "@types/react-dom": "^16.8.6",
|
138 | "@types/react-is": "^16.7.1",
|
139 | "@types/react-slick": "~0.23.3",
|
140 | "@types/string-template": "~1.0.2",
|
141 | "@types/warning": "~3.0.0",
|
142 | "@typescript-eslint/eslint-plugin": "^2.0.0",
|
143 | "@typescript-eslint/parser": "^2.10.0",
|
144 | "ansi-styles": "^4.0.0",
|
145 | "autoprefixer": "^9.6.0",
|
146 | "axios": "^0.19.0",
|
147 | "babel-core": "^7.0.0-0",
|
148 | "babel-eslint": "10.0.3",
|
149 | "babel-jest": "^25.1.0",
|
150 | "babel-loader": "^8.0.6",
|
151 | "babel-plugin-import": "^1.12.0",
|
152 | "babel-plugin-inline-import-data-uri": "^1.0.1",
|
153 | "bisheng": "^1.3.0",
|
154 | "bisheng-plugin-choerodon-ui": "~0.2.0",
|
155 | "bisheng-plugin-description": "^0.1.4",
|
156 | "bisheng-plugin-react": "^1.1.0",
|
157 | "bisheng-plugin-toc": "^0.4.4",
|
158 | "case-sensitive-paths-webpack-plugin": "^2.1.1",
|
159 | "chalk": "^2.4.2",
|
160 | "colorful": "^2.1.0",
|
161 | "commander": "^2.11.0",
|
162 | "cross-env": "^5.2.1",
|
163 | "css-loader": "^3.2.0",
|
164 | "css-split-webpack-plugin": "^0.2.6",
|
165 | "dekko": "^0.2.1",
|
166 | "enquire-js": "^0.2.1",
|
167 | "enzyme": "^3.10.0",
|
168 | "enzyme-adapter-react-16": "^1.14.0",
|
169 | "enzyme-to-json": "^3.3.5",
|
170 | "eslint": "^6.3.0",
|
171 | "eslint-config-airbnb": "^18.0.1",
|
172 | "eslint-config-prettier": "^6.2.0",
|
173 | "eslint-plugin-babel": "^5.3.0",
|
174 | "eslint-plugin-import": "^2.18.2",
|
175 | "eslint-plugin-jest": "^22.17.0",
|
176 | "eslint-plugin-jsx-a11y": "^6.2.3",
|
177 | "eslint-plugin-markdown": "^1.0.0",
|
178 | "eslint-plugin-react": "^7.14.3",
|
179 | "eslint-tinker": "^0.5.0",
|
180 | "extract-text-webpack-plugin": "^3.0.0",
|
181 | "faker": "^4.1.0",
|
182 | "fetch-jsonp": "^1.1.3",
|
183 | "file-loader": "^4.2.0",
|
184 | "friendly-errors-webpack-plugin": "^1.7.0",
|
185 | "gh-pages": "^2.1.1",
|
186 | "glob": "^7.1.4",
|
187 | "gulp": "^4.0.2",
|
188 | "gulp-babel": "^8.0.0",
|
189 | "gulp-sourcemaps": "^2.6.5",
|
190 | "gulp-strip-code": "^0.1.4",
|
191 | "gulp-typescript": "^5.0.1",
|
192 | "husky": "^3.0.2",
|
193 | "identity-obj-proxy": "^3.0.0",
|
194 | "immutability-helper": "^3.0.0",
|
195 | "intersection-observer": "^0.7.0",
|
196 | "jest": "^25.1.0",
|
197 | "jsdom": "^16.2.1",
|
198 | "jsonml.js": "^0.1.0",
|
199 | "less": "^3.10.3",
|
200 | "less-plugin-npm-import": "^2.1.0",
|
201 | "lint-staged": "^7.0.0",
|
202 | "lodash": "^4.17.15",
|
203 | "lz-string": "^1.4.4",
|
204 | "majo": "^0.8.0",
|
205 | "mark-twain": "^2.0.2",
|
206 | "merge2": "^1.2.4",
|
207 | "mini-css-extract-plugin": "^0.8.0",
|
208 | "minimist": "^1.2.5",
|
209 | "mkdirp": "^1.0.3",
|
210 | "mobx": "~4.15.7",
|
211 | "mobx-react": "~6.1.1",
|
212 | "mockdate": "^2.0.1",
|
213 | "mockjs": "^1.0.1-beta3",
|
214 | "moment-timezone": "^0.5.23",
|
215 | "object-assign": "~4.1.1",
|
216 | "optimize-css-assets-webpack-plugin": "^5.0.3",
|
217 | "postcss": "^8.2.10",
|
218 | "postcss-loader": "^3.0.0",
|
219 | "pretty-quick": "^1.11.0",
|
220 | "rc-drawer": "^1.5.3",
|
221 | "rc-queue-anim": "^1.6.7",
|
222 | "rc-scroll-anim": "^2.2.1",
|
223 | "rc-tween-one": "^1.7.2",
|
224 | "react": "~16.12.0",
|
225 | "react-color": "^2.11.7",
|
226 | "react-copy-to-clipboard": "^5.0.0",
|
227 | "react-dnd": "^11.1.1",
|
228 | "react-dnd-html5-backend": "^11.1.1",
|
229 | "react-document-title": "^2.0.1",
|
230 | "react-dom": ">=16.8.6",
|
231 | "react-github-button": "^0.1.1",
|
232 | "react-infinite-scroller": "^1.0.15",
|
233 | "react-intl": "^2.7.2",
|
234 | "react-sublime-video": "^0.2.0",
|
235 | "react-virtualized": "~9.18.5",
|
236 | "remark-frontmatter": "^1.3.2",
|
237 | "remark-parse": "^7.0.1",
|
238 | "remark-stringify": "^7.0.3",
|
239 | "remark-yaml-config": "^4.1.0",
|
240 | "reqwest": "^2.0.5",
|
241 | "rimraf": "^3.0.0",
|
242 | "rucksack-css": "^1.0.2",
|
243 | "scrollama": "^2.1.0",
|
244 | "stylelint": "^10.0.1",
|
245 | "stylelint-config-prettier": "^5.2.0",
|
246 | "stylelint-config-rational-order": "^0.1.2",
|
247 | "stylelint-config-standard": "^18.3.0",
|
248 | "stylelint-declaration-block-no-ignored-properties": "^2.1.0",
|
249 | "stylelint-order": "^3.0.0",
|
250 | "terser-webpack-plugin": "^4.1.0",
|
251 | "through2": "^3.0.1",
|
252 | "ts-jest": "^24.3.0",
|
253 | "ts-loader": "^6.0.4",
|
254 | "typescript": "~3.7.2",
|
255 | "unified": "^8.3.2",
|
256 | "url-loader": "^2.1.0",
|
257 | "values.js": "^1.0.3",
|
258 | "vfile-message": "1.0.x",
|
259 | "webpack": "^4.39.3",
|
260 | "webpack-filter-warnings-plugin": "^1.2.1",
|
261 | "webpack-merge": "^4.2.2",
|
262 | "webpackbar": "^4.0.0",
|
263 | "xhr-mock": "^2.5.1",
|
264 | "xhr2": "^0.2.0"
|
265 | },
|
266 | "scripts": {
|
267 | "test": "jest --config .jest.js --no-cache --debug --coverage",
|
268 | "test-node": "jest --config .jest.node.js",
|
269 | "test-all": "sh ./scripts/test-all.sh",
|
270 | "test-all-skip": "sh ./scripts/test-all.sh --skip",
|
271 | "lint": "npm run lint:script && npm run lint:demo && npm run lint:style",
|
272 | "lint:tsc": "npm run tsc",
|
273 | "lint:script": "eslint '**/*.{js,jsx,ts,tsx}' --ext '.js,.jsx,.ts,.tsx'",
|
274 | "lint:md": "remark components/",
|
275 | "lint:demo": "cross-env RUN_ENV=DEMO eslint components/*/demo/*.md --ext '.md'",
|
276 | "lint:style": "stylelint {site,components,components-pro}/**/*.less --syntax less",
|
277 | "lint-fix": "npm run lint-fix:script && npm run lint-fix:demo && npm run lint-fix:style",
|
278 | "lint-fix:script": "npm run lint:script -- --fix",
|
279 | "lint-fix:demo": "npm run lint:demo -- --fix",
|
280 | "lint-fix:style": "npm run lint:style -- --fix",
|
281 | "sort-api": "node ./scripts/sort-api-table.js",
|
282 | "dist": "gulp dist",
|
283 | "compile": "gulp compile",
|
284 | "tsc": "tsc",
|
285 | "start": "rimraf _site && node ./scripts/generateColorLess.js && cross-env NODE_ENV=development BROWSER=chrome bisheng start -c ./site/bisheng.config.js",
|
286 | "site": "rimraf _site && cross-env NODE_ENV=production bisheng build --ssr -c ./site/bisheng.config.js",
|
287 | "site-with-test": "rimraf _site && cross-env NODE_ENV=production bisheng build --ssr -c ./site/bisheng.config.js && jest choerodon-ui --notify --config=.jest.js --no-cache --coverage",
|
288 | "site-dev": "rimraf _site && cross-env NODE_ENV=development bisheng build --ssr -c ./site/bisheng.config.js && node ./scripts/generateColorLess.js",
|
289 | "predeploy": "npm run site",
|
290 | "deploy": "bisheng gh-pages --push-only",
|
291 | "pub": "npm run test-all-skip && npm publish --with-tools",
|
292 | "prepublish": "gulp guard",
|
293 | "authors": "git log --format='%aN <%aE>' | sort -u | grep -v 'hand-china.com' > AUTHORS",
|
294 | "prettier": "prettier -c --write '**/*'",
|
295 | "pretty-quick": "pretty-quick"
|
296 | },
|
297 | "husky": {
|
298 | "hooks": {
|
299 | "pre-commit": "lint-staged"
|
300 | }
|
301 | },
|
302 | "lint-staged": {
|
303 | "**/*.{js,jsx,ts,tsx}": [
|
304 | "npm run lint:script"
|
305 | ],
|
306 | "{site,components,components-pro}/**/*.less": [
|
307 | "npm run lint:style"
|
308 | ],
|
309 | "components/*/demo/*.md": [
|
310 | "npm run lint:demo",
|
311 | "git add"
|
312 | ]
|
313 | },
|
314 | "sideEffects": [
|
315 | "dist/*",
|
316 | "es/**/style/*",
|
317 | "lib/**/style/*",
|
318 | "pro/es/**/style/*",
|
319 | "pro/lib/**/style/*",
|
320 | "*.less"
|
321 | ],
|
322 | "browserslist": [
|
323 | "last 2 version",
|
324 | "Firefox ESR",
|
325 | "> 1%",
|
326 | "ie >= 9"
|
327 | ]
|
328 | }
|