package.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. {
  2. "name": "insommnia-cognition",
  3. "private": true,
  4. "version": "0.0.0",
  5. "scripts": {
  6. "clean:cache": "rimraf node_modules/.cache/ && rimraf node_modules/.vite",
  7. "clean:lib": "rimraf node_modules",
  8. "clean:dist": "rimraf dist",
  9. "dev": "vite",
  10. "serve:staging": "vite --mode staging",
  11. "build:staging": "vue-tsc --noEmit && vite build --mode staging && esno ./build/script/postBuild.ts",
  12. "build": "vue-tsc --noEmit && cross-env NODE_ENV=production vite build && esno ./build/script/postBuild.ts",
  13. "preview": "npm run build && vite preview",
  14. "preview:dist": "vite preview",
  15. "prepare": "husky install",
  16. "lint:eslint": "vue-tsc --noEmit --skipLibCheck && eslint --cache --max-warnings 0 \"{src,mock}/**/*.{vue,ts,tsx}\" --fix",
  17. "lint:prettier": "prettier --write \"src/**/*.{js,json,tsx,css,less,scss,vue,html,md}\"",
  18. "lint:lint-staged": "lint-staged"
  19. },
  20. "dependencies": {
  21. "@vueuse/core": "^10.9.0",
  22. "axios": "^1.6.8",
  23. "crypto-js": "4.2.0",
  24. "dayjs": "^1.11.9",
  25. "lodash-es": "^4.17.21",
  26. "nprogress": "^0.2.0",
  27. "pinia": "^2.1.7",
  28. "pinia-plugin-persistedstate": "^3.2.1",
  29. "qs": "^6.11.2",
  30. "vant": "^4.8.11",
  31. "vconsole": "^3.15.1",
  32. "vue": "^3.4.23",
  33. "vue-router": "^4.3.2"
  34. },
  35. "devDependencies": {
  36. "@commitlint/cli": "^16.2.3",
  37. "@commitlint/config-conventional": "^16.2.1",
  38. "@iconify-json/svg-spinners": "^1.1.2",
  39. "@types/crypto-js": "^4.1.1",
  40. "@types/lodash-es": "^4.17.8",
  41. "@types/nprogress": "^0.2.0",
  42. "@types/qs": "^6.9.7",
  43. "@typescript-eslint/eslint-plugin": "^5.18.0",
  44. "@typescript-eslint/parser": "^5.18.0",
  45. "@unocss/preset-attributify": "^0.53.4",
  46. "@unocss/preset-uno": "^0.53.4",
  47. "@vitejs/plugin-vue": "^4.5.1",
  48. "autoprefixer": "^10.4.4",
  49. "chalk": "^5.2.0",
  50. "cnjm-postcss-px-to-viewport": "^1.0.1",
  51. "cross-env": "^7.0.3",
  52. "dotenv": "^16.3.1",
  53. "eslint": "^8.12.0",
  54. "eslint-config-prettier": "^8.8.0",
  55. "eslint-define-config": "^1.23.0",
  56. "eslint-plugin-prettier": "^4.2.1",
  57. "eslint-plugin-vue": "^9.15.1",
  58. "esno": "^0.16.3",
  59. "fs-extra": "^11.1.1",
  60. "husky": "^7.0.4",
  61. "less": "^4.2.0",
  62. "lint-staged": "^12.3.7",
  63. "mockjs": "^1.1.0",
  64. "postcss": "8.4.31",
  65. "postcss-less": "^6.0.0",
  66. "prettier": "^2.6.2",
  67. "rollup": "^3.28.0",
  68. "typescript": "^4.6.3",
  69. "unocss": "^0.58.0",
  70. "unplugin-auto-import": "^0.16.6",
  71. "unplugin-auto-vconsole": "^0.0.4",
  72. "unplugin-icons": "^0.16.5",
  73. "unplugin-vue-components": "^0.25.1",
  74. "vite": "^5.2.10",
  75. "vite-plugin-compression": "^0.5.1",
  76. "vite-plugin-html": "^3.2.2",
  77. "vite-plugin-mock": "^2.9.6",
  78. "vue-tsc": "^1.8.8"
  79. },
  80. "repository": {
  81. "type": "git",
  82. "url": "git+https://github.com/cnjm-cli-template/vue_h5.git"
  83. },
  84. "license": "MIT",
  85. "bugs": {
  86. "url": "https://github.com/cnjm-cli-template/vue_h5/issues"
  87. },
  88. "engines": {
  89. "node": "^12 || >=14"
  90. },
  91. "homepage": "https://github.com/cnjm-cli-template/vue_h5",
  92. "lint-staged": {
  93. "*.{js,jsx,ts,tsx}": [
  94. "eslint --fix",
  95. "prettier --config .prettierrc.js --write"
  96. ],
  97. "{!(package)*.json,*.code-snippets,.!(browserslist)*rc}": [
  98. "prettier --config .prettierrc.js --write--parser json"
  99. ],
  100. "package.json": [
  101. "prettier --config .prettierrc.js --write"
  102. ],
  103. "*.vue": [
  104. "eslint --fix",
  105. "prettier --config .prettierrc.js --write"
  106. ],
  107. "*.{scss,less,styl,html}": [
  108. "prettier --config .prettierrc.js --write"
  109. ],
  110. "*.md": [
  111. "prettier --config .prettierrc.js --write"
  112. ]
  113. }
  114. }