package.json 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. {
  2. "name": "cocos-service",
  3. "title": "Cocos Service",
  4. "version": "3.0.7",
  5. "description": "Cocos Service Package, is the developer's importance service integration center.",
  6. "author": "Cocos Service",
  7. "package_version": 2,
  8. "main": "./browser/browser.js",
  9. "scripts": {
  10. "release": "cross-env NODE_ENV=production gulp publish"
  11. },
  12. "panels": {
  13. "default": {
  14. "title": "i18n:cocos-service.service",
  15. "main": "./service/panel.js",
  16. "icon": "./service/assets/icon-2x.png",
  17. "type": "dockable",
  18. "size": {
  19. "width": 300,
  20. "height": 700,
  21. "min-width": 300,
  22. "min-height": 530
  23. }
  24. },
  25. "simple": {
  26. "title": "i18n:cocos-service.service",
  27. "main": "./popup/panel.js",
  28. "icon": "./service/assets/icon.png",
  29. "type": "simple",
  30. "flags": {
  31. "multiple": true
  32. },
  33. "size": {
  34. "width": 800,
  35. "height": 600
  36. }
  37. },
  38. "dockable": {
  39. "title": "i18n:cocos-service.service",
  40. "main": "./popup/panel.js",
  41. "icon": "./service/assets/icon.png",
  42. "type": "dockable",
  43. "flags": {
  44. "multiple": true
  45. },
  46. "size": {
  47. "width": 800,
  48. "height": 600
  49. }
  50. }
  51. },
  52. "contributions": {
  53. "builder": "./contributions/builder/builder",
  54. "server": "./contributions/server/index.js",
  55. "preview": {
  56. "browser": {
  57. "methods": "./contributions/preview/index.js",
  58. "hooks": {
  59. "settings": "onSettingsBrowser"
  60. }
  61. },
  62. "simulator": {
  63. "methods": "./contributions/preview/index.js",
  64. "hooks": {
  65. "settings": "onSettingsSimulator"
  66. }
  67. }
  68. },
  69. "menu": [
  70. {
  71. "path": "i18n:menu.panel",
  72. "label": "i18n:cocos-service.service",
  73. "message": "open-service-panel",
  74. "icon": "./service/assets/icon.png"
  75. }
  76. ],
  77. "shortcuts": [
  78. {
  79. "message": "open-service-panel",
  80. "win": "ctrl+8",
  81. "mac": "cmd+8"
  82. }
  83. ],
  84. "extension": {
  85. "download": [
  86. {
  87. "id": 35,
  88. "name": "cloud-component",
  89. "module": "./contributions/extension/extension.js",
  90. "install": "install"
  91. }
  92. ]
  93. },
  94. "node-library": [
  95. {
  96. "name": "i18n:cocos-service.component.title",
  97. "module": "./contributions/node-library/node-library.js",
  98. "data": "getCloudGroups",
  99. "refresh": "cloud-component:update-library"
  100. }
  101. ],
  102. "hierarchy": {
  103. "drop": [
  104. {
  105. "type": "CloudComponent",
  106. "message": "drop-hierarchy"
  107. }
  108. ]
  109. },
  110. "assets": {
  111. "drop": [
  112. {
  113. "type": "CloudComponent",
  114. "message": "drop-assets"
  115. }
  116. ]
  117. },
  118. "scene": {
  119. "drop": [
  120. {
  121. "type": "CloudComponent",
  122. "message": "drop-scene"
  123. }
  124. ]
  125. },
  126. "messages": {
  127. "open-service-panel": {
  128. "methods": [
  129. "openServicePanel"
  130. ]
  131. },
  132. "enable-service": {
  133. "methods": [
  134. "enableService"
  135. ]
  136. },
  137. "open-popup": {
  138. "methods": [
  139. "openPopup"
  140. ]
  141. },
  142. "close-popup": {
  143. "methods": [
  144. "closePopup"
  145. ]
  146. },
  147. "print-log": {
  148. "methods": [
  149. "printLog"
  150. ]
  151. },
  152. "api-request": {
  153. "methods": [
  154. "apiRequest"
  155. ]
  156. },
  157. "popup-show": {
  158. "methods": [
  159. "popupShow"
  160. ]
  161. },
  162. "plugin-msg": {
  163. "methods": [
  164. "pluginMsg"
  165. ]
  166. },
  167. "plugin-msg-service": {
  168. "methods": [
  169. "default.pluginMsg"
  170. ]
  171. },
  172. "plugin-msg-popup": {
  173. "methods": [
  174. "simple.pluginMsg",
  175. "dockable.pluginMsg"
  176. ]
  177. },
  178. "service-ready": {
  179. "methods": [
  180. "serviceReady"
  181. ]
  182. },
  183. "i18n:change": {
  184. "methods": [
  185. "i18nChange"
  186. ]
  187. },
  188. "service-status-changed": {
  189. "methods": [
  190. "onServiceStatusChanged"
  191. ]
  192. },
  193. "drop-scene": {
  194. "methods": [
  195. "dropScene"
  196. ]
  197. },
  198. "drop-hierarchy": {
  199. "methods": [
  200. "dropHierarchy"
  201. ]
  202. },
  203. "drop-assets": {
  204. "methods": [
  205. "dropAssets"
  206. ]
  207. }
  208. }
  209. },
  210. "dependencies": {
  211. "compare-versions": "^3.6.0",
  212. "compressing": "^1.5.1",
  213. "fs-extra": "^9.0.1",
  214. "md5": "^2.3.0",
  215. "request": "^2.88.2",
  216. "watch": "^1.0.2"
  217. },
  218. "devDependencies": {
  219. "@types/electron": "^1.6.10",
  220. "@types/fs-extra": "^9.0.2",
  221. "@types/node": "^14.14.3",
  222. "@types/request": "^2.48.5",
  223. "@types/watch": "^1.0.1",
  224. "cross-env": "^7.0.3",
  225. "gulp": "^4.0.2",
  226. "gulp-clean-css": "^4.3.0",
  227. "gulp-if": "^3.0.0",
  228. "gulp-javascript-obfuscator": "^1.1.6",
  229. "gulp-replace": "^1.0.0",
  230. "gulp-shell": "^0.8.0",
  231. "gulp-terser": "^2.0.0",
  232. "gulp-typescript": "^6.0.0-alpha.1",
  233. "gulp-watch": "^5.0.1",
  234. "gulp-zip": "^5.0.2",
  235. "typescript": "^4.0.5"
  236. }
  237. }