package.json 2.4 KB

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