@maka/maka-cli 4.5.18 → 4.5.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (296) hide show
  1. package/package.json +1 -1
  2. package/bundle/obf/package.json +0 -127
  3. package/bundle/obf/src/README.md +0 -31
  4. package/bundle/obf/src/command.js +0 -1
  5. package/bundle/obf/src/commands/_index.js +0 -1
  6. package/bundle/obf/src/commands/aws/_index.js +0 -1
  7. package/bundle/obf/src/commands/aws/aws.command.js +0 -1
  8. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +0 -1
  9. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +0 -1
  10. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +0 -1
  11. package/bundle/obf/src/commands/aws/di.sub.cmd.js +0 -1
  12. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +0 -1
  13. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +0 -1
  14. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +0 -1
  15. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +0 -1
  16. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +0 -1
  17. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +0 -1
  18. package/bundle/obf/src/commands/build/_index.js +0 -1
  19. package/bundle/obf/src/commands/build/build.js +0 -1
  20. package/bundle/obf/src/commands/build/docker.sub.cmd.js +0 -1
  21. package/bundle/obf/src/commands/create.js +0 -1
  22. package/bundle/obf/src/commands/debug.js +0 -1
  23. package/bundle/obf/src/commands/deploy.js +0 -1
  24. package/bundle/obf/src/commands/game/_index.js +0 -1
  25. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +0 -1
  26. package/bundle/obf/src/commands/game/play.command.js +0 -1
  27. package/bundle/obf/src/commands/game/pong.sub.cmd.js +0 -1
  28. package/bundle/obf/src/commands/game/sideQuest/commands/commands.js +0 -1
  29. package/bundle/obf/src/commands/game/sideQuest/game.js +0 -1
  30. package/bundle/obf/src/commands/game/sideQuest/models/door.js +0 -1
  31. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +0 -1
  32. package/bundle/obf/src/commands/game/sideQuest/models/item.js +0 -1
  33. package/bundle/obf/src/commands/game/sideQuest/models/player.js +0 -1
  34. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +0 -1
  35. package/bundle/obf/src/commands/game/sideQuest/models/room.js +0 -1
  36. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +0 -1
  37. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +0 -1
  38. package/bundle/obf/src/commands/game/sideQuest/scenes/puzzles.js +0 -0
  39. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +0 -1
  40. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +0 -1
  41. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +0 -1
  42. package/bundle/obf/src/commands/game/sideQuest/types/types.js +0 -1
  43. package/bundle/obf/src/commands/game/sideQuest/ui.js +0 -1
  44. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +0 -1
  45. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +0 -1
  46. package/bundle/obf/src/commands/game/snake.sub.cmd.js +0 -1
  47. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +0 -1
  48. package/bundle/obf/src/commands/generate.js +0 -1
  49. package/bundle/obf/src/commands/get/_index.js +0 -1
  50. package/bundle/obf/src/commands/get/get.command.js +0 -1
  51. package/bundle/obf/src/commands/get/global.sub.cmd.js +0 -1
  52. package/bundle/obf/src/commands/get/local.sub.cmd.js +0 -1
  53. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +0 -1
  54. package/bundle/obf/src/commands/help.js +0 -1
  55. package/bundle/obf/src/commands/jsdoc.js +0 -1
  56. package/bundle/obf/src/commands/lint.js +0 -1
  57. package/bundle/obf/src/commands/login.js +0 -1
  58. package/bundle/obf/src/commands/logout.js +0 -1
  59. package/bundle/obf/src/commands/logs.js +0 -1
  60. package/bundle/obf/src/commands/maka.cmd.js +0 -1
  61. package/bundle/obf/src/commands/murder.js +0 -1
  62. package/bundle/obf/src/commands/proxy.js +0 -1
  63. package/bundle/obf/src/commands/reconfig.js +0 -1
  64. package/bundle/obf/src/commands/run/_index.js +0 -1
  65. package/bundle/obf/src/commands/run/docker.sub.cmd.js +0 -1
  66. package/bundle/obf/src/commands/run/run.command.js +0 -1
  67. package/bundle/obf/src/commands/set/_index.js +0 -1
  68. package/bundle/obf/src/commands/set/global.sub.cmd.js +0 -1
  69. package/bundle/obf/src/commands/set/local.sub.cmd.js +0 -1
  70. package/bundle/obf/src/commands/set/set.command.js +0 -1
  71. package/bundle/obf/src/commands/ssh.js +0 -1
  72. package/bundle/obf/src/commands/ssl.js +0 -1
  73. package/bundle/obf/src/commands/test.js +0 -1
  74. package/bundle/obf/src/commands/version.js +0 -1
  75. package/bundle/obf/src/error.js +0 -1
  76. package/bundle/obf/src/generator.js +0 -1
  77. package/bundle/obf/src/generators/_index.js +0 -1
  78. package/bundle/obf/src/generators/api.js +0 -1
  79. package/bundle/obf/src/generators/collection.js +0 -1
  80. package/bundle/obf/src/generators/component.js +0 -1
  81. package/bundle/obf/src/generators/config.js +0 -1
  82. package/bundle/obf/src/generators/dbc.js +0 -1
  83. package/bundle/obf/src/generators/dockerfile.js +0 -1
  84. package/bundle/obf/src/generators/hook.js +0 -1
  85. package/bundle/obf/src/generators/kit.js +0 -1
  86. package/bundle/obf/src/generators/layout.js +0 -1
  87. package/bundle/obf/src/generators/maka.gen.js +0 -1
  88. package/bundle/obf/src/generators/methods.js +0 -1
  89. package/bundle/obf/src/generators/package.js +0 -1
  90. package/bundle/obf/src/generators/page.js +0 -1
  91. package/bundle/obf/src/generators/publish.js +0 -1
  92. package/bundle/obf/src/generators/route.js +0 -1
  93. package/bundle/obf/src/generators/service.js +0 -1
  94. package/bundle/obf/src/generators/services/_index.js +0 -1
  95. package/bundle/obf/src/generators/services/openssl.js +0 -1
  96. package/bundle/obf/src/generators/services/translation.js +0 -1
  97. package/bundle/obf/src/maka.js +0 -2
  98. package/bundle/obf/src/templates/meteor/api/api.js +0 -11
  99. package/bundle/obf/src/templates/meteor/api/api.js.ts +0 -11
  100. package/bundle/obf/src/templates/meteor/api/collection.js +0 -86
  101. package/bundle/obf/src/templates/meteor/api/collection.js.ts +0 -94
  102. package/bundle/obf/src/templates/meteor/api/fixtures.js +0 -23
  103. package/bundle/obf/src/templates/meteor/api/fixtures.js.ts +0 -23
  104. package/bundle/obf/src/templates/meteor/api/methods.js +0 -136
  105. package/bundle/obf/src/templates/meteor/api/methods.js.ts +0 -137
  106. package/bundle/obf/src/templates/meteor/api/publications.js +0 -31
  107. package/bundle/obf/src/templates/meteor/api/publications.js.ts +0 -31
  108. package/bundle/obf/src/templates/meteor/api/register-api.js +0 -15
  109. package/bundle/obf/src/templates/meteor/api/register-api.js.ts +0 -15
  110. package/bundle/obf/src/templates/meteor/api/resolvers.js +0 -9
  111. package/bundle/obf/src/templates/meteor/api/resolvers.js.ts +0 -9
  112. package/bundle/obf/src/templates/meteor/api/tests.js +0 -1
  113. package/bundle/obf/src/templates/meteor/api/tests.js.ts +0 -1
  114. package/bundle/obf/src/templates/meteor/api/typeDefs.js +0 -5
  115. package/bundle/obf/src/templates/meteor/api/typeDefs.js.ts +0 -5
  116. package/bundle/obf/src/templates/meteor/app/client/.gitkeep +0 -0
  117. package/bundle/obf/src/templates/meteor/app/client/body.html +0 -3
  118. package/bundle/obf/src/templates/meteor/app/client/head.html +0 -15
  119. package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js +0 -9
  120. package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.jsx +0 -9
  121. package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.ts +0 -9
  122. package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.tsx +0 -9
  123. package/bundle/obf/src/templates/meteor/app/client/main.js +0 -13
  124. package/bundle/obf/src/templates/meteor/app/client/main.js.jsx +0 -13
  125. package/bundle/obf/src/templates/meteor/app/client/main.js.ts +0 -13
  126. package/bundle/obf/src/templates/meteor/app/client/main.js.tsx +0 -13
  127. package/bundle/obf/src/templates/meteor/app/imports/api/.gitkeep +0 -0
  128. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js +0 -20
  129. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.jsx +0 -117
  130. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.ts +0 -20
  131. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +0 -118
  132. package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js +0 -39
  133. package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.jsx +0 -48
  134. package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.ts +0 -24
  135. package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.tsx +0 -48
  136. package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js +0 -9
  137. package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.jsx +0 -9
  138. package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.ts +0 -9
  139. package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.tsx +0 -9
  140. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js +0 -1
  141. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.jsx +0 -21
  142. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.ts +0 -1
  143. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.tsx +0 -21
  144. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.jsx +0 -48
  145. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.tsx +0 -48
  146. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/templates.js.jsx +0 -0
  147. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/templates.js.tsx +0 -0
  148. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js +0 -1
  149. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +0 -152
  150. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.ts +0 -0
  151. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +0 -152
  152. package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js +0 -24
  153. package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js.ts +0 -24
  154. package/bundle/obf/src/templates/meteor/app/lib/.gitkeep +0 -0
  155. package/bundle/obf/src/templates/meteor/app/lib/main.js +0 -1
  156. package/bundle/obf/src/templates/meteor/app/lib/main.js.jsx +0 -1
  157. package/bundle/obf/src/templates/meteor/app/lib/main.js.ts +0 -1
  158. package/bundle/obf/src/templates/meteor/app/lib/main.js.tsx +0 -1
  159. package/bundle/obf/src/templates/meteor/app/maka.d.ts +0 -160
  160. package/bundle/obf/src/templates/meteor/app/meteor.d.ts +0 -955
  161. package/bundle/obf/src/templates/meteor/app/packages/.gitkeep +0 -0
  162. package/bundle/obf/src/templates/meteor/app/private/.gitkeep +0 -0
  163. package/bundle/obf/src/templates/meteor/app/public/.gitkeep +0 -0
  164. package/bundle/obf/src/templates/meteor/app/public/favicon.ico +0 -0
  165. package/bundle/obf/src/templates/meteor/app/public/maka-144x144.png +0 -0
  166. package/bundle/obf/src/templates/meteor/app/public/maka-192x192.png +0 -0
  167. package/bundle/obf/src/templates/meteor/app/public/maka-512x512.png +0 -0
  168. package/bundle/obf/src/templates/meteor/app/public/manifest.json +0 -27
  169. package/bundle/obf/src/templates/meteor/app/public/sw.js +0 -30
  170. package/bundle/obf/src/templates/meteor/app/public/sw.js.jsx +0 -30
  171. package/bundle/obf/src/templates/meteor/app/public/sw.js.ts +0 -30
  172. package/bundle/obf/src/templates/meteor/app/public/sw.js.tsx +0 -30
  173. package/bundle/obf/src/templates/meteor/app/server/.gitkeep +0 -0
  174. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js +0 -179
  175. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.jsx +0 -179
  176. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.ts +0 -179
  177. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.tsx +0 -179
  178. package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js +0 -9
  179. package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.jsx +0 -9
  180. package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.ts +0 -9
  181. package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.tsx +0 -9
  182. package/bundle/obf/src/templates/meteor/app/server/main.js +0 -8
  183. package/bundle/obf/src/templates/meteor/app/server/main.js.jsx +0 -8
  184. package/bundle/obf/src/templates/meteor/app/server/main.js.ts +0 -8
  185. package/bundle/obf/src/templates/meteor/app/server/main.js.tsx +0 -8
  186. package/bundle/obf/src/templates/meteor/app/tsconfig.json +0 -28
  187. package/bundle/obf/src/templates/meteor/collection/collection.js +0 -85
  188. package/bundle/obf/src/templates/meteor/collection/collection.js.ts +0 -97
  189. package/bundle/obf/src/templates/meteor/collection/tests.js +0 -27
  190. package/bundle/obf/src/templates/meteor/collection/tests.js.ts +0 -27
  191. package/bundle/obf/src/templates/meteor/config/docker-compose.yaml +0 -17
  192. package/bundle/obf/src/templates/meteor/config/pm2.config.js +0 -25
  193. package/bundle/obf/src/templates/meteor/config/process.env +0 -5
  194. package/bundle/obf/src/templates/meteor/config/settings.json +0 -10
  195. package/bundle/obf/src/templates/meteor/config/ssh.json +0 -6
  196. package/bundle/obf/src/templates/meteor/dbc/config.js +0 -70
  197. package/bundle/obf/src/templates/meteor/dbc/config.js.ts +0 -70
  198. package/bundle/obf/src/templates/meteor/dbc/conn.js +0 -37
  199. package/bundle/obf/src/templates/meteor/dbc/conn.js.ts +0 -37
  200. package/bundle/obf/src/templates/meteor/dbc/register-dbc.js +0 -3
  201. package/bundle/obf/src/templates/meteor/dbc/register-dbc.js.ts +0 -3
  202. package/bundle/obf/src/templates/meteor/method/method.js +0 -48
  203. package/bundle/obf/src/templates/meteor/method/method.js.ts +0 -48
  204. package/bundle/obf/src/templates/meteor/package/client/package.js +0 -0
  205. package/bundle/obf/src/templates/meteor/package/client/package.js.jsx +0 -0
  206. package/bundle/obf/src/templates/meteor/package/client/package.js.ts +0 -0
  207. package/bundle/obf/src/templates/meteor/package/client/package.js.tsx +0 -0
  208. package/bundle/obf/src/templates/meteor/package/lib/package.js +0 -0
  209. package/bundle/obf/src/templates/meteor/package/lib/package.js.jsx +0 -0
  210. package/bundle/obf/src/templates/meteor/package/lib/package.js.ts +0 -0
  211. package/bundle/obf/src/templates/meteor/package/lib/package.js.tsx +0 -0
  212. package/bundle/obf/src/templates/meteor/package/package.js +0 -37
  213. package/bundle/obf/src/templates/meteor/package/package.js.jsx +0 -37
  214. package/bundle/obf/src/templates/meteor/package/package.js.ts +0 -36
  215. package/bundle/obf/src/templates/meteor/package/package.js.tsx +0 -37
  216. package/bundle/obf/src/templates/meteor/package/server/package.js +0 -0
  217. package/bundle/obf/src/templates/meteor/package/server/package.js.jsx +0 -0
  218. package/bundle/obf/src/templates/meteor/package/server/package.js.ts +0 -0
  219. package/bundle/obf/src/templates/meteor/package/server/package.js.tsx +0 -0
  220. package/bundle/obf/src/templates/meteor/package/tests/client/package.js +0 -5
  221. package/bundle/obf/src/templates/meteor/package/tests/client/package.js.jsx +0 -5
  222. package/bundle/obf/src/templates/meteor/package/tests/client/package.js.ts +0 -5
  223. package/bundle/obf/src/templates/meteor/package/tests/client/package.js.tsx +0 -5
  224. package/bundle/obf/src/templates/meteor/package/tests/server/package.js +0 -5
  225. package/bundle/obf/src/templates/meteor/package/tests/server/package.js.jsx +0 -5
  226. package/bundle/obf/src/templates/meteor/package/tests/server/package.js.ts +0 -5
  227. package/bundle/obf/src/templates/meteor/package/tests/server/package.js.tsx +0 -5
  228. package/bundle/obf/src/templates/meteor/project/.maka/config.json +0 -29
  229. package/bundle/obf/src/templates/meteor/project/README.md +0 -1
  230. package/bundle/obf/src/templates/meteor/project/build/.gitkeep +0 -0
  231. package/bundle/obf/src/templates/meteor/project/build/README +0 -4
  232. package/bundle/obf/src/templates/meteor/project/gitignore +0 -6
  233. package/bundle/obf/src/templates/meteor/publish/publish.js +0 -3
  234. package/bundle/obf/src/templates/meteor/publish/publish.js.jsx +0 -3
  235. package/bundle/obf/src/templates/meteor/publish/publish.js.tsx +0 -3
  236. package/bundle/obf/src/templates/meteor/publish/publish.ts +0 -3
  237. package/bundle/obf/src/templates/meteor/service/logger/logger.js +0 -27
  238. package/bundle/obf/src/templates/meteor/service/logger/logger.js.ts +0 -27
  239. package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css +0 -5
  240. package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css.less +0 -5
  241. package/bundle/obf/src/templates/meteor/template/template-tests.js +0 -1
  242. package/bundle/obf/src/templates/meteor/template/template-tests.js.jsx +0 -55
  243. package/bundle/obf/src/templates/meteor/template/template-tests.js.ts +0 -1
  244. package/bundle/obf/src/templates/meteor/template/template-tests.js.tsx +0 -55
  245. package/bundle/obf/src/templates/meteor/template/template.css +0 -6
  246. package/bundle/obf/src/templates/meteor/template/template.css.less +0 -6
  247. package/bundle/obf/src/templates/meteor/template/template.html +0 -5
  248. package/bundle/obf/src/templates/meteor/template/template.js +0 -20
  249. package/bundle/obf/src/templates/meteor/template/template.js.jsx +0 -77
  250. package/bundle/obf/src/templates/meteor/template/template.js.ts +0 -1
  251. package/bundle/obf/src/templates/meteor/template/template.js.tsx +0 -89
  252. package/bundle/obf/src/templates/react/component/component.css +0 -6
  253. package/bundle/obf/src/templates/react/component/component.css.less +0 -6
  254. package/bundle/obf/src/templates/react/component/component.js +0 -0
  255. package/bundle/obf/src/templates/react/component/component.js.jsx +0 -63
  256. package/bundle/obf/src/templates/react/component/component.js.ts +0 -0
  257. package/bundle/obf/src/templates/react/component/component.js.tsx +0 -68
  258. package/bundle/obf/src/templates/react/hook/hook.js +0 -1
  259. package/bundle/obf/src/templates/react/hook/hook.js.jsx +0 -24
  260. package/bundle/obf/src/templates/react/hook/hook.js.ts +0 -0
  261. package/bundle/obf/src/templates/react/hook/hook.js.tsx +0 -23
  262. package/bundle/obf/src/templates/react/route/route.js +0 -8
  263. package/bundle/obf/src/templates/react/route/route.js.jsx +0 -8
  264. package/bundle/obf/src/templates/react/route/route.js.ts +0 -8
  265. package/bundle/obf/src/templates/react/route/route.js.tsx +0 -8
  266. package/bundle/obf/src/templates/react/test/test.js +0 -1
  267. package/bundle/obf/src/templates/react/test/test.js.jsx +0 -41
  268. package/bundle/obf/src/templates/react/test/test.js.ts +0 -1
  269. package/bundle/obf/src/templates/react/test/test.js.tsx +0 -41
  270. package/bundle/obf/src/templates/service/docker/Dockerfile +0 -54
  271. package/bundle/obf/src/templates/service/eslint/eslintrc.json +0 -33
  272. package/bundle/obf/src/templates/service/i18n/i18n.js +0 -33
  273. package/bundle/obf/src/templates/service/i18n/i18n.js.ts +0 -33
  274. package/bundle/obf/src/templates/service/i18n/index.js +0 -0
  275. package/bundle/obf/src/templates/service/i18n/index.js.jsx +0 -0
  276. package/bundle/obf/src/templates/service/i18n/locales.js +0 -3
  277. package/bundle/obf/src/templates/service/i18n/locales.js.ts +0 -3
  278. package/bundle/obf/src/templates/service/openssl/openssl.conf +0 -22
  279. package/bundle/obf/src/tool.js +0 -1
  280. package/bundle/obf/src/tools/actions/actions.class.js +0 -1
  281. package/bundle/obf/src/tools/aws/aws.class.js +0 -1
  282. package/bundle/obf/src/tools/aws/aws.interfaces.js +0 -1
  283. package/bundle/obf/src/tools/docker/docker.class.js +0 -1
  284. package/bundle/obf/src/tools/docker/docker.interfaces.js +0 -1
  285. package/bundle/obf/src/tools/fsi/fsi.class.js +0 -1
  286. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +0 -1
  287. package/bundle/obf/src/tools/https/https.class.js +0 -1
  288. package/bundle/obf/src/tools/https/https.interface.js +0 -1
  289. package/bundle/obf/src/tools/log/log.class.js +0 -1
  290. package/bundle/obf/src/tools/log/log.interfaces.js +0 -1
  291. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +0 -1
  292. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +0 -1
  293. package/bundle/obf/src/tools/ssh/ssh.class.js +0 -1
  294. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +0 -1
  295. package/bundle/obf/src/tools/ssl/ssl.class.js +0 -1
  296. package/bundle/obf/src/tools/ssl/ssl.interfaces.js +0 -0
@@ -1 +0,0 @@
1
- const a72u=a72d;(function(a,b){const q=a72d,c=a();while(!![]){try{const d=-parseInt(q(0x144))/0x1+parseInt(q(0x17a))/0x2+parseInt(q(0x16e))/0x3*(-parseInt(q(0x150))/0x4)+parseInt(q(0x146))/0x5+parseInt(q(0x190))/0x6+-parseInt(q(0x16b))/0x7+parseInt(q(0x174))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a72c,0xc3be2));const a72b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a72d;if(c){const e=c[r(0x155)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a72a=a72b(this,function(){const s=a72d;return a72a['toString']()[s(0x178)](s(0x189))['toString']()['constructor'](a72a)[s(0x178)]('(((.+)+)+)+$');});a72a();import a72e from'path';import a72f from'cli-table';import{paramCase}from'change-case';import a72g from'./generators/maka.gen.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';function a72d(a,b){const c=a72c();return a72d=function(d,e){d=d-0x138;let f=c[d];return f;},a72d(a,b);}function a72c(){const G=['error','appPathPrefix','call','11547944RGAmFM','number','help','join','search','Alias','846702GypiHZ','addGenerator\x20requires\x20a\x20Generator\x20instance','mustHaveMeteorInstalled','validateMakaSubscription','Generator\x20requires\x20a\x20handler\x20function','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','exit','Generator.create\x20requires\x20a\x20handler\x20function!','find','shortDesc','split','Please\x20run\x20\x22maka\x20install\x20meteor\x22','minArgLength','minOptsLength','includes','(((.+)+)+)+$','create','toString','where','domainLicense','findGenerator','server','4472076izepOq','client','function','aliases','filter','pop','Generator.create\x20requires\x20some\x20options!','validateMakaProject','bright','findProjectDirectory','sort','parent','forEach','usage','validateParams','909389oeyfdh','singleLicense','6267080ZaiTQY','maxArgLength','To\x20use\x20this\x20generator,\x20\x22','Client','root','options','chdir','checkWhere','Server','name','64ybesgm','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','tableList','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','getPro','apply','push','assign','cwd','_handler','validateMeteorInstall','both','proGenerators','notice','replace','mustBeInMakaProject','_generators','Description','bind','match','roles','maxOptsLength','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','To\x20use\x20these\x20pro\x20flags,\x20\x22','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','keys','map','6835969IvgikC','length','Generator\x20requires\x20a\x20name','220854OjfcYN','Too\x20many\x20options','resourceName'];a72c=function(){return G;};return a72c();}import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevGen='';function inside(a='.',b){const t=a72d,c=process['cwd']();let d=null;try{process[t(0x14c)](a),d=b();}finally{process[t(0x14c)](c);}return d;}export class Generator extends Tool{[a72u(0x14b)];[a72u(0x160)];constructor(a,b){const v=a72u;super();if(!a)throw new Error(v(0x166));if(!a[v(0x14f)])throw new Error(v(0x16d));if(typeof b!==v(0x192))throw new Error(v(0x17e));this[v(0x160)]=[],this[v(0x14b)]=Object[v(0x157)]({},a),this[v(0x14f)]=this[v(0x14b)]['name'],this[v(0x159)]=b[v(0x162)](this);}static[a72u(0x18a)](a,b,c){const w=a72u;if(!a)throw new Error(w(0x13b));if(typeof b!=='function')throw new Error(w(0x181));const d=new Generator(a,b);return c=c||a72g,Object[w(0x157)](d,{'parent':c?.[w(0x14b)]?.['name']}),c['addGenerator'](d),d;}['addGenerator'](a){const x=a72u;if(!(a instanceof Generator))throw new Error(x(0x17b));this[x(0x160)][x(0x156)](a);}[a72u(0x18e)](a){const y=a72u,b=this[y(0x160)][y(0x182)](c=>c[y(0x163)](a));return b;}async['validateMakaSubscription'](a,b){const z=a72u,c=this[z(0x18e)](a[0x0]);if(c){const d=c?.['name']||a[0x0],e=c?.[z(0x140)]||'',f=Object[z(0x169)](b),g=await this['fsi'][z(0x154)]();!g&&(Log[z(0x171)](z(0x151)),process[z(0x180)](0x1));const h=!g?.['roles'][z(0x188)](z(0x145))&&!g?.[z(0x164)][z(0x188)](z(0x18d)),i=g?.[z(0x15c)]['includes'](d)||g?.[z(0x15c)][z(0x188)](e);if(i&&h)throw z(0x148)+d+z(0x153);if(f['length']>0x0){const j=g?.['proFlags'][z(0x139)](k=>f[z(0x188)](k));if(j&&j[z(0x16c)]>0x0&&h)throw z(0x167)+j?.[z(0x177)](',\x20')+z(0x153);}}}async['invoke'](a,b){const A=a72u,{usage:usage='',description:description='',examples:examples=[],shortDesc:c,requiredOpts:requiredOpts=[],validOpts:d}=this[A(0x14b)];try{await this[A(0x17d)](a,b);}catch(g){Log[A(0x171)](g),process[A(0x180)](0x1);}const f=a['slice']();b[A(0x170)]=f[0x0];try{if((a[0x0]===_prevGen||a[A(0x16c)]===0x0)&&b[A(0x176)])throw new UsageError();if(this['options'][A(0x15f)]){const h=this[A(0x13c)]();if(!h)throw new MustBeInProjectError();}if(this[A(0x14b)][A(0x17c)]){const i=this[A(0x15a)]();if(!i)throw new NoMeteorFoundError();}if(typeof this[A(0x14b)][A(0x186)]===A(0x175)){if(a['length']<this[A(0x14b)][A(0x186)]){Log['error']('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[A(0x14b)][A(0x147)]==='number'){if(a['length']>this['options'][A(0x147)]){Log[A(0x171)]('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[A(0x14b)][A(0x187)]===A(0x175)){if(Object['keys'](b)[A(0x16c)]<this[A(0x14b)][A(0x187)]){Log[A(0x171)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this[A(0x14b)][A(0x165)]===A(0x175)){if(Object[A(0x169)](b)[A(0x16c)]>=this[A(0x14b)][A(0x165)]){Log[A(0x171)](A(0x16f));throw new UsageError();}}this[A(0x143)](a,b,this[A(0x14b)]);if(!b['resourceName']&&!this[A(0x14b)]['noResource']){Log[A(0x171)]('No\x20resource\x20name\x20specified');throw new UsageError();}_prevGen=a[0x0];}catch(j){Log[A(0x142)](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageError)this[A(0x160)][A(0x16c)]>0x0&&b['help']&&(Log['notice']('Generators:'),this[A(0x152)](this[A(0x160)]));else{if(j instanceof MustBeInProjectError)Log[A(0x171)](A(0x17f));else{if(j instanceof NoMeteorFoundError)Log[A(0x171)](A(0x168)),Log[A(0x15d)](A(0x185));else{if(j instanceof NoMeteorAppFoundError)Log[A(0x171)]('There\x20is\x20no\x20Meteor\x20application\x20here');else throw j;}}}process[A(0x180)](0x1);}return new Promise(k=>{const B=A;inside(b[B(0x158)],async()=>{const C=B;try{if(!b[C(0x14a)]&&!this['fsi'][C(0x13e)]())throw new MustBeInProjectError();const l=b[C(0x170)]?.[C(0x15e)](/\\/g,'/')[C(0x184)]('/');!b['dir']&&(l?.[C(0x16c)]>0x1?(b[C(0x170)]=l[C(0x13a)](),f[0x0]=b['resourceName'],b['dir']=l[C(0x16a)](m=>{return paramCase(m);})[C(0x177)](a72e['sep'])):b['dir']='');if(this[C(0x14b)][C(0x14d)]){if(!b['where']){const n={'type':'list','name':'colLocAnswer','message':'Location','choices':[{'name':C(0x149),'value':C(0x191)},{'name':C(0x14e),'value':C(0x18f)},{'name':'Both','value':C(0x15b)}]},{colLocAnswer:o}=await Actions[C(0x14b)](n);o?b['where']=o:b[C(0x18c)]=C(0x15b);}const m=[C(0x15b),C(0x191),'server'];if(!m[C(0x188)](b[C(0x18c)])){Log[C(0x171)]('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b['where']){case C(0x15b):b[C(0x172)]='lib';break;case'server':b[C(0x172)]='server';break;case'client':b[C(0x172)]=C(0x191);break;default:b[C(0x172)]='';}}k(this[C(0x159)][C(0x173)](this,f,b));}catch(p){console[C(0x171)](p);}});});}['listGenerators'](){const D=a72u;this[D(0x152)](this[D(0x160)]);}[a72u(0x152)](a){const E=a72u,b=new a72f({});b[E(0x156)](['Name',E(0x179),E(0x161)]),a[E(0x13f)]()[E(0x141)](c=>{const F=E;b[F(0x156)]([c['name'],c[F(0x138)](),c[F(0x183)]()]);}),Log[E(0x13d)](b[E(0x18b)]());}}
@@ -1 +0,0 @@
1
- (function(a,b){var f=a73d,c=a();while(!![]){try{var d=parseInt(f(0x102))/0x1+-parseInt(f(0x101))/0x2*(parseInt(f(0x100))/0x3)+parseInt(f(0xfd))/0x4*(parseInt(f(0xf6))/0x5)+parseInt(f(0xfb))/0x6*(parseInt(f(0x105))/0x7)+-parseInt(f(0x103))/0x8+parseInt(f(0xfe))/0x9*(parseInt(f(0xf7))/0xa)+parseInt(f(0xf9))/0xb*(-parseInt(f(0x104))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a73c,0xc467a));var a73b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a73a=a73b(this,function(){var g=a73d;return a73a[g(0xfc)]()[g(0xff)](g(0xf8))[g(0xfc)]()[g(0xfa)](a73a)[g(0xff)](g(0xf8));});a73a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';function a73d(a,b){var c=a73c();return a73d=function(d,e){d=d-0xf6;var f=c[d];return f;},a73d(a,b);}import'./dbc.js';import'./hook.js';import'./kit.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';function a73c(){var h=['495pcySFN','constructor','8070vtIHdn','toString','4cLHYBV','9sqjwUa','search','332769xsoEgL','16WqJiiN','754219QIovVE','2168672ZjKfkd','777540fBrYez','7763rSitLf','7897405JxtokX','10534120gSzseg','(((.+)+)+)+$'];a73c=function(){return h;};return a73c();}import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
@@ -1 +0,0 @@
1
- const a74z=a74d;(function(a,b){const w=a74d,c=a();while(!![]){try{const d=parseInt(w(0xc4))/0x1*(-parseInt(w(0xf1))/0x2)+-parseInt(w(0xad))/0x3*(parseInt(w(0xf2))/0x4)+-parseInt(w(0xb3))/0x5+-parseInt(w(0xd9))/0x6*(parseInt(w(0xbd))/0x7)+parseInt(w(0xd0))/0x8+-parseInt(w(0xa4))/0x9+parseInt(w(0xdf))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a74c,0xb8f10));const a74b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a74d;if(c){const e=c[x(0xee)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a74a=a74b(this,function(){const y=a74d;return a74a[y(0xe2)]()[y(0xb9)](y(0xcb))['toString']()[y(0xb0)](a74a)[y(0xb9)]('(((.+)+)+)+$');});a74a();import{Generator}from'../generator.js';function a74d(a,b){const c=a74c();return a74d=function(d,e){d=d-0x9d;let f=c[d];return f;},a74d(a,b);}import{Log}from'../tools/log/log.class.js';function a74c(){const C=['graphql','\x0aimport\x20{\x20resolvers\x20as\x20','21276FkkMsL','api/fixtures.js','api/tests.js','if\x20\x5c(typeList','checkbox','withValue','push','(((.+)+)+)+$','pathFromApp','fixtures.','api/methods.js','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','10101016AUOpxo','findGenerator','options','test','RPC\x20(Methods)','import\x20{\x20typeDefs\x20as\x20','publications.','api/register-api.js','injectIntoFile','2118WJwrEX','engines','No\x20API\x20boundaries\x20selected','withMethods','TypeDefs\x20}\x20from\x20\x27','Resolvers);\x0a\x0a','32837920ZBdmJh','checkMeteorPackage','maka:rest','toString','typeList.push(','mongo','rest','-api\x27;','resolvers.','rest-api.','resolverList.push(','injectAtBeginningOfFile','dir','apollo','api/typeDefs.js','apply','register-','exit','72lCdPLj','1066832xOjEas','withGql','log','/imports/api','rpc-methods.','includes','maka\x20{generate,\x20g}:{api}\x20<resource-name>','api/api.js','Verifying\x20meteor\x20package\x20requirements\x20...','4634838PbMFqB','imports','startup','fsi','REST\x20API','-api.','api','server','template','9RkyqqV','invoke','Publications','constructor','length','.app-tests.','2012315DJYpMv','none','/graphql/resolvers','injectAtEndOfFile','maka:check','installMeteorPackage','search','ddp-rate-limiter','/graphql/typeDefs','withPubs','25886ZIKFqr','withFixtures','withRest','API\x20boundaries\x20to\x20create','index.'];a74c=function(){return C;};return a74c();}import{Actions}from'../tools/actions/actions.class.js';import a74e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a74z(0xaa),'aliases':['a'],'usage':a74z(0xa1),'shortDesc':a74z(0xcf),'validOpts':[a74z(0xeb)],'examples':['maka\x20g:api\x20todos']},async function(a,b){const A=a74z;try{const c=this[A(0xa7)]['getProjectConfig'](),d=[{'name':A(0xd4),'value':'withMethods'},{'name':'Fixtures','value':A(0xbe)},{'name':A(0xaf),'value':'withPubs'}];c[A(0xda)][A(0xaa)]==='rest'&&d[A(0xca)]({'name':A(0xa8),'value':A(0xbf)});c['engines']['graphql']===A(0xec)&&d[A(0xca)]({'name':'GraphQL','value':A(0xf3)});const f={'type':A(0xc8),'name':'apiAnswers','message':A(0xc0),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0xd2)](f);g[A(0xb1)]===0x0&&(Log['error'](A(0xdb)),process[A(0xf0)](0x1)),this[A(0xa7)][A(0xc9)](c,async()=>{const B=A,h=this[B(0xa7)][B(0xcc)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b['dir']?'/'+b[B(0xeb)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0xda)][B(0xaa)],'graphql':c[B(0xda)]['graphql'],'test':c[B(0xda)][B(0xd3)],'noRename':!![],'withPubs':g['includes'](B(0xbc)),'withFixtures':g[B(0xa0)](B(0xbe)),'withMethods':g['includes'](B(0xdc)),'withRest':g['includes']('withRest')};let n='js';c[B(0xda)]['js']==='tsx'&&(n='ts');(!this[B(0xa7)][B(0xe0)](B(0xe1))||!this[B(0xa7)][B(0xe0)](B(0xb7))||!this[B(0xa7)][B(0xe0)](B(0xba))||!this['fsi'][B(0xe0)]('mdg:validated-method')||!this[B(0xa7)]['checkMeteorPackage'](B(0xe4)))&&(Log['notice'](B(0xa3)),await this[B(0xa7)][B(0xb8)]('maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo',{'cwd':h}));const o=a74e[B(0xd1)]('collection');o&&await o[B(0xae)]([j],{'config':c,'where':B(0xab)});c[B(0xda)][B(0xaa)]===B(0xe5)&&(m['withRest']&&this[B(0xa7)][B(0xac)]({'srcPath':B(0xa2),'destPath':this[B(0xa7)]['pathFromApp']({'pathParts':[B(0xa5),'api',b[B(0xeb)],j,B(0xe8)+n]}),'context':m,'config':c}));m[B(0xdc)]&&this['fsi']['template']({'srcPath':B(0xce),'destPath':this[B(0xa7)][B(0xcc)]({'pathParts':[B(0xa5),B(0xaa),b[B(0xeb)],j,B(0x9f)+n]}),'context':m,'config':c});m[B(0xbe)]&&this[B(0xa7)][B(0xac)]({'srcPath':B(0xc5),'destPath':this[B(0xa7)][B(0xcc)]({'pathParts':[B(0xa5),B(0xaa),b['dir'],j,B(0xcd)+n]}),'context':m,'config':c});c[B(0xda)][B(0xd3)]!==B(0xb4)&&this[B(0xa7)][B(0xac)]({'srcPath':B(0xc6),'destPath':this['fsi'][B(0xcc)]({'pathParts':['imports',B(0xaa),b['dir'],j,j+B(0xb2)+n]}),'context':m,'config':c});m['withPubs']&&this[B(0xa7)][B(0xac)]({'srcPath':'api/publications.js','destPath':this[B(0xa7)]['pathFromApp']({'pathParts':['imports',B(0xaa),b[B(0xeb)],j,B(0xd6)+n]}),'context':m,'config':c});if(c[B(0xda)][B(0xc2)]===B(0xec)){if(g[B(0xa0)](B(0xf3))){const q=this[B(0xa7)][B(0xcc)]({'pathParts':[B(0xa5),B(0xa6),B(0xab),'index.'+c[B(0xda)]['js']]}),r=this[B(0xa7)]['rewriteDestinationPathForEngine']({'pathParts':[q],'config':c}),s=this[B(0xa7)][B(0xcc)]({'pathParts':[B(0xa5),'api',b[B(0xeb)],j,B(0xc2),'typeDefs.'+n]}),t=B(0x9e)+l+j+B(0xbb);this['fsi']['template']({'srcPath':B(0xed),'destPath':s,'context':m,'config':c}),this[B(0xa7)][B(0xea)]({'filePath':r,'content':B(0xd5)+k+B(0xdd)+t+'\x27;\x0a'}),this[B(0xa7)][B(0xd8)]({'filePath':r,'content':B(0xe3)+k+'TypeDefs);\x0a','begin':'const','end':'if\x20\x5c(typeList'});const u=this[B(0xa7)][B(0xcc)]({'pathParts':[B(0xa5),B(0xaa),b[B(0xeb)],j,B(0xc2),B(0xe7)+n]}),v=B(0x9e)+l+j+B(0xb5);this[B(0xa7)]['template']({'srcPath':'api/resolvers.js','destPath':u,'context':m,'config':c}),this[B(0xa7)]['injectAtBeginningOfFile']({'filePath':r,'content':B(0xc3)+k+'Resolvers\x20}\x20from\x20\x27'+v+'\x27;'}),this[B(0xa7)][B(0xd8)]({'filePath':r,'content':B(0xe9)+k+B(0xde),'begin':'const','end':B(0xc7)});}}this['fsi'][B(0xac)]({'srcPath':B(0xd7),'destPath':this[B(0xa7)]['pathFromApp']({'pathParts':['imports',B(0xa6),B(0xab),B(0xef)+j+B(0xa9)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0xa7)][B(0xcc)]({'pathParts':['imports',B(0xa6),B(0xab),B(0xc1)+c['engines']['js']]});this[B(0xa7)][B(0xb6)]({'filePath':p,'content':'import\x20\x27./register-'+j+B(0xe6)});});}catch(h){console[A(0x9d)](h),process[A(0xf0)](0x0);}});
@@ -1 +0,0 @@
1
- const a75n=a75d;(function(a,b){const k=a75d,c=a();while(!![]){try{const d=parseInt(k(0x148))/0x1+parseInt(k(0x13e))/0x2*(-parseInt(k(0x12a))/0x3)+parseInt(k(0x135))/0x4*(-parseInt(k(0x127))/0x5)+-parseInt(k(0x13f))/0x6*(-parseInt(k(0x139))/0x7)+-parseInt(k(0x140))/0x8*(-parseInt(k(0x123))/0x9)+parseInt(k(0x121))/0xa+-parseInt(k(0x14b))/0xb*(-parseInt(k(0x146))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a75c,0xb4aac));const a75b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a75d;if(c){const e=c[l(0x149)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a75a=a75b(this,function(){const m=a75d;return a75a[m(0x122)]()['search'](m(0x133))['toString']()['constructor'](a75a)['search'](m(0x133));});a75a();import{paramCase,pascalCase}from'change-case';function a75d(a,b){const c=a75c();return a75d=function(d,e){d=d-0x11e;let f=c[d];return f;},a75d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a75c(){const q=['88QkVmvR','getProjectConfig','pathFromApp','collection','index.','fsi','12nIAZoD','checkMeteorPackage','167637OgISMJ','apply','engines','5271959xiCBSi','appPathPrefix','collections','where','7159440OcqWBJ','toString','168957JKOWba','template','mongo','resourceName','469355iWEsbr','tsx','maka:check','60KgbmMT','installMeteorPackage','dir','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','none','imports','collection/tests.js','create','\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','(((.+)+)+)+$','notice','16CxKzbY','injectAtEndOfFile','.app-tests.','test','946421KyAzeW','col','startup','error','collection/collection.js','58906WfpYOm','6nLUKXc'];a75c=function(){return q;};return a75c();}Generator[a75n(0x131)]({'name':a75n(0x143),'aliases':[a75n(0x13a)],'usage':a75n(0x12d),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':['dir',a75n(0x120)],'description':a75n(0x132),'examples':['maka\x20g:collection\x20todos']},async function(a,b){const o=a75n;try{const c=this['fsi'][o(0x142)]({}),d=this[o(0x145)][o(0x141)]();this[o(0x145)]['withValue'](d,async()=>{const p=o,f=paramCase(b['resourceName']),g={'name':pascalCase(b[p(0x126)]),'collectionName':pascalCase(b['resourceName']),'fileName':f,'where':b[p(0x120)],'test':d['engines'][p(0x138)],'noRename':!![]};let h='js';d[p(0x14a)]['js']===p(0x128)&&(h='ts');!this['fsi']['checkMeteorPackage'](p(0x125))&&(Log[p(0x134)]('Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...'),await this[p(0x145)][p(0x12b)](p(0x125),{'cwd':c}));!this['fsi'][p(0x147)](p(0x129))&&(Log[p(0x134)]('Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...'),await this[p(0x145)][p(0x12b)]('maka:check',{'cwd':c}));this[p(0x145)][p(0x124)]({'srcPath':p(0x13d),'destPath':this[p(0x145)][p(0x142)]({'pathParts':['imports',p(0x13b),b[p(0x11e)],p(0x11f),b[p(0x12c)],f+'.'+h]}),'context':g,'config':d});d[p(0x14a)][p(0x138)]!==p(0x12e)&&this['fsi'][p(0x124)]({'srcPath':p(0x130),'destPath':this[p(0x145)][p(0x142)]({'pathParts':['imports',p(0x13b),b[p(0x11e)],'collections',b['dir'],f+p(0x137)+h]}),'context':g,'config':d});const i=b[p(0x12c)]?'/'+b[p(0x12c)]+'/':'/',j=this[p(0x145)][p(0x142)]({'pathParts':[p(0x12f),'startup',b[p(0x11e)],p(0x144)+d['engines']['js']]});this[p(0x145)][p(0x136)]({'filePath':j,'content':'import\x20\x27./collections'+i+f+'\x27;'});});}catch(f){Log[o(0x13c)](f);}});
@@ -1 +0,0 @@
1
- const a76q=a76d;(function(a,b){const n=a76d,c=a();while(!![]){try{const d=parseInt(n(0xa4))/0x1*(-parseInt(n(0xe1))/0x2)+-parseInt(n(0xc0))/0x3*(-parseInt(n(0xa3))/0x4)+parseInt(n(0xc8))/0x5+parseInt(n(0xe6))/0x6+parseInt(n(0xad))/0x7*(parseInt(n(0xbb))/0x8)+-parseInt(n(0xe3))/0x9*(parseInt(n(0xc5))/0xa)+parseInt(n(0xd2))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a76c,0x8d1dd));const a76b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a76d;if(c){const e=c[o(0xd4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a76a=a76b(this,function(){const p=a76d;return a76a[p(0xbe)]()[p(0x9f)](p(0xd3))[p(0xbe)]()[p(0xe7)](a76a)[p(0x9f)](p(0xd3));});a76a();function a76c(){const t=['3710655dBCZXk','startup','test','3932700PGRkVX','constructor','ssr','/imports/ui/components','search','getProjectConfig','import\x20\x27./','css','2013652KxpSlJ','4177DFqbfG','templates.js','client','root','react','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','none','rewriteDestinationPathForEngine','\x20};\x0a','11851uzFnlJ','true','dir','className','tsx','lib','test/test.js','withTranslations','findAppDirectory','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','reflux','resourceName','import\x20{\x20','fileName','2384XQiwYU','setTemplate','import\x20\x27','toString','fsi','3xregmq','engines','pathFromProject','string','template/template.css','20fESpcW','cssCaseName','.css','1247400JtVfQr','theme','template','\x27;\x0a','ramda','\x20}\x20from\x20\x27','graphql','withValue','imports','pathFromApp','5506380ujWiAw','(((.+)+)+)+$','apply','.tests.js','comp','installNpmPackage','.js','features','maka\x20g:comp\x20todos/todos-item','component/component.js','export\x20{\x20','assign','injectAtEndOfFile','create','warn','484lGQQFx','error'];a76c=function(){return t;};return a76c();}import a76e from'path';import{camelCase,paramCase,pascalCase}from'change-case';function a76d(a,b){const c=a76c();return a76d=function(d,e){d=d-0x9e;let f=c[d];return f;},a76d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a76q(0xd6)];Generator[a76q(0xdf)]({'name':'component','aliases':aliases,'usage':a76q(0xb6),'shortDesc':a76q(0xa9),'validOpts':[a76q(0xaf)],'examples':[a76q(0xda)]},async function(a,b){const r=a76q;try{const c=this[r(0xbf)][r(0xb5)](),d=r(0x9e),f=this[r(0xbf)][r(0xd1)]({'pathParts':[d,b['dir'],paramCase(b[r(0xb8)]),paramCase(b['resourceName'])]}),g=await this[r(0xbf)][r(0xa0)]();this[r(0xbf)][r(0xcf)](g,async()=>{const s=r;typeof g[s(0xca)][s(0xe5)]===s(0xc3)&&(g[s(0xca)]['test']=g[s(0xca)][s(0xe5)]===s(0xae)?!![]:![],this['fsi']['setTemplate'](s(0xe5),g[s(0xca)][s(0xe5)]));typeof g[s(0xca)][s(0xa2)]===s(0xc3)&&(g[s(0xca)]['css']=g[s(0xca)]['css']===s(0xae)?!![]:![],this['fsi'][s(0xbc)](s(0xa2),g[s(0xca)]['css']));typeof g[s(0xca)]['js']===s(0xc3)&&(g['template']['js']=g['template']['js']===s(0xae)?!![]:![],this['fsi'][s(0xbc)]('js',g[s(0xca)]['js']));!g[s(0xd9)]&&(g[s(0xd9)]={});!b[s(0xa7)]&&!this['fsi']['checkNpmPackage'](s(0xcc))&&(Log[s(0xe0)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[s(0xbf)][s(0xd7)]('ramda',{'cwd':c}));if(!b[s(0xa7)]&&!this[s(0xbf)]['checkNpmPackage'](s(0xa8))){Log[s(0xe2)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const h={'name':pascalCase(b[s(0xb8)]),'myPath':a76e['relative'](this[s(0xbf)][s(0xc2)]({}),f),'cssCaseName':paramCase(b[s(0xb8)]),'className':pascalCase(b[s(0xb8)]),'camelCaseName':camelCase(b[s(0xb8)]),'fileName':paramCase(b[s(0xb8)]),'graphql':g['engines'][s(0xce)],'features':g[s(0xd9)],'client':g['engines'][s(0xa6)],'api':g[s(0xc1)]['api'],'ssr':g[s(0xc1)][s(0xe8)],'test':g[s(0xc1)]['test'],'theme':g[s(0xc1)][s(0xc9)],'isLayout':![],'isComponent':!![],'withTranslations':g['features'][s(0xb4)]};this['fsi']['template']({'srcPath':s(0xdb),'destPath':f+s(0xd8),'context':h,'framework':'react','config':g});g[s(0xc1)][s(0xe5)]!==s(0xaa)&&this[s(0xbf)][s(0xca)]({'srcPath':s(0xb3),'destPath':f+s(0xd5),'context':h,'framework':'react','config':g});g['template'][s(0xa2)]&&(this[s(0xbf)][s(0xca)]({'srcPath':s(0xc4),'destPath':f+s(0xc7),'context':Object[s(0xdd)]({},h,{'className':paramCase(b['resourceName'])}),'config':g}),this[s(0xbf)]['injectAtBeginningOfFile']({'filePath':f+'.'+g['engines']['js'],'content':s(0xa1)+h[s(0xc6)]+'.'+g[s(0xc1)][s(0xa2)]+'\x27;'}));const i=b[s(0xaf)]?'/'+b[s(0xaf)]+'/':'/',j=''+d+i+h[s(0xba)]+'/'+h['fileName'];let k;if(g['engines'][s(0xe8)]===s(0xae)){const l=this[s(0xbf)]['pathFromApp']({'pathParts':[s(0xd0),s(0xe4),s(0xb2),s(0xa5)]});k=this[s(0xbf)][s(0xab)]({'pathParts':[l],'config':g});}else{const m=this[s(0xbf)][s(0xd1)]({'pathParts':[s(0xd0),s(0xe4),s(0xa6),'templates.js']});k=this[s(0xbf)][s(0xab)]({'pathParts':[m],'config':g});}g['engines'][s(0xa6)]===s(0xa8)||g['engines'][s(0xa6)]===s(0xb7)?(g['engines']['js']===s(0xb1)?this[s(0xbf)]['injectAtBeginningOfFile']({'filePath':k,'content':s(0xb9)+h[s(0xb0)]+s(0xcd)+j+s(0xcb)}):this[s(0xbf)]['injectAtBeginningOfFile']({'filePath':k,'content':'import\x20{\x20'+h[s(0xb0)]+s(0xcd)+j+'.'+g[s(0xc1)]['js']+s(0xcb)}),this[s(0xbf)][s(0xde)]({'filePath':k,'content':s(0xdc)+h[s(0xb0)]+s(0xac)})):this[s(0xbf)][s(0xde)]({'filePath':k,'content':s(0xbd)+j+'.'+g[s(0xc1)]['js']+s(0xcb)});});}catch(h){Log[r(0xe2)](h);}});
@@ -1 +0,0 @@
1
- const a77k=a77d;function a77c(){const n=['create','config','367100FhKWRH','298545SusMKs','config/process.env','(((.+)+)+)+$','process.env','constructor','apply','appName','isDocker','10821015azeUlO','production','fsi','template','dev','pathFromProject','development','15XLbhWY','35ySmNHE','getProjectConfig','config/settings.json','Generate\x20configuration\x20settings.','toString','6cJzutF','maka\x20{generate,\x20g}:{config}\x20<name>','1400576peHKqQ','786786FZvbhC','2511173oWJSga','856668JYkpad','resourceName','settings.json'];a77c=function(){return n;};return a77c();}(function(a,b){const h=a77d,c=a();while(!![]){try{const d=parseInt(h(0x1ee))/0x1*(-parseInt(h(0x203))/0x2)+-parseInt(h(0x1fd))/0x3*(parseInt(h(0x208))/0x4)+-parseInt(h(0x1fe))/0x5*(-parseInt(h(0x206))/0x6)+parseInt(h(0x207))/0x7+parseInt(h(0x205))/0x8+parseInt(h(0x1f6))/0x9+parseInt(h(0x20d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a77c,0xb0d4f));const a77b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a77d;if(c){const e=c[i(0x1f3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a77a=a77b(this,function(){const j=a77d;return a77a[j(0x202)]()['search'](j(0x1f0))[j(0x202)]()[j(0x1f2)](a77a)['search'](j(0x1f0));});function a77d(a,b){const c=a77c();return a77d=function(d,e){d=d-0x1ee;let f=c[d];return f;},a77d(a,b);}a77a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a77k(0x20b)]({'name':a77k(0x20c),'usage':a77k(0x204),'shortDesc':a77k(0x201),'validOpts':[a77k(0x1f5)],'examples':['maka\x20g:config\x20production']},function(a,b){const l=a77k,c=this['fsi'][l(0x1ff)]();this['fsi']['withValue'](c,async()=>{const m=l,d={'app':c[m(0x1f4)],'appFileCase':paramCase(c[m(0x1f4)]),'name':pascalCase(b[m(0x209)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b['resourceName']),'userName':'ubuntu','isDocker':b[m(0x1f5)]};let e=a[0x0];if(e===m(0x1fa))e=m(0x1fc);else e==='prod'&&(e=m(0x1f7));const f=this[m(0x1f8)][m(0x1fb)]({'pathParts':['config',e,m(0x20a)]});this[m(0x1f8)][m(0x1f9)]({'srcPath':m(0x200),'destPath':f,'context':d,'config':c});if(!b[m(0x1f5)]){const g=this['fsi'][m(0x1fb)]({'pathParts':[m(0x20c),e,m(0x1f1)]});this['fsi']['template']({'srcPath':m(0x1ef),'destPath':g,'context':d,'config':c});}});});
@@ -1 +0,0 @@
1
- const a78q=a78d;(function(a,b){const n=a78d,c=a();while(!![]){try{const d=-parseInt(n(0x1ad))/0x1+-parseInt(n(0x17d))/0x2*(parseInt(n(0x17f))/0x3)+-parseInt(n(0x1a6))/0x4*(parseInt(n(0x194))/0x5)+-parseInt(n(0x198))/0x6+parseInt(n(0x1a3))/0x7*(parseInt(n(0x195))/0x8)+-parseInt(n(0x173))/0x9*(-parseInt(n(0x175))/0xa)+parseInt(n(0x192))/0xb*(parseInt(n(0x18e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a78c,0x81174));const a78b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a78d;if(c){const e=c[o(0x197)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a78a=a78b(this,function(){const p=a78d;return a78a[p(0x19e)]()['search'](p(0x180))['toString']()[p(0x174)](a78a)[p(0x1a8)]('(((.+)+)+)+$');});function a78d(a,b){const c=a78c();return a78d=function(d,e){d=d-0x172;let f=c[d];return f;},a78d(a,b);}function a78c(){const t=['error','indexOf','options','MS\x20SQL','toString','list','engines','index.','type','6342mBdjzF','maka\x20g:dbc\x20todos\x20--type=sqlite','withValue','1336820WIUikG','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','search','pathFromApp','warn','injectAtEndOfFile','Invalid\x20type\x20','444821zmgsGD','(blank)','1800BCKpcW','constructor','32030hptjvJ','dbc','pgsql','dbc/register-dbc.js','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','template','conn.','resourceName','2YfntnP','maka\x20g:dbc\x20azure\x20--type=mssql','2501139vpmiOX','(((.+)+)+)+$','dir','dbc/conn.js','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','mssql','better-sqlite3','dbc/config.js','startup','server','maka\x20g:dbc\x20geoserver\x20--type=pgsql','import\x20\x27./register-','register-','-dbc.','checkNpmPackage','934056Alhyht','PostgreSQL','fsi','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','220eQBjTx','installNpmPackage','5eXyFwK','6352ySBVpD','imports','apply','4651374UxvTDD','dbAnswer'];a78c=function(){return t;};return a78c();}a78a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator['create']({'name':a78q(0x176),'usage':a78q(0x1a7),'shortDesc':a78q(0x183),'validOpts':['type',a78q(0x181)],'examples':[a78q(0x189),a78q(0x17e),a78q(0x1a4)]},async function(a,b){const r=a78q;try{const c=await this[r(0x190)]['getProjectConfig'](),d=this[r(0x190)][r(0x1a9)]({}),f=paramCase(b[r(0x17c)]);if(!b[r(0x1a2)]){const h={'type':r(0x19f),'name':r(0x199),'message':'DB\x20Driver','choices':[{'name':r(0x18f),'value':r(0x177)},{'name':r(0x19d),'value':'mssql'}]},{dbAnswer:i}=await Actions[r(0x19c)](h);i&&(b['type']=i);}const g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[r(0x17c)]),'type':b[r(0x1a2)],'engine':c[r(0x1a0)]['js'],'noRename':!![]};this[r(0x190)][r(0x1a5)](c,async()=>{const s=r;let j='js';c[s(0x1a0)]['js']==='tsx'&&(j='ts');const k=[s(0x184),'pgsql'];if(k[s(0x19b)](g[s(0x1a2)])<0x0){const m=g['type']?g['type']:s(0x172);Log[s(0x19a)](s(0x1ac)+m+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[s(0x1a2)]===s(0x177)&&!this[s(0x190)][s(0x18d)]('pg')&&(Log[s(0x1aa)](s(0x179)),await this[s(0x190)]['installNpmPackage']('pg',{'cwd':d}));b[s(0x1a2)]===s(0x184)&&!this[s(0x190)][s(0x18d)](s(0x184))&&(Log[s(0x1aa)](s(0x191)),await this[s(0x190)]['installNpmPackage'](s(0x184),{'cwd':d}));b[s(0x1a2)]==='sqlite'&&!this['fsi']['checkNpmPackage'](s(0x185))&&(Log[s(0x1aa)]('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this[s(0x190)][s(0x193)]('better-sqlite3',{'cwd':d}));this[s(0x190)][s(0x17a)]({'srcPath':s(0x186),'destPath':this[s(0x190)][s(0x1a9)]({'pathParts':['imports',s(0x187),s(0x188),s(0x176),b[s(0x181)],f,'config.'+j]}),'context':g,'config':c}),this['fsi'][s(0x17a)]({'srcPath':s(0x182),'destPath':this[s(0x190)][s(0x1a9)]({'pathParts':['imports',s(0x187),s(0x188),s(0x176),b[s(0x181)],f,s(0x17b)+j]}),'context':g,'config':c}),this[s(0x190)][s(0x17a)]({'srcPath':s(0x178),'destPath':this[s(0x190)]['pathFromApp']({'pathParts':[s(0x196),'startup',s(0x188),s(0x18b)+f+s(0x18c)+j]}),'context':g,'config':c});const l=this[s(0x190)][s(0x1a9)]({'pathParts':['imports','startup',s(0x188),s(0x1a1)+c[s(0x1a0)]['js']]});this[s(0x190)][s(0x1ab)]({'filePath':l,'content':s(0x18a)+f+'-dbc\x27;'});});}catch(j){Log[r(0x19a)](j);}});
@@ -1 +0,0 @@
1
- const a79h=a79d;(function(a,b){const f=a79d,c=a();while(!![]){try{const d=parseInt(f(0x123))/0x1*(-parseInt(f(0x12d))/0x2)+-parseInt(f(0x126))/0x3*(parseInt(f(0x138))/0x4)+parseInt(f(0x131))/0x5+parseInt(f(0x128))/0x6+parseInt(f(0x134))/0x7*(-parseInt(f(0x139))/0x8)+parseInt(f(0x124))/0x9*(parseInt(f(0x11a))/0xa)+-parseInt(f(0x136))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0xa43a7));function a79c(){const k=['app','build','search','docker/Dockerfile','51878EgDIeY','206109jaioky','appName','15531nOkswN','toString','7278222gljUkK','create','template','Dockerfile','app.tar.gz','10FejbPu','fsi','findProjectDirectory','join','6582485zfAMnl','withValue','Generate\x20an\x20updated\x20dockerfile','14QkgAaU','maka\x20{generate,\x20g}:dockerfile','21150250NfNkXn','error','60rUvLGl','2602024HHFJjS','460BnbqJr','isFile','getGlobalConfig','(((.+)+)+)+$','dockerfile'];a79c=function(){return k;};return a79c();}function a79d(a,b){const c=a79c();return a79d=function(d,e){d=d-0x11a;let f=c[d];return f;},a79d(a,b);}const a79b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a79a=a79b(this,function(){const g=a79d;return a79a[g(0x127)]()[g(0x121)](g(0x11d))[g(0x127)]()['constructor'](a79a)[g(0x121)](g(0x11d));});a79a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a79e from'path';Generator[a79h(0x129)]({'name':a79h(0x11e),'usage':a79h(0x135),'shortDesc':a79h(0x133),'validOpts':[],'noResource':!![],'examples':['maka\x20g:dockerfile']},async function(){const i=a79h;try{const a=await this['fsi']['getProjectConfig'](),b=await this[i(0x12e)][i(0x11c)](),c=this[i(0x12e)][i(0x12f)]();this[i(0x12e)][i(0x132)](a,async()=>{const j=i,d={'app':b[j(0x125)],'config':a,'appPath':a79e['join'](c,j(0x11f)),'bundlePath':a79e[j(0x130)](c,j(0x120),j(0x12c)),'useCert':this['fsi'][j(0x11b)](b['cert'])};this[j(0x12e)][j(0x12a)]({'srcPath':j(0x122),'destPath':a79e['join'](c,j(0x12b)),'framework':'service','context':d,'config':a});});}catch(d){Log[i(0x137)](d);}});
@@ -1 +0,0 @@
1
- const a80r=a80d;(function(a,b){const o=a80d,c=a();while(!![]){try{const d=-parseInt(o(0xc6))/0x1*(-parseInt(o(0xad))/0x2)+-parseInt(o(0xd2))/0x3+parseInt(o(0xda))/0x4+-parseInt(o(0xca))/0x5+-parseInt(o(0xb9))/0x6*(-parseInt(o(0xae))/0x7)+-parseInt(o(0xd9))/0x8*(parseInt(o(0xb0))/0x9)+parseInt(o(0xcb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0xa5eb5));const a80b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a80d;if(c){const e=c[p(0xc4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a80a=a80b(this,function(){const q=a80d;return a80a[q(0xc1)]()['search'](q(0xc2))['toString']()[q(0xbf)](a80a)[q(0xa7)]('(((.+)+)+)+$');});a80a();import a80e from'path';import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a80c(){const u=['search','@apollo/client','create','.css','pathFromApp','templates.js','854088dRgeBh','266EIUEUc','assign','318042lMCoJU','fsi','relative','error','react','hook','checkNpmPackage','true','test/test.js','109290uNVyWo','ssr','resourceName','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','import\x20\x27./','.app-tests.js','constructor','graphql','toString','(((.+)+)+)+$','installNpmPackage','apply','injectAtBeginningOfFile','2XgHORS','none','injectAtEndOfFile','tsx','1049360ZPUlHv','2757330KaUHcA','string','rewriteDestinationPathForEngine','/imports/ui/hooks','template/template.css','features','dir','2203533FzuzBZ','import\x20{\x20','withTranslations','engines','\x20};\x0a','template','className','128rwGSLF','1469620RqMcfF','cssCaseName','hook/hook.js','maka\x20g:hook\x20cool-hook','imports','.js','warn','\x27;\x0a','setTemplate','css','client','\x20}\x20from\x20\x27','startup','withValue','getProjectConfig','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>'];a80c=function(){return u;};return a80c();}function a80d(a,b){const c=a80c();return a80d=function(d,e){d=d-0x9f;let f=c[d];return f;},a80d(a,b);}import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a80r(0xa9)]({'name':a80r(0xb5),'aliases':['h'],'checkWhere':![],'usage':a80r(0xa6),'shortDesc':'Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','validOpts':[a80r(0xd1)],'examples':[a80r(0xdd)]},async function(a,b){const s=a80r;try{const c=this[s(0xb1)][s(0xb6)]('react');if(!c){Log[s(0xb3)](s(0xbc));throw new UsageError();}const d=this[s(0xb1)][s(0xab)](b),f=s(0xce),g=this[s(0xb1)][s(0xab)]({'pathParts':[f,b['dir'],paramCase(b[s(0xbb)]),paramCase(b[s(0xbb)])]}),h=await this['fsi'][s(0xa5)]();this[s(0xb1)][s(0xa4)](h,async()=>{const t=s;typeof h['template'][t(0xa0)]===t(0xcc)&&(h[t(0xd7)]['css']=h['template'][t(0xa0)]===t(0xb7)?!![]:![],this['fsi'][t(0x9f)](t(0xa0),h[t(0xd7)][t(0xa0)]));h[t(0xd5)][t(0xc0)]==='apollo'&&!this[t(0xb6)](t(0xa8))&&(Log[t(0xe0)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[t(0xb1)][t(0xc3)]('@apollo/client\x20isomorphic-fetch',{'cwd':d}));const i={'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[t(0xbb)]),'name':pascalCase(b['resourceName']),'graphql':h[t(0xd5)][t(0xc0)],'theme':h[t(0xd5)]['theme'],'features':h[t(0xd0)],'myPath':a80e[t(0xb2)](this[t(0xb1)]['pathFromProject']({}),g),'fileName':paramCase(b['resourceName']),'isComponent':![],'isLayout':![],'withTranslations':h['features'][t(0xd4)]};this[t(0xb1)][t(0xd7)]({'srcPath':t(0xdc),'destPath':g+t(0xdf),'context':i,'config':h,'framework':'react'});h[t(0xd7)]['css']&&(this[t(0xb1)][t(0xd7)]({'srcPath':t(0xcf),'destPath':g+t(0xaa),'context':Object[t(0xaf)]({},i,{'className':i[t(0xdb)]}),'config':h}),this[t(0xb1)][t(0xc5)]({'filePath':g+'.'+h['engines']['js'],'content':t(0xbd)+i['fileName']+'.'+h[t(0xd5)][t(0xa0)]+'\x27;'}));h[t(0xd5)]['test']!==t(0xc7)&&this[t(0xb1)]['template']({'srcPath':t(0xb8),'destPath':g+t(0xbe),'framework':t(0xb4),'context':i,'config':h});const j=b[t(0xd1)]?'/'+b[t(0xd1)]+'/':'/',k=''+f+j+i['fileName']+'/'+i['fileName'];let l;if(h[t(0xd5)][t(0xba)]===t(0xb7)){const m=this['fsi']['pathFromApp']({'pathParts':[t(0xde),t(0xa3),'lib',t(0xac)]});l=this[t(0xb1)][t(0xcd)]({'pathParts':[m],'config':h});}else{const n=this[t(0xb1)][t(0xab)]({'pathParts':[t(0xde),t(0xa3),t(0xa1),t(0xac)]});l=this[t(0xb1)][t(0xcd)]({'pathParts':[n],'config':h});}h[t(0xd5)][t(0xa1)]===t(0xb4)?(h[t(0xd5)]['js']===t(0xc9)?this[t(0xb1)][t(0xc5)]({'filePath':l,'content':t(0xd3)+i[t(0xd8)]+t(0xa2)+k+t(0xe1)}):this['fsi'][t(0xc5)]({'filePath':l,'content':'import\x20{\x20'+i['className']+'\x20}\x20from\x20\x27'+k+'.'+h[t(0xd5)]['js']+t(0xe1)}),this[t(0xb1)][t(0xc8)]({'filePath':l,'content':'export\x20{\x20'+i[t(0xd8)]+t(0xd6)})):this[t(0xb1)][t(0xc8)]({'filePath':l,'content':'import\x20\x27'+k+'.'+h['engines']['js']+'\x27;\x0a'});});}catch(i){Log[s(0xb3)](i);}});
@@ -1 +0,0 @@
1
- function a81c(){const n=['create','(blank)','type','1403507LEiXRJ','maka\x20g:k\x20city-map\x20--type=leaflet-map','11lznYQH','apply','leaflet-map','kit','3001450EOAVqg','notice','constructor','indexOf','login','toString','NIE','3298vPUosZ','5SUeaNE','engines','4AHUgfi','2469030jJryIP','fsi','resourceName','6745818ZNGSfy','search','Invalid\x20type\x20','error','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','5152RnUZKW','812836kBPCph','13383YRFjaN','getProjectConfig','map'];a81c=function(){return n;};return a81c();}const a81k=a81d;(function(a,b){const h=a81d,c=a();while(!![]){try{const d=-parseInt(h(0x107))/0x1*(parseInt(h(0x10a))/0x2)+parseInt(h(0xea))/0x3+parseInt(h(0xf3))/0x4*(parseInt(h(0x108))/0x5)+-parseInt(h(0xed))/0x6+parseInt(h(0xfa))/0x7+parseInt(h(0xf2))/0x8*(parseInt(h(0xf4))/0x9)+-parseInt(h(0x100))/0xa*(parseInt(h(0xfc))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0xb7e98));const a81b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a81d;if(c){const e=c[i(0xfd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a81a=a81b(this,function(){const j=a81d;return a81a[j(0x105)]()[j(0xee)]('(((.+)+)+)+$')['toString']()[j(0x102)](a81a)[j(0xee)]('(((.+)+)+)+$');});function a81d(a,b){const c=a81c();return a81d=function(d,e){d=d-0xea;let f=c[d];return f;},a81d(a,b);}a81a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a81k(0xf7)]({'name':a81k(0xff),'aliases':['k'],'usage':a81k(0xf1),'shortDesc':'(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','validOpts':[a81k(0xf9)],'examples':['maka\x20g:kit\x20--type=map',a81k(0xfb)]},async function(a,b){const l=a81k;try{const c=this[l(0xeb)][l(0xf5)]();this[l(0xeb)]['withValue'](c,async()=>{const m=l,d={'name':pascalCase(b[m(0xec)]),'fileName':paramCase(b[m(0xec)]),'camelCase':camelCase(b['resourceName']),'type':b[m(0xf9)],'engine':c[m(0x109)]['js'],'noRename':!![]},f=[m(0xfe),m(0x104)];if(f[m(0x103)](d['type'])<0x0){const g=d[m(0xf9)]?d[m(0xf9)]:m(0xf8);Log[m(0xf0)](m(0xef)+g+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[m(0xf9)]===m(0xf6)&&Log[m(0x101)](m(0x106)),b['type']===m(0x104)&&Log[m(0x101)](m(0x106));});}catch(d){Log[l(0xf0)](d);}});
@@ -1 +0,0 @@
1
- const a82q=a82d;function a82c(){const t=['string','Scaffolding\x20for\x20a\x20React\x20Layout.','className','startup','search','checkNpmPackage','graphql','dir','2398495tnUlYY','theme','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','css','imports','injectAtEndOfFile','relative','export\x20{\x20','withTranslations','features','maka\x20g:layout\x20mobile/iPhone8','templates.js','177163eamOYD','6CWGLOt','ssr','import\x20\x27','resourceName','/imports/ui/layouts','react','rewriteDestinationPathForEngine','assign','template/template.css','132BuySYZ','maka\x20g:l\x20web/safari','pathFromApp','4360sjckDT','fsi','includes','getProjectConfig','28sexlWR','test/test.js','tsx','component/component.js','create','client','pathFromProject','injectAtBeginningOfFile','\x20}\x20from\x20\x27','7424ciqori','setTemplate','300091vphiBD','toString','constructor','\x27;\x0a','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','engines','.js','test','withHooks','true','fileName','1889220sMUBPJ','warn','installNpmPackage','split','36XuictJ','.app-tests.js','(((.+)+)+)+$','516UTBeaF','import\x20{\x20','2834016fzYzxB','template'];a82c=function(){return t;};return a82c();}(function(a,b){const o=a82d,c=a();while(!![]){try{const d=parseInt(o(0x1cf))/0x1*(parseInt(o(0x1cb))/0x2)+-parseInt(o(0x1c8))/0x3*(parseInt(o(0x1d8))/0x4)+parseInt(o(0x1f8))/0x5+parseInt(o(0x1bf))/0x6*(parseInt(o(0x1be))/0x7)+parseInt(o(0x1ee))/0x8+parseInt(o(0x1e9))/0x9*(parseInt(o(0x1e5))/0xa)+-parseInt(o(0x1da))/0xb*(parseInt(o(0x1ec))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a82c,0x66d79));const a82b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a82a=a82b(this,function(){const p=a82d;return a82a[p(0x1db)]()['search'](p(0x1eb))[p(0x1db)]()[p(0x1dc)](a82a)[p(0x1f4)](p(0x1eb));});a82a();import a82e from'path';import{Generator}from'../generator.js';function a82d(a,b){const c=a82c();return a82d=function(d,e){d=d-0x1be;let f=c[d];return f;},a82d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a82q(0x1d3)]({'name':'layout','aliases':aliases,'usage':a82q(0x1de),'shortDesc':a82q(0x1f1),'validOpts':[],'examples':[a82q(0x202),a82q(0x1c9)]},function(a,b){const r=a82q,c=r(0x1c3),d=this[r(0x1cc)]['findAppDirectory'](),e=this[r(0x1cc)][r(0x1ca)]({'pathParts':[c,b[r(0x1f7)],paramCase(b[r(0x1c2)]),paramCase(b['resourceName'])]}),f=this[r(0x1cc)][r(0x1ce)]();this[r(0x1cc)]['withValue'](f,()=>{const s=r;typeof f['template'][s(0x1e1)]===s(0x1f0)&&(f['template']['test']=f[s(0x1ef)][s(0x1e1)]===s(0x1e3)?!![]:![],this[s(0x1cc)][s(0x1d9)](s(0x1e1),f[s(0x1ef)][s(0x1e1)]));typeof f['template'][s(0x1fb)]===s(0x1f0)&&(f[s(0x1ef)][s(0x1fb)]=f['template'][s(0x1fb)]===s(0x1e3)?!![]:![],this[s(0x1cc)][s(0x1d9)](s(0x1fb),f['template'][s(0x1fb)]));typeof f['template']['js']==='string'&&(f['template']['js']=f[s(0x1ef)]['js']===s(0x1e3)?!![]:![],this[s(0x1cc)][s(0x1d9)]('js',f['template']['js']));!f[s(0x201)]&&(f[s(0x201)]={});const g=b['_']?b['_'][0x0][s(0x1e8)](':')[0x1]:![],h=b['_']&&aliases[s(0x1cd)](g);h&&!this['checkNpmPackage']('ramda')&&(Log[s(0x1e6)](s(0x1fa)),this[s(0x1cc)][s(0x1e7)]('ramda',{'cwd':d}));if(h&&!this[s(0x1f5)](s(0x1c4))){Log[s(0x1e6)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const i={'name':pascalCase(b['resourceName']),'myPath':a82e[s(0x1fe)](this[s(0x1cc)][s(0x1d5)]({}),e),'cssCaseName':paramCase(b[s(0x1c2)]),'className':pascalCase(b[s(0x1c2)]),'camelCaseName':camelCase(b[s(0x1c2)]),'fileName':paramCase(b[s(0x1c2)]),'graphql':f[s(0x1df)][s(0x1f6)],'features':f['features'],'client':f[s(0x1df)][s(0x1d4)],'api':f[s(0x1df)]['api'],'ssr':f[s(0x1df)][s(0x1c0)],'test':f[s(0x1df)]['test'],'theme':f[s(0x1df)][s(0x1f9)],'isComponent':![],'isLayout':!![],'withTranslations':f[s(0x201)][s(0x200)]};f[s(0x201)]?.[s(0x1e2)]||b['withHook']?this['fsi'][s(0x1ef)]({'srcPath':'hook/hook.js','destPath':e+s(0x1e0),'framework':s(0x1c4),'context':i,'config':f}):this[s(0x1cc)][s(0x1ef)]({'srcPath':s(0x1d2),'destPath':e+s(0x1e0),'framework':s(0x1c4),'context':i,'config':f});f[s(0x1df)][s(0x1e1)]!=='none'&&this['fsi'][s(0x1ef)]({'srcPath':s(0x1d0),'destPath':e+s(0x1ea),'framework':'react','context':i,'config':f});f[s(0x1ef)][s(0x1fb)]&&(this[s(0x1cc)][s(0x1ef)]({'srcPath':s(0x1c7),'destPath':e+'.css','context':Object[s(0x1c6)]({},i,{'className':paramCase(b[s(0x1c2)])}),'config':f}),this[s(0x1cc)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[s(0x1df)]['js'],'content':'import\x20\x27./'+i['fileName']+'.'+f[s(0x1df)][s(0x1fb)]+'\x27;'}));const j=b[s(0x1f7)]?'/'+b[s(0x1f7)]+'/':'/',k=''+c+j+i[s(0x1e4)]+'/'+i[s(0x1e4)];let l;if(f[s(0x1df)]['ssr']==='true'){const m=this['fsi'][s(0x1ca)]({'pathParts':[s(0x1fc),s(0x1f3),'lib',s(0x203)]});l=this['fsi'][s(0x1c5)]({'pathParts':[m],'config':f});}else{const n=this[s(0x1cc)]['pathFromApp']({'pathParts':[s(0x1fc),s(0x1f3),s(0x1d4),'templates.js']});l=this['fsi'][s(0x1c5)]({'pathParts':[n],'config':f});}f[s(0x1df)]['client']===s(0x1c4)?(f[s(0x1df)]['js']===s(0x1d1)?this[s(0x1cc)][s(0x1d6)]({'filePath':l,'content':s(0x1ed)+i[s(0x1f2)]+s(0x1d7)+k+s(0x1dd)}):this[s(0x1cc)][s(0x1d6)]({'filePath':l,'content':s(0x1ed)+i[s(0x1f2)]+s(0x1d7)+k+'.'+f[s(0x1df)]['js']+s(0x1dd)}),this[s(0x1cc)]['injectAtEndOfFile']({'filePath':l,'content':s(0x1ff)+i[s(0x1f2)]+'\x20};\x0a'})):this[s(0x1cc)][s(0x1fd)]({'filePath':l,'content':s(0x1c1)+k+'.'+f[s(0x1df)]['js']+s(0x1dd)});});});
@@ -1 +0,0 @@
1
- function a83d(a,b){const c=a83c();return a83d=function(d,e){d=d-0x1de;let f=c[d];return f;},a83d(a,b);}const a83h=a83d;(function(a,b){const f=a83d,c=a();while(!![]){try{const d=-parseInt(f(0x1e5))/0x1*(parseInt(f(0x1e4))/0x2)+-parseInt(f(0x1e6))/0x3+-parseInt(f(0x1ec))/0x4*(-parseInt(f(0x1df))/0x5)+-parseInt(f(0x1ef))/0x6+parseInt(f(0x1eb))/0x7+parseInt(f(0x1e2))/0x8+parseInt(f(0x1f0))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0x9fc9c));const a83b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a83a=a83b(this,function(){const g=a83d;return a83a[g(0x1e8)]()[g(0x1e1)](g(0x1e0))[g(0x1e8)]()[g(0x1ea)](a83a)[g(0x1e1)](g(0x1e0));});a83a();function a83c(){const i=['\x0a\x20\x20For\x20more\x20information\x20visit:\x0a\x20\x20\x20\x20https://www.maka-cli.com\x0a\x20\x20\x20\x20https://medium.com/@maka-io\x0a\x20\x20\x20\x20https://gitter.im/meteor/meteor\x20(@maka-io)\x0a\x20\x20','toString','maka\x20g:hook\x20cool-hook','constructor','7787213KpQErb','28Hmwqrs','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','Maka!','382632eBRotp','7039188BBUzbU','maka\x20generate:api\x20Trucks','153635lcLkcl','(((.+)+)+)+$','search','3046664SXRhlK','maka','116eogqqm','16461mDtKqS','2452533KISNue'];a83c=function(){return i;};return a83c();}import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a83h(0x1e3),'shortDesc':a83h(0x1ee),'validOpts':[],'description':a83h(0x1e7),'usage':a83h(0x1ed),'examples':[a83h(0x1de),a83h(0x1e9)]},function(){return null;});export default MakaGen;
@@ -1 +0,0 @@
1
- const a84n=a84d;(function(a,b){const k=a84d,c=a();while(!![]){try{const d=-parseInt(k(0x175))/0x1*(-parseInt(k(0x18c))/0x2)+-parseInt(k(0x191))/0x3*(parseInt(k(0x171))/0x4)+-parseInt(k(0x17c))/0x5+-parseInt(k(0x18f))/0x6*(-parseInt(k(0x18a))/0x7)+-parseInt(k(0x173))/0x8+parseInt(k(0x180))/0x9*(parseInt(k(0x188))/0xa)+-parseInt(k(0x181))/0xb*(parseInt(k(0x17d))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a84c,0x9ec8f));const a84b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a84d;if(c){const e=c[l(0x16a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a84a=a84b(this,function(){const m=a84d;return a84a[m(0x18d)]()['search'](m(0x170))[m(0x18d)]()[m(0x192)](a84a)[m(0x177)](m(0x170));});function a84d(a,b){const c=a84c();return a84d=function(d,e){d=d-0x169;let f=c[d];return f;},a84d(a,b);}a84a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a84c(){const q=['search','checkMeteorPackage','injectAtEndOfFile','appPathPrefix','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','4313550rzjJtB','1008gLFyZc','method/method.js','-rpc-method.','18goiKEC','34012svogKp','warn','pathFromApp','fsi','check','installMeteorPackage','startup','2513910peMoTW','imports','134883lEyCgQ','dir','1759366kypFgm','toString','engines','348SWScgq','index.','12927BaUsOz','constructor','import\x20\x27./methods','maka\x20g:method\x20todos','maka\x20{generate,\x20g}:{method,\x20m}\x20name','create','error','apply','check\x20ddp-rate-limiter\x20mdg:validated-method','mdg:validated-method','resourceName','methods','method','(((.+)+)+)+$','188RjYAIT','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','4197784rQweAs','ddp-rate-limiter','1EahXsG','template'];a84c=function(){return q;};return a84c();}Generator[a84n(0x196)]({'name':a84n(0x16f),'aliases':['m'],'usage':a84n(0x195),'checkWhere':!![],'shortDesc':a84n(0x17b),'validOpts':[a84n(0x18b)],'examples':[a84n(0x194)]},function(a,b){const o=a84n;try{const c=this[o(0x184)]['getProjectConfig']();this[o(0x184)]['withValue'](c,async()=>{const p=o,d=paramCase(b[p(0x16d)]),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b[p(0x16d)]),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c[p(0x18e)]['js']==='tsx'&&(g='ts');const h=this[p(0x184)][p(0x183)]({});(!this[p(0x184)]['checkMeteorPackage'](p(0x185))||!this['fsi'][p(0x178)](p(0x174))||!this[p(0x184)][p(0x178)](p(0x16c)))&&(Log[p(0x182)](p(0x172)),this[p(0x184)][p(0x186)](p(0x16b),{'cwd':h}));this[p(0x184)][p(0x176)]({'srcPath':p(0x17e),'destPath':this[p(0x184)][p(0x183)]({'pathParts':[p(0x189),p(0x187),b[p(0x17a)],p(0x16e),b[p(0x18b)],d+p(0x17f)+g]}),'context':f,'config':c});const i=b[p(0x18b)]?'/'+b[p(0x18b)]+'/':'/',j=this[p(0x184)][p(0x183)]({'pathParts':[p(0x189),'startup',b[p(0x17a)],p(0x190)+c[p(0x18e)]['js']]});this['fsi'][p(0x179)]({'filePath':j,'content':p(0x193)+i+d+'-rpc-method\x27;'});});}catch(d){Log[o(0x169)](d);}});
@@ -1 +0,0 @@
1
- const a85o=a85d;(function(a,b){const l=a85d,c=a();while(!![]){try{const d=-parseInt(l(0x1fb))/0x1*(-parseInt(l(0x1fc))/0x2)+-parseInt(l(0x1f2))/0x3*(-parseInt(l(0x1f6))/0x4)+parseInt(l(0x1ef))/0x5*(-parseInt(l(0x1e7))/0x6)+parseInt(l(0x1f5))/0x7*(parseInt(l(0x1e6))/0x8)+parseInt(l(0x1e9))/0x9*(parseInt(l(0x1ee))/0xa)+parseInt(l(0x1d8))/0xb*(parseInt(l(0x1d1))/0xc)+-parseInt(l(0x1e5))/0xd*(parseInt(l(0x1d0))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a85c,0xe8b9a));const a85b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a85d;if(c){const e=c[m(0x1e8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a85a=a85b(this,function(){const n=a85d;return a85a[n(0x1d5)]()[n(0x200)](n(0x1f9))[n(0x1d5)]()['constructor'](a85a)[n(0x200)](n(0x1f9));});function a85d(a,b){const c=a85c();return a85d=function(d,e){d=d-0x1d0;let f=c[d];return f;},a85d(a,b);}a85a();import a85e from'path';function a85c(){const s=['686WNwmfF','1860kzKRBD','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','package/package.js','tests/server','toString','relative','tests/client','16148hBftvH','fsi','server','.js','noRename','package.js','template/template.js','engines','create','dir','store','resourceName','maka\x20g:package\x20todos:package','843453SKZVIo','296VEHGbp','11274snKDqY','apply','200295TOYmpN','theme','hasOwnProperty','packages','features','70tEYESb','575mEScWn','pathFromAppWithNoReWrite','pathFromApp','3VSvjDg','forEach','/package.js','307601fBAlwl','4104964AusWym','client','/client/','(((.+)+)+)+$','graphql','187577ZJDHRT','14TPSMFh','withValue','package','layout','search','template'];a85c=function(){return s;};return a85c();}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a85o(0x1e0)]({'name':a85o(0x1fe),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':a85o(0x1d2),'validOpts':[a85o(0x1e1)],'examples':[a85o(0x1e4)]},async function(a,b){const p=a85o,c=paramCase(b[p(0x1e3)]),d=this['fsi'][p(0x1f1)]({'pathParts':[p(0x1ec),b[p(0x1e1)],c]}),e=this['fsi'][p(0x1f0)]({'pathParts':[p(0x1ec),b[p(0x1e1)],c,p(0x1dd)]}),f=this[p(0x1d9)]['getProjectConfig']();this[p(0x1d9)][p(0x1fd)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x1e3)]),'myPath':a85e[q(0x1d6)](this[q(0x1d9)]['pathFromProject']({}),d),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[q(0x1e3)]),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f[q(0x1df)][q(0x1f7)],'graphql':f[q(0x1df)][q(0x1fa)],'ssr':f[q(0x1df)]['ssr'],'isComponent':b[q(0x1eb)]('component'),'isLayout':b[q(0x1eb)](q(0x1ff)),'isStore':b['hasOwnProperty'](q(0x1e2)),'features':f[q(0x1ed)],'noRename':!![],'theme':f['engines'][q(0x1ea)]};this[q(0x1d9)][q(0x201)]({'srcPath':q(0x1d3),'destPath':e,'context':g,'config':f}),g[q(0x1dc)]=![];const h=d+q(0x1f8)+c+q(0x1db);this[q(0x1d9)][q(0x201)]({'srcPath':q(0x1de),'destPath':h,'context':g,'config':f});const i=['lib',q(0x1da),q(0x1d7),q(0x1d4)];i[q(0x1f3)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0x1db);this[r(0x1d9)]['template']({'srcPath':'package/'+j+r(0x1f4),'destPath':k,'context':g,'config':f});});});});
@@ -1 +0,0 @@
1
- const a86p=a86d;function a86d(a,b){const c=a86c();return a86d=function(d,e){d=d-0x17b;let f=c[d];return f;},a86d(a,b);}(function(a,b){const m=a86d,c=a();while(!![]){try{const d=parseInt(m(0x19a))/0x1*(-parseInt(m(0x194))/0x2)+parseInt(m(0x18b))/0x3+-parseInt(m(0x1b0))/0x4+parseInt(m(0x1bd))/0x5*(parseInt(m(0x19c))/0x6)+-parseInt(m(0x1b3))/0x7+parseInt(m(0x1b4))/0x8*(parseInt(m(0x1a2))/0x9)+-parseInt(m(0x19e))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a86c,0xd8f6d));const a86b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a86d;if(c){const e=c[n(0x1ac)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a86a=a86b(this,function(){const o=a86d;return a86a[o(0x199)]()[o(0x193)](o(0x182))[o(0x199)]()[o(0x187)](a86a)[o(0x193)](o(0x182));});a86a();import a86e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator['create']({'name':a86p(0x1ab),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':a86p(0x188),'validOpts':['dir',a86p(0x1af)],'examples':[a86p(0x17e)]},function(a,b){const q=a86p,c=q(0x1bb),d=this['fsi'][q(0x183)](b),e=this[q(0x1c0)][q(0x183)]({'pathParts':[c,b[q(0x1a9)],paramCase(b[q(0x1a8)]),paramCase(b[q(0x1a8)])]}),f=this['fsi']['getProjectConfig']();this[q(0x1c0)]['withValue'](f,()=>{const r=q;typeof f[r(0x191)][r(0x1c3)]===r(0x18f)&&(f[r(0x191)][r(0x1c3)]=f['template'][r(0x1c3)]===r(0x192)?!![]:![],this[r(0x1c0)]['setTemplate'](r(0x1c3),f['template'][r(0x1c3)]));typeof f['template']['test']===r(0x18f)&&(f[r(0x191)][r(0x195)]=f[r(0x191)][r(0x195)]===r(0x192)?!![]:![],this[r(0x1c0)][r(0x1aa)](r(0x195),f[r(0x191)][r(0x195)]));typeof f['template'][r(0x18e)]==='string'&&(f[r(0x191)][r(0x18e)]=f[r(0x191)]['css']===r(0x192)?!![]:![],this[r(0x1c0)][r(0x1aa)](r(0x18e),f[r(0x191)][r(0x18e)]));typeof f[r(0x191)]['js']===r(0x18f)&&(f[r(0x191)]['js']=f[r(0x191)]['js']==='true'?!![]:![],this[r(0x1c0)][r(0x1aa)]('js',f[r(0x191)]['js']));!f[r(0x17c)]&&(f['features']={});!b[r(0x1b1)]&&!this['fsi'][r(0x1a0)]('ramda')&&(Log[r(0x1bc)](r(0x181)),this[r(0x1c0)][r(0x1ae)](r(0x184),{'cwd':d}));const g={'name':pascalCase(b[r(0x1a8)]),'myPath':a86e[r(0x17f)](this['fsi'][r(0x1ba)]({}),e),'cssCaseName':paramCase(b[r(0x1a8)]),'className':pascalCase(b[r(0x1a8)]),'camelCaseName':camelCase(b[r(0x1a8)]),'fileName':paramCase(b[r(0x1a8)]),'graphql':f[r(0x196)][r(0x1a1)],'features':f[r(0x17c)],'client':f[r(0x196)]['client'],'api':f[r(0x196)][r(0x189)],'ssr':f[r(0x196)][r(0x18a)],'isStore':b['hasOwnProperty'](r(0x1ad)),'isComponent':b['hasOwnProperty']('component'),'isLayout':b[r(0x19f)](r(0x1a3)),'withTranslations':f['features']['withTranslations'],'test':f['engines']['test'],'theme':f[r(0x196)][r(0x190)]};f['template']['html']&&this[r(0x1c0)][r(0x191)]({'srcPath':r(0x19d),'destPath':e+r(0x1b7),'context':g,'config':f});f['features']?.[r(0x17b)]||b[r(0x1af)]?this[r(0x1c0)]['template']({'srcPath':'hook/hook.js','destPath':e+'.js','framework':r(0x1a5),'context':g,'config':f}):this[r(0x1c0)]['template']({'srcPath':r(0x1a4),'destPath':e+r(0x1c1),'framework':r(0x1a5),'context':g,'config':f});f[r(0x196)][r(0x195)]!==r(0x1a6)&&this[r(0x1c0)][r(0x191)]({'srcPath':'test/test.js','destPath':e+r(0x1b6),'framework':r(0x1a5),'context':g,'config':f});f['template'][r(0x18e)]&&this[r(0x1c0)][r(0x191)]({'srcPath':'template/template.css','destPath':e+r(0x18c),'context':Object[r(0x186)]({},g,{'className':paramCase(b[r(0x1a8)])}),'config':f});f['engines'][r(0x180)]!==r(0x1a5)&&f[r(0x196)][r(0x180)]!==r(0x1b5)?(f[r(0x191)][r(0x18e)]&&this[r(0x1c0)][r(0x185)]({'filePath':e+'.'+f[r(0x196)]['js'],'content':r(0x1c4)+g['fileName']+'.'+f[r(0x196)][r(0x1c3)]+r(0x18d)+r(0x1c4)+g[r(0x198)]+'.'+f[r(0x196)][r(0x18e)]+'\x27;'}),!f['template']['css']&&this[r(0x1c0)][r(0x185)]({'filePath':e+'.'+f[r(0x196)]['js'],'content':r(0x1c4)+g[r(0x198)]+'.'+f['engines']['html']+'\x27;'})):f['template']['css']&&this[r(0x1c0)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x196)]['js'],'content':r(0x1c4)+g[r(0x198)]+'.'+f[r(0x196)][r(0x18e)]+'\x27;'});const h=b[r(0x1a9)]?'/'+b['dir']+'/':'/',i=''+c+h+g[r(0x198)]+'/'+g['fileName'];let j;if(f[r(0x196)][r(0x18a)]===r(0x192)){const k=this[r(0x1c0)]['pathFromApp']({'pathParts':['imports',r(0x1c2),'lib','templates.js']});j=this[r(0x1c0)][r(0x1be)]({'pathParts':[k],'config':f});}else{const l=this['fsi'][r(0x183)]({'pathParts':[r(0x197),r(0x1c2),'client',r(0x1b9)]});j=this[r(0x1c0)][r(0x1be)]({'pathParts':[l],'config':f});}f['engines'][r(0x180)]===r(0x1a5)?(f[r(0x196)]['js']==='tsx'?this[r(0x1c0)][r(0x185)]({'filePath':j,'content':'import\x20{\x20'+g['className']+r(0x19b)+i+'\x27;\x0a'}):this[r(0x1c0)][r(0x185)]({'filePath':j,'content':r(0x1b2)+g[r(0x1bf)]+r(0x19b)+i+'.'+f['engines']['js']+'\x27;\x0a'}),this[r(0x1c0)]['injectAtEndOfFile']({'filePath':j,'content':r(0x1b8)+g[r(0x1bf)]+r(0x1a7)})):this[r(0x1c0)]['injectAtEndOfFile']({'filePath':j,'content':r(0x17d)+i+'.'+f['engines']['js']+r(0x18d)});});});function a86c(){const s=['.css','\x27;\x0a','css','string','theme','template','true','search','20zSkWcJ','test','engines','imports','fileName','toString','20909bADfzs','\x20}\x20from\x20\x27','6PxlPEb','template/template.html','14319270RsnUrp','hasOwnProperty','checkNpmPackage','graphql','18YwimQp','layout','component/component.js','react','none','\x20};\x0a','resourceName','dir','setTemplate','page','apply','store','installNpmPackage','withHook','1803892hdoJyA','root','import\x20{\x20','5171327LzIQNL','5155216mOssCR','vanilla','.app-tests.js','.html','export\x20{\x20','templates.js','pathFromProject','/imports/ui/pages','warn','5958130bIcQvt','rewriteDestinationPathForEngine','className','fsi','.js','startup','html','import\x20\x27./','withHooks','features','import\x20\x27','maka\x20g:page\x20todos/todos-item','relative','client','Updating\x20npm\x20packages\x20...','(((.+)+)+)+$','pathFromApp','ramda','injectAtBeginningOfFile','assign','constructor','Generate\x20a\x20page.','api','ssr','3717018qijYfT'];a86c=function(){return s;};return a86c();}
@@ -1 +0,0 @@
1
- const a87k=a87d;(function(a,b){const h=a87d,c=a();while(!![]){try{const d=parseInt(h(0x1e1))/0x1*(parseInt(h(0x1e8))/0x2)+parseInt(h(0x1df))/0x3*(-parseInt(h(0x1d9))/0x4)+parseInt(h(0x1d7))/0x5*(-parseInt(h(0x1e9))/0x6)+parseInt(h(0x1da))/0x7*(-parseInt(h(0x1f0))/0x8)+-parseInt(h(0x1e5))/0x9+-parseInt(h(0x1de))/0xa+parseInt(h(0x1ec))/0xb*(parseInt(h(0x1d5))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a87c,0xab821));function a87c(){const n=['engines','resourceName','6811893hBCFhd','create','templateContent','394546pOGEyq','155070CyvQVZ','(((.+)+)+)+$','search','1716YStLhI','fsi','publish','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','16LBbZYG','toString','238464ZnFeeG','rewriteDestinationPathForEngine','115uBdQsR','maka\x20g:publish\x20todos','1004JXyMdG','4296054DOHaxi','tsx','publish/publish.','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','8919640IDFjQY','3678epMumR','apply','7OAbwYy','constructor'];a87c=function(){return n;};return a87c();}function a87d(a,b){const c=a87c();return a87d=function(d,e){d=d-0x1d4;let f=c[d];return f;},a87d(a,b);}const a87b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a87d;if(c){const e=c[i(0x1e0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a87a=a87b(this,function(){const j=a87d;return a87a[j(0x1d4)]()[j(0x1eb)](j(0x1ea))[j(0x1d4)]()[j(0x1e2)](a87a)[j(0x1eb)]('(((.+)+)+)+$');});a87a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a87k(0x1e6)]({'name':a87k(0x1ee),'aliases':['p'],'usage':a87k(0x1dd),'shortDesc':a87k(0x1ef),'validOpts':[],'examples':[a87k(0x1d8)]},async function(a,b){const l=a87k,c=this[l(0x1ed)]['getProjectConfig']();this[l(0x1ed)]['withValue'](c,async()=>{const m=l,d={'name':b['resourceName'],'collection':paramCase(b[m(0x1e4)]),'noRename':!![]};let e='js';c[m(0x1e3)]['js']===m(0x1db)&&(e='ts');const f=this[m(0x1ed)][m(0x1d6)]({'pathParts':['server/publish.'+c[m(0x1e3)]['js']]}),g=this['fsi'][m(0x1e7)]({'srcPath':m(0x1dc)+e,'context':d,'config':c});this['fsi']['injectAtEndOfFile']({'filePath':f,'content':'\x0a'+g});});});
@@ -1 +0,0 @@
1
- const a88y=a88d;(function(a,b){const v=a88d,c=a();while(!![]){try{const d=-parseInt(v(0x1a7))/0x1+parseInt(v(0x186))/0x2*(-parseInt(v(0x1c3))/0x3)+-parseInt(v(0x1b1))/0x4+parseInt(v(0x19c))/0x5+-parseInt(v(0x19f))/0x6*(-parseInt(v(0x1c7))/0x7)+-parseInt(v(0x1a9))/0x8*(parseInt(v(0x1a4))/0x9)+parseInt(v(0x185))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a88c,0x7340f));const a88b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a88d;if(c){const e=c[w(0x1b3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a88a=a88b(this,function(){const x=a88d;return a88a[x(0x1a1)]()[x(0x1b2)]('(((.+)+)+)+$')[x(0x1a1)]()[x(0x1ab)](a88a)[x(0x1b2)](x(0x1a2));});a88a();import a88e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a88c(){const H=['config','url','injectAtEndOfFile','error','getProjectConfig','page','routes.js','length','maka\x20g:route\x20todosEdit\x20todos/:id/edit','rewriteDestinationPathForEngine','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','join','filter','imports','1207495AJkpQo','invoke','templateName','36xkuLub','route/route.js','toString','(((.+)+)+)+$','</Router>','64431sHoYyR','injectAfterLineNumber','const\x20publicRoutes\x20=\x20(<>','36699BePIVj','<Router','144YJwljO','pathFromApp','constructor','withValue','maka\x20g:route\x20lists/listIndex\x20lists','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','private','/imports/ui/pages','866252eNrfZG','search','apply','route','withTranslations','toLowerCase','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','maka\x20g:route\x20todosIndex\x20todos','templateContent','create','fsi','MasterLayout','\x0a\x09\x09','includes','vanilla','engines','startup','true','18kbndox','newForm','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>\x20[url]\x20[--private]','client','780591OhbdSY','lib','injectIntoFile','withHook','const\x20privateRoutes\x20=\x20(<>','layout','<Route','5022320fxWFWk','186202lQdWbQ','only','root','readFileLines','cwd','react','map','features'];a88c=function(){return H;};return a88c();}import a88f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];function a88d(a,b){const c=a88c();return a88d=function(d,e){d=d-0x185;let f=c[d];return f;},a88d(a,b);}Generator[a88y(0x1ba)]({'name':a88y(0x1b4),'aliases':aliases,'validOpts':[a88y(0x1af),'layout',a88y(0x187),a88y(0x18a),a88y(0x18e),a88y(0x188),a88y(0x1ca),a88y(0x18f)],'usage':a88y(0x1c5),'shortDesc':'Scaffolding\x20for\x20a\x20Route.','examples':[a88y(0x1b8),a88y(0x196),a88y(0x198),a88y(0x1ad)]},function(a,b){const z=a88y;try{const c=this[z(0x1bb)][z(0x192)]();this[z(0x1bb)][z(0x1ac)](c,async()=>{const A=z,d=b[A(0x1af)]??![];let f=paramCase(a[0x0]),g='/'+f;a[A(0x195)]>0x1&&(g='/'+a[A(0x19a)](function(l){return l!=='/';})[A(0x199)]('/')[A(0x1b6)]());f=camelCase(f);b[A(0x1cc)]&&(b[A(0x1cc)]=camelCase(b[A(0x1cc)]));const h=a88e[A(0x199)](A(0x1b0),f,f),i={'name':f,'fileCase':paramCase(f),'camelCaseName':camelCase(f),'url':g,'layout':b[A(0x1cc)]||A(0x1bc),'templatePath':h,'templateName':pascalCase(f),'client':c[A(0x1c0)][A(0x1c6)],'newForm':![],'withTranslations':c[A(0x18d)][A(0x1b5)]};d&&(i[A(0x1cc)]='PrivateLayout');if(!b['root']){const l=a88f['findGenerator'](A(0x193));l&&await l[A(0x19d)](a,b);}let j,k;if(c[A(0x1c0)]['client']===A(0x18b)){if(c[A(0x1c0)]['ssr']===A(0x1c2)){const p=this['fsi'][A(0x1aa)]({'pathParts':['imports','startup',A(0x1c8),A(0x194)]});j=this[A(0x1bb)][A(0x197)]({'pathParts':[p],'config':c});}else{const q=this[A(0x1bb)]['pathFromApp']({'pathParts':[A(0x19b),A(0x1c1),A(0x1c6),A(0x194)]});j=this[A(0x1bb)][A(0x197)]({'pathParts':[q],'config':c});}const m=this[A(0x1bb)]['readFileLines'](j)[A(0x18c)]((r,s)=>{const B=A;return r[B(0x1be)](B(0x1ae))?s+0x1:null;})['filter'](r=>r!==null);let n=this['fsi']['readFileLines'](j)[A(0x18c)]((r,s)=>{const C=A;return r['includes'](C(0x1a6))?s+0x1:null;})['filter'](r=>r!==null),o=this[A(0x1bb)][A(0x189)](j)[A(0x18c)]((r,s)=>{const D=A;return r[D(0x1be)](D(0x1cb))?s+0x1:null;})[A(0x19a)](r=>r!==null);n[A(0x195)]>0x0&&o[A(0x195)]>0x0&&(i[A(0x1c4)]=!![]);k=this[A(0x1bb)][A(0x1b9)]({'srcPath':A(0x1a0),'framework':A(0x18b),'context':i,'config':c});if(n[A(0x195)]>0x0||o['length']>0x0){this['fsi']['injectAfterLineNumber']({'filePath':j,'content':k,'lineNumber':m[0x0]});if(d&&o['length']>0x0)o=this[A(0x1bb)][A(0x189)](j)[A(0x18c)]((r,s)=>{const E=A;return r[E(0x1be)](E(0x1cb))?s+0x1:null;})[A(0x19a)](r=>r!==null),this['fsi']['injectAfterLineNumber']({'filePath':j,'content':'\x09{'+i['templateName']+'}','lineNumber':o[0x0]});else n['length']>0x0?(n=this['fsi'][A(0x189)](j)[A(0x18c)]((r,s)=>{const F=A;return r[F(0x1be)](F(0x1a6))?s+0x1:null;})[A(0x19a)](r=>r!==null),this[A(0x1bb)][A(0x1a5)]({'filePath':j,'content':'\x09{'+i[A(0x19e)]+'}','lineNumber':n[0x0]})):Log['warn'](A(0x1b7)+j);}else{const r=this[A(0x1bb)]['readFileLines'](j)[A(0x18c)](u=>{const G=A;return u[G(0x1be)]('\x22*\x22');}),s=r['indexOf'](!![])>-0x1,t=s?A(0x1cd):A(0x1a3);this[A(0x1bb)][A(0x1c9)]({'filePath':j,'content':A(0x1bd)+k+A(0x1bd),'begin':A(0x1a8),'end':t});}}else{if(c[A(0x1c0)][A(0x1c6)]===A(0x1bf)){const u=this[A(0x1bb)][A(0x1aa)]({'pathParts':['imports',A(0x1c1),A(0x1c6),A(0x194)]});j=this[A(0x1bb)]['rewriteDestinationPathForEngine']({'pathParts':[u],'config':c}),k=this[A(0x1bb)][A(0x1b9)]({'srcPath':A(0x1a0),'context':i}),this[A(0x1bb)][A(0x190)]({'filePath':j,'content':'\x0a'+k});}}});}catch(d){Log[z(0x191)](d);}});
@@ -1 +0,0 @@
1
- const a89m=a89d;(function(a,b){const j=a89d,c=a();while(!![]){try{const d=-parseInt(j(0x143))/0x1+-parseInt(j(0x13e))/0x2*(-parseInt(j(0x14d))/0x3)+parseInt(j(0x14c))/0x4+parseInt(j(0x13b))/0x5+parseInt(j(0x131))/0x6+parseInt(j(0x146))/0x7+-parseInt(j(0x144))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a89c,0x81222));function a89d(a,b){const c=a89c();return a89d=function(d,e){d=d-0x131;let f=c[d];return f;},a89d(a,b);}const a89b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a89d;if(c){const e=c[k(0x148)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a89a=a89b(this,function(){const l=a89d;return a89a[l(0x133)]()[l(0x140)](l(0x151))[l(0x133)]()['constructor'](a89a)[l(0x140)](l(0x151));});a89a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a89c(){const p=['withValue','Installing\x20winston','1162540VrCMFu','template','lib','2TnMfjZ','maka\x20{generate,\x20g}:{service}\x20[service-type]','search','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','fsi','643215JlxxIj','8666392KZziRd','installNpmPackage','5934565OYaRFn','winston\x20setimmediate','apply','type','services','svc','1405920sjwHtn','2055153kotxgJ','winston','imports','logger','(((.+)+)+)+$','service','pathFromApp','831660tfUXxr','resourceName','toString','startup','engines','create','service/logger/logger.js','checkNpmPackage'];a89c=function(){return p;};return a89c();}import{Log}from'../tools/log/log.class.js';Generator[a89m(0x136)]({'name':a89m(0x152),'aliases':[a89m(0x14b)],'usage':a89m(0x13f),'shortDesc':a89m(0x141),'validOpts':[a89m(0x149)],'validArgs':['logger'],'maxArgLength':0x1,'minArgLength':0x1,'examples':['maka\x20g:svc\x20logger']},async function(a,b){const n=a89m;try{const c=this[n(0x142)]['getProjectConfig']();this[n(0x142)][n(0x139)](c,async()=>{const o=n,d=this[o(0x142)][o(0x153)]({}),f=paramCase(b[o(0x132)]),g={'name':pascalCase(b[o(0x132)]),'fileName':f,'camelCase':camelCase(b[o(0x132)]),'type':a[0x0],'engine':c[o(0x135)]['js'],'noRename':!![]};let h='js';c['engines']['js']==='tsx'&&(h='ts');if(a[0x0]===o(0x150)){!this[o(0x142)][o(0x138)](o(0x14e))&&await this[o(0x142)][o(0x145)](o(0x147),{'cwd':d,'msg':o(0x13a)});const i=this[o(0x142)][o(0x153)]({'pathParts':[o(0x14f),o(0x134),o(0x13d),o(0x14a),f+'.'+h]});this[o(0x142)][o(0x13c)]({'srcPath':o(0x137),'destPath':i,'context':g,'config':c});}});}catch(d){Log['error'](d);}});
@@ -1 +0,0 @@
1
- function a90c(){var i=['apply','1101718RQvOlz','4110810vsCmJn','constructor','1379320tFBGPb','3970005IDSrSH','1991756weywWh','search','3gdgHSo','toString','6896701xLlEpL','2884976PILDXS','(((.+)+)+)+$'];a90c=function(){return i;};return a90c();}function a90d(a,b){var c=a90c();return a90d=function(d,e){d=d-0xf0;var f=c[d];return f;},a90d(a,b);}(function(a,b){var f=a90d,c=a();while(!![]){try{var d=parseInt(f(0xf7))/0x1+-parseInt(f(0xfc))/0x2*(-parseInt(f(0xf1))/0x3)+-parseInt(f(0xf4))/0x4+parseInt(f(0xfb))/0x5+-parseInt(f(0xf8))/0x6+-parseInt(f(0xf3))/0x7+parseInt(f(0xfa))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a90c,0xa4286));var a90b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a90d;if(c){var e=c[g(0xf6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a90a=a90b(this,function(){var h=a90d;return a90a[h(0xf2)]()[h(0xf0)](h(0xf5))[h(0xf2)]()[h(0xf9)](a90a)[h(0xf0)](h(0xf5));});a90a();import'./translation.js';import'./openssl.js';
@@ -1 +0,0 @@
1
- const a91l=a91d;(function(a,b){const i=a91d,c=a();while(!![]){try{const d=parseInt(i(0x148))/0x1+-parseInt(i(0x135))/0x2+-parseInt(i(0x14e))/0x3+parseInt(i(0x141))/0x4+-parseInt(i(0x13f))/0x5*(-parseInt(i(0x13a))/0x6)+parseInt(i(0x147))/0x7*(-parseInt(i(0x143))/0x8)+parseInt(i(0x13d))/0x9*(parseInt(i(0x13b))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a91c,0xdd7f5));const a91b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a91d;if(c){const e=c[j(0x134)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a91a=a91b(this,function(){const k=a91d;return a91a['toString']()[k(0x14c)](k(0x133))[k(0x14b)]()[k(0x131)](a91a)[k(0x14c)]('(((.+)+)+)+$');});a91a();function a91d(a,b){const c=a91c();return a91d=function(d,e){d=d-0x131;let f=c[d];return f;},a91d(a,b);}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a91e from'path';Generator[a91l(0x149)]({'name':a91l(0x137),'usage':a91l(0x13e),'shortDesc':'Generate\x20a\x20new\x20openssl\x20config\x20file','noResource':!![],'requiredOpts':[a91l(0x146)],'examples':['maka\x20g:sslconfig\x20--env\x20dev'],'validOpts':[a91l(0x146)]},async function(a,b){const m=a91l;try{const c=await this[m(0x136)][m(0x138)](),d=await this[m(0x136)][m(0x14a)](),f=this['fsi'][m(0x132)](b[m(0x146)]),g=a91e[m(0x142)](f,m(0x144),'openssl.conf');await this[m(0x136)]['withValue'](c,async()=>{const n=m,h={'app':d[n(0x13c)],'noRename':!![]};await this[n(0x136)][n(0x139)]({'srcPath':n(0x140),'destPath':g,'framework':n(0x145),'context':h,'config':c});});}catch(h){Log[m(0x14d)](h);}});function a91c(){const o=['getConfigPath','(((.+)+)+)+$','apply','2119640TCnTnt','fsi','sslconfig','getProjectConfig','template','2322sYQfwd','7183570XopdjG','appName','9euUgci','maka\x20{generate,\x20g}:sslconfig','15905FLOFbG','openssl/openssl.conf','5327044CjicJo','join','6408008HwfoPb','_keys','service','env','7vkAPJp','122835OdNICn','create','getGlobalConfig','toString','search','error','1907778nheASS','constructor'];a91c=function(){return o;};return a91c();}
@@ -1 +0,0 @@
1
- const a92z=a92d;(function(a,b){const x=a92d,c=a();while(!![]){try{const d=parseInt(x(0x1ad))/0x1*(parseInt(x(0x1ae))/0x2)+parseInt(x(0x1b8))/0x3*(-parseInt(x(0x1c5))/0x4)+parseInt(x(0x1ba))/0x5+parseInt(x(0x1b1))/0x6*(-parseInt(x(0x1e2))/0x7)+parseInt(x(0x1aa))/0x8+-parseInt(x(0x1b9))/0x9+parseInt(x(0x1c8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a92c,0x70bb8));function a92d(a,b){const c=a92c();return a92d=function(d,e){d=d-0x1a7;let f=c[d];return f;},a92d(a,b);}const a92b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a92a=a92b(this,function(){const y=a92d;return a92a[y(0x1cd)]()[y(0x1d3)](y(0x1ca))[y(0x1cd)]()[y(0x1e0)](a92a)['search'](y(0x1ca));});a92a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a92e from'fs';Generator[a92z(0x1bd)]({'name':a92z(0x1be),'usage':a92z(0x1a8),'aliases':[a92z(0x1c3)],'shortDesc':'Generate\x20a\x20new\x20locale\x20translation','noResource':!![],'examples':['maka\x20g:translation\x20--lang=en\x20(default)',a92z(0x1de),a92z(0x1d4)],'validOpts':[a92z(0x1b0)]},function(a,b){const A=a92z;try{const c=this[A(0x1b2)]['getProjectConfig'](),d=this[A(0x1b2)][A(0x1bb)](),f=this[A(0x1b2)]['findAppDirectory']();this[A(0x1b2)][A(0x1db)](c,()=>{const B=A;try{!b['lang']&&(b['lang']='en');!b['root']&&!this['fsi'][B(0x1e1)](B(0x1c6))&&(Log[B(0x1c4)](B(0x1d9)),this[B(0x1b2)][B(0x1b6)]('i18next\x20i18next-browser-languagedetector\x20react-i18next',{'cwd':f}),this['fsi'][B(0x1b5)](B(0x1c9),!![]));const g=this['fsi']['pathFromApp']({'pathParts':[B(0x1bc),B(0x1dd),'client',B(0x1e3)]}),h=this['fsi'][B(0x1c7)]({'pathParts':[g],'config':c}),i=this[B(0x1b2)][B(0x1c0)](a92e[B(0x1df)](h)[B(0x1cd)](),B(0x1a7))[0x0]&&!![];if(c['engines'][B(0x1d8)]===B(0x1c2)){!i&&this[B(0x1b2)][B(0x1af)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const t=this['fsi']['pathFromApp']({'pathParts':[B(0x1bc),'startup','server',B(0x1e3)]}),u=this[B(0x1b2)][B(0x1c7)]({'pathParts':[t],'config':c}),v=this[B(0x1b2)]['grep'](a92e[B(0x1df)](u)[B(0x1cd)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!v&&this[B(0x1b2)][B(0x1af)]({'filePath':u,'content':B(0x1d2)});}else!i&&this['fsi'][B(0x1af)]({'filePath':h,'content':B(0x1d2)});const j={'app':d[B(0x1c1)],'config':c},k=this[B(0x1b2)][B(0x1b3)]({'pathParts':[B(0x1bc),B(0x1dd),B(0x1d1),B(0x1cf),B(0x1ac),B(0x1d5)]}),l=this['fsi'][B(0x1b4)](this[B(0x1b2)][B(0x1c7)]({'pathParts':[k],'config':c}));!l&&this[B(0x1b2)][B(0x1d7)]({'srcPath':'i18n/i18n.js','destPath':k,'framework':B(0x1a9),'context':j,'config':c});const m=this[B(0x1b2)][B(0x1b3)]({'pathParts':[B(0x1bc),B(0x1dd),B(0x1d1),'services',B(0x1ac),'locales',b[B(0x1b0)]+B(0x1ce)]}),n=this[B(0x1b2)][B(0x1c7)]({'pathParts':[m],'config':c}),o=this[B(0x1b2)][B(0x1b4)](n);!o?this['fsi'][B(0x1d7)]({'srcPath':B(0x1ab),'destPath':m,'framework':B(0x1a9),'context':j,'config':c}):Log[B(0x1c4)]('Locale\x20already\x20defined:\x20'+n);const p=this[B(0x1b2)]['pathFromApp']({'pathParts':['imports',B(0x1dd),B(0x1d1),'services','translations',B(0x1bf),'index.'+c[B(0x1cc)]['js']]}),q=this[B(0x1b2)][B(0x1c7)]({'pathParts':[p],'config':c}),r=this[B(0x1b2)]['isFile'](q);!r&&this[B(0x1b2)][B(0x1d7)]({'srcPath':B(0x1dc),'destPath':p,'framework':B(0x1a9),'context':j,'config':c});const s=this[B(0x1b2)][B(0x1c0)](a92e[B(0x1df)](p)['toString'](),B(0x1da)+b['lang'])[0x0]&&!![];!s?this[B(0x1b2)]['injectAtEndOfFile']({'filePath':p,'content':'export\x20{\x20default\x20as\x20'+b[B(0x1b0)]+B(0x1d0)+b[B(0x1b0)]+'\x27;'}):Log[B(0x1c4)](B(0x1b7)+p);}catch(w){Log[B(0x1cb)](w),process['exit'](0x1);}});}catch(g){Log[A(0x1cb)](g),process[A(0x1d6)](0x1);}});function a92c(){const C=['imports','create','translation','locales','grep','appName','true','i18n','warn','160FTYeRM','i18next','rewriteDestinationPathForEngine','5283100aStDkc','features.withTranslations','(((.+)+)+)+$','error','engines','toString','.js','services','\x20}\x20from\x20\x27./','lib','import\x20\x27../lib/services/translations/i18n\x27;\x0a','search','maka\x20g:translation\x20--lang=de','i18n.js','exit','template','ssr','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','default\x20as\x20','withValue','i18n/index.js','startup','maka\x20g:translation\x20--lang=fr','readFileSync','constructor','checkNpmPackage','42yzlvEJ','index.js','import\x20\x27../lib/services/translations/i18n\x27;','maka\x20{generate,\x20g}:translation\x20--lang=<language>','service','5242400lTDHVD','i18n/locales.js','translations','385849tfjYOU','4eByNoZ','injectAtBeginningOfFile','lang','869286CTmIhJ','fsi','pathFromApp','isFile','setProjectConfig','installNpmPackage','Locale\x20already\x20exported:\x20','2253xQSMMe','7139097ALgRgX','995015TIHoDp','getGlobalConfig'];a92c=function(){return C;};return a92c();}
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env -S node --experimental-modules --no-warnings --experimental-json-modules
2
- const a93m=a93d;function a93d(a,b){const c=a93c();return a93d=function(d,e){d=d-0x149;let f=c[d];return f;},a93d(a,b);}(function(a,b){const j=a93d,c=a();while(!![]){try{const d=-parseInt(j(0x15b))/0x1*(-parseInt(j(0x151))/0x2)+-parseInt(j(0x15f))/0x3+parseInt(j(0x15a))/0x4+parseInt(j(0x150))/0x5*(parseInt(j(0x155))/0x6)+-parseInt(j(0x14b))/0x7*(parseInt(j(0x149))/0x8)+-parseInt(j(0x14a))/0x9+parseInt(j(0x158))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a93c,0x7955e));const a93b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a93d;if(c){const e=c[k(0x161)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a93a=a93b(this,function(){const l=a93d;return a93a[l(0x14d)]()[l(0x154)](l(0x14c))[l(0x14d)]()[l(0x14e)](a93a)[l(0x154)]('(((.+)+)+)+$');});a93a();import a93e from'minimist';import a93f from'os';import a93g from'path';import a93h from'humps';import a93i from'./commands/maka.cmd.js';function a93c(){const n=['env','--max-old-space-size=','dirname','2483001BdgxzG','TOOL_NODE_FLAGS','apply','860376KtuSah','1526949DRBHlA','21uUsLXg','(((.+)+)+)+$','toString','constructor','BROWSERSLIST_IGNORE_OLD_DATA','1402305kdYQQR','362awwRgN','floor','argv','search','6efwaPy','url','totalmem','3009250sOTTCo','stringify','2021676DusPQR','4034seWLdm'];a93c=function(){return n;};return a93c();}import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a93m(0x156)]),__dirname=a93g[a93m(0x15e)](__filename);global['MAKA_COMMAND_PATH']=__dirname;const total_memory=a93f[a93m(0x157)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a93m(0x152)](total_mem_in_mb),process[a93m(0x15c)][a93m(0x160)]=a93m(0x15d)+total_mem_in_mb,process[a93m(0x15c)][a93m(0x14f)]='1';const argv=a93e(process[a93m(0x153)]['slice'](0x2)),args=argv['_'],deepCopyArgv=JSON['parse'](JSON[a93m(0x159)](argv));delete deepCopyArgv['_'];const opts=a93h['camelizeKeys'](deepCopyArgv);a93i['run'](args,opts);
@@ -1,11 +0,0 @@
1
- import { Meteor } from 'meteor/meteor';
2
- <% if (api === 'rest') { %>import { Restivus } from 'meteor/maka:rest';<% } else { %>import { Restivus } from 'meteor/nimble:restivus';<% } %>
3
- import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
4
-
5
- const <%= name %>ApiV1 = new Restivus({
6
- version: 'v1',
7
- useDefaultAuth: false,
8
- prettyJson: Meteor.isDevelopment
9
- });
10
-
11
- <%= name %>ApiV1.addCollection(<%= name %>);
@@ -1,11 +0,0 @@
1
- import { Meteor } from 'meteor/meteor';
2
- <% if (api === 'rest') { %>import { Restivus } from 'meteor/maka:rest';<% } else { %>import { Restivus } from 'meteor/nimble:restivus';<% } %>
3
- import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
4
-
5
- const <%= name %>ApiV1 = new Restivus({
6
- version: 'v1',
7
- useDefaultAuth: false,
8
- prettyJson: Meteor.isDevelopment
9
- });
10
-
11
- <%= name %>ApiV1.addCollection(<%= name %>);
@@ -1,86 +0,0 @@
1
- import { Mongo } from 'meteor/mongo';
2
- import { check, Match } from 'meteor/maka:check';
3
-
4
- /**
5
- * @memberof Server.<%= name %>
6
- * @extends Mongo.Collection
7
- */
8
- class <%= name %>Collection extends Mongo.Collection {
9
- constructor() {
10
- super('<%= name %>');
11
-
12
- this.publicFields = {};
13
- this.privateFields = {};
14
- this.allow({
15
- insert() { return false; },
16
- update() { return false; },
17
- remove() { return false; },
18
- });
19
-
20
- this.insertSchema = {};
21
- this.updateSchema = {}; // Note: You'll likely want all properties to be Match.Optional()
22
- }
23
-
24
- find(selector = {}, modifier) {
25
- return super.find(selector, modifier);
26
- }
27
-
28
- findOne(selector = {}, modifier) {
29
- return super.findOne(selector, modifier);
30
- }
31
-
32
- /**
33
- * @public
34
- * @param { object } doc The document to inserted.
35
- * @param { object } callback The callback from invocation.
36
- * @returns { string } The _id of the new doc.
37
- */
38
- insert(doc) {
39
- if (this._hasSchema()) {
40
- check(doc, this.insertSchema, 'while validating mongo insert against schema');
41
- }
42
- return super.insert(doc);
43
- }
44
-
45
- /**
46
- * @public
47
- * @param { object | string } selector The mongodb selector.
48
- * @param { object } modifier The mongodb modifier.
49
- * @returns { string } The _id of the document updated.
50
- * */
51
- update(selector, modifier) {
52
- if (this._hasSchema()) {
53
- check(modifier.$set, this.updateSchema, 'while validating mongo update against schema');
54
- }
55
- return super.update(selector, modifier);
56
- }
57
-
58
- /**
59
- * @public
60
- * @param { object | string } selector The mongodb selector.
61
- * @returns { string } The _id of the document being removed.
62
- */
63
- remove(selector) {
64
- return super.remove(selector);
65
- }
66
-
67
- // Helper method
68
- _hasSchema = () => {
69
- const { insertSchema, updateSchema } = this;
70
- if (insertSchema) {
71
- return (Object.keys(insertSchema).length !== 0
72
- && insertSchema.constructor === Object);
73
- }
74
- if (updateSchema) {
75
- return (Object.keys(updateSchema).length !== 0
76
- && updateSchema.constructor === Object);
77
- }
78
- }
79
- }
80
-
81
- /**
82
- * @memberof Server.<%= name %>
83
- * @member <%= name %>
84
- */
85
- const <%= name %> = new <%= name %>Collection();
86
- export default <%= name %>;
@@ -1,94 +0,0 @@
1
- import { Mongo } from 'meteor/mongo';
2
- import { check, Match } from 'meteor/maka:check';
3
-
4
- interface <%=name%>Collection {
5
- publicFields: any;
6
- privateFields: any;
7
- deny: any,
8
- schema: any;
9
- }
10
-
11
- /**
12
- * @memberof Server.<%= name %>
13
- * @extends Mongo.Collection
14
- */
15
- class <%= name %>Collection extends Mongo.Collection<<%=name%>Collection> {
16
- constructor() {
17
- super('<%= name %>');
18
-
19
- this.publicFields = {};
20
- this.privateFields = {};
21
- this.allow({
22
- insert() { return false; },
23
- update() { return false; },
24
- remove() { return false; },
25
- });
26
-
27
- this.insertSchema = {};
28
- this.updateSchema = {}; // Note: You'll likely want all properties to be Match.Optional()
29
- }
30
-
31
- find(selector:any = {}, modifier:object) {
32
- return super.find(selector, modifier);
33
- }
34
-
35
- findOne(selector:any = {}, modifier:object) {
36
- return super.findOne(selector, modifier);
37
- }
38
-
39
- /**
40
- * @public
41
- * @param { object } doc The document to inserted.
42
- * @param { object } callback The callback from invocation.
43
- * @returns { string } The _id of the new doc.
44
- */
45
- insert(doc:any) {
46
- if (this._hasSchema()) {
47
- check(doc, this.insertSchema, 'while validating mongo insert against schema');
48
- }
49
- return super.insert(doc);
50
- }
51
-
52
- /**
53
- * @public
54
- * @param { object | string } selector The mongodb selector.
55
- * @param { object } modifier The mongodb modifier.
56
- * @returns { string } The _id of the document updated.
57
- * */
58
- update(selector:any, modifier:UpdateModifier) {
59
- if (this._hasSchema()) {
60
- check(modifier.$set, this.updateSchema, 'while validating mongo update against schema');
61
- }
62
-
63
- return super.update(selector, modifier);
64
- }
65
-
66
- /**
67
- * @public
68
- * @param { object | string } selector The mongodb selector.
69
- * @returns { string } The _id of the document being removed.
70
- */
71
- remove(selector:any) {
72
- return super.remove(selector);
73
- }
74
-
75
- // Helper method
76
- _hasSchema = () => {
77
- const { insertSchema, updateSchema } = this;
78
- if (insertSchema) {
79
- return (Object.keys(insertSchema).length !== 0
80
- && insertSchema.constructor === Object);
81
- }
82
- if (updateSchema) {
83
- return (Object.keys(updateSchema).length !== 0
84
- && updateSchema.constructor === Object);
85
- }
86
- }
87
- }
88
-
89
- /**
90
- * @memberof Server.<%= name %>
91
- * @member <%= name %>
92
- */
93
- const <%= name %> = new <%= name %>Collection();
94
- export default <%= name %>;
@@ -1,23 +0,0 @@
1
- import { Meteor } from 'meteor/meteor';
2
- import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
3
-
4
- /**
5
- * If the <%= name %> collection is empty on server start, and you'd like to
6
- * populate it with some data here is a handy spot.
7
- *
8
- * Example:
9
- * ```
10
- * if (<%= name %>.find({}).count() === 0) {
11
- * const data = JSON.parse(Assets.getText('<%= fileName %>.json')) || [ {} ];
12
- * data.forEach((datum) => {
13
- * <%= name %>.insert(datum);
14
- * });
15
- * }
16
- *
17
- * ```
18
- * @memberof Server.<%= name %>
19
- * @member Fixtures
20
- */
21
- Meteor.startup(() => {
22
-
23
- });
@@ -1,23 +0,0 @@
1
- import { Meteor } from 'meteor/meteor';
2
- import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
3
-
4
- /**
5
- * If the <%= name %> collection is empty on server start, and you'd like to
6
- * populate it with some data here is a handy spot.
7
- *
8
- * Example:
9
- * ```
10
- * if (<%= name %>.find({}).count() === 0) {
11
- * const data = JSON.parse(Assets.getText('<%= fileName %>.json')) || [ {} ];
12
- * data.forEach((datum) => {
13
- * <%= name %>.insert(datum);
14
- * });
15
- * }
16
- *
17
- * ```
18
- * @memberof Server.<%= name %>
19
- * @member Fixtures
20
- */
21
- Meteor.startup(() => {
22
-
23
- });