package.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. {
  2. "name": "vant",
  3. "version": "1.6.19",
  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. "packages",
  13. "types",
  14. "vetur"
  15. ],
  16. "scripts": {
  17. "bootstrap": "yarn || npm i",
  18. "dev": "npm run build:entry && webpack-dev-server --config build/webpack.dev.js",
  19. "lint": "eslint ./packages --ext .js,.vue,.ts,.tsx && stylelint \"packages/*.less\"",
  20. "build:entry": "node build/build-entry.js",
  21. "build:components": "node build/build-components.js --color",
  22. "build:vant": "cross-env NODE_ENV=production webpack --color --config build/webpack.build.js && cross-env NODE_ENV=production webpack -p --color --config build/webpack.build.js",
  23. "build:style": "gulp --gulpfile ./build/build-style.js",
  24. "build:style-entry": "node build/build-style-entry.js",
  25. "build:changelog": "vant-doc changelog ./changelog.generated.md",
  26. "build:lib": "node build/build-lib.js",
  27. "build:site": "rimraf docs/dist && cross-env NODE_ENV=production webpack --config build/webpack.doc.js && gh-pages -d docs/dist",
  28. "test": "jest",
  29. "test:watch": "jest --watch",
  30. "test:clear-cache": "jest --clearCache",
  31. "test:coverage": "open test/coverage/index.html",
  32. "release": "sh build/release.sh"
  33. },
  34. "husky": {
  35. "hooks": {
  36. "pre-commit": "lint-staged"
  37. }
  38. },
  39. "lint-staged": {
  40. "*.{ts,tsx,js,vue}": [
  41. "eslint",
  42. "git add"
  43. ],
  44. "*.{vue,css}": [
  45. "stylelint",
  46. "git add"
  47. ]
  48. },
  49. "repository": {
  50. "type": "git",
  51. "url": "git@github.com:youzan/vant.git"
  52. },
  53. "keywords": [
  54. "youzan",
  55. "vue",
  56. "component"
  57. ],
  58. "author": "youzanfe",
  59. "license": "MIT",
  60. "dependencies": {
  61. "@babel/runtime": "^7.4.3",
  62. "@vant/icons": "1.1.7",
  63. "@vue/babel-helper-vue-jsx-merge-props": "^1.0.0-beta.3",
  64. "vue-lazyload": "1.2.3"
  65. },
  66. "peerDependencies": {
  67. "vue": ">= 2.5.0"
  68. },
  69. "devDependencies": {
  70. "@babel/core": "^7.4.3",
  71. "@babel/plugin-syntax-dynamic-import": "^7.0.0",
  72. "@babel/plugin-syntax-jsx": "^7.2.0",
  73. "@babel/plugin-transform-object-assign": "^7.0.0",
  74. "@babel/plugin-transform-runtime": "^7.4.3",
  75. "@babel/polyfill": "^7.4.3",
  76. "@babel/preset-env": "^7.4.3",
  77. "@babel/preset-typescript": "^7.3.3",
  78. "@types/jest": "^24.0.11",
  79. "@vant/doc": "^1.0.25",
  80. "@vant/eslint-config": "^1.1.2",
  81. "@vant/markdown-loader": "^1.0.3",
  82. "@vue/babel-preset-jsx": "^1.0.0-beta.3",
  83. "@vue/server-test-utils": "^1.0.0-beta.29",
  84. "@vue/test-utils": "^1.0.0-beta.29",
  85. "autoprefixer": "^9.5.1",
  86. "babel-jest": "^24.7.1",
  87. "babel-loader": "^8.0.4",
  88. "codecov": "^3.3.0",
  89. "cross-env": "^5.2.0",
  90. "css-loader": "^2.1.1",
  91. "dependency-tree": "^7.0.2",
  92. "eslint": "^5.16.0",
  93. "fast-glob": "^2.2.4",
  94. "gh-pages": "^2.0.1",
  95. "gulp": "3.9.1",
  96. "gulp-csso": "^3.0.1",
  97. "gulp-less": "^4.0.1",
  98. "gulp-postcss": "^8.0.0",
  99. "html-webpack-plugin": "3.2.0",
  100. "husky": "^1.2.1",
  101. "jest": "^24.7.1",
  102. "jest-serializer-vue": "^2.0.2",
  103. "less": "^3.8.1",
  104. "less-loader": "^4.1.0",
  105. "lint-staged": "^8.1.5",
  106. "markdown-vetur": "0.0.5",
  107. "postcss": "^7.0.14",
  108. "postcss-loader": "^3.0.0",
  109. "progress-bar-webpack-plugin": "^1.12.1",
  110. "rimraf": "^2.5.4",
  111. "shelljs": "^0.8.3",
  112. "signale": "^1.4.0",
  113. "style-loader": "^0.23.1",
  114. "stylelint": "^10.0.1",
  115. "stylelint-config-standard": "^18.3.0",
  116. "ts-jest": "^24.0.2",
  117. "typescript": "^3.4.4",
  118. "uppercamelcase": "^3.0.0",
  119. "url-loader": "^1.1.2",
  120. "vue": "2.6.10",
  121. "vue-jest": "4.0.0-beta.1",
  122. "vue-loader": "^15.7.0",
  123. "vue-router": "^3.0.6",
  124. "vue-server-renderer": "^2.6.10",
  125. "vue-template-compiler": "2.6.10",
  126. "vue-template-es2015-compiler": "^1.9.1",
  127. "webpack": "^4.30.0",
  128. "webpack-cli": "^3.3.2",
  129. "webpack-dev-server": "^3.3.1"
  130. },
  131. "vetur": {
  132. "tags": "vetur/tags.json",
  133. "attributes": "vetur/attributes.json"
  134. }
  135. }