package.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. {
  2. "name": "eep_page_reader",
  3. "version": "2025.12.18",
  4. "private": true,
  5. "main": "main.js",
  6. "description": "智慧梧桐数字教材阅读器",
  7. "author": "合新软件",
  8. "scripts": {
  9. "electron": "nodemon --watch main.js --exec \"electron .\"",
  10. "dev": "vue-cli-service serve",
  11. "build": "vue-cli-service build",
  12. "build:beiyu": "vue-cli-service build --mode beiyu",
  13. "lint": "vue-cli-service lint",
  14. "lint:style:fix": "stylelint \"src/**/*.{css,scss,vue}\" --fix",
  15. "lint:fix": "eslint \"src/**/*.{js,vue}\" --fix",
  16. "postinstall": "patch-package",
  17. "builder": "electron-builder",
  18. "builder:win": "npm run build && npm run builder",
  19. "builder:beiyu": "npm run build:beiyu && npm run builder",
  20. "builder:mac": "electron-builder --mac"
  21. },
  22. "dependencies": {
  23. "@tinymce/tinymce-vue": "^3.2.8",
  24. "7zip-bin": "^5.2.0",
  25. "adm-zip": "^0.5.16",
  26. "axios": "^1.7.2",
  27. "cnchar": "^3.2.6",
  28. "core-js": "^3.37.1",
  29. "dompurify": "^3.1.5",
  30. "electron-store": "^11.0.2",
  31. "element-ui": "^2.15.14",
  32. "hanzi-writer": "^3.7.0",
  33. "jquery": "^3.7.1",
  34. "js-audio-recorder": "^1.0.7",
  35. "mathjax": "^3.2.2",
  36. "md5": "^2.3.0",
  37. "nprogress": "^0.2.0",
  38. "opencc-js": "^1.0.5",
  39. "simple-mind-map": "^0.14.0-fix.1",
  40. "three": "^0.178.0",
  41. "tinymce": "^5.10.9",
  42. "v-fit-columns": "^0.2.0",
  43. "vue": "^2.6.14",
  44. "vue-esign": "^1.1.4",
  45. "vue-router": "^3.6.5",
  46. "vue-signature-pad": "^2.0.5",
  47. "vuedraggable": "^2.24.3",
  48. "vuex": "^3.6.2"
  49. },
  50. "devDependencies": {
  51. "@babel/core": "^7.24.7",
  52. "@babel/eslint-parser": "^7.24.7",
  53. "@electron/fuses": "^1.8.0",
  54. "@rushstack/eslint-patch": "^1.10.3",
  55. "@types/md5": "^2.3.5",
  56. "@vue/cli-plugin-babel": "~5.0.8",
  57. "@vue/cli-plugin-eslint": "~5.0.8",
  58. "@vue/cli-service": "~5.0.8",
  59. "@vue/eslint-config-prettier": "^9.0.0",
  60. "@vue/preload-webpack-plugin": "^2.0.0",
  61. "compression-webpack-plugin": "^6.1.2",
  62. "electron": "29.3.2",
  63. "electron-builder": "^24.13.3",
  64. "eslint": "^8.57.0",
  65. "eslint-plugin-prettier": "^5.1.3",
  66. "eslint-plugin-vue": "^9.26.0",
  67. "nodemon": "^3.1.3",
  68. "patch-package": "^8.0.0",
  69. "postcss-html": "^1.7.0",
  70. "prettier": "^3.3.2",
  71. "sass": "^1.77.6",
  72. "sass-loader": "^14.2.1",
  73. "stylelint": "^15.11.0",
  74. "stylelint-config-recess-order": "^4.6.0",
  75. "stylelint-config-recommended-scss": "^14.0.0",
  76. "stylelint-config-recommended-vue": "^1.5.0",
  77. "stylelint-config-standard-scss": "^12.0.0",
  78. "stylelint-declaration-block-no-ignored-properties": "^2.8.0",
  79. "stylelint-webpack-plugin": "^4.1.1",
  80. "svg-sprite-loader": "^6.0.11",
  81. "svgo": "^3.3.2",
  82. "vue-template-compiler": "^2.6.14"
  83. },
  84. "build": {
  85. "appId": "com.gcls.page.eepReader",
  86. "productName": "智慧梧桐数字教材阅读器",
  87. "copyright": "Copyright © 2025 ${author}",
  88. "directories": {
  89. "output": "out"
  90. },
  91. "asar": true,
  92. "fileAssociations": [
  93. {
  94. "ext": "eep",
  95. "name": "智慧梧桐数字教材阅读器离线文件",
  96. "description": "智慧梧桐数字教材阅读器离线文件",
  97. "role": "open"
  98. }
  99. ],
  100. "win": {
  101. "target": "nsis",
  102. "icon": "./public/icon.png",
  103. "artifactName": "${productName}-Setup.${ext}"
  104. },
  105. "linux": {
  106. "target": "AppImage",
  107. "icon": "./public/icon.png",
  108. "artifactName": "${productName}-Setup.${ext}"
  109. },
  110. "mac": {
  111. "target": "dmg",
  112. "icon": "./public/icon.png",
  113. "artifactName": "${productName}-Setup.${ext}"
  114. },
  115. "nsis": {
  116. "oneClick": false,
  117. "allowToChangeInstallationDirectory": true,
  118. "createDesktopShortcut": true,
  119. "createStartMenuShortcut": true,
  120. "perMachine": false
  121. },
  122. "dmg": {
  123. "contents": [
  124. {
  125. "x": 110,
  126. "y": 150
  127. },
  128. {
  129. "x": 240,
  130. "y": 150,
  131. "type": "link",
  132. "path": "/Applications"
  133. }
  134. ]
  135. }
  136. },
  137. "browserslist": [
  138. "> 1%",
  139. "last 2 versions",
  140. "not dead"
  141. ]
  142. }