package.json 2.5 KB

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