package.json 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {
  2. "name": "rc-switch",
  3. "version": "4.1.0",
  4. "description": "switch ui component for react",
  5. "keywords": [
  6. "react",
  7. "react-component",
  8. "react-switch",
  9. "switch"
  10. ],
  11. "homepage": "http://github.com/react-component/switch",
  12. "bugs": {
  13. "url": "http://github.com/react-component/switch/issues"
  14. },
  15. "repository": {
  16. "type": "git",
  17. "url": "git@github.com:react-component/switch.git"
  18. },
  19. "license": "MIT",
  20. "main": "lib/index",
  21. "module": "./es/index",
  22. "files": [
  23. "assets/*.css",
  24. "es",
  25. "lib"
  26. ],
  27. "scripts": {
  28. "compile": "father build && lessc assets/index.less assets/index.css",
  29. "docs:build": "dumi build",
  30. "docs:deploy": "gh-pages -d .doc",
  31. "gh-pages": "npm run docs:build && npm run docs:deploy",
  32. "lint": "eslint .",
  33. "lint-staged": "lint-staged",
  34. "prepare": "husky install",
  35. "prepublishOnly": "npm run compile && np --yolo --no-publish",
  36. "postpublish": "npm run gh-pages",
  37. "start": "dumi dev",
  38. "test": "umi-test"
  39. },
  40. "lint-staged": {
  41. "**/*.{js,jsx,tsx,ts,md,json}": [
  42. "prettier --write"
  43. ]
  44. },
  45. "dependencies": {
  46. "@babel/runtime": "^7.21.0",
  47. "classnames": "^2.2.1",
  48. "rc-util": "^5.30.0"
  49. },
  50. "devDependencies": {
  51. "@rc-component/father-plugin": "^1.0.0",
  52. "@types/classnames": "^2.2.10",
  53. "@types/jest": "^26.0.4",
  54. "@umijs/fabric": "^3.0.0",
  55. "dumi": "^1.1.0",
  56. "enzyme": "^3.0.0",
  57. "enzyme-adapter-react-16": "^1.0.1",
  58. "enzyme-to-json": "^3.0.0",
  59. "eslint": "^7.0.0",
  60. "father": "^4.0.0",
  61. "gh-pages": "^4.0.0",
  62. "husky": "^8.0.1",
  63. "less": "^3.11.1",
  64. "lint-staged": "^13.2.1",
  65. "np": "^7.1.0",
  66. "prettier": "^2.8.8",
  67. "react": "^16.0.0",
  68. "react-dom": "^16.0.0",
  69. "react-test-renderer": "^16.0.0",
  70. "umi-test": "^1.9.7"
  71. },
  72. "peerDependencies": {
  73. "react": ">=16.9.0",
  74. "react-dom": ">=16.9.0"
  75. }
  76. }