package.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. {
  2. "name": "eep_page",
  3. "version": "2026.04.16",
  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. "prebuilder:win": "node .github/hooks/scripts/update-env-version-on-builder-win.js --direct",
  18. "builder": "electron-builder",
  19. "builder:win": "npm run build && npm run builder",
  20. "builder:beiyu": "npm run build:beiyu && npm run builder",
  21. "builder:mac": "electron-builder --mac"
  22. },
  23. "dependencies": {
  24. "7zip-bin": "^5.2.0",
  25. "@tinymce/tinymce-vue": "^3.2.8",
  26. "axios": "^1.7.2",
  27. "cnchar": "^3.2.6",
  28. "core-js": "^3.47.0",
  29. "dompurify": "^3.1.5",
  30. "element-ui": "^2.15.14",
  31. "hanzi-writer": "^3.7.0",
  32. "jquery": "^3.7.1",
  33. "js-audio-recorder": "^1.0.7",
  34. "mathjax": "^3.2.2",
  35. "md5": "^2.3.0",
  36. "nprogress": "^0.2.0",
  37. "opencc-js": "^1.0.5",
  38. "simple-mind-map": "^0.14.0",
  39. "three": "^0.181.2",
  40. "tinymce": "^5.10.9",
  41. "v-fit-columns": "^0.2.0",
  42. "video.js": "^8.23.7",
  43. "videojs-markers": "^1.0.1",
  44. "vis-data": "^8.0.3",
  45. "vis-network": "^10.0.2",
  46. "vue": "^2.6.14",
  47. "vue-esign": "^1.1.4",
  48. "vue-router": "^3.6.5",
  49. "vue-signature-pad": "^2.0.5",
  50. "vuedraggable": "^2.24.3",
  51. "vuex": "^3.6.2",
  52. "web-highlighter": "^0.7.4"
  53. },
  54. "devDependencies": {
  55. "@babel/core": "^7.28.5",
  56. "@babel/eslint-parser": "^7.28.5",
  57. "@electron/fuses": "^1.8.0",
  58. "@rushstack/eslint-patch": "^1.15.0",
  59. "@types/md5": "^2.3.6",
  60. "@vue/cli-plugin-babel": "~5.0.9",
  61. "@vue/cli-plugin-eslint": "~5.0.9",
  62. "@vue/cli-service": "~5.0.9",
  63. "@vue/eslint-config-prettier": "^9.0.0",
  64. "@vue/preload-webpack-plugin": "^2.0.0",
  65. "compression-webpack-plugin": "^6.1.2",
  66. "electron": "29.3.2",
  67. "electron-builder": "^24.13.3",
  68. "eslint": "^8.57.1",
  69. "eslint-plugin-prettier": "^5.5.4",
  70. "eslint-plugin-vue": "^9.33.0",
  71. "nodemon": "^3.1.11",
  72. "patch-package": "^8.0.1",
  73. "postcss-html": "^1.8.0",
  74. "prettier": "^3.7.3",
  75. "sass": "^1.94.2",
  76. "sass-loader": "^14.2.1",
  77. "stylelint": "^15.11.0",
  78. "stylelint-config-recess-order": "^4.6.0",
  79. "stylelint-config-recommended-scss": "^14.0.0",
  80. "stylelint-config-recommended-vue": "^1.5.0",
  81. "stylelint-config-standard-scss": "^12.0.0",
  82. "stylelint-declaration-block-no-ignored-properties": "^2.8.0",
  83. "stylelint-webpack-plugin": "^4.1.1",
  84. "svg-sprite-loader": "^6.0.11",
  85. "svgo": "^3.3.2",
  86. "vue-template-compiler": "^2.6.14"
  87. },
  88. "build": {
  89. "appId": "com.gcls.page.textbook",
  90. "productName": "智慧梧桐数字教材编辑器",
  91. "copyright": "Copyright © 2026 ${author}",
  92. "asarUnpack": [
  93. "node_modules/7zip-bin/**"
  94. ],
  95. "directories": {
  96. "output": "out"
  97. },
  98. "asar": true,
  99. "win": {
  100. "target": "nsis",
  101. "icon": "./public/icon.png",
  102. "artifactName": "${productName}-Setup.${ext}"
  103. },
  104. "linux": {
  105. "target": "AppImage",
  106. "icon": "./public/icon.png",
  107. "artifactName": "${productName}-Setup.${ext}"
  108. },
  109. "mac": {
  110. "target": "dmg",
  111. "icon": "./public/icon.png",
  112. "artifactName": "${productName}-Setup.${ext}"
  113. },
  114. "nsis": {
  115. "oneClick": false,
  116. "allowToChangeInstallationDirectory": true,
  117. "createDesktopShortcut": true,
  118. "createStartMenuShortcut": true,
  119. "perMachine": false
  120. },
  121. "dmg": {
  122. "contents": [
  123. {
  124. "x": 110,
  125. "y": 150
  126. },
  127. {
  128. "x": 240,
  129. "y": 150,
  130. "type": "link",
  131. "path": "/Applications"
  132. }
  133. ]
  134. }
  135. },
  136. "browserslist": [
  137. "> 1%",
  138. "last 2 versions",
  139. "not dead"
  140. ]
  141. }