package.json 4.2 KB

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