package.json 3.5 KB

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