package.json 3.4 KB

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