package.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. {
  2. "name": "eep_page",
  3. "version": "1.0.0",
  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. "axios": "^1.7.2",
  25. "cnchar": "^3.2.6",
  26. "core-js": "^3.37.1",
  27. "dompurify": "^3.1.5",
  28. "element-ui": "^2.15.14",
  29. "hanzi-writer": "^3.7.0",
  30. "jquery": "^3.7.1",
  31. "js-audio-recorder": "^1.0.7",
  32. "mathjax": "^3.2.2",
  33. "md5": "^2.3.0",
  34. "nprogress": "^0.2.0",
  35. "tinymce": "^5.10.9",
  36. "vue": "^2.6.14",
  37. "vue-esign": "^1.1.4",
  38. "vue-router": "^3.6.5",
  39. "vuedraggable": "^2.24.3",
  40. "vuex": "^3.6.2"
  41. },
  42. "devDependencies": {
  43. "@babel/core": "^7.24.7",
  44. "@babel/eslint-parser": "^7.24.7",
  45. "@electron/fuses": "^1.8.0",
  46. "@rushstack/eslint-patch": "^1.10.3",
  47. "@types/md5": "^2.3.5",
  48. "@vue/cli-plugin-babel": "~5.0.8",
  49. "@vue/cli-plugin-eslint": "~5.0.8",
  50. "@vue/cli-service": "~5.0.8",
  51. "@vue/eslint-config-prettier": "^9.0.0",
  52. "@vue/preload-webpack-plugin": "^2.0.0",
  53. "compression-webpack-plugin": "^6.1.2",
  54. "electron": "29.3.2",
  55. "electron-builder": "^24.13.3",
  56. "eslint": "^8.57.0",
  57. "eslint-plugin-prettier": "^5.1.3",
  58. "eslint-plugin-vue": "^9.26.0",
  59. "nodemon": "^3.1.3",
  60. "patch-package": "^8.0.0",
  61. "postcss-html": "^1.7.0",
  62. "prettier": "^3.3.2",
  63. "sass": "^1.77.6",
  64. "sass-loader": "^14.2.1",
  65. "stylelint": "^15.11.0",
  66. "stylelint-config-recess-order": "^4.6.0",
  67. "stylelint-config-recommended-scss": "^14.0.0",
  68. "stylelint-config-recommended-vue": "^1.5.0",
  69. "stylelint-config-standard-scss": "^12.0.0",
  70. "stylelint-declaration-block-no-ignored-properties": "^2.8.0",
  71. "stylelint-webpack-plugin": "^4.1.1",
  72. "svg-sprite-loader": "^6.0.11",
  73. "svgo": "^3.3.2",
  74. "vue-template-compiler": "^2.6.14"
  75. },
  76. "build": {
  77. "appId": "com.gcls.page.textbook",
  78. "productName": "国际中文智慧教育引擎互动教材编辑器",
  79. "copyright": "Copyright © 2025 ${author}",
  80. "directories": {
  81. "output": "out"
  82. },
  83. "asar": true,
  84. "win": {
  85. "target": "nsis",
  86. "icon": "./public/icon.png",
  87. "artifactName": "${productName}-Setup.${ext}"
  88. },
  89. "linux": {
  90. "target": "AppImage",
  91. "icon": "./public/icon.png",
  92. "artifactName": "${productName}-Setup.${ext}"
  93. },
  94. "mac": {
  95. "target": "dmg",
  96. "icon": "./public/icon.png",
  97. "artifactName": "${productName}-Setup.${ext}"
  98. },
  99. "nsis": {
  100. "oneClick": false,
  101. "allowToChangeInstallationDirectory": true,
  102. "createDesktopShortcut": true,
  103. "createStartMenuShortcut": true,
  104. "perMachine": false
  105. },
  106. "dmg": {
  107. "contents": [
  108. {
  109. "x": 110,
  110. "y": 150
  111. },
  112. {
  113. "x": 240,
  114. "y": 150,
  115. "type": "link",
  116. "path": "/Applications"
  117. }
  118. ]
  119. }
  120. },
  121. "browserslist": [
  122. "> 1%",
  123. "last 2 versions",
  124. "not dead"
  125. ]
  126. }