package.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. {
  2. "name": "web",
  3. "version": "0.1.0",
  4. "private": true,
  5. "scripts": {
  6. "dev": "cross-env env_config=dev vue-cli-service serve --open",
  7. "build": "cross-env env_config=prod vue-cli-service build",
  8. "build:t": "cross-env env_config=test vue-cli-service build",
  9. "lint": "vue-cli-service lint",
  10. "test1": "vue-cli-service test:e2e",
  11. "test2": "vue-cli-service test:unit"
  12. },
  13. "dependencies": {
  14. "axios": "^0.27.2",
  15. "crypto-js": "^3.1.9-1",
  16. "element-ui": "^2.8.2",
  17. "js-cookie": "^3.0.1",
  18. "qrcodejs2": "0.0.2",
  19. "vant": "^2.12.47",
  20. "vue": "^2.6.6",
  21. "vue-infinite-scroll": "^2.0.2",
  22. "vue-router": "^3.0.1",
  23. "vuex": "^3.0.1"
  24. },
  25. "devDependencies": {
  26. "@commitlint/cli": "^11.0.0",
  27. "@commitlint/config-conventional": "^11.0.0",
  28. "@vue/cli-plugin-babel": "^3.5.0",
  29. "@vue/cli-plugin-eslint": "^3.5.0",
  30. "@vue/cli-plugin-unit-jest": "^3.5.0",
  31. "@vue/cli-service": "^3.5.0",
  32. "@vue/test-utils": "1.0.0-beta.29",
  33. "babel-core": "7.0.0-bridge.0",
  34. "babel-eslint": "^10.0.1",
  35. "babel-jest": "^23.6.0",
  36. "cross-env": "^5.2.1",
  37. "eslint": "^5.8.0",
  38. "eslint-plugin-vue": "^5.0.0",
  39. "husky": "^4.3.0",
  40. "less": "^3.0.4",
  41. "less-loader": "^4.1.0",
  42. "postcss-px-to-viewport": "^1.1.1",
  43. "postcss-pxtorem": "^5.1.1",
  44. "vue-template-compiler": "^2.5.21"
  45. },
  46. "eslintConfig": {
  47. "root": true,
  48. "env": {
  49. "node": true
  50. },
  51. "extends": [
  52. "plugin:vue/essential",
  53. "eslint:recommended"
  54. ],
  55. "rules": {
  56. "no-undef": 0,
  57. "no-console": 0,
  58. "no-unused-vars": 0,
  59. "no-useless-escape": 0,
  60. "indent": "off",
  61. "vue/script-indent": [
  62. "error",
  63. 4
  64. ]
  65. },
  66. "parserOptions": {
  67. "parser": "babel-eslint"
  68. }
  69. },
  70. "postcss": {
  71. "plugins": {
  72. "autoprefixer": {}
  73. }
  74. },
  75. "browserslist": [
  76. "> 1%",
  77. "last 2 versions",
  78. "not ie <= 8"
  79. ],
  80. "jest": {
  81. "moduleFileExtensions": [
  82. "js",
  83. "jsx",
  84. "json",
  85. "vue"
  86. ],
  87. "transform": {
  88. "^.+\\.vue$": "vue-jest",
  89. ".+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$": "jest-transform-stub",
  90. "^.+\\.jsx?$": "babel-jest"
  91. },
  92. "transformIgnorePatterns": [
  93. "/node_modules/"
  94. ],
  95. "moduleNameMapper": {
  96. "^@/(.*)$": "<rootDir>/src/$1"
  97. },
  98. "snapshotSerializers": [
  99. "jest-serializer-vue"
  100. ],
  101. "testMatch": [
  102. "**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)"
  103. ],
  104. "testURL": "http://localhost/"
  105. },
  106. "husky": {
  107. "hooks": {
  108. "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
  109. }
  110. }
  111. }