package.json 2.4 KB

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