package.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. {
  2. "name": "vant",
  3. "version": "2.13.2",
  4. "description": "Mobile UI Components built on Vue",
  5. "main": "lib/index.js",
  6. "module": "es/index.js",
  7. "style": "lib/index.css",
  8. "typings": "types/index.d.ts",
  9. "files": [
  10. "es",
  11. "lib",
  12. "types",
  13. "vetur"
  14. ],
  15. "npm": {
  16. "tag": "latest-v2"
  17. },
  18. "publishConfig": {
  19. "registry": "https://registry.npmjs.org/"
  20. },
  21. "scripts": {
  22. "bootstrap": "yarn || npm i",
  23. "dev": "vant-cli dev",
  24. "lint": "vant-cli lint",
  25. "test": "vant-cli test",
  26. "build": "vant-cli build",
  27. "release": "vant-cli release --tag latest-v2",
  28. "test:watch": "vant-cli test --watch",
  29. "release:site": "sh docs/site/release.sh",
  30. "test:coverage": "open test/coverage/index.html"
  31. },
  32. "husky": {
  33. "hooks": {
  34. "pre-commit": "lint-staged",
  35. "commit-msg": "vant-cli commit-lint"
  36. }
  37. },
  38. "lint-staged": {
  39. "*.md": "prettier --write",
  40. "*.{ts,tsx,js,vue,less}": "prettier --write",
  41. "*.{ts,tsx,js,vue}": "eslint --fix",
  42. "*.{vue,css,less}": "stylelint --fix"
  43. },
  44. "repository": {
  45. "type": "git",
  46. "url": "git@github.com:vant-ui/vant.git"
  47. },
  48. "keywords": [
  49. "ui",
  50. "vue",
  51. "frontend",
  52. "mobile ui",
  53. "component",
  54. "components"
  55. ],
  56. "author": "youzanfe",
  57. "license": "MIT",
  58. "dependencies": {
  59. "@babel/runtime": "7.x",
  60. "@vant/icons": "^3.0.2",
  61. "@vant/popperjs": "^1.1.0",
  62. "@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
  63. "vue-lazyload": "1.2.3"
  64. },
  65. "peerDependencies": {
  66. "vue": ">= 2.6.0"
  67. },
  68. "devDependencies": {
  69. "@vant/cli": "^2.11.11",
  70. "prettier": "2.1.0",
  71. "vue": "^2.6.12",
  72. "vue-template-compiler": "^2.6.12"
  73. },
  74. "sideEffects": [
  75. "es/**/style/*",
  76. "lib/**/style/*",
  77. "*.css",
  78. "*.less"
  79. ],
  80. "vetur": {
  81. "tags": "vetur/tags.json",
  82. "attributes": "vetur/attributes.json"
  83. },
  84. "web-types": "vetur/web-types.json",
  85. "eslintConfig": {
  86. "root": true,
  87. "extends": [
  88. "@vant"
  89. ]
  90. },
  91. "stylelint": {
  92. "extends": [
  93. "@vant/stylelint-config"
  94. ]
  95. },
  96. "prettier": {
  97. "singleQuote": true,
  98. "proseWrap": "never"
  99. },
  100. "browserslist": [
  101. "Android >= 4.0",
  102. "iOS >= 8"
  103. ]
  104. }