package.json 4.3 KB

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