package.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. "vue-template-compiler": "^2.5.21"
  43. },
  44. "eslintConfig": {
  45. "root": true,
  46. "env": {
  47. "node": true
  48. },
  49. "extends": [
  50. "plugin:vue/essential",
  51. "eslint:recommended"
  52. ],
  53. "rules": {
  54. "no-undef": 0,
  55. "no-console": 0,
  56. "no-unused-vars": 0,
  57. "no-useless-escape": 0,
  58. "indent": "off",
  59. "vue/script-indent": [
  60. "error",
  61. 4
  62. ]
  63. },
  64. "parserOptions": {
  65. "parser": "babel-eslint"
  66. }
  67. },
  68. "postcss": {
  69. "plugins": {
  70. "autoprefixer": {}
  71. }
  72. },
  73. "browserslist": [
  74. "> 1%",
  75. "last 2 versions",
  76. "not ie <= 8"
  77. ],
  78. "jest": {
  79. "moduleFileExtensions": [
  80. "js",
  81. "jsx",
  82. "json",
  83. "vue"
  84. ],
  85. "transform": {
  86. "^.+\\.vue$": "vue-jest",
  87. ".+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$": "jest-transform-stub",
  88. "^.+\\.jsx?$": "babel-jest"
  89. },
  90. "transformIgnorePatterns": [
  91. "/node_modules/"
  92. ],
  93. "moduleNameMapper": {
  94. "^@/(.*)$": "<rootDir>/src/$1"
  95. },
  96. "snapshotSerializers": [
  97. "jest-serializer-vue"
  98. ],
  99. "testMatch": [
  100. "**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)"
  101. ],
  102. "testURL": "http://localhost/"
  103. },
  104. "husky": {
  105. "hooks": {
  106. "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
  107. }
  108. }
  109. }