|
10 | 10 | "ui" |
11 | 11 | ], |
12 | 12 | "homepage": "http://github.com/react-component/dialog", |
13 | | - |
| 13 | + "bugs": { |
| 14 | + "url": "http://github.com/react-component/dialog/issues" |
| 15 | + }, |
14 | 16 | "repository": { |
15 | 17 | "type": "git", |
16 | 18 | "url": "[email protected]:react-component/dialog.git" |
17 | 19 | }, |
18 | | - "bugs": { |
19 | | - "url": "http://github.com/react-component/dialog/issues" |
20 | | - }, |
21 | 20 | "license": "MIT", |
| 21 | + |
| 22 | + "main": "./lib/index", |
| 23 | + "module": "./es/index", |
22 | 24 | "files": [ |
23 | 25 | "lib", |
24 | 26 | "es", |
25 | 27 | "assets/*.css", |
26 | 28 | "dist" |
27 | 29 | ], |
28 | | - "main": "./lib/index", |
29 | | - "module": "./es/index", |
30 | 30 | "scripts": { |
31 | | - "start": "dumi dev", |
32 | | - "docs:build": "dumi build", |
33 | | - "docs:deploy": "gh-pages -d .doc", |
34 | 31 | "compile": "father build && lessc assets/index.less assets/index.css && lessc assets/bootstrap.less assets/bootstrap.css", |
| 32 | + "coverage": "rc-test --coverage", |
35 | 33 | "deploy": "npm run docs:build && npm run docs:deploy", |
36 | | - "prepublishOnly": "npm run compile && np --yolo --no-publish", |
| 34 | + "docs:build": "dumi build", |
| 35 | + "docs:deploy": "gh-pages -d .doc", |
37 | 36 | "lint": "eslint src/ --ext .ts,.tsx,.jsx,.js,.md", |
38 | 37 | "lint:tsc": "tsc -p tsconfig.json --noEmit", |
| 38 | + "now-build": "npm run docs:build", |
| 39 | + "prepare": "husky install", |
| 40 | + "prepublishOnly": "npm run compile && np --yolo --no-publish", |
39 | 41 | "prettier": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"", |
40 | | - "test": "father test", |
41 | | - "coverage": "father test --coverage", |
42 | | - "now-build": "npm run docs:build" |
| 42 | + "start": "dumi dev", |
| 43 | + "test": "rc-test" |
43 | 44 | }, |
44 | | - "peerDependencies": { |
45 | | - "react": ">=16.9.0", |
46 | | - "react-dom": ">=16.9.0" |
| 45 | + "lint-staged": { |
| 46 | + "**/*.{js,jsx,tsx,ts,md,json}": [ |
| 47 | + "prettier --write", |
| 48 | + "git add" |
| 49 | + ] |
47 | 50 | }, |
48 | 51 | "dependencies": { |
49 | 52 | "@babel/runtime": "^7.10.1", |
|
53 | 56 | "rc-util": "^5.21.0" |
54 | 57 | }, |
55 | 58 | "devDependencies": { |
| 59 | + "@rc-component/father-plugin": "^1.0.1", |
56 | 60 | "@testing-library/jest-dom": "^5.16.5", |
57 | 61 | "@testing-library/react": "^12.0.0", |
58 | 62 | "@types/enzyme": "^3.10.7", |
|
61 | 65 | "@types/react": "^18.0.24", |
62 | 66 | "@types/react-dom": "^18.0.8", |
63 | 67 | "@umijs/fabric": "^3.0.0", |
64 | | - "bluebird": "~3.7.2", |
65 | 68 | "bootstrap": "^4.3.1", |
66 | 69 | "cross-env": "^7.0.0", |
67 | 70 | "dumi": "^2.1.3", |
|
71 | 74 | "eslint": "^7.1.0", |
72 | 75 | "eslint-config-airbnb": "^19.0.4", |
73 | 76 | "eslint-plugin-react": "^7.20.6", |
74 | | - "father": "^2.29.6", |
75 | | - "father-build": "^1.18.6", |
| 77 | + "father": "^4.1.5", |
76 | 78 | "gh-pages": "^4.0.0", |
77 | 79 | "glob": "^7.1.6", |
78 | | - "jquery": "^3.3.1", |
| 80 | + "husky": "^8.0.3", |
79 | 81 | "less": "^3.12.2", |
| 82 | + "lint-staged": "^13.1.2", |
80 | 83 | "np": "^7.0.0", |
81 | 84 | "prettier": "^2.1.1", |
82 | 85 | "rc-drawer": "^4.4.0", |
83 | 86 | "rc-select": "^12.1.13", |
| 87 | + "rc-test": "^7.0.14", |
84 | 88 | "react": "^16.9.0", |
85 | 89 | "react-dom": "^16.9.0", |
86 | 90 | "react-draggable": "^4.4.3", |
87 | 91 | "typescript": "^4.0.2" |
| 92 | + }, |
| 93 | + "peerDependencies": { |
| 94 | + "react": ">=16.9.0", |
| 95 | + "react-dom": ">=16.9.0" |
88 | 96 | } |
89 | 97 | } |
0 commit comments