package.json 3.4 KB

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