package.json 2.6 KB

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