@maka/maka-cli 4.5.19 → 4.5.20

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 (309) hide show
  1. package/bundle/obf/package.json +127 -0
  2. package/bundle/obf/src/README.md +31 -0
  3. package/bundle/obf/src/command.js +1 -0
  4. package/bundle/obf/src/commands/_index.js +1 -0
  5. package/bundle/obf/src/commands/aws/_index.js +1 -0
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -0
  7. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -0
  8. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -0
  9. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -0
  10. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -0
  11. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -0
  12. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -0
  13. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -0
  14. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -0
  15. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -0
  16. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -0
  17. package/bundle/obf/src/commands/build/_index.js +1 -0
  18. package/bundle/obf/src/commands/build/build.js +1 -0
  19. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -0
  20. package/bundle/obf/src/commands/create.js +1 -0
  21. package/bundle/obf/src/commands/debug.js +1 -0
  22. package/bundle/obf/src/commands/deploy.js +1 -0
  23. package/bundle/obf/src/commands/game/_index.js +1 -0
  24. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -0
  25. package/bundle/obf/src/commands/game/play.command.js +1 -0
  26. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -0
  27. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -0
  28. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -0
  29. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -0
  30. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -0
  31. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -0
  32. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -0
  33. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -0
  34. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -0
  35. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -0
  36. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -0
  37. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -0
  38. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -0
  39. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -0
  40. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -0
  41. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -0
  42. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -0
  43. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -0
  44. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -0
  45. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -0
  46. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -0
  47. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -0
  48. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -0
  49. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -0
  50. package/bundle/obf/src/commands/game/sideQuest/scenes/puzzles.js +0 -0
  51. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -0
  52. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -0
  53. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -0
  54. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -0
  55. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -0
  56. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -0
  57. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -0
  58. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -0
  59. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -0
  60. package/bundle/obf/src/commands/generate.js +1 -0
  61. package/bundle/obf/src/commands/get/_index.js +1 -0
  62. package/bundle/obf/src/commands/get/get.command.js +1 -0
  63. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -0
  64. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -0
  65. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -0
  66. package/bundle/obf/src/commands/help.js +1 -0
  67. package/bundle/obf/src/commands/jsdoc.js +1 -0
  68. package/bundle/obf/src/commands/lint.js +1 -0
  69. package/bundle/obf/src/commands/login.js +1 -0
  70. package/bundle/obf/src/commands/logout.js +1 -0
  71. package/bundle/obf/src/commands/logs.js +1 -0
  72. package/bundle/obf/src/commands/maka.cmd.js +1 -0
  73. package/bundle/obf/src/commands/murder.js +1 -0
  74. package/bundle/obf/src/commands/proxy.js +1 -0
  75. package/bundle/obf/src/commands/reconfig.js +1 -0
  76. package/bundle/obf/src/commands/run/_index.js +1 -0
  77. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -0
  78. package/bundle/obf/src/commands/run/run.command.js +1 -0
  79. package/bundle/obf/src/commands/set/_index.js +1 -0
  80. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -0
  81. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -0
  82. package/bundle/obf/src/commands/set/set.command.js +1 -0
  83. package/bundle/obf/src/commands/ssh.js +1 -0
  84. package/bundle/obf/src/commands/ssl.js +1 -0
  85. package/bundle/obf/src/commands/test.js +1 -0
  86. package/bundle/obf/src/commands/version.js +1 -0
  87. package/bundle/obf/src/error.js +1 -0
  88. package/bundle/obf/src/generator.js +1 -0
  89. package/bundle/obf/src/generators/_index.js +1 -0
  90. package/bundle/obf/src/generators/api.js +1 -0
  91. package/bundle/obf/src/generators/collection.js +1 -0
  92. package/bundle/obf/src/generators/component.js +1 -0
  93. package/bundle/obf/src/generators/config.js +1 -0
  94. package/bundle/obf/src/generators/dbc.js +1 -0
  95. package/bundle/obf/src/generators/dockerfile.js +1 -0
  96. package/bundle/obf/src/generators/hook.js +1 -0
  97. package/bundle/obf/src/generators/kit.js +1 -0
  98. package/bundle/obf/src/generators/layout.js +1 -0
  99. package/bundle/obf/src/generators/maka.gen.js +1 -0
  100. package/bundle/obf/src/generators/methods.js +1 -0
  101. package/bundle/obf/src/generators/package.js +1 -0
  102. package/bundle/obf/src/generators/page.js +1 -0
  103. package/bundle/obf/src/generators/publish.js +1 -0
  104. package/bundle/obf/src/generators/route.js +1 -0
  105. package/bundle/obf/src/generators/service.js +1 -0
  106. package/bundle/obf/src/generators/services/_index.js +1 -0
  107. package/bundle/obf/src/generators/services/openssl.js +1 -0
  108. package/bundle/obf/src/generators/services/translation.js +1 -0
  109. package/bundle/obf/src/maka.js +2 -0
  110. package/bundle/obf/src/templates/meteor/api/api.js +11 -0
  111. package/bundle/obf/src/templates/meteor/api/api.js.ts +11 -0
  112. package/bundle/obf/src/templates/meteor/api/collection.js +86 -0
  113. package/bundle/obf/src/templates/meteor/api/collection.js.ts +94 -0
  114. package/bundle/obf/src/templates/meteor/api/fixtures.js +23 -0
  115. package/bundle/obf/src/templates/meteor/api/fixtures.js.ts +23 -0
  116. package/bundle/obf/src/templates/meteor/api/methods.js +136 -0
  117. package/bundle/obf/src/templates/meteor/api/methods.js.ts +137 -0
  118. package/bundle/obf/src/templates/meteor/api/publications.js +31 -0
  119. package/bundle/obf/src/templates/meteor/api/publications.js.ts +31 -0
  120. package/bundle/obf/src/templates/meteor/api/register-api.js +15 -0
  121. package/bundle/obf/src/templates/meteor/api/register-api.js.ts +15 -0
  122. package/bundle/obf/src/templates/meteor/api/resolvers.js +9 -0
  123. package/bundle/obf/src/templates/meteor/api/resolvers.js.ts +9 -0
  124. package/bundle/obf/src/templates/meteor/api/tests.js +1 -0
  125. package/bundle/obf/src/templates/meteor/api/tests.js.ts +1 -0
  126. package/bundle/obf/src/templates/meteor/api/typeDefs.js +5 -0
  127. package/bundle/obf/src/templates/meteor/api/typeDefs.js.ts +5 -0
  128. package/bundle/obf/src/templates/meteor/app/client/.gitkeep +0 -0
  129. package/bundle/obf/src/templates/meteor/app/client/body.html +3 -0
  130. package/bundle/obf/src/templates/meteor/app/client/head.html +15 -0
  131. package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js +9 -0
  132. package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.jsx +9 -0
  133. package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.ts +9 -0
  134. package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.tsx +9 -0
  135. package/bundle/obf/src/templates/meteor/app/client/main.js +13 -0
  136. package/bundle/obf/src/templates/meteor/app/client/main.js.jsx +13 -0
  137. package/bundle/obf/src/templates/meteor/app/client/main.js.ts +13 -0
  138. package/bundle/obf/src/templates/meteor/app/client/main.js.tsx +13 -0
  139. package/bundle/obf/src/templates/meteor/app/imports/api/.gitkeep +0 -0
  140. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js +20 -0
  141. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.jsx +117 -0
  142. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.ts +20 -0
  143. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +118 -0
  144. package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js +39 -0
  145. package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.jsx +48 -0
  146. package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.ts +24 -0
  147. package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.tsx +48 -0
  148. package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js +9 -0
  149. package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.jsx +9 -0
  150. package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.ts +9 -0
  151. package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.tsx +9 -0
  152. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js +1 -0
  153. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.jsx +21 -0
  154. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.ts +1 -0
  155. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.tsx +21 -0
  156. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.jsx +48 -0
  157. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.tsx +48 -0
  158. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/templates.js.jsx +0 -0
  159. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/templates.js.tsx +0 -0
  160. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js +1 -0
  161. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +152 -0
  162. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.ts +0 -0
  163. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +152 -0
  164. package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js +24 -0
  165. package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js.ts +24 -0
  166. package/bundle/obf/src/templates/meteor/app/lib/.gitkeep +0 -0
  167. package/bundle/obf/src/templates/meteor/app/lib/main.js +1 -0
  168. package/bundle/obf/src/templates/meteor/app/lib/main.js.jsx +1 -0
  169. package/bundle/obf/src/templates/meteor/app/lib/main.js.ts +1 -0
  170. package/bundle/obf/src/templates/meteor/app/lib/main.js.tsx +1 -0
  171. package/bundle/obf/src/templates/meteor/app/maka.d.ts +160 -0
  172. package/bundle/obf/src/templates/meteor/app/meteor.d.ts +955 -0
  173. package/bundle/obf/src/templates/meteor/app/packages/.gitkeep +0 -0
  174. package/bundle/obf/src/templates/meteor/app/private/.gitkeep +0 -0
  175. package/bundle/obf/src/templates/meteor/app/public/.gitkeep +0 -0
  176. package/bundle/obf/src/templates/meteor/app/public/favicon.ico +0 -0
  177. package/bundle/obf/src/templates/meteor/app/public/maka-144x144.png +0 -0
  178. package/bundle/obf/src/templates/meteor/app/public/maka-192x192.png +0 -0
  179. package/bundle/obf/src/templates/meteor/app/public/maka-512x512.png +0 -0
  180. package/bundle/obf/src/templates/meteor/app/public/manifest.json +27 -0
  181. package/bundle/obf/src/templates/meteor/app/public/sw.js +30 -0
  182. package/bundle/obf/src/templates/meteor/app/public/sw.js.jsx +30 -0
  183. package/bundle/obf/src/templates/meteor/app/public/sw.js.ts +30 -0
  184. package/bundle/obf/src/templates/meteor/app/public/sw.js.tsx +30 -0
  185. package/bundle/obf/src/templates/meteor/app/server/.gitkeep +0 -0
  186. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js +179 -0
  187. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.jsx +179 -0
  188. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.ts +179 -0
  189. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.tsx +179 -0
  190. package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js +9 -0
  191. package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.jsx +9 -0
  192. package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.ts +9 -0
  193. package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.tsx +9 -0
  194. package/bundle/obf/src/templates/meteor/app/server/main.js +8 -0
  195. package/bundle/obf/src/templates/meteor/app/server/main.js.jsx +8 -0
  196. package/bundle/obf/src/templates/meteor/app/server/main.js.ts +8 -0
  197. package/bundle/obf/src/templates/meteor/app/server/main.js.tsx +8 -0
  198. package/bundle/obf/src/templates/meteor/app/tsconfig.json +28 -0
  199. package/bundle/obf/src/templates/meteor/collection/collection.js +85 -0
  200. package/bundle/obf/src/templates/meteor/collection/collection.js.ts +97 -0
  201. package/bundle/obf/src/templates/meteor/collection/tests.js +27 -0
  202. package/bundle/obf/src/templates/meteor/collection/tests.js.ts +27 -0
  203. package/bundle/obf/src/templates/meteor/config/docker-compose.yaml +17 -0
  204. package/bundle/obf/src/templates/meteor/config/pm2.config.js +25 -0
  205. package/bundle/obf/src/templates/meteor/config/process.env +5 -0
  206. package/bundle/obf/src/templates/meteor/config/settings.json +10 -0
  207. package/bundle/obf/src/templates/meteor/config/ssh.json +6 -0
  208. package/bundle/obf/src/templates/meteor/dbc/config.js +70 -0
  209. package/bundle/obf/src/templates/meteor/dbc/config.js.ts +70 -0
  210. package/bundle/obf/src/templates/meteor/dbc/conn.js +37 -0
  211. package/bundle/obf/src/templates/meteor/dbc/conn.js.ts +37 -0
  212. package/bundle/obf/src/templates/meteor/dbc/register-dbc.js +3 -0
  213. package/bundle/obf/src/templates/meteor/dbc/register-dbc.js.ts +3 -0
  214. package/bundle/obf/src/templates/meteor/method/method.js +48 -0
  215. package/bundle/obf/src/templates/meteor/method/method.js.ts +48 -0
  216. package/bundle/obf/src/templates/meteor/package/client/package.js +0 -0
  217. package/bundle/obf/src/templates/meteor/package/client/package.js.jsx +0 -0
  218. package/bundle/obf/src/templates/meteor/package/client/package.js.ts +0 -0
  219. package/bundle/obf/src/templates/meteor/package/client/package.js.tsx +0 -0
  220. package/bundle/obf/src/templates/meteor/package/lib/package.js +0 -0
  221. package/bundle/obf/src/templates/meteor/package/lib/package.js.jsx +0 -0
  222. package/bundle/obf/src/templates/meteor/package/lib/package.js.ts +0 -0
  223. package/bundle/obf/src/templates/meteor/package/lib/package.js.tsx +0 -0
  224. package/bundle/obf/src/templates/meteor/package/package.js +37 -0
  225. package/bundle/obf/src/templates/meteor/package/package.js.jsx +37 -0
  226. package/bundle/obf/src/templates/meteor/package/package.js.ts +36 -0
  227. package/bundle/obf/src/templates/meteor/package/package.js.tsx +37 -0
  228. package/bundle/obf/src/templates/meteor/package/server/package.js +0 -0
  229. package/bundle/obf/src/templates/meteor/package/server/package.js.jsx +0 -0
  230. package/bundle/obf/src/templates/meteor/package/server/package.js.ts +0 -0
  231. package/bundle/obf/src/templates/meteor/package/server/package.js.tsx +0 -0
  232. package/bundle/obf/src/templates/meteor/package/tests/client/package.js +5 -0
  233. package/bundle/obf/src/templates/meteor/package/tests/client/package.js.jsx +5 -0
  234. package/bundle/obf/src/templates/meteor/package/tests/client/package.js.ts +5 -0
  235. package/bundle/obf/src/templates/meteor/package/tests/client/package.js.tsx +5 -0
  236. package/bundle/obf/src/templates/meteor/package/tests/server/package.js +5 -0
  237. package/bundle/obf/src/templates/meteor/package/tests/server/package.js.jsx +5 -0
  238. package/bundle/obf/src/templates/meteor/package/tests/server/package.js.ts +5 -0
  239. package/bundle/obf/src/templates/meteor/package/tests/server/package.js.tsx +5 -0
  240. package/bundle/obf/src/templates/meteor/project/.maka/config.json +29 -0
  241. package/bundle/obf/src/templates/meteor/project/README.md +1 -0
  242. package/bundle/obf/src/templates/meteor/project/build/.gitkeep +0 -0
  243. package/bundle/obf/src/templates/meteor/project/build/README +4 -0
  244. package/bundle/obf/src/templates/meteor/project/gitignore +6 -0
  245. package/bundle/obf/src/templates/meteor/publish/publish.js +3 -0
  246. package/bundle/obf/src/templates/meteor/publish/publish.js.jsx +3 -0
  247. package/bundle/obf/src/templates/meteor/publish/publish.js.tsx +3 -0
  248. package/bundle/obf/src/templates/meteor/publish/publish.ts +3 -0
  249. package/bundle/obf/src/templates/meteor/service/logger/logger.js +27 -0
  250. package/bundle/obf/src/templates/meteor/service/logger/logger.js.ts +27 -0
  251. package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css +5 -0
  252. package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css.less +5 -0
  253. package/bundle/obf/src/templates/meteor/template/template-tests.js +1 -0
  254. package/bundle/obf/src/templates/meteor/template/template-tests.js.jsx +55 -0
  255. package/bundle/obf/src/templates/meteor/template/template-tests.js.ts +1 -0
  256. package/bundle/obf/src/templates/meteor/template/template-tests.js.tsx +55 -0
  257. package/bundle/obf/src/templates/meteor/template/template.css +6 -0
  258. package/bundle/obf/src/templates/meteor/template/template.css.less +6 -0
  259. package/bundle/obf/src/templates/meteor/template/template.html +5 -0
  260. package/bundle/obf/src/templates/meteor/template/template.js +20 -0
  261. package/bundle/obf/src/templates/meteor/template/template.js.jsx +77 -0
  262. package/bundle/obf/src/templates/meteor/template/template.js.ts +1 -0
  263. package/bundle/obf/src/templates/meteor/template/template.js.tsx +89 -0
  264. package/bundle/obf/src/templates/react/component/component.css +6 -0
  265. package/bundle/obf/src/templates/react/component/component.css.less +6 -0
  266. package/bundle/obf/src/templates/react/component/component.js +0 -0
  267. package/bundle/obf/src/templates/react/component/component.js.jsx +63 -0
  268. package/bundle/obf/src/templates/react/component/component.js.ts +0 -0
  269. package/bundle/obf/src/templates/react/component/component.js.tsx +68 -0
  270. package/bundle/obf/src/templates/react/hook/hook.js +1 -0
  271. package/bundle/obf/src/templates/react/hook/hook.js.jsx +24 -0
  272. package/bundle/obf/src/templates/react/hook/hook.js.ts +0 -0
  273. package/bundle/obf/src/templates/react/hook/hook.js.tsx +23 -0
  274. package/bundle/obf/src/templates/react/route/route.js +8 -0
  275. package/bundle/obf/src/templates/react/route/route.js.jsx +8 -0
  276. package/bundle/obf/src/templates/react/route/route.js.ts +8 -0
  277. package/bundle/obf/src/templates/react/route/route.js.tsx +8 -0
  278. package/bundle/obf/src/templates/react/test/test.js +1 -0
  279. package/bundle/obf/src/templates/react/test/test.js.jsx +41 -0
  280. package/bundle/obf/src/templates/react/test/test.js.ts +1 -0
  281. package/bundle/obf/src/templates/react/test/test.js.tsx +41 -0
  282. package/bundle/obf/src/templates/service/docker/Dockerfile +54 -0
  283. package/bundle/obf/src/templates/service/eslint/eslintrc.json +33 -0
  284. package/bundle/obf/src/templates/service/i18n/i18n.js +33 -0
  285. package/bundle/obf/src/templates/service/i18n/i18n.js.ts +33 -0
  286. package/bundle/obf/src/templates/service/i18n/index.js +0 -0
  287. package/bundle/obf/src/templates/service/i18n/index.js.jsx +0 -0
  288. package/bundle/obf/src/templates/service/i18n/locales.js +3 -0
  289. package/bundle/obf/src/templates/service/i18n/locales.js.ts +3 -0
  290. package/bundle/obf/src/templates/service/openssl/openssl.conf +22 -0
  291. package/bundle/obf/src/tool.js +1 -0
  292. package/bundle/obf/src/tools/actions/actions.class.js +1 -0
  293. package/bundle/obf/src/tools/aws/aws.class.js +1 -0
  294. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -0
  295. package/bundle/obf/src/tools/docker/docker.class.js +1 -0
  296. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -0
  297. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -0
  298. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -0
  299. package/bundle/obf/src/tools/https/https.class.js +1 -0
  300. package/bundle/obf/src/tools/https/https.interface.js +1 -0
  301. package/bundle/obf/src/tools/log/log.class.js +1 -0
  302. package/bundle/obf/src/tools/log/log.interfaces.js +1 -0
  303. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -0
  304. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -0
  305. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -0
  306. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -0
  307. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -0
  308. package/bundle/obf/src/tools/ssl/ssl.interfaces.js +0 -0
  309. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ const a81y=a81d;(function(a,b){const v=a81d,c=a();while(!![]){try{const d=-parseInt(v(0x14e))/0x1+-parseInt(v(0x163))/0x2+-parseInt(v(0x159))/0x3*(-parseInt(v(0x146))/0x4)+parseInt(v(0x168))/0x5*(parseInt(v(0x151))/0x6)+-parseInt(v(0x13e))/0x7+-parseInt(v(0x158))/0x8*(-parseInt(v(0x145))/0x9)+-parseInt(v(0x13f))/0xa*(parseInt(v(0x14f))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0xce701));const a81b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a81d;if(c){const e=c[w(0x12d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a81a=a81b(this,function(){const x=a81d;return a81a['toString']()[x(0x132)](x(0x142))[x(0x149)]()[x(0x156)](a81a)[x(0x132)](x(0x142));});a81a();import a81e from'fs';import a81f from'path';function a81d(a,b){const c=a81c();return a81d=function(d,e){d=d-0x12b;let f=c[d];return f;},a81d(a,b);}import{Actions}from'../tools/actions/actions.class.js';import{Log}from'../tools/log/log.class.js';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';Command[a81y(0x12f)]({'name':'ssl','usage':'maka\x20ssl\x20[command]','validOpts':[a81y(0x144),a81y(0x15c)],'requiredOpts':[a81y(0x13a)],'shortDesc':'Create\x20and\x20manage\x20your\x20SSL\x20operations.','mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a81y(0x161),a81y(0x152),a81y(0x14d)]},async function(a,b){const z=a81y,c=this['fsi'][z(0x15e)](),d=this[z(0x14b)]['getConfigPath'](b[z(0x13a)]),f=this['fsi']['mkKeysDir']({'configPath':d});let g='';a&&(g=a[0x0]);try{if(g===z(0x131))SSL[z(0x139)]({'keyName':c[z(0x155)]+'.key','csrName':c[z(0x155)]+'.csr','cwd':f});else{if(g==='generate-ssc'){if(!a81e[z(0x13c)](a81f[z(0x153)](f,c[z(0x155)]+z(0x138))))throw z(0x141)+a81f[z(0x153)](f,c[z(0x155)]+'.key');if(!a81e[z(0x13c)](a81f[z(0x153)](f,c[z(0x155)]+z(0x14c))))throw z(0x15b)+a81f['join'](f,c[z(0x155)]+z(0x14c));SSL[z(0x14a)]({'keyName':c[z(0x155)]+z(0x138),'crtName':c[z(0x155)]+'.crt','cwd':f}),Log[z(0x140)]('New\x20CSR\x20written\x20to\x20'+f);}else{if(g===z(0x160)){let h=b[z(0x144)],i=b[z(0x15c)];try{const p=a81e[z(0x13d)](a81f[z(0x153)](d,z(0x148)))[z(0x149)](),q=JSON[z(0x143)](p);h=b[z(0x144)]?b[z(0x144)]:q['domainNames'],i=b['email']?b[z(0x15c)]:q[z(0x15d)],(!b[z(0x15c)]||!b[z(0x144)])&&Log[z(0x140)](z(0x133));}catch(r){}const j=JSON['parse'](a81e[z(0x13d)](d+'/ssh.json')[z(0x149)]());Object[z(0x165)](j,{'env':d}),Log[z(0x140)](z(0x12c));try{const s=SSH[z(0x164)]('uname\x20-a',j);if(!s)throw z(0x15f);if(s)Log[z(0x13b)](z(0x12e));}catch(t){Log[z(0x166)](t);return;}const k=Log[z(0x150)]();k[z(0x15a)](z(0x137)),SSH['ssh'](z(0x167),{...j}),SSH[z(0x136)](z(0x134),{...j}),SSH['ssh'](z(0x12b),{...j}),k[z(0x13b)]();const l=h?h:await Actions[z(0x135)](z(0x154)),m=i?i:await Actions[z(0x135)](z(0x162));SSH[z(0x136)](z(0x157)+l+z(0x130)+m,{...j},{'verbose':!![]});const n={'domainNames':l,'emailUpdate':m},o=JSON[z(0x147)](n,null,0x2);a81e['writeFileSync'](a81f[z(0x153)](d,'letsencrypt.json'),o);}else throw'Please\x20provide\x20a\x20command.';}}}catch(u){console[z(0x166)](u),process['exit'](0x0);}});function a81c(){const A=['sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','3095192ODMINf','30mudFMQ','start','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','email','emailUpdate','getProjectConfig','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','letsencrypt','maka\x20ssl\x20--env\x20dev\x20generate-csr','Email\x20to\x20use\x20for\x20auto-updates:\x20','2900260cRIHbO','ping','assign','error','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','5bckymg','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','Checking\x20remote\x20host\x20availability','apply','Remote\x20host\x20connection\x20successful','create','\x20--email\x20','generate-csr','search','Using\x20saved\x20letsencrypt\x20config','sudo\x20snap\x20install\x20--classic\x20certbot','ask','ssh','Verifying\x20Letsencrypt\x20configuration','.key','genCSR','env','success','existsSync','readFileSync','95249OyryeC','20aKKGQG','notice','The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20','(((.+)+)+)+$','parse','domains','27GvhFnV','587924gMEIeG','stringify','letsencrypt.json','toString','genSSC','fsi','.csr','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','1203022RGJALh','1991715XClptM','withSpinner','7463706PkwUsX','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate','join','[?]\x20Domains\x20to\x20register:\x20','appName','constructor'];a81c=function(){return A;};return a81c();}
@@ -0,0 +1 @@
1
+ const a82q=a82d;(function(a,b){const m=a82d,c=a();while(!![]){try{const d=-parseInt(m(0x207))/0x1+-parseInt(m(0x22b))/0x2+-parseInt(m(0x22f))/0x3+parseInt(m(0x231))/0x4*(-parseInt(m(0x21b))/0x5)+parseInt(m(0x22c))/0x6*(-parseInt(m(0x222))/0x7)+parseInt(m(0x225))/0x8*(parseInt(m(0x229))/0x9)+parseInt(m(0x22d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a82c,0xef2aa));const a82b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a82d;if(c){const e=c[n(0x203)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a82a=a82b(this,function(){const o=a82d;return a82a['toString']()['search'](o(0x209))['toString']()['constructor'](a82a)['search'](o(0x209));});a82a();import a82e from'fs';import a82f from'path';import a82g from'dotenv';function a82d(a,b){const c=a82c();return a82d=function(d,e){d=d-0x1f4;let f=c[d];return f;},a82d(a,b);}import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a82c(){const t=['9kxdyCl','sanjo:jasmine','799460dHjxBu','90jcVvWC','49225640TVPnes','driverPackage','2984913FWwQIo','isFile','859004gjywVp','--packages','Cannot\x20find\x20Node\x20Environment\x20File:\x20','unit','testAppPath','slice','--driver-package','Meteor\x20Settings:\x20','process.env','--driver','--settings','concat','readFileSync','mocha','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','test-packages','parse','fsi','apply','rawLogs','test','env','734568QeACCw','argv','(((.+)+)+)+$','notice','This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)','config','openSync','packages','Node\x20Env\x20Config:\x20','error','utf8','inspect','forEach','splice','--env','none','warn','filter','getConfigPath','port','35byzhCP','.maka','driver-package','once','--full-app','jasmine','meteortesting:mocha','169953PlisEZ','development','join','430184pJtfmh','engines','maka\x20test\x20<opts>','settings.json'];a82c=function(){return t;};return a82c();}const syncSource=function(a){const p=a82d;a82e[p(0x20d)](a,'r'),a82g[p(0x20c)]({'path':a});};Command['create']({'name':'test','mustBeInMakaProject':!![],'validOpts':[a82q(0x21e),'packages','driver',a82q(0x22e),a82q(0x1f4),a82q(0x206),a82q(0x204),a82q(0x21a),a82q(0x212),a82q(0x1f5)],'usage':a82q(0x227),'shortDesc':'Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','examples':[]},function(a,b){const r=a82q;try{let c=this['fsi']['getConfigPath'](r(0x223));b[r(0x206)]&&(c=this[r(0x202)][r(0x219)](b['env']));(!b['unit']||!!b[r(0x21e)])&&(a=a['concat']([r(0x21f)]));b[r(0x1f4)]&&delete b[r(0x1f4)];let d=b[r(0x21d)]||b['driver']||r(0x216);if(d===r(0x216)){const j=JSON[r(0x201)](a82e[r(0x1fd)](a82f[r(0x224)](this[r(0x202)]['findProjectDirectory'](),r(0x21c),'config.json'),r(0x211)));if(j[r(0x226)][r(0x205)]===r(0x220))d=r(0x22a);else j['engines'][r(0x205)]===r(0x1fe)&&(d=r(0x221));}if(d===r(0x216))throw r(0x20b);(!b[r(0x21d)]||!b['driver'])&&(a=a[r(0x1fc)]([r(0x1f7),d]));const f=a82f[r(0x224)](c,r(0x228));this[r(0x202)][r(0x230)](f)?(Log[r(0x20a)](r(0x1f8)+f),a=a[r(0x1fc)]([r(0x1fb),f])):Log[r(0x217)](r(0x1ff)+f);const g=a82f[r(0x224)](c,r(0x1f9));this[r(0x202)][r(0x230)](g)?(Log[r(0x20a)](r(0x20f)+g),syncSource(g)):Log['warn'](r(0x233)+g);const h=process[r(0x208)][r(0x1f6)](0x2)[r(0x218)](k=>k!==r(0x215))[r(0x218)](k=>k!==r(0x205))[r(0x218)](k=>k!==a[0x0]);h[r(0x213)]((k,l)=>{const s=r;(k===s(0x215)||k===s(0x1fa))&&h['splice'](l,0x2),k===s(0x232)&&h[s(0x214)](l,0x1);});const i=b[r(0x20e)]?r(0x200):'test';this[r(0x202)]['invokeMeteorCommand'](i,a[r(0x1fc)](h));}catch(k){console[r(0x210)](k),process['exit'](0x0);}});
@@ -0,0 +1 @@
1
+ const a83l=a83d;function a83d(a,b){const c=a83c();return a83d=function(d,e){d=d-0x110;let f=c[d];return f;},a83d(a,b);}(function(a,b){const i=a83d,c=a();while(!![]){try{const d=parseInt(i(0x12f))/0x1*(-parseInt(i(0x12c))/0x2)+-parseInt(i(0x11b))/0x3*(parseInt(i(0x118))/0x4)+parseInt(i(0x116))/0x5+parseInt(i(0x13e))/0x6*(parseInt(i(0x13b))/0x7)+parseInt(i(0x11f))/0x8*(-parseInt(i(0x124))/0x9)+parseInt(i(0x12a))/0xa+parseInt(i(0x11e))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0xc32a6));const a83b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a83d;if(c){const e=c[j(0x135)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a83a=a83b(this,function(){const k=a83d;return a83a['toString']()['search'](k(0x114))[k(0x132)]()[k(0x139)](a83a)['search'](k(0x114));});function a83c(){const n=['version','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','apply','compareMakaToLatest','warn','getProjectsMeteorNodeVersion','constructor','isMakaProject','21BNJNVk','Maka\x20','bright','1025886vOulWM','Project\x27s\x20Meteor\x20Node\x20Version\x20','exit','maka\x20v','System\x27s\x20Meteor\x20Version\x20','(((.+)+)+)+$','Project\x27s\x20Meteor\x20Version\x20','7874415WBhkVI','replace','788308GjzFaF','getProjectMeteorVersion','----------------------Project----------------------------','3GWCnyr','error','System\x27s\x20Node\x20Version\x20','8162451HwbLKw','18776hUoRwL','----------------------System----------------------------','node\x20-v','meteor.bat','platform','6021gTXeFF','fsi','\x0a\x20To\x20get\x20the\x20mongo\x20version\x20in\x20use\x20by\x20meteor:\x0a\x201)\x20Run\x20the\x20project,\x20\x22maka\x20run\x22\x0a\x202)\x20In\x20a\x20new\x20terminal\x20open\x20the\x20mongo\x20shell,\x20\x22maka\x20mongo\x22','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','N/A','maka\x20version','8277500YeRzfc','System\x27s\x20Meteor\x27s\x20Node\x20Version\x20','2181998XbXLcX','majestic',')\x20to\x20at\x20least\x20meteor\x27s\x20(','1tWGiUN','\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20','4.5.20','toString'];a83c=function(){return n;};return a83c();}a83a();import{execSync}from'child_process';import a83e from'semver';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const pjson={'version':a83l(0x131)};Command['create']({'name':'version','aliases':['v'],'usage':a83l(0x129),'maxArgLength':0x1,'validOpts':[],'shortDesc':a83l(0x127),'examples':[a83l(0x112),'maka\x20version']},async function(){const m=a83l;try{const a=process[m(0x123)]==='win32'?m(0x122):'meteor';Log[m(0x12d)](m(0x13c)+pjson[m(0x133)]),await this['fsi'][m(0x136)](),Log[m(0x13d)](m(0x120));const b=this[m(0x125)]['getGlobalMeteorVersion']();Log[m(0x13d)]((m(0x113)+b)[m(0x117)]('\x0a',''));const c=execSync(a+'\x20node\x20-v')[m(0x132)]()[m(0x117)](/\r?\n|\r/,'')['replace']('v','');Log['bright'](m(0x12b)+c);const d=execSync(m(0x121))[m(0x132)]()['replace'](/\r?\n|\r/,'')[m(0x117)]('v','');a83e['gt'](c,d)?(Log[m(0x137)](m(0x11d)+d),Log[m(0x137)]('\x20!\x20consider\x20updating\x20your\x20node\x20version\x20('+d+m(0x12e)+c+')')):Log[m(0x13d)]('System\x27s\x20Node\x20Version\x20'+d);if(this[m(0x125)][m(0x13a)]()){Log[m(0x13d)](m(0x11a));const f=this['fsi'][m(0x119)]();a83e['gt'](b,f)?(Log[m(0x137)]('Project\x27s\x20Meteor\x20Version\x20'+f[m(0x117)]('\x0a','')),Log['warn'](m(0x130)+b+'\x22')):Log['notice']((m(0x115)+f)[m(0x117)]('\x0a',''));const g=await this[m(0x125)][m(0x138)]();g===m(0x128)?(Log[m(0x137)](m(0x110)+g),Log[m(0x137)](m(0x134))):Log[m(0x13d)](m(0x110)+g),Log[m(0x13d)](m(0x126));}}catch(h){console[m(0x11c)](h),process[m(0x111)](0x0);}});
@@ -0,0 +1 @@
1
+ (function(a,b){var f=a84d,c=a();while(!![]){try{var d=parseInt(f(0xea))/0x1*(parseInt(f(0xe2))/0x2)+parseInt(f(0xe1))/0x3*(-parseInt(f(0xe0))/0x4)+-parseInt(f(0xe8))/0x5+-parseInt(f(0xe4))/0x6+parseInt(f(0xe3))/0x7+parseInt(f(0xe7))/0x8+parseInt(f(0xdd))/0x9*(-parseInt(f(0xdf))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a84c,0x5cba8));var a84b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a84d;if(c){var e=c[g(0xeb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a84a=a84b(this,function(){var h=a84d;return a84a[h(0xe6)]()[h(0xe5)]('(((.+)+)+)+$')[h(0xe6)]()[h(0xde)](a84a)[h(0xe5)](h(0xe9));});a84a();export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}function a84c(){var i=['92660SUaiEK','709336IVbUkh','6CfQAPV','3314DFQplh','5112604jOtOZa','1366530JfFQuM','search','toString','4113256dfpfes','1645945MgfkgD','(((.+)+)+)+$','101JxKEZQ','apply','117ApydPC','constructor'];a84c=function(){return i;};return a84c();}export class NoMeteorAppFoundError{}function a84d(a,b){var c=a84c();return a84d=function(d,e){d=d-0xdd;var f=c[d];return f;},a84d(a,b);}export class NoMeteorFoundError{}
@@ -0,0 +1 @@
1
+ const a85t=a85d;function a85c(){const F=['4jFzNTw','tableList','cwd','sort','shortDesc','name','lib','server','Server','maxOptsLength','client','where','Generator.create\x20requires\x20some\x20options!','function','create','minArgLength','Please\x20run\x20\x22maka\x20install\x20meteor\x22','Too\x20many\x20arguments','8uiBrnE','replace','39373fkxFTF','call','parent','error','both','minOptsLength','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','help','Generator\x20requires\x20a\x20handler\x20function','2241060CzETDk','match','keys','Location','push','Alias','map','chdir','number','addGenerator\x20requires\x20a\x20Generator\x20instance','3055410HMbilZ','_generators','colLocAnswer','515080wdtINL','notice','assign','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','No\x20resource\x20name\x20specified','21ipCBXy','bright','Too\x20many\x20options','There\x20is\x20no\x20Meteor\x20application\x20here','dir','validateMeteorInstall','usage','253785GcAVCq','3699243xdCEzK','validateMakaSubscription','Name','_handler','findProjectDirectory','Description','join','appPathPrefix','To\x20use\x20these\x20pro\x20flags,\x20\x22','maxArgLength','invoke','validateParams','To\x20use\x20this\x20generator,\x20\x22','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','options','(((.+)+)+)+$','Too\x20few\x20options','Both','roles','noResource','proFlags','exit','toString','filter','Generator.create\x20requires\x20a\x20handler\x20function!','constructor','checkWhere','addGenerator','includes','resourceName','mustBeInMakaProject','Generator\x20requires\x20a\x20name','validateMakaProject','146520BKkbVr','listGenerators','length','proGenerators'];a85c=function(){return F;};return a85c();}function a85d(a,b){const c=a85c();return a85d=function(d,e){d=d-0xad;let f=c[d];return f;},a85d(a,b);}(function(a,b){const q=a85d,c=a();while(!![]){try{const d=parseInt(q(0x101))/0x1*(-parseInt(q(0xff))/0x2)+-parseInt(q(0xc7))/0x3*(parseInt(q(0xed))/0x4)+parseInt(q(0xe9))/0x5+parseInt(q(0xae))/0x6+parseInt(q(0xc0))/0x7*(parseInt(q(0xbb))/0x8)+-parseInt(q(0xc8))/0x9+parseInt(q(0xb8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a85c,0x3ca4c));const a85b=(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;};}()),a85a=a85b(this,function(){const r=a85d;return a85a[r(0xde)]()['search'](r(0xd7))[r(0xde)]()[r(0xe1)](a85a)['search'](r(0xd7));});a85a();import a85e from'path';import a85f from'cli-table';import{paramCase}from'change-case';import a85g from'./generators/maka.gen.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevGen='';function inside(a='.',b){const s=a85d,c=process[s(0xef)]();let d=null;try{process['chdir'](a),d=b();}finally{process[s(0xb5)](c);}return d;}export class Generator extends Tool{['options'];[a85t(0xb9)];constructor(a,b){const u=a85t;super();if(!a)throw new Error('Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[u(0xf2)])throw new Error(u(0xe7));if(typeof b!==u(0xfa))throw new Error(u(0xad));this[u(0xb9)]=[],this['options']=Object[u(0xbd)]({},a),this[u(0xf2)]=this[u(0xd6)][u(0xf2)],this[u(0xcb)]=b['bind'](this);}static[a85t(0xfb)](a,b,c){const v=a85t;if(!a)throw new Error(v(0xf9));if(typeof b!==v(0xfa))throw new Error(v(0xe0));const d=new Generator(a,b);return c=c||a85g,Object[v(0xbd)](d,{'parent':c?.[v(0xd6)]?.[v(0xf2)]}),c['addGenerator'](d),d;}[a85t(0xe3)](a){const w=a85t;if(!(a instanceof Generator))throw new Error(w(0xb7));this[w(0xb9)][w(0xb2)](a);}['findGenerator'](a){const x=a85t,b=this[x(0xb9)]['find'](c=>c[x(0xaf)](a));return b;}async[a85t(0xc9)](a,b){const y=a85t,c=this['findGenerator'](a[0x0]);if(c){const d=c?.[y(0xf2)]||a[0x0],e=c?.[y(0x103)]||'',f=Object[y(0xb0)](b),g=await this['fsi']['getPro']();!g&&(Log[y(0x104)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process[y(0xdd)](0x1));const h=!g?.['roles'][y(0xe4)]('singleLicense')&&!g?.[y(0xda)][y(0xe4)]('domainLicense'),i=g?.[y(0xec)]['includes'](d)||g?.['proGenerators'][y(0xe4)](e);if(i&&h)throw y(0xd4)+d+y(0xd5);if(f[y(0xeb)]>0x0){const j=g?.[y(0xdc)][y(0xdf)](k=>f[y(0xe4)](k));if(j&&j[y(0xeb)]>0x0&&h)throw y(0xd0)+j?.[y(0xce)](',\x20')+y(0xd5);}}}async[a85t(0xd2)](a,b){const z=a85t,{usage:usage='',description:description='',examples:examples=[],shortDesc:c,requiredOpts:requiredOpts=[],validOpts:d}=this[z(0xd6)];try{await this[z(0xc9)](a,b);}catch(g){Log[z(0x104)](g),process[z(0xdd)](0x1);}const f=a['slice']();b[z(0xe5)]=f[0x0];try{if((a[0x0]===_prevGen||a[z(0xeb)]===0x0)&&b['help'])throw new UsageError();if(this['options'][z(0xe6)]){const h=this[z(0xe8)]();if(!h)throw new MustBeInProjectError();}if(this['options']['mustHaveMeteorInstalled']){const i=this[z(0xc5)]();if(!i)throw new NoMeteorFoundError();}if(typeof this[z(0xd6)][z(0xfc)]===z(0xb6)){if(a[z(0xeb)]<this[z(0xd6)][z(0xfc)]){Log[z(0x104)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[z(0xd6)][z(0xd1)]===z(0xb6)){if(a['length']>this[z(0xd6)][z(0xd1)]){Log[z(0x104)](z(0xfe));throw new UsageError();}}if(typeof this['options']['minOptsLength']==='number'){if(Object[z(0xb0)](b)[z(0xeb)]<this['options'][z(0x106)]){Log['error'](z(0xd8));throw new UsageError();}}if(typeof this['options'][z(0xf6)]==='number'){if(Object[z(0xb0)](b)[z(0xeb)]>=this[z(0xd6)][z(0xf6)]){Log[z(0x104)](z(0xc2));throw new UsageError();}}this[z(0xd3)](a,b,this[z(0xd6)]);if(!b[z(0xe5)]&&!this['options'][z(0xdb)]){Log[z(0x104)](z(0xbf));throw new UsageError();}_prevGen=a[0x0];}catch(j){Log[z(0xc6)](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageError)this[z(0xb9)][z(0xeb)]>0x0&&b[z(0x108)]&&(Log[z(0xbc)]('Generators:'),this['tableList'](this['_generators']));else{if(j instanceof MustBeInProjectError)Log[z(0x104)](z(0xbe));else{if(j instanceof NoMeteorFoundError)Log[z(0x104)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log['notice'](z(0xfd));else{if(j instanceof NoMeteorAppFoundError)Log[z(0x104)](z(0xc3));else throw j;}}}process[z(0xdd)](0x1);}return new Promise(k=>{const A=z;inside(b[A(0xef)],async()=>{const B=A;try{if(!b['root']&&!this['fsi'][B(0xcc)]())throw new MustBeInProjectError();const l=b[B(0xe5)]?.[B(0x100)](/\\/g,'/')['split']('/');!b[B(0xc4)]&&(l?.['length']>0x1?(b[B(0xe5)]=l['pop'](),f[0x0]=b[B(0xe5)],b[B(0xc4)]=l[B(0xb4)](m=>{return paramCase(m);})[B(0xce)](a85e['sep'])):b[B(0xc4)]='');if(this[B(0xd6)][B(0xe2)]){if(!b[B(0xf8)]){const n={'type':'list','name':B(0xba),'message':B(0xb1),'choices':[{'name':'Client','value':B(0xf7)},{'name':B(0xf5),'value':B(0xf4)},{'name':B(0xd9),'value':B(0x105)}]},{colLocAnswer:o}=await Actions[B(0xd6)](n);o?b[B(0xf8)]=o:b[B(0xf8)]='both';}const m=[B(0x105),B(0xf7),B(0xf4)];if(!m['includes'](b[B(0xf8)])){Log[B(0x104)](B(0x107));throw new UsageError();}switch(b[B(0xf8)]){case B(0x105):b[B(0xcf)]=B(0xf3);break;case B(0xf4):b['appPathPrefix']=B(0xf4);break;case B(0xf7):b[B(0xcf)]='client';break;default:b[B(0xcf)]='';}}k(this[B(0xcb)][B(0x102)](this,f,b));}catch(p){console[B(0x104)](p);}});});}[a85t(0xea)](){const C=a85t;this[C(0xee)](this[C(0xb9)]);}['tableList'](a){const D=a85t,b=new a85f({});b[D(0xb2)]([D(0xca),D(0xb3),D(0xcd)]),a[D(0xf0)]()['forEach'](c=>{const E=D;b[E(0xb2)]([c[E(0xf2)],c['aliases'](),c[E(0xf1)]()]);}),Log[D(0xc1)](b[D(0xde)]());}}
@@ -0,0 +1 @@
1
+ (function(a,b){var f=a86d,c=a();while(!![]){try{var d=-parseInt(f(0x130))/0x1+-parseInt(f(0x12d))/0x2*(parseInt(f(0x128))/0x3)+-parseInt(f(0x126))/0x4*(parseInt(f(0x123))/0x5)+parseInt(f(0x12a))/0x6+-parseInt(f(0x12f))/0x7+parseInt(f(0x12e))/0x8+-parseInt(f(0x12c))/0x9*(-parseInt(f(0x127))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a86c,0x9cac5));var a86b=(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;};}()),a86a=a86b(this,function(){var g=a86d;return a86a['toString']()['search'](g(0x129))[g(0x124)]()[g(0x12b)](a86a)[g(0x125)](g(0x129));});a86a();function a86d(a,b){var c=a86c();return a86d=function(d,e){d=d-0x123;var f=c[d];return f;},a86d(a,b);}import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kit.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';function a86c(){var h=['292864ELnIqi','4649939DJkkzq','25396DxxpMY','95qoLaVX','toString','search','9436JTyDVl','110IcbrWL','3qDDBxw','(((.+)+)+)+$','3541338FaxLjV','constructor','671751XuEjLh','143266IGLLnm'];a86c=function(){return h;};return a86c();}import'./dockerfile.js';import'./maka.gen.js';
@@ -0,0 +1 @@
1
+ const a87z=a87d;(function(a,b){const w=a87d,c=a();while(!![]){try{const d=-parseInt(w(0xd4))/0x1*(-parseInt(w(0x11c))/0x2)+parseInt(w(0x119))/0x3*(-parseInt(w(0x116))/0x4)+parseInt(w(0xea))/0x5+parseInt(w(0x104))/0x6*(-parseInt(w(0xfb))/0x7)+parseInt(w(0x115))/0x8+-parseInt(w(0xf1))/0x9*(-parseInt(w(0xff))/0xa)+parseInt(w(0x11e))/0xb*(-parseInt(w(0xda))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a87c,0x869bb));const a87b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a87d;if(c){const e=c[x(0x110)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a87a=a87b(this,function(){const y=a87d;return a87a[y(0xe5)]()[y(0xfe)](y(0x111))['toString']()[y(0xf6)](a87a)[y(0xfe)]('(((.+)+)+)+$');});a87a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a87c(){const C=['engines','exit','import\x20{\x20typeDefs\x20as\x20','GraphQL','9AWBJqZ','api/methods.js','withGql','typeDefs.','typeList.push(','constructor','rpc-methods.','\x27;\x0a','withFixtures','push','7650923lVKbTC','injectAtBeginningOfFile','findGenerator','search','3873710nAWqWe','const','resolvers.','withPubs','withRest','6ykUXqv','imports','installMeteorPackage','injectIntoFile','register-','notice','test','startup','log','withValue','api/register-api.js','invoke','apply','(((.+)+)+)+$','apollo','fsi','apiAnswers','5881560evUSdH','24gZapWw','No\x20API\x20boundaries\x20selected','injectAtEndOfFile','13719yoNaWN','maka:rest','api','2oZenhJ','/graphql/resolvers','2744181UHEoOw','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','template','checkMeteorPackage','rewriteDestinationPathForEngine','\x0aimport\x20{\x20resolvers\x20as\x20','import\x20\x27./register-','RPC\x20(Methods)','resolverList.push(','publications.','maka\x20g:api\x20todos','if\x20\x5c(typeList','maka\x20{generate,\x20g}:{api}\x20<resource-name>','136443KSsoHj','graphql','-api\x27;','api/fixtures.js','getProjectConfig','mongo','12DeVWpq','api/api.js','server','Resolvers\x20}\x20from\x20\x27','pathFromApp','rest','Verifying\x20meteor\x20package\x20requirements\x20...','error','index.','ddp-rate-limiter','dir','toString','collection','checkbox','api/tests.js','fixtures.','3311220IlPPUo','includes','.app-tests.'];a87c=function(){return C;};return a87c();}function a87d(a,b){const c=a87c();return a87d=function(d,e){d=d-0xd3;let f=c[d];return f;},a87d(a,b);}import{Actions}from'../tools/actions/actions.class.js';import a87e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a87z(0x11b),'aliases':['a'],'usage':a87z(0xd3),'shortDesc':'Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','validOpts':[a87z(0xe4)],'examples':[a87z(0x128)]},async function(a,b){const A=a87z;try{const c=this[A(0x113)][A(0xd8)](),d=[{'name':A(0x125),'value':'withMethods'},{'name':'Fixtures','value':A(0xf9)},{'name':'Publications','value':A(0x102)}];c[A(0xed)][A(0x11b)]==='rest'&&d['push']({'name':'REST\x20API','value':A(0x103)});c['engines'][A(0xd5)]===A(0x112)&&d[A(0xfa)]({'name':A(0xf0),'value':A(0xf3)});const f={'type':A(0xe7),'name':A(0x114),'message':'API\x20boundaries\x20to\x20create','pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions['options'](f);g['length']===0x0&&(Log[A(0xe1)](A(0x117)),process['exit'](0x1)),this[A(0x113)][A(0x10d)](c,async()=>{const B=A,h=this[B(0x113)]['pathFromApp']({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[B(0xe4)]?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0xed)][B(0x11b)],'graphql':c[B(0xed)][B(0xd5)],'test':c['engines'][B(0x10a)],'noRename':!![],'withPubs':g[B(0xeb)]('withPubs'),'withFixtures':g[B(0xeb)]('withFixtures'),'withMethods':g[B(0xeb)]('withMethods'),'withRest':g['includes']('withRest')};let n='js';c[B(0xed)]['js']==='tsx'&&(n='ts');(!this[B(0x113)]['checkMeteorPackage'](B(0x11a))||!this['fsi'][B(0x121)]('maka:check')||!this[B(0x113)][B(0x121)](B(0xe3))||!this[B(0x113)][B(0x121)]('mdg:validated-method')||!this[B(0x113)][B(0x121)](B(0xd9)))&&(Log[B(0x109)](B(0xe0)),await this[B(0x113)][B(0x106)](B(0x11f),{'cwd':h}));const o=a87e[B(0xfd)](B(0xe6));o&&await o[B(0x10f)]([j],{'config':c,'where':B(0xdc)});c[B(0xed)][B(0x11b)]===B(0xdf)&&(m[B(0x103)]&&this[B(0x113)]['template']({'srcPath':B(0xdb),'destPath':this[B(0x113)][B(0xde)]({'pathParts':[B(0x105),B(0x11b),b['dir'],j,'rest-api.'+n]}),'context':m,'config':c}));m['withMethods']&&this['fsi'][B(0x120)]({'srcPath':B(0xf2),'destPath':this[B(0x113)][B(0xde)]({'pathParts':[B(0x105),B(0x11b),b[B(0xe4)],j,B(0xf7)+n]}),'context':m,'config':c});m[B(0xf9)]&&this['fsi'][B(0x120)]({'srcPath':B(0xd7),'destPath':this[B(0x113)][B(0xde)]({'pathParts':[B(0x105),B(0x11b),b['dir'],j,B(0xe9)+n]}),'context':m,'config':c});c['engines'][B(0x10a)]!=='none'&&this[B(0x113)][B(0x120)]({'srcPath':B(0xe8),'destPath':this[B(0x113)][B(0xde)]({'pathParts':[B(0x105),B(0x11b),b[B(0xe4)],j,j+B(0xec)+n]}),'context':m,'config':c});m[B(0x102)]&&this[B(0x113)][B(0x120)]({'srcPath':'api/publications.js','destPath':this['fsi'][B(0xde)]({'pathParts':[B(0x105),B(0x11b),b[B(0xe4)],j,B(0x127)+n]}),'context':m,'config':c});if(c['engines'][B(0xd5)]===B(0x112)){if(g[B(0xeb)]('withGql')){const q=this['fsi']['pathFromApp']({'pathParts':[B(0x105),B(0x10b),B(0xdc),B(0xe2)+c['engines']['js']]}),r=this['fsi'][B(0x122)]({'pathParts':[q],'config':c}),s=this['fsi']['pathFromApp']({'pathParts':[B(0x105),B(0x11b),b[B(0xe4)],j,B(0xd5),B(0xf4)+n]}),t='/imports/api'+l+j+'/graphql/typeDefs';this[B(0x113)][B(0x120)]({'srcPath':'api/typeDefs.js','destPath':s,'context':m,'config':c}),this[B(0x113)][B(0xfc)]({'filePath':r,'content':B(0xef)+k+'TypeDefs\x20}\x20from\x20\x27'+t+B(0xf8)}),this[B(0x113)][B(0x107)]({'filePath':r,'content':B(0xf5)+k+'TypeDefs);\x0a','begin':B(0x100),'end':B(0x129)});const u=this[B(0x113)][B(0xde)]({'pathParts':['imports','api',b['dir'],j,B(0xd5),B(0x101)+n]}),v='/imports/api'+l+j+B(0x11d);this[B(0x113)][B(0x120)]({'srcPath':'api/resolvers.js','destPath':u,'context':m,'config':c}),this[B(0x113)][B(0xfc)]({'filePath':r,'content':B(0x123)+k+B(0xdd)+v+'\x27;'}),this[B(0x113)][B(0x107)]({'filePath':r,'content':B(0x126)+k+'Resolvers);\x0a\x0a','begin':B(0x100),'end':B(0x129)});}}this[B(0x113)][B(0x120)]({'srcPath':B(0x10e),'destPath':this[B(0x113)][B(0xde)]({'pathParts':['imports','startup',B(0xdc),B(0x108)+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const p=this['fsi'][B(0xde)]({'pathParts':['imports','startup',B(0xdc),'index.'+c['engines']['js']]});this[B(0x113)][B(0x118)]({'filePath':p,'content':B(0x124)+j+B(0xd6)});});}catch(h){console[A(0x10c)](h),process[A(0xee)](0x0);}});
@@ -0,0 +1 @@
1
+ function a88d(a,b){const c=a88c();return a88d=function(d,e){d=d-0x7e;let f=c[d];return f;},a88d(a,b);}const a88n=a88d;(function(a,b){const k=a88d,c=a();while(!![]){try{const d=-parseInt(k(0x80))/0x1+-parseInt(k(0xa3))/0x2*(parseInt(k(0xa0))/0x3)+parseInt(k(0x8f))/0x4+-parseInt(k(0x9b))/0x5+parseInt(k(0xa2))/0x6*(-parseInt(k(0x97))/0x7)+parseInt(k(0xaa))/0x8+-parseInt(k(0xa9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a88c,0xb5328));const a88b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a88d;if(c){const e=c[l(0x8c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a88a=a88b(this,function(){const m=a88d;return a88a['toString']()['search'](m(0x9e))['toString']()[m(0x8e)](a88a)[m(0x98)](m(0x9e));});a88a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a88c(){const q=['496714fufWfA','col','template','dir','startup','tsx','2078946dWRaPp','6654184mCfJIi','installMeteorPackage','appPathPrefix','engines','.app-tests.','collection/tests.js','249513hzUyXk','pathFromApp','resourceName','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','injectAtEndOfFile','collection/collection.js','mongo','index.','collection','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','create','test','apply','getProjectConfig','constructor','5360628OtUFli','maka:check','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','notice','collections','\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','none','withValue','243957gLvmDV','search','fsi','checkMeteorPackage','2284625TTdjYk','where','maka\x20g:collection\x20todos','(((.+)+)+)+$','imports','3wMinzT','error','42ZbkEJI'];a88c=function(){return q;};return a88c();}Generator[a88n(0x8a)]({'name':a88n(0x88),'aliases':[a88n(0xa4)],'usage':a88n(0x89),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':[a88n(0xa6),a88n(0x9c)],'description':a88n(0x94),'examples':[a88n(0x9d)]},async function(a,b){const o=a88n;try{const c=this[o(0x99)][o(0x81)]({}),d=this[o(0x99)][o(0x8d)]();this[o(0x99)][o(0x96)](d,async()=>{const p=o,f=paramCase(b[p(0x82)]),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b[p(0x82)]),'fileName':f,'where':b['where'],'test':d['engines'][p(0x8b)],'noRename':!![]};let h='js';d['engines']['js']===p(0xa8)&&(h='ts');!this['fsi'][p(0x9a)](p(0x86))&&(Log[p(0x92)](p(0x91)),await this[p(0x99)]['installMeteorPackage'](p(0x86),{'cwd':c}));!this[p(0x99)][p(0x9a)](p(0x90))&&(Log['notice'](p(0x83)),await this[p(0x99)][p(0xab)](p(0x90),{'cwd':c}));this['fsi'][p(0xa5)]({'srcPath':p(0x85),'destPath':this[p(0x99)]['pathFromApp']({'pathParts':['imports','startup',b[p(0xac)],p(0x93),b['dir'],f+'.'+h]}),'context':g,'config':d});d[p(0xad)][p(0x8b)]!==p(0x95)&&this['fsi'][p(0xa5)]({'srcPath':p(0x7f),'destPath':this[p(0x99)]['pathFromApp']({'pathParts':[p(0x9f),p(0xa7),b[p(0xac)],p(0x93),b[p(0xa6)],f+p(0x7e)+h]}),'context':g,'config':d});const i=b[p(0xa6)]?'/'+b[p(0xa6)]+'/':'/',j=this[p(0x99)][p(0x81)]({'pathParts':[p(0x9f),p(0xa7),b[p(0xac)],p(0x87)+d['engines']['js']]});this['fsi'][p(0x84)]({'filePath':j,'content':'import\x20\x27./collections'+i+f+'\x27;'});});}catch(f){Log[o(0xa1)](f);}});
@@ -0,0 +1 @@
1
+ const a89q=a89d;(function(a,b){const n=a89d,c=a();while(!![]){try{const d=-parseInt(n(0xbb))/0x1*(-parseInt(n(0xdc))/0x2)+parseInt(n(0xfb))/0x3*(parseInt(n(0xc4))/0x4)+parseInt(n(0xd9))/0x5+-parseInt(n(0xcc))/0x6*(-parseInt(n(0xc2))/0x7)+parseInt(n(0xba))/0x8*(-parseInt(n(0xbd))/0x9)+-parseInt(n(0xde))/0xa+parseInt(n(0xfc))/0xb*(-parseInt(n(0xd5))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a89c,0x241a3));const a89b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a89d;if(c){const e=c[o(0xe9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a89a=a89b(this,function(){const p=a89d;return a89a['toString']()[p(0xda)](p(0xcb))['toString']()[p(0xf9)](a89a)['search'](p(0xcb));});a89a();function a89c(){const t=['cssCaseName','checkNpmPackage','warn','860160IfHask','search','import\x20\x27','40JKGRLu','maka\x20g:comp\x20todos/todos-item','1055150yBsuks','true','string','\x20}\x20from\x20\x27','pathFromProject','injectAtEndOfFile','withTranslations','root','.css','test/test.js','fsi','apply','import\x20{\x20','graphql','client','installNpmPackage','create','reflux','getProjectConfig','\x27;\x0a','css','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','comp','tsx','template','import\x20\x27./','test','constructor','\x20};\x0a','569469bTjeHj','11fTQUtR','error','react','component','engines','resourceName','dir','8ahrTdm','13627AkjYdb','setTemplate','160425pyKvXt','className','withValue','injectAtBeginningOfFile','pathFromApp','1978179yeiFRR','template/template.css','4MEfCbX','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','features','imports','ramda','api','.tests.js','(((.+)+)+)+$','6wgPRCS','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','templates.js','assign','/imports/ui/components','.js','findAppDirectory','startup','ssr','7749324DRrlTi'];a89c=function(){return t;};return a89c();}import a89e from'path';function a89d(a,b){const c=a89c();return a89d=function(d,e){d=d-0xb4;let f=c[d];return f;},a89d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a89q(0xf4)];Generator[a89q(0xee)]({'name':a89q(0xb6),'aliases':aliases,'usage':a89q(0xc5),'shortDesc':a89q(0xf3),'validOpts':[a89q(0xb9)],'examples':[a89q(0xdd)]},async function(a,b){const r=a89q;try{const c=this[r(0xe8)][r(0xd2)](),d=r(0xd0),f=this[r(0xe8)][r(0xc1)]({'pathParts':[d,b[r(0xb9)],paramCase(b['resourceName']),paramCase(b['resourceName'])]}),g=await this[r(0xe8)][r(0xf0)]();this[r(0xe8)][r(0xbf)](g,async()=>{const s=r;typeof g[s(0xf6)]['test']==='string'&&(g[s(0xf6)][s(0xf8)]=g[s(0xf6)][s(0xf8)]===s(0xdf)?!![]:![],this[s(0xe8)][s(0xbc)]('test',g['template'][s(0xf8)]));typeof g['template'][s(0xf2)]===s(0xe0)&&(g['template'][s(0xf2)]=g[s(0xf6)][s(0xf2)]===s(0xdf)?!![]:![],this['fsi'][s(0xbc)](s(0xf2),g[s(0xf6)][s(0xf2)]));typeof g['template']['js']===s(0xe0)&&(g['template']['js']=g[s(0xf6)]['js']==='true'?!![]:![],this[s(0xe8)][s(0xbc)]('js',g['template']['js']));!g[s(0xc6)]&&(g[s(0xc6)]={});!b[s(0xe5)]&&!this[s(0xe8)][s(0xd7)](s(0xc8))&&(Log[s(0xd8)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[s(0xe8)][s(0xed)](s(0xc8),{'cwd':c}));if(!b[s(0xe5)]&&!this[s(0xe8)][s(0xd7)](s(0xb5))){Log[s(0xb4)](s(0xcd));return;}const h={'name':pascalCase(b['resourceName']),'myPath':a89e['relative'](this[s(0xe8)][s(0xe2)]({}),f),'cssCaseName':paramCase(b[s(0xb8)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[s(0xb8)]),'fileName':paramCase(b['resourceName']),'graphql':g[s(0xb7)][s(0xeb)],'features':g['features'],'client':g[s(0xb7)][s(0xec)],'api':g[s(0xb7)][s(0xc9)],'ssr':g[s(0xb7)][s(0xd4)],'test':g[s(0xb7)]['test'],'theme':g['engines']['theme'],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0xc6)][s(0xe4)]};this[s(0xe8)][s(0xf6)]({'srcPath':'component/component.js','destPath':f+s(0xd1),'context':h,'framework':s(0xb5),'config':g});g[s(0xb7)][s(0xf8)]!=='none'&&this[s(0xe8)][s(0xf6)]({'srcPath':s(0xe7),'destPath':f+s(0xca),'context':h,'framework':s(0xb5),'config':g});g['template'][s(0xf2)]&&(this['fsi']['template']({'srcPath':s(0xc3),'destPath':f+s(0xe6),'context':Object[s(0xcf)]({},h,{'className':paramCase(b[s(0xb8)])}),'config':g}),this[s(0xe8)]['injectAtBeginningOfFile']({'filePath':f+'.'+g[s(0xb7)]['js'],'content':s(0xf7)+h[s(0xd6)]+'.'+g[s(0xb7)]['css']+'\x27;'}));const i=b[s(0xb9)]?'/'+b[s(0xb9)]+'/':'/',j=''+d+i+h['fileName']+'/'+h['fileName'];let k;if(g[s(0xb7)][s(0xd4)]===s(0xdf)){const l=this[s(0xe8)][s(0xc1)]({'pathParts':[s(0xc7),s(0xd3),'lib',s(0xce)]});k=this[s(0xe8)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this[s(0xe8)][s(0xc1)]({'pathParts':[s(0xc7),s(0xd3),s(0xec),s(0xce)]});k=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m],'config':g});}g['engines'][s(0xec)]===s(0xb5)||g['engines'][s(0xec)]===s(0xef)?(g['engines']['js']===s(0xf5)?this[s(0xe8)][s(0xc0)]({'filePath':k,'content':s(0xea)+h[s(0xbe)]+s(0xe1)+j+'\x27;\x0a'}):this[s(0xe8)][s(0xc0)]({'filePath':k,'content':'import\x20{\x20'+h[s(0xbe)]+s(0xe1)+j+'.'+g[s(0xb7)]['js']+s(0xf1)}),this[s(0xe8)]['injectAtEndOfFile']({'filePath':k,'content':'export\x20{\x20'+h[s(0xbe)]+s(0xfa)})):this['fsi'][s(0xe3)]({'filePath':k,'content':s(0xdb)+j+'.'+g[s(0xb7)]['js']+s(0xf1)});});}catch(h){Log[r(0xb4)](h);}});
@@ -0,0 +1 @@
1
+ const a90j=a90d;function a90d(a,b){const c=a90c();return a90d=function(d,e){d=d-0x141;let f=c[d];return f;},a90d(a,b);}function a90c(){const m=['dev','prod','maka\x20{generate,\x20g}:{config}\x20<name>','config/settings.json','179TtwcfQ','getProjectConfig','718866JJFehF','isDocker','ubuntu','Generate\x20configuration\x20settings.','constructor','762lIoGwt','fsi','process.env','toString','production','120OXBiOi','(((.+)+)+)+$','23255KikqhP','config/process.env','template','4592vzhNxW','search','appName','479409iKAJAB','pathFromProject','3057672jTcVqI','resourceName','config','2143379AMWYMo','2643888bwQNjJ'];a90c=function(){return m;};return a90c();}(function(a,b){const h=a90d,c=a();while(!![]){try{const d=parseInt(h(0x148))/0x1*(-parseInt(h(0x159))/0x2)+-parseInt(h(0x15c))/0x3+-parseInt(h(0x143))/0x4+parseInt(h(0x156))/0x5*(parseInt(h(0x14f))/0x6)+-parseInt(h(0x142))/0x7+parseInt(h(0x15e))/0x8+-parseInt(h(0x14a))/0x9*(-parseInt(h(0x154))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a90c,0x600ca));const a90b=(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;};}()),a90a=a90b(this,function(){const i=a90d;return a90a[i(0x152)]()[i(0x15a)](i(0x155))[i(0x152)]()[i(0x14e)](a90a)[i(0x15a)](i(0x155));});a90a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a90j(0x141),'usage':a90j(0x146),'shortDesc':a90j(0x14d),'validOpts':[a90j(0x14b)],'examples':['maka\x20g:config\x20production']},function(a,b){const k=a90j,c=this[k(0x150)][k(0x149)]();this[k(0x150)]['withValue'](c,async()=>{const l=k,d={'app':c[l(0x15b)],'appFileCase':paramCase(c[l(0x15b)]),'name':pascalCase(b[l(0x15f)]),'fileName':paramCase(b[l(0x15f)]),'camelCase':camelCase(b['resourceName']),'userName':l(0x14c),'isDocker':b[l(0x14b)]};let e=a[0x0];if(e===l(0x144))e='development';else e===l(0x145)&&(e=l(0x153));const f=this[l(0x150)][l(0x15d)]({'pathParts':[l(0x141),e,'settings.json']});this[l(0x150)]['template']({'srcPath':l(0x147),'destPath':f,'context':d,'config':c});if(!b[l(0x14b)]){const g=this[l(0x150)][l(0x15d)]({'pathParts':[l(0x141),e,l(0x151)]});this['fsi'][l(0x158)]({'srcPath':l(0x157),'destPath':g,'context':d,'config':c});}});});
@@ -0,0 +1 @@
1
+ function a91d(a,b){const c=a91c();return a91d=function(d,e){d=d-0x1ca;let f=c[d];return f;},a91d(a,b);}const a91q=a91d;(function(a,b){const n=a91d,c=a();while(!![]){try{const d=parseInt(n(0x1e4))/0x1*(-parseInt(n(0x1e0))/0x2)+parseInt(n(0x1f1))/0x3+parseInt(n(0x1d2))/0x4*(parseInt(n(0x1f4))/0x5)+-parseInt(n(0x1e3))/0x6*(-parseInt(n(0x1dc))/0x7)+parseInt(n(0x1d0))/0x8*(-parseInt(n(0x1fd))/0x9)+parseInt(n(0x1d9))/0xa+parseInt(n(0x1e1))/0xb*(-parseInt(n(0x1fa))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a91c,0x894ae));const a91b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a91d;if(c){const e=c[o(0x1d5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a91a=a91b(this,function(){const p=a91d;return a91a[p(0x1d1)]()[p(0x1db)](p(0x1fe))[p(0x1d1)]()['constructor'](a91a)[p(0x1db)](p(0x1fe));});a91a();import{camelCase,paramCase,pascalCase}from'change-case';function a91c(){const t=['sqlite','dir','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','fsi','imports','maka\x20g:dbc\x20geoserver\x20--type=pgsql','server','register-','better-sqlite3','maka\x20g:dbc\x20azure\x20--type=mssql','Invalid\x20type\x20','2937054StcgUh','create','resourceName','158825RAcYAx','(blank)','template','dbc','pgsql','dbAnswer','24436452afoBIq','withValue','MS\x20SQL','12789nmbulD','(((.+)+)+)+$','PostgreSQL','type','config.','checkNpmPackage','dbc/config.js','warn','4504JAhCnV','toString','124uQQmPu','DB\x20Driver','list','apply','index.','startup','import\x20\x27./register-','8243990UCLjri','pathFromApp','search','19761iJWceR','installNpmPackage','error','indexOf','2kmJcrv','11HDxQfn','mssql','1968DlQWEs','315332AbDJdX','engines'];a91c=function(){return t;};return a91c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a91q(0x1f2)]({'name':a91q(0x1f7),'usage':'maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','shortDesc':'Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','validOpts':[a91q(0x1cb),a91q(0x1e7)],'examples':[a91q(0x1eb),a91q(0x1ef),'maka\x20g:dbc\x20todos\x20--type=sqlite']},async function(a,b){const r=a91q;try{const c=await this[r(0x1e9)]['getProjectConfig'](),d=this['fsi']['pathFromApp']({}),f=paramCase(b['resourceName']);if(!b[r(0x1cb)]){const h={'type':r(0x1d4),'name':r(0x1f9),'message':r(0x1d3),'choices':[{'name':r(0x1ca),'value':'pgsql'},{'name':r(0x1fc),'value':r(0x1e2)}]},{dbAnswer:i}=await Actions['options'](h);i&&(b[r(0x1cb)]=i);}const g={'name':pascalCase(b[r(0x1f3)]),'fileName':paramCase(b[r(0x1f3)]),'camelCase':camelCase(b[r(0x1f3)]),'type':b[r(0x1cb)],'engine':c[r(0x1e5)]['js'],'noRename':!![]};this[r(0x1e9)][r(0x1fb)](c,async()=>{const s=r;let j='js';c[s(0x1e5)]['js']==='tsx'&&(j='ts');const k=[s(0x1e2),s(0x1f8)];if(k[s(0x1df)](g[s(0x1cb)])<0x0){const m=g['type']?g[s(0x1cb)]:s(0x1f5);Log[s(0x1de)](s(0x1f0)+m+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[s(0x1cb)]===s(0x1f8)&&!this[s(0x1e9)][s(0x1cd)]('pg')&&(Log[s(0x1cf)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this['fsi'][s(0x1dd)]('pg',{'cwd':d}));b['type']==='mssql'&&!this['fsi']['checkNpmPackage'](s(0x1e2))&&(Log['warn'](s(0x1e8)),await this['fsi']['installNpmPackage'](s(0x1e2),{'cwd':d}));b[s(0x1cb)]===s(0x1e6)&&!this[s(0x1e9)]['checkNpmPackage']('better-sqlite3')&&(Log['warn']('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this[s(0x1e9)][s(0x1dd)](s(0x1ee),{'cwd':d}));this[s(0x1e9)][s(0x1f6)]({'srcPath':s(0x1ce),'destPath':this[s(0x1e9)][s(0x1da)]({'pathParts':[s(0x1ea),s(0x1d7),s(0x1ec),s(0x1f7),b[s(0x1e7)],f,s(0x1cc)+j]}),'context':g,'config':c}),this['fsi'][s(0x1f6)]({'srcPath':'dbc/conn.js','destPath':this[s(0x1e9)][s(0x1da)]({'pathParts':[s(0x1ea),s(0x1d7),s(0x1ec),s(0x1f7),b['dir'],f,'conn.'+j]}),'context':g,'config':c}),this['fsi'][s(0x1f6)]({'srcPath':'dbc/register-dbc.js','destPath':this[s(0x1e9)][s(0x1da)]({'pathParts':[s(0x1ea),s(0x1d7),s(0x1ec),s(0x1ed)+f+'-dbc.'+j]}),'context':g,'config':c});const l=this[s(0x1e9)][s(0x1da)]({'pathParts':[s(0x1ea),'startup',s(0x1ec),s(0x1d6)+c['engines']['js']]});this[s(0x1e9)]['injectAtEndOfFile']({'filePath':l,'content':s(0x1d8)+f+'-dbc\x27;'});});}catch(j){Log[r(0x1de)](j);}});
@@ -0,0 +1 @@
1
+ const a92i=a92d;(function(a,b){const f=a92d,c=a();while(!![]){try{const d=-parseInt(f(0xaf))/0x1+-parseInt(f(0xb7))/0x2+parseInt(f(0xbe))/0x3*(-parseInt(f(0xae))/0x4)+-parseInt(f(0xc4))/0x5*(parseInt(f(0xc2))/0x6)+-parseInt(f(0xc6))/0x7*(-parseInt(f(0xc3))/0x8)+parseInt(f(0xca))/0x9*(parseInt(f(0xbb))/0xa)+-parseInt(f(0xb6))/0xb*(-parseInt(f(0xc7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a92c,0x4c41a));function a92c(){const l=['withValue','app','(((.+)+)+)+$','99wUlbwN','1123456mTBVVz','docker/Dockerfile','appName','maka\x20{generate,\x20g}:dockerfile','10KyVEoP','Dockerfile','error','63156BfsIvl','getProjectConfig','service','apply','956724aFzBew','534056WkpHXB','15jIJGgy','search','7ZXBovL','2399652qzmzXW','fsi','constructor','452907MWQKup','app.tar.gz','Generate\x20an\x20updated\x20dockerfile','join','24MqAXmw','438071JJnwkn','cert','toString','findProjectDirectory'];a92c=function(){return l;};return a92c();}const a92b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a92d;if(c){const e=c[g(0xc1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a92a=a92b(this,function(){const h=a92d;return a92a['toString']()[h(0xc5)]('(((.+)+)+)+$')[h(0xb1)]()[h(0xc9)](a92a)[h(0xc5)](h(0xb5));});a92a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a92d(a,b){const c=a92c();return a92d=function(d,e){d=d-0xad;let f=c[d];return f;},a92d(a,b);}import a92e from'path';Generator['create']({'name':'dockerfile','usage':a92i(0xba),'shortDesc':a92i(0xcc),'validOpts':[],'noResource':!![],'examples':['maka\x20g:dockerfile']},async function(){const j=a92i;try{const a=await this[j(0xc8)][j(0xbf)](),b=await this[j(0xc8)]['getGlobalConfig'](),c=this['fsi'][j(0xb2)]();this['fsi'][j(0xb3)](a,async()=>{const k=j,d={'app':b[k(0xb9)],'config':a,'appPath':a92e[k(0xad)](c,k(0xb4)),'bundlePath':a92e[k(0xad)](c,'build',k(0xcb)),'useCert':this[k(0xc8)]['isFile'](b[k(0xb0)])};this[k(0xc8)]['template']({'srcPath':k(0xb8),'destPath':a92e[k(0xad)](c,k(0xbc)),'framework':k(0xc0),'context':d,'config':a});});}catch(d){Log[j(0xbd)](d);}});
@@ -0,0 +1 @@
1
+ function a93d(a,b){const c=a93c();return a93d=function(d,e){d=d-0x74;let f=c[d];return f;},a93d(a,b);}const a93r=a93d;(function(a,b){const o=a93d,c=a();while(!![]){try{const d=-parseInt(o(0x74))/0x1*(-parseInt(o(0xab))/0x2)+parseInt(o(0x87))/0x3*(-parseInt(o(0x9f))/0x4)+parseInt(o(0x81))/0x5+-parseInt(o(0x99))/0x6+-parseInt(o(0x8d))/0x7*(-parseInt(o(0x96))/0x8)+parseInt(o(0xa6))/0x9+-parseInt(o(0xa2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a93c,0x3d371));function a93c(){const u=['fileName','css','injectAtBeginningOfFile','hook/hook.js','cssCaseName','69ASxDJD','(((.+)+)+)+$','ssr','react','error','/imports/ui/hooks','7aAwbHs','.app-tests.js','theme','string','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','hook','constructor','toString','warn','827032tVRHsy','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','none','2468790qmIZjj','test','.css','\x20}\x20from\x20\x27','export\x20{\x20','@apollo/client\x20isomorphic-fetch','69328GPnYvH','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','search','2291870DKNwCT','templates.js','pathFromProject','injectAtEndOfFile','3993921xBtEGI','engines','withTranslations','true','className','12RAzRTg','maka\x20g:hook\x20cool-hook','import\x20\x27','relative','apollo','withValue','setTemplate','startup','features','resourceName','tsx','61589wxIPEn','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','fsi','import\x20\x27./','client','apply','.js','template','dir','\x20};\x0a','pathFromApp','\x27;\x0a','checkNpmPackage','1866715CHUrRb'];a93c=function(){return u;};return a93c();}const a93b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a93d;if(c){const e=c[p(0x79)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a93a=a93b(this,function(){const q=a93d;return a93a[q(0x94)]()[q(0xa1)]('(((.+)+)+)+$')[q(0x94)]()[q(0x93)](a93a)[q(0xa1)](q(0x88));});a93a();import a93e from'path';import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator['create']({'name':a93r(0x92),'aliases':['h'],'checkWhere':![],'usage':a93r(0x91),'shortDesc':a93r(0x97),'validOpts':[a93r(0x7c)],'examples':[a93r(0xac)]},async function(a,b){const s=a93r;try{const c=this[s(0x76)][s(0x80)](s(0x8a));if(!c){Log[s(0x8b)](s(0xa0));throw new UsageError();}const d=this[s(0x76)][s(0x7e)](b),f=s(0x8c),g=this['fsi'][s(0x7e)]({'pathParts':[f,b[s(0x7c)],paramCase(b[s(0xb4)]),paramCase(b[s(0xb4)])]}),h=await this[s(0x76)]['getProjectConfig']();this[s(0x76)][s(0xb0)](h,async()=>{const t=s;typeof h['template'][t(0x83)]===t(0x90)&&(h['template'][t(0x83)]=h[t(0x7b)]['css']===t(0xa9)?!![]:![],this['fsi'][t(0xb1)](t(0x83),h[t(0x7b)][t(0x83)]));h[t(0xa7)]['graphql']===t(0xaf)&&!this[t(0x80)]('@apollo/client')&&(Log[t(0x95)](t(0x75)),await this['fsi']['installNpmPackage'](t(0x9e),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0xb4)]),'className':pascalCase(b[t(0xb4)]),'name':pascalCase(b[t(0xb4)]),'graphql':h[t(0xa7)]['graphql'],'theme':h['engines'][t(0x8f)],'features':h[t(0xb3)],'myPath':a93e[t(0xae)](this[t(0x76)][t(0xa4)]({}),g),'fileName':paramCase(b[t(0xb4)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0xb3)][t(0xa8)]};this[t(0x76)]['template']({'srcPath':t(0x85),'destPath':g+t(0x7a),'context':i,'config':h,'framework':t(0x8a)});h[t(0x7b)][t(0x83)]&&(this[t(0x76)][t(0x7b)]({'srcPath':'template/template.css','destPath':g+t(0x9b),'context':Object['assign']({},i,{'className':i[t(0x86)]}),'config':h}),this[t(0x76)][t(0x84)]({'filePath':g+'.'+h['engines']['js'],'content':t(0x77)+i[t(0x82)]+'.'+h[t(0xa7)][t(0x83)]+'\x27;'}));h[t(0xa7)][t(0x9a)]!==t(0x98)&&this['fsi'][t(0x7b)]({'srcPath':'test/test.js','destPath':g+t(0x8e),'framework':'react','context':i,'config':h});const j=b[t(0x7c)]?'/'+b[t(0x7c)]+'/':'/',k=''+f+j+i[t(0x82)]+'/'+i[t(0x82)];let l;if(h[t(0xa7)][t(0x89)]===t(0xa9)){const m=this[t(0x76)]['pathFromApp']({'pathParts':['imports',t(0xb2),'lib',t(0xa3)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m],'config':h});}else{const n=this[t(0x76)][t(0x7e)]({'pathParts':['imports','startup',t(0x78),t(0xa3)]});l=this[t(0x76)]['rewriteDestinationPathForEngine']({'pathParts':[n],'config':h});}h[t(0xa7)]['client']===t(0x8a)?(h[t(0xa7)]['js']===t(0xb5)?this[t(0x76)][t(0x84)]({'filePath':l,'content':'import\x20{\x20'+i[t(0xaa)]+t(0x9c)+k+'\x27;\x0a'}):this[t(0x76)]['injectAtBeginningOfFile']({'filePath':l,'content':'import\x20{\x20'+i[t(0xaa)]+t(0x9c)+k+'.'+h[t(0xa7)]['js']+'\x27;\x0a'}),this[t(0x76)][t(0xa5)]({'filePath':l,'content':t(0x9d)+i[t(0xaa)]+t(0x7d)})):this[t(0x76)]['injectAtEndOfFile']({'filePath':l,'content':t(0xad)+k+'.'+h[t(0xa7)]['js']+t(0x7f)});});}catch(i){Log['error'](i);}});
@@ -0,0 +1 @@
1
+ const a94k=a94d;(function(a,b){const h=a94d,c=a();while(!![]){try{const d=-parseInt(h(0x13e))/0x1+parseInt(h(0x147))/0x2*(parseInt(h(0x14f))/0x3)+parseInt(h(0x149))/0x4*(parseInt(h(0x136))/0x5)+parseInt(h(0x134))/0x6*(parseInt(h(0x148))/0x7)+-parseInt(h(0x140))/0x8+parseInt(h(0x14c))/0x9*(parseInt(h(0x145))/0xa)+parseInt(h(0x13f))/0xb*(-parseInt(h(0x13c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0x85ee9));const a94b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a94d;if(c){const e=c[i(0x138)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a94a=a94b(this,function(){const j=a94d;return a94a[j(0x141)]()[j(0x13b)](j(0x14a))[j(0x141)]()['constructor'](a94a)[j(0x13b)]('(((.+)+)+)+$');});a94a();function a94c(){const n=['error','6099790pCyFTi','kit','2lGCuAf','21gIGNrI','704056JuKiTv','(((.+)+)+)+$','engines','9QwNVRV','withValue','indexOf','867924UUODVe','(blank)',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','getProjectConfig','fsi','177108HGlvTx','login','25PsNMGp','resourceName','apply','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','maka\x20g:k\x20city-map\x20--type=leaflet-map','search','5355804xcGHhN','notice','156602ArhAWf','11rpkqsA','5731256TrirXO','toString','type','NIE'];a94c=function(){return n;};return a94c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a94d(a,b){const c=a94c();return a94d=function(d,e){d=d-0x133;let f=c[d];return f;},a94d(a,b);}Generator['create']({'name':a94k(0x146),'aliases':['k'],'usage':'maka\x20{generate,\x20g}:{kit}\x20<kit-name>','shortDesc':a94k(0x139),'validOpts':[a94k(0x142)],'examples':['maka\x20g:kit\x20--type=map',a94k(0x13a)]},async function(a,b){const l=a94k;try{const c=this[l(0x133)][l(0x152)]();this[l(0x133)][l(0x14d)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x137)]),'fileName':paramCase(b[m(0x137)]),'camelCase':camelCase(b[m(0x137)]),'type':b[m(0x142)],'engine':c[m(0x14b)]['js'],'noRename':!![]},f=['leaflet-map','login'];if(f[m(0x14e)](d['type'])<0x0){const g=d[m(0x142)]?d[m(0x142)]:m(0x150);Log[m(0x144)]('Invalid\x20type\x20'+g+m(0x151));return;}b[m(0x142)]==='map'&&Log[m(0x13d)](m(0x143)),b[m(0x142)]===m(0x135)&&Log['notice'](m(0x143));});}catch(d){Log[l(0x144)](d);}});
@@ -0,0 +1 @@
1
+ const a95r=a95d;(function(a,b){const o=a95d,c=a();while(!![]){try{const d=-parseInt(o(0x1f7))/0x1*(-parseInt(o(0x20e))/0x2)+parseInt(o(0x220))/0x3*(-parseInt(o(0x20b))/0x4)+parseInt(o(0x1ef))/0x5*(parseInt(o(0x207))/0x6)+-parseInt(o(0x203))/0x7+-parseInt(o(0x1fe))/0x8+parseInt(o(0x234))/0x9+parseInt(o(0x205))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x3e80a));const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a95d;if(c){const e=c[p(0x219)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const q=a95d;return a95a[q(0x1f1)]()[q(0x216)](q(0x235))[q(0x1f1)]()['constructor'](a95a)[q(0x216)](q(0x235));});a95a();import a95e from'path';function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0x1ec;let f=c[d];return f;},a95d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a95c(){const u=['checkNpmPackage','test','setTemplate','client','hook/hook.js','3AMNuPY','engines','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','.app-tests.js','warn','graphql','resourceName','import\x20\x27./','withHook','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','templates.js','maka\x20g:layout\x20mobile/iPhone8','assign','imports','withHooks','theme','.js','true','api','import\x20{\x20','2797056sxUQlR','(((.+)+)+)+$','relative','template','\x20};\x0a','25wkzaAo','injectAtEndOfFile','toString','fsi','split','className','installNpmPackage','withTranslations','5223kQfycy','fileName','react','ramda','dir','Scaffolding\x20for\x20a\x20React\x20Layout.','withValue','3602712YtQURf','layout','getProjectConfig','\x27;\x0a','pathFromApp','1447432kOdYKR','\x20}\x20from\x20\x27','5017560DTPemU','maka\x20g:l\x20web/safari','224550RwJqxp','injectAtBeginningOfFile','template/template.css','none','1411652vcJlYl','findAppDirectory','features','102VCXeLF','rewriteDestinationPathForEngine','pathFromProject','import\x20\x27','ssr','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','create','startup','search','css','string','apply','lib'];a95c=function(){return u;};return a95c();}const aliases=['l'];Generator[a95r(0x214)]({'name':a95r(0x1ff),'aliases':aliases,'usage':a95r(0x213),'shortDesc':a95r(0x1fc),'validOpts':[],'examples':[a95r(0x22b),a95r(0x206)]},function(a,b){const s=a95r,c='/imports/ui/layouts',d=this[s(0x1f2)][s(0x20c)](),e=this[s(0x1f2)][s(0x202)]({'pathParts':[c,b['dir'],paramCase(b[s(0x226)]),paramCase(b[s(0x226)])]}),f=this[s(0x1f2)][s(0x200)]();this[s(0x1f2)][s(0x1fd)](f,()=>{const t=s;typeof f[t(0x1ed)][t(0x21c)]===t(0x218)&&(f[t(0x1ed)][t(0x21c)]=f[t(0x1ed)][t(0x21c)]===t(0x231)?!![]:![],this[t(0x1f2)][t(0x21d)](t(0x21c),f['template'][t(0x21c)]));typeof f[t(0x1ed)][t(0x217)]===t(0x218)&&(f[t(0x1ed)][t(0x217)]=f[t(0x1ed)][t(0x217)]===t(0x231)?!![]:![],this['fsi']['setTemplate'](t(0x217),f['template'][t(0x217)]));typeof f[t(0x1ed)]['js']===t(0x218)&&(f['template']['js']=f[t(0x1ed)]['js']===t(0x231)?!![]:![],this['fsi'][t(0x21d)]('js',f[t(0x1ed)]['js']));!f[t(0x20d)]&&(f[t(0x20d)]={});const g=b['_']?b['_'][0x0][t(0x1f3)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this[t(0x21b)](t(0x1fa))&&(Log[t(0x224)](t(0x222)),this['fsi'][t(0x1f5)](t(0x1fa),{'cwd':d}));if(h&&!this[t(0x21b)](t(0x1f9))){Log[t(0x224)](t(0x229));return;}const i={'name':pascalCase(b['resourceName']),'myPath':a95e[t(0x1ec)](this[t(0x1f2)][t(0x210)]({}),e),'cssCaseName':paramCase(b[t(0x226)]),'className':pascalCase(b[t(0x226)]),'camelCaseName':camelCase(b[t(0x226)]),'fileName':paramCase(b['resourceName']),'graphql':f[t(0x221)][t(0x225)],'features':f['features'],'client':f['engines']['client'],'api':f['engines'][t(0x232)],'ssr':f['engines']['ssr'],'test':f[t(0x221)][t(0x21c)],'theme':f[t(0x221)][t(0x22f)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x20d)][t(0x1f6)]};f[t(0x20d)]?.[t(0x22e)]||b[t(0x228)]?this[t(0x1f2)][t(0x1ed)]({'srcPath':t(0x21f),'destPath':e+t(0x230),'framework':t(0x1f9),'context':i,'config':f}):this['fsi'][t(0x1ed)]({'srcPath':'component/component.js','destPath':e+t(0x230),'framework':'react','context':i,'config':f});f[t(0x221)][t(0x21c)]!==t(0x20a)&&this[t(0x1f2)]['template']({'srcPath':'test/test.js','destPath':e+t(0x223),'framework':t(0x1f9),'context':i,'config':f});f['template']['css']&&(this[t(0x1f2)]['template']({'srcPath':t(0x209),'destPath':e+'.css','context':Object[t(0x22c)]({},i,{'className':paramCase(b['resourceName'])}),'config':f}),this[t(0x1f2)][t(0x208)]({'filePath':e+'.'+f[t(0x221)]['js'],'content':t(0x227)+i[t(0x1f8)]+'.'+f[t(0x221)][t(0x217)]+'\x27;'}));const j=b[t(0x1fb)]?'/'+b[t(0x1fb)]+'/':'/',k=''+c+j+i['fileName']+'/'+i[t(0x1f8)];let l;if(f[t(0x221)][t(0x212)]==='true'){const m=this['fsi'][t(0x202)]({'pathParts':[t(0x22d),t(0x215),t(0x21a),t(0x22a)]});l=this[t(0x1f2)][t(0x20f)]({'pathParts':[m],'config':f});}else{const n=this['fsi'][t(0x202)]({'pathParts':[t(0x22d),t(0x215),'client',t(0x22a)]});l=this[t(0x1f2)][t(0x20f)]({'pathParts':[n],'config':f});}f[t(0x221)][t(0x21e)]===t(0x1f9)?(f[t(0x221)]['js']==='tsx'?this[t(0x1f2)][t(0x208)]({'filePath':l,'content':t(0x233)+i['className']+'\x20}\x20from\x20\x27'+k+t(0x201)}):this[t(0x1f2)][t(0x208)]({'filePath':l,'content':t(0x233)+i[t(0x1f4)]+t(0x204)+k+'.'+f[t(0x221)]['js']+'\x27;\x0a'}),this['fsi'][t(0x1f0)]({'filePath':l,'content':'export\x20{\x20'+i[t(0x1f4)]+t(0x1ee)})):this[t(0x1f2)]['injectAtEndOfFile']({'filePath':l,'content':t(0x211)+k+'.'+f[t(0x221)]['js']+t(0x201)});});});
@@ -0,0 +1 @@
1
+ const a96i=a96d;function a96c(){const j=['toString','23585247zvwwVx','search','2272200odnORw','190114lRcefo','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','(((.+)+)+)+$','maka\x20g:hook\x20cool-hook','6142398khiFnW','maka\x20generate:api\x20Trucks','561358pjKPHe','apply','Maka!','7BfMydX','8cIFwEL','1000608prkwWL','3316032KQsmki'];a96c=function(){return j;};return a96c();}(function(a,b){const f=a96d,c=a();while(!![]){try{const d=parseInt(f(0x170))/0x1+parseInt(f(0x176))/0x2+parseInt(f(0x16a))/0x3*(-parseInt(f(0x169))/0x4)+-parseInt(f(0x16f))/0x5+-parseInt(f(0x174))/0x6*(parseInt(f(0x168))/0x7)+-parseInt(f(0x16b))/0x8+parseInt(f(0x16d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x81cab));function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x167;let f=c[d];return f;},a96d(a,b);}const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a96d;if(c){const e=c[g(0x177)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const h=a96d;return a96a['toString']()['search'](h(0x172))[h(0x16c)]()['constructor'](a96a)[h(0x16e)](h(0x172));});a96a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':'maka','shortDesc':a96i(0x167),'validOpts':[],'description':'\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','usage':a96i(0x171),'examples':[a96i(0x175),a96i(0x173)]},function(){return null;});export default MakaGen;
@@ -0,0 +1 @@
1
+ const a97m=a97d;(function(a,b){const k=a97d,c=a();while(!![]){try{const d=-parseInt(k(0xcd))/0x1+-parseInt(k(0xc9))/0x2+-parseInt(k(0xcf))/0x3*(parseInt(k(0xea))/0x4)+-parseInt(k(0xca))/0x5+parseInt(k(0xe8))/0x6*(-parseInt(k(0xde))/0x7)+parseInt(k(0xe4))/0x8*(parseInt(k(0xd5))/0x9)+parseInt(k(0xd9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x29077));const a97b=(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;};}()),a97a=a97b(this,function(){const l=a97d;return a97a[l(0xed)]()[l(0xf0)]('(((.+)+)+)+$')[l(0xed)]()[l(0xe3)](a97a)[l(0xf0)](l(0xcb));});function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0xc9;let f=c[d];return f;},a97d(a,b);}a97a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a97m(0xd8)]({'name':a97m(0xd0),'aliases':['m'],'usage':a97m(0xd1),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':[a97m(0xec)],'examples':[a97m(0xd3)]},function(a,b){const n=a97m;try{const c=this['fsi']['getProjectConfig']();this['fsi'][n(0xdd)](c,async()=>{const o=n,d=paramCase(b[o(0xdc)]),f={'name':b[o(0xdc)],'fileName':d,'className':pascalCase(b[o(0xdc)]),'camelCase':camelCase(b[o(0xdc)]),'noRename':!![]};let g='js';c[o(0xe0)]['js']===o(0xe2)&&(g='ts');const h=this[o(0xef)]['pathFromApp']({});(!this[o(0xef)][o(0xee)](o(0xe5))||!this[o(0xef)]['checkMeteorPackage'](o(0xd6))||!this[o(0xef)][o(0xee)](o(0xeb)))&&(Log['warn'](o(0xe9)),this[o(0xef)][o(0xf2)](o(0xd2),{'cwd':h}));this[o(0xef)][o(0xdb)]({'srcPath':o(0xe6),'destPath':this['fsi'][o(0xda)]({'pathParts':[o(0xd7),'startup',b['appPathPrefix'],o(0xdf),b[o(0xec)],d+'-rpc-method.'+g]}),'context':f,'config':c});const i=b[o(0xec)]?'/'+b['dir']+'/':'/',j=this['fsi'][o(0xda)]({'pathParts':[o(0xd7),o(0xe7),b[o(0xd4)],o(0xf1)+c['engines']['js']]});this[o(0xef)]['injectAtEndOfFile']({'filePath':j,'content':o(0xe1)+i+d+o(0xcc)});});}catch(d){Log[n(0xce)](d);}});function a97c(){const p=['fsi','search','index.','installMeteorPackage','70814OZYVbY','349245ujiUsr','(((.+)+)+)+$','-rpc-method\x27;','252184bGXlpy','error','1671FCRbLx','method','maka\x20{generate,\x20g}:{method,\x20m}\x20name','check\x20ddp-rate-limiter\x20mdg:validated-method','maka\x20g:method\x20todos','appPathPrefix','2401137nCNwbu','ddp-rate-limiter','imports','create','5834850GwVbLY','pathFromApp','template','resourceName','withValue','7OgqsKJ','methods','engines','import\x20\x27./methods','tsx','constructor','8SiHziP','check','method/method.js','startup','1845096txjqKB','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','124ZvpgKG','mdg:validated-method','dir','toString','checkMeteorPackage'];a97c=function(){return p;};return a97c();}
@@ -0,0 +1 @@
1
+ const a98o=a98d;(function(a,b){const l=a98d,c=a();while(!![]){try{const d=parseInt(l(0xf9))/0x1+parseInt(l(0xd9))/0x2+-parseInt(l(0xfa))/0x3*(-parseInt(l(0xea))/0x4)+-parseInt(l(0xf4))/0x5+parseInt(l(0xd3))/0x6+-parseInt(l(0xf3))/0x7+parseInt(l(0xe8))/0x8*(-parseInt(l(0xd4))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x9dc84));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a98d;if(c){const e=c[m(0xe3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const n=a98d;return a98a[n(0xe6)]()[n(0xd5)](n(0xd6))[n(0xe6)]()['constructor'](a98a)[n(0xd5)]('(((.+)+)+)+$');});a98a();function a98c(){const s=['theme','server','package/','template/template.js','store','apply','lib','package/package.js','toString','fsi','122824MEtOqS','hasOwnProperty','364TkFxCH','.js','package.js','pathFromApp','pathFromAppWithNoReWrite','ssr','noRename','layout','dir','932372zrbtsG','1479575fLXSsP','forEach','client','packages','/client/','181789XwJlob','33144fVdxKI','features','6192816fbcjeG','747ZDSKPn','search','(((.+)+)+)+$','create','relative','260786kGWyeC','engines','resourceName','template','/package.js'];a98c=function(){return s;};return a98c();}function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0xd2;let f=c[d];return f;},a98d(a,b);}import a98e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a98o(0xd7)]({'name':'package','aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':[a98o(0xf2)],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const p=a98o,c=paramCase(b['resourceName']),d=this[p(0xe7)][p(0xed)]({'pathParts':[p(0xf7),b[p(0xf2)],c]}),e=this[p(0xe7)][p(0xee)]({'pathParts':[p(0xf7),b['dir'],c,p(0xec)]}),f=this['fsi']['getProjectConfig']();this['fsi']['withValue'](f,async()=>{const q=p,g={'name':paramCase(b['resourceName']),'myPath':a98e[q(0xd8)](this[q(0xe7)]['pathFromProject']({}),d),'cssCaseName':paramCase(b[q(0xdb)]),'className':pascalCase(b[q(0xdb)]),'camelCaseName':camelCase(b[q(0xdb)]),'fileName':c,'client':f[q(0xda)][q(0xf6)],'graphql':f[q(0xda)]['graphql'],'ssr':f[q(0xda)][q(0xef)],'isComponent':b[q(0xe9)]('component'),'isLayout':b[q(0xe9)](q(0xf1)),'isStore':b[q(0xe9)](q(0xe2)),'features':f[q(0xd2)],'noRename':!![],'theme':f[q(0xda)][q(0xde)]};this[q(0xe7)][q(0xdc)]({'srcPath':q(0xe5),'destPath':e,'context':g,'config':f}),g[q(0xf0)]=![];const h=d+q(0xf8)+c+q(0xeb);this['fsi'][q(0xdc)]({'srcPath':q(0xe1),'destPath':h,'context':g,'config':f});const i=[q(0xe4),q(0xdf),'tests/client','tests/server'];i[q(0xf5)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0xeb);this['fsi'][r(0xdc)]({'srcPath':r(0xe0)+j+r(0xdd),'destPath':k,'context':g,'config':f});});});});
@@ -0,0 +1 @@
1
+ const a99p=a99d;function a99c(){const s=['toString','setTemplate','571146ecPPzv','ramda','.app-tests.js','\x20};\x0a','61543yVHiJv','.js','template/template.css','import\x20\x27','string','hasOwnProperty','dir','layout','warn','3205335SoVSQn','resourceName','templates.js','withTranslations','test/test.js','html','react','\x27;\x0a','page','ssr','1580784jqyeDX','assign','2697288pvvzLk','296YZewoL','fileName','graphql','constructor','component/component.js','getProjectConfig','css','none','hook/hook.js','test','imports','21IzyGUN','11coeKJA','root','9755ttlLNh','component','36gwFvZR','pathFromApp','fsi','api','injectAtEndOfFile','injectAtBeginningOfFile','withHooks','true','template','withValue','tsx','\x20}\x20from\x20\x27','create','import\x20\x27./','withHook','import\x20{\x20','(((.+)+)+)+$','client','startup','features','rewriteDestinationPathForEngine','search','.html','2IUZtcx','pathFromProject','engines','apply','2411030BCDpxF','className'];a99c=function(){return s;};return a99c();}(function(a,b){const m=a99d,c=a();while(!![]){try{const d=-parseInt(m(0x1bc))/0x1*(-parseInt(m(0x1b0))/0x2)+-parseInt(m(0x17c))/0x3+-parseInt(m(0x189))/0x4*(-parseInt(m(0x197))/0x5)+parseInt(m(0x1b8))/0x6*(parseInt(m(0x194))/0x7)+parseInt(m(0x188))/0x8+parseInt(m(0x199))/0x9*(parseInt(m(0x1b4))/0xa)+-parseInt(m(0x195))/0xb*(parseInt(m(0x186))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x90bf6));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a99d;if(c){const e=c[n(0x1b3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const o=a99d;return a99a['toString']()[o(0x1ae)]('(((.+)+)+)+$')[o(0x1b6)]()[o(0x18c)](a99a)[o(0x1ae)](o(0x1a9));});a99a();import a99e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x179;let f=c[d];return f;},a99d(a,b);}const aliases=['p'];Generator[a99p(0x1a5)]({'name':a99p(0x184),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':'Generate\x20a\x20page.','validOpts':['dir',a99p(0x1a7)],'examples':['maka\x20g:page\x20todos/todos-item']},function(a,b){const q=a99p,c='/imports/ui/pages',d=this['fsi'][q(0x19a)](b),e=this[q(0x19b)][q(0x19a)]({'pathParts':[c,b[q(0x179)],paramCase(b[q(0x17d)]),paramCase(b[q(0x17d)])]}),f=this[q(0x19b)][q(0x18e)]();this['fsi'][q(0x1a2)](f,()=>{const r=q;typeof f[r(0x1a1)][r(0x181)]===r(0x1c0)&&(f[r(0x1a1)][r(0x181)]=f[r(0x1a1)]['html']===r(0x1a0)?!![]:![],this[r(0x19b)][r(0x1b7)](r(0x181),f['template']['html']));typeof f[r(0x1a1)][r(0x192)]===r(0x1c0)&&(f['template'][r(0x192)]=f['template'][r(0x192)]===r(0x1a0)?!![]:![],this[r(0x19b)][r(0x1b7)](r(0x192),f['template']['test']));typeof f[r(0x1a1)]['css']==='string'&&(f['template']['css']=f[r(0x1a1)]['css']===r(0x1a0)?!![]:![],this['fsi']['setTemplate'](r(0x18f),f[r(0x1a1)][r(0x18f)]));typeof f[r(0x1a1)]['js']===r(0x1c0)&&(f['template']['js']=f[r(0x1a1)]['js']==='true'?!![]:![],this[r(0x19b)][r(0x1b7)]('js',f[r(0x1a1)]['js']));!f[r(0x1ac)]&&(f['features']={});!b[r(0x196)]&&!this['fsi']['checkNpmPackage'](r(0x1b9))&&(Log[r(0x17b)]('Updating\x20npm\x20packages\x20...'),this[r(0x19b)]['installNpmPackage'](r(0x1b9),{'cwd':d}));const g={'name':pascalCase(b[r(0x17d)]),'myPath':a99e['relative'](this[r(0x19b)][r(0x1b1)]({}),e),'cssCaseName':paramCase(b[r(0x17d)]),'className':pascalCase(b[r(0x17d)]),'camelCaseName':camelCase(b[r(0x17d)]),'fileName':paramCase(b[r(0x17d)]),'graphql':f[r(0x1b2)][r(0x18b)],'features':f[r(0x1ac)],'client':f[r(0x1b2)]['client'],'api':f[r(0x1b2)][r(0x19c)],'ssr':f[r(0x1b2)][r(0x185)],'isStore':b[r(0x1c1)]('store'),'isComponent':b[r(0x1c1)](r(0x198)),'isLayout':b[r(0x1c1)](r(0x17a)),'withTranslations':f[r(0x1ac)][r(0x17f)],'test':f[r(0x1b2)][r(0x192)],'theme':f[r(0x1b2)]['theme']};f[r(0x1a1)][r(0x181)]&&this['fsi'][r(0x1a1)]({'srcPath':'template/template.html','destPath':e+r(0x1af),'context':g,'config':f});f[r(0x1ac)]?.[r(0x19f)]||b[r(0x1a7)]?this[r(0x19b)][r(0x1a1)]({'srcPath':r(0x191),'destPath':e+r(0x1bd),'framework':r(0x182),'context':g,'config':f}):this[r(0x19b)]['template']({'srcPath':r(0x18d),'destPath':e+'.js','framework':r(0x182),'context':g,'config':f});f[r(0x1b2)][r(0x192)]!==r(0x190)&&this['fsi'][r(0x1a1)]({'srcPath':r(0x180),'destPath':e+r(0x1ba),'framework':r(0x182),'context':g,'config':f});f['template'][r(0x18f)]&&this['fsi'][r(0x1a1)]({'srcPath':r(0x1be),'destPath':e+'.css','context':Object[r(0x187)]({},g,{'className':paramCase(b['resourceName'])}),'config':f});f[r(0x1b2)][r(0x1aa)]!==r(0x182)&&f['engines']['client']!=='vanilla'?(f[r(0x1a1)][r(0x18f)]&&this['fsi'][r(0x19e)]({'filePath':e+'.'+f[r(0x1b2)]['js'],'content':r(0x1a6)+g[r(0x18a)]+'.'+f[r(0x1b2)][r(0x181)]+r(0x183)+r(0x1a6)+g['fileName']+'.'+f['engines'][r(0x18f)]+'\x27;'}),!f[r(0x1a1)][r(0x18f)]&&this['fsi'][r(0x19e)]({'filePath':e+'.'+f['engines']['js'],'content':r(0x1a6)+g[r(0x18a)]+'.'+f[r(0x1b2)][r(0x181)]+'\x27;'})):f[r(0x1a1)][r(0x18f)]&&this[r(0x19b)][r(0x19e)]({'filePath':e+'.'+f['engines']['js'],'content':'import\x20\x27./'+g[r(0x18a)]+'.'+f[r(0x1b2)][r(0x18f)]+'\x27;'});const h=b['dir']?'/'+b['dir']+'/':'/',i=''+c+h+g[r(0x18a)]+'/'+g['fileName'];let j;if(f[r(0x1b2)]['ssr']===r(0x1a0)){const k=this[r(0x19b)]['pathFromApp']({'pathParts':['imports',r(0x1ab),'lib','templates.js']});j=this[r(0x19b)][r(0x1ad)]({'pathParts':[k],'config':f});}else{const l=this['fsi'][r(0x19a)]({'pathParts':[r(0x193),'startup',r(0x1aa),r(0x17e)]});j=this[r(0x19b)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':f});}f[r(0x1b2)][r(0x1aa)]===r(0x182)?(f[r(0x1b2)]['js']===r(0x1a3)?this[r(0x19b)]['injectAtBeginningOfFile']({'filePath':j,'content':r(0x1a8)+g[r(0x1b5)]+'\x20}\x20from\x20\x27'+i+r(0x183)}):this[r(0x19b)][r(0x19e)]({'filePath':j,'content':r(0x1a8)+g['className']+r(0x1a4)+i+'.'+f[r(0x1b2)]['js']+r(0x183)}),this['fsi'][r(0x19d)]({'filePath':j,'content':'export\x20{\x20'+g[r(0x1b5)]+r(0x1bb)})):this[r(0x19b)][r(0x19d)]({'filePath':j,'content':r(0x1bf)+i+'.'+f[r(0x1b2)]['js']+r(0x183)});});});
@@ -0,0 +1 @@
1
+ const a100k=a100d;(function(a,b){const h=a100d,c=a();while(!![]){try{const d=parseInt(h(0x12b))/0x1+parseInt(h(0x126))/0x2*(parseInt(h(0x12e))/0x3)+parseInt(h(0x125))/0x4+parseInt(h(0x13a))/0x5*(-parseInt(h(0x129))/0x6)+-parseInt(h(0x13d))/0x7*(-parseInt(h(0x130))/0x8)+-parseInt(h(0x138))/0x9+-parseInt(h(0x133))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x6402c));function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x124;let f=c[d];return f;},a100d(a,b);}const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a100d;if(c){const e=c[i(0x136)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const j=a100d;return a100a[j(0x139)]()[j(0x132)]('(((.+)+)+)+$')[j(0x139)]()[j(0x13c)](a100a)['search'](j(0x128));});a100a();import{paramCase}from'change-case';import{Generator}from'../generator.js';function a100c(){const n=['18pklyTg','tsx','2888anNMcT','server/publish.','search','3663360PIqROI','injectAtEndOfFile','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','apply','resourceName','2077524akQcYa','toString','10rKGHeY','engines','constructor','3346AwZUVU','fsi','385008UNlasP','158666SxDWGG','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','(((.+)+)+)+$','546384XKjHEY','getProjectConfig','444136naiikK','withValue','maka\x20g:publish\x20todos'];a100c=function(){return n;};return a100c();}Generator['create']({'name':'publish','aliases':['p'],'usage':a100k(0x135),'shortDesc':a100k(0x127),'validOpts':[],'examples':[a100k(0x12d)]},async function(a,b){const l=a100k,c=this[l(0x124)][l(0x12a)]();this[l(0x124)][l(0x12c)](c,async()=>{const m=l,d={'name':b[m(0x137)],'collection':paramCase(b['resourceName']),'noRename':!![]};let e='js';c[m(0x13b)]['js']===m(0x12f)&&(e='ts');const f=this[m(0x124)]['rewriteDestinationPathForEngine']({'pathParts':[m(0x131)+c[m(0x13b)]['js']]}),g=this[m(0x124)]['templateContent']({'srcPath':'publish/publish.'+e,'context':d,'config':c});this[m(0x124)][m(0x134)]({'filePath':f,'content':'\x0a'+g});});});
@@ -0,0 +1 @@
1
+ const a101y=a101d;(function(a,b){const v=a101d,c=a();while(!![]){try{const d=-parseInt(v(0x128))/0x1+parseInt(v(0x107))/0x2+-parseInt(v(0x11d))/0x3+parseInt(v(0x138))/0x4+-parseInt(v(0x121))/0x5+parseInt(v(0x11b))/0x6+-parseInt(v(0x119))/0x7*(-parseInt(v(0x125))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x83be1));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a101d;if(c){const e=c[w(0x11c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const x=a101d;return a101a[x(0x132)]()[x(0x106)]('(((.+)+)+)+$')['toString']()[x(0x118)](a101a)[x(0x106)](x(0x10a));});a101a();import a101e from'path';import{Generator}from'../generator.js';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x105;let f=c[d];return f;},a101d(a,b);}import{Log}from'../tools/log/log.class.js';import a101f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];function a101c(){const F=['layout','4548852huwgDX','apply','2420022sgBbcg','error','cwd','const\x20publicRoutes\x20=\x20(<>','3186940wAnMvm','invoke','route/route.js','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','461336WWQvqs','map','withValue','225319KJdoLm','<Router','url','startup','maka\x20g:route\x20todosIndex\x20todos','engines','<Route','/imports/ui/pages','private','only','toString','readFileLines','filter','length','pathFromApp','root','827220pfKsyM','injectAfterLineNumber','join','fsi','findGenerator','rewriteDestinationPathForEngine','</Router>','injectAtEndOfFile','newForm','toLowerCase','config','lib','\x0a\x09\x09','imports','client','search','1219428rLAwWh','PrivateLayout','templateContent','(((.+)+)+)+$','withTranslations','includes','true','routes.js','withHook','react','maka\x20g:route\x20lists/listIndex\x20lists','Scaffolding\x20for\x20a\x20Route.','getProjectConfig','indexOf','MasterLayout','templateName','features','constructor','77IXfEFJ'];a101c=function(){return F;};return a101c();}Generator['create']({'name':'route','aliases':aliases,'validOpts':['private','layout',a101y(0x131),a101y(0x11f),a101y(0x142),a101y(0x137),a101y(0x10f),a101y(0x12a)],'usage':'maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>\x20[url]\x20[--private]','shortDesc':a101y(0x112),'examples':[a101y(0x12c),'maka\x20g:route\x20todosEdit\x20todos/:id/edit','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView',a101y(0x111)]},function(a,b){const z=a101y;try{const c=this[z(0x13b)][z(0x113)]();this[z(0x13b)][z(0x127)](c,async()=>{const A=z,d=b[A(0x130)]??![];let f=paramCase(a[0x0]),g='/'+f;a[A(0x135)]>0x1&&(g='/'+a['filter'](function(l){return l!=='/';})[A(0x13a)]('/')[A(0x141)]());f=camelCase(f);b[A(0x11a)]&&(b[A(0x11a)]=camelCase(b['layout']));const h=a101e[A(0x13a)](A(0x12f),f,f),i={'name':f,'fileCase':paramCase(f),'camelCaseName':camelCase(f),'url':g,'layout':b[A(0x11a)]||A(0x115),'templatePath':h,'templateName':pascalCase(f),'client':c['engines'][A(0x105)],'newForm':![],'withTranslations':c[A(0x117)][A(0x10b)]};d&&(i[A(0x11a)]=A(0x108));if(!b[A(0x137)]){const l=a101f[A(0x13c)]('page');l&&await l[A(0x122)](a,b);}let j,k;if(c[A(0x12d)][A(0x105)]===A(0x110)){if(c['engines']['ssr']===A(0x10d)){const p=this[A(0x13b)][A(0x136)]({'pathParts':[A(0x145),'startup',A(0x143),A(0x10e)]});j=this[A(0x13b)][A(0x13d)]({'pathParts':[p],'config':c});}else{const q=this[A(0x13b)][A(0x136)]({'pathParts':['imports',A(0x12b),A(0x105),A(0x10e)]});j=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[q],'config':c});}const m=this[A(0x13b)][A(0x133)](j)['map']((r,s)=>{const B=A;return r[B(0x10c)](B(0x124))?s+0x1:null;})['filter'](r=>r!==null);let n=this[A(0x13b)]['readFileLines'](j)[A(0x126)]((r,s)=>{const C=A;return r['includes'](C(0x120))?s+0x1:null;})[A(0x134)](r=>r!==null),o=this[A(0x13b)]['readFileLines'](j)[A(0x126)]((r,s)=>{return r['includes']('const\x20privateRoutes\x20=\x20(<>')?s+0x1:null;})[A(0x134)](r=>r!==null);n['length']>0x0&&o[A(0x135)]>0x0&&(i[A(0x140)]=!![]);k=this[A(0x13b)][A(0x109)]({'srcPath':A(0x123),'framework':A(0x110),'context':i,'config':c});if(n[A(0x135)]>0x0||o[A(0x135)]>0x0){this[A(0x13b)][A(0x139)]({'filePath':j,'content':k,'lineNumber':m[0x0]});if(d&&o[A(0x135)]>0x0)o=this[A(0x13b)][A(0x133)](j)[A(0x126)]((r,s)=>{const D=A;return r[D(0x10c)]('const\x20privateRoutes\x20=\x20(<>')?s+0x1:null;})[A(0x134)](r=>r!==null),this[A(0x13b)][A(0x139)]({'filePath':j,'content':'\x09{'+i[A(0x116)]+'}','lineNumber':o[0x0]});else n['length']>0x0?(n=this[A(0x13b)]['readFileLines'](j)[A(0x126)]((r,s)=>{const E=A;return r[E(0x10c)]('const\x20publicRoutes\x20=\x20(<>')?s+0x1:null;})['filter'](r=>r!==null),this[A(0x13b)][A(0x139)]({'filePath':j,'content':'\x09{'+i[A(0x116)]+'}','lineNumber':n[0x0]})):Log['warn']('Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20'+j);}else{const r=this[A(0x13b)][A(0x133)](j)['map'](u=>{return u['includes']('\x22*\x22');}),s=r[A(0x114)](!![])>-0x1,t=s?A(0x12e):A(0x13e);this[A(0x13b)]['injectIntoFile']({'filePath':j,'content':A(0x144)+k+A(0x144),'begin':A(0x129),'end':t});}}else{if(c['engines'][A(0x105)]==='vanilla'){const u=this[A(0x13b)][A(0x136)]({'pathParts':[A(0x145),A(0x12b),A(0x105),A(0x10e)]});j=this['fsi'][A(0x13d)]({'pathParts':[u],'config':c}),k=this['fsi'][A(0x109)]({'srcPath':A(0x123),'context':i}),this[A(0x13b)][A(0x13f)]({'filePath':j,'content':'\x0a'+k});}}});}catch(d){Log[z(0x11e)](d);}});
@@ -0,0 +1 @@
1
+ const a102m=a102d;function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x169;let f=c[d];return f;},a102d(a,b);}(function(a,b){const j=a102d,c=a();while(!![]){try{const d=-parseInt(j(0x170))/0x1+-parseInt(j(0x183))/0x2*(parseInt(j(0x182))/0x3)+-parseInt(j(0x187))/0x4*(-parseInt(j(0x186))/0x5)+parseInt(j(0x16a))/0x6+-parseInt(j(0x174))/0x7+parseInt(j(0x175))/0x8+-parseInt(j(0x188))/0x9*(-parseInt(j(0x16d))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x8e8ba));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a102d;if(c){const e=c[k(0x169)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const l=a102d;return a102a['toString']()[l(0x189)](l(0x181))[l(0x180)]()['constructor'](a102a)[l(0x189)](l(0x181));});a102a();function a102c(){const p=['service','220rZFquL','installNpmPackage','create','923434gutKqN','engines','startup','svc','2768206jvmDrj','7052192hVWnsn','getProjectConfig','maka\x20{generate,\x20g}:{service}\x20[service-type]','tsx','template','maka\x20g:svc\x20logger','type','pathFromApp','service/logger/logger.js','winston','winston\x20setimmediate','toString','(((.+)+)+)+$','1610826lxXDru','4hmbxHN','resourceName','logger','5dIlYtT','624892fqRrut','382878zGnsfE','search','apply','6017826vpzMVY','fsi'];a102c=function(){return p;};return a102c();}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a102m(0x16f)]({'name':a102m(0x16c),'aliases':[a102m(0x173)],'usage':a102m(0x177),'shortDesc':'Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','validOpts':[a102m(0x17b)],'validArgs':[a102m(0x185)],'maxArgLength':0x1,'minArgLength':0x1,'examples':[a102m(0x17a)]},async function(a,b){const n=a102m;try{const c=this[n(0x16b)][n(0x176)]();this['fsi']['withValue'](c,async()=>{const o=n,d=this[o(0x16b)][o(0x17c)]({}),f=paramCase(b['resourceName']),g={'name':pascalCase(b['resourceName']),'fileName':f,'camelCase':camelCase(b[o(0x184)]),'type':a[0x0],'engine':c[o(0x171)]['js'],'noRename':!![]};let h='js';c[o(0x171)]['js']===o(0x178)&&(h='ts');if(a[0x0]===o(0x185)){!this[o(0x16b)]['checkNpmPackage'](o(0x17e))&&await this[o(0x16b)][o(0x16e)](o(0x17f),{'cwd':d,'msg':'Installing\x20winston'});const i=this[o(0x16b)][o(0x17c)]({'pathParts':['imports',o(0x172),'lib','services',f+'.'+h]});this['fsi'][o(0x179)]({'srcPath':o(0x17d),'destPath':i,'context':g,'config':c});}});}catch(d){Log['error'](d);}});
@@ -0,0 +1 @@
1
+ function a103d(a,b){var c=a103c();return a103d=function(d,e){d=d-0xb6;var f=c[d];return f;},a103d(a,b);}(function(a,b){var f=a103d,c=a();while(!![]){try{var d=parseInt(f(0xbc))/0x1+parseInt(f(0xc0))/0x2*(parseInt(f(0xb6))/0x3)+parseInt(f(0xc1))/0x4+parseInt(f(0xb8))/0x5*(-parseInt(f(0xc2))/0x6)+-parseInt(f(0xb9))/0x7+-parseInt(f(0xba))/0x8+parseInt(f(0xbb))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x86fa3));function a103c(){var i=['2427896VjzFiy','29082qDChEY','2991333ZAAiUB','constructor','535flMgnm','6615532qtDJAw','5787168YYptjV','4053384iHXXaG','685507UoVoTy','(((.+)+)+)+$','toString','apply','2wiFTfT'];a103c=function(){return i;};return a103c();}var a103b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a103d;if(c){var e=c[g(0xbf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){var h=a103d;return a103a[h(0xbe)]()['search'](h(0xbd))['toString']()[h(0xb7)](a103a)['search']('(((.+)+)+)+$');});a103a();import'./translation.js';import'./openssl.js';
@@ -0,0 +1 @@
1
+ const a104k=a104d;(function(a,b){const i=a104d,c=a();while(!![]){try{const d=parseInt(i(0x1e7))/0x1+parseInt(i(0x1f1))/0x2+parseInt(i(0x1ea))/0x3+parseInt(i(0x1ed))/0x4+-parseInt(i(0x1e2))/0x5+-parseInt(i(0x1fb))/0x6*(parseInt(i(0x1e6))/0x7)+parseInt(i(0x1e8))/0x8*(-parseInt(i(0x1ee))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x65ed5));const a104b=(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;};}()),a104a=a104b(this,function(){const j=a104d;return a104a[j(0x1e4)]()[j(0x1e5)](j(0x1f5))[j(0x1e4)]()[j(0x1e9)](a104a)['search'](j(0x1f5));});a104a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a104e from'path';function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1e2;let f=c[d];return f;},a104d(a,b);}Generator[a104k(0x1e3)]({'name':'sslconfig','usage':'maka\x20{generate,\x20g}:sslconfig','shortDesc':a104k(0x1fa),'noResource':!![],'requiredOpts':[a104k(0x1f3)],'examples':['maka\x20g:sslconfig\x20--env\x20dev'],'validOpts':[a104k(0x1f3)]},async function(a,b){const l=a104k;try{const c=await this[l(0x1f7)][l(0x1f0)](),d=await this[l(0x1f7)][l(0x1f2)](),f=this[l(0x1f7)][l(0x1f9)](b[l(0x1f3)]),g=a104e[l(0x1ef)](f,l(0x1f6),l(0x1f8));await this[l(0x1f7)]['withValue'](c,async()=>{const m=l,h={'app':d[m(0x1eb)],'noRename':!![]};await this[m(0x1f7)][m(0x1f4)]({'srcPath':m(0x1fc),'destPath':g,'framework':'service','context':h,'config':c});});}catch(h){Log[l(0x1ec)](h);}});function a104c(){const n=['openssl.conf','getConfigPath','Generate\x20a\x20new\x20openssl\x20config\x20file','10326qooXfB','openssl/openssl.conf','887100sOgJOg','create','toString','search','2779gIJgeL','410567MEIwcx','72sOWcOl','constructor','2482488VzMlnw','appName','error','1722236VeFgOg','405738BqCbUB','join','getProjectConfig','30532WEIFvs','getGlobalConfig','env','template','(((.+)+)+)+$','_keys','fsi'];a104c=function(){return n;};return a104c();}
@@ -0,0 +1 @@
1
+ const a105A=a105d;(function(a,b){const x=a105d,c=a();while(!![]){try{const d=-parseInt(x(0x112))/0x1+parseInt(x(0x10b))/0x2*(parseInt(x(0x150))/0x3)+-parseInt(x(0x134))/0x4*(-parseInt(x(0x124))/0x5)+-parseInt(x(0x14c))/0x6*(parseInt(x(0x131))/0x7)+-parseInt(x(0x117))/0x8+-parseInt(x(0x144))/0x9*(parseInt(x(0x111))/0xa)+-parseInt(x(0x120))/0xb*(-parseInt(x(0x14e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x20ed1));function a105c(){const D=['error','warn','grep','engines','i18next\x20i18next-browser-languagedetector\x20react-i18next','service','lang','readFileSync','apply','default\x20as\x20','import\x20\x27../lib/services/translations/i18n\x27;','fsi','238259DNZyiZ','appName','features.withTranslations','11468lqcDnn','injectAtBeginningOfFile','client','installNpmPackage','Generate\x20a\x20new\x20locale\x20translation','pathFromApp','imports','rewriteDestinationPathForEngine','exit','Locale\x20already\x20exported:\x20','toString','.js','ssr','root','search','lib','43893GIXGzE','translation','(((.+)+)+)+$','i18n','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','translations','isFile','Locale\x20already\x20defined:\x20','6dLvmEa','create','264900qTmNAh','startup','834eCSoAs','i18n/i18n.js','1856ykkBOS','server','services','i18next','maka\x20g:translation\x20--lang=de','true','190KFpfFv','29754tEKhrJ','findAppDirectory','locales','maka\x20g:translation\x20--lang=fr','checkNpmPackage','662192qguEzO','\x20}\x20from\x20\x27./','getGlobalConfig','template','i18n/locales.js','maka\x20g:translation\x20--lang=en\x20(default)','import\x20\x27../lib/services/translations/i18n\x27;\x0a','maka\x20{generate,\x20g}:translation\x20--lang=<language>','setProjectConfig','55aNGNJb','index.js','withValue','export\x20{\x20default\x20as\x20','10ITRyPg'];a105c=function(){return D;};return a105c();}const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a105d;if(c){const e=c[y(0x12d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const z=a105d;return a105a[z(0x13e)]()[z(0x142)]('(((.+)+)+)+$')[z(0x13e)]()['constructor'](a105a)[z(0x142)](z(0x146));});a105a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x10b;let f=c[d];return f;},a105d(a,b);}import a105e from'fs';Generator[a105A(0x14d)]({'name':a105A(0x145),'usage':a105A(0x11e),'aliases':[a105A(0x147)],'shortDesc':a105A(0x138),'noResource':!![],'examples':[a105A(0x11c),a105A(0x115),a105A(0x10f)],'validOpts':[a105A(0x12b)]},function(a,b){const B=a105A;try{const c=this[B(0x130)]['getProjectConfig'](),d=this[B(0x130)][B(0x119)](),f=this[B(0x130)][B(0x113)]();this[B(0x130)][B(0x122)](c,()=>{const C=B;try{!b['lang']&&(b['lang']='en');!b[C(0x141)]&&!this[C(0x130)][C(0x116)](C(0x10e))&&(Log[C(0x126)](C(0x148)),this[C(0x130)][C(0x137)](C(0x129),{'cwd':f}),this[C(0x130)][C(0x11f)](C(0x133),!![]));const g=this[C(0x130)][C(0x139)]({'pathParts':[C(0x13a),C(0x14f),C(0x136),'index.js']}),h=this[C(0x130)][C(0x13b)]({'pathParts':[g],'config':c}),i=this[C(0x130)][C(0x127)](a105e['readFileSync'](h)[C(0x13e)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];if(c[C(0x128)][C(0x140)]===C(0x110)){!i&&this[C(0x130)][C(0x135)]({'filePath':h,'content':C(0x11d)});const t=this[C(0x130)][C(0x139)]({'pathParts':[C(0x13a),C(0x14f),C(0x10c),C(0x121)]}),u=this[C(0x130)]['rewriteDestinationPathForEngine']({'pathParts':[t],'config':c}),v=this['fsi'][C(0x127)](a105e[C(0x12c)](u)[C(0x13e)](),C(0x12f))[0x0]&&!![];!v&&this[C(0x130)][C(0x135)]({'filePath':u,'content':C(0x11d)});}else!i&&this[C(0x130)][C(0x135)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const j={'app':d[C(0x132)],'config':c},k=this[C(0x130)][C(0x139)]({'pathParts':[C(0x13a),C(0x14f),C(0x143),'services',C(0x149),'i18n.js']}),l=this[C(0x130)][C(0x14a)](this[C(0x130)][C(0x13b)]({'pathParts':[k],'config':c}));!l&&this[C(0x130)][C(0x11a)]({'srcPath':C(0x151),'destPath':k,'framework':'service','context':j,'config':c});const m=this[C(0x130)]['pathFromApp']({'pathParts':['imports','startup',C(0x143),C(0x10d),C(0x149),C(0x114),b['lang']+C(0x13f)]}),n=this[C(0x130)][C(0x13b)]({'pathParts':[m],'config':c}),o=this[C(0x130)]['isFile'](n);!o?this[C(0x130)][C(0x11a)]({'srcPath':C(0x11b),'destPath':m,'framework':C(0x12a),'context':j,'config':c}):Log['warn'](C(0x14b)+n);const p=this[C(0x130)]['pathFromApp']({'pathParts':[C(0x13a),C(0x14f),C(0x143),C(0x10d),C(0x149),C(0x114),'index.'+c[C(0x128)]['js']]}),q=this[C(0x130)]['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c}),r=this[C(0x130)][C(0x14a)](q);!r&&this['fsi'][C(0x11a)]({'srcPath':'i18n/index.js','destPath':p,'framework':'service','context':j,'config':c});const s=this[C(0x130)][C(0x127)](a105e[C(0x12c)](p)[C(0x13e)](),C(0x12e)+b['lang'])[0x0]&&!![];!s?this[C(0x130)]['injectAtEndOfFile']({'filePath':p,'content':C(0x123)+b['lang']+C(0x118)+b['lang']+'\x27;'}):Log[C(0x126)](C(0x13d)+p);}catch(w){Log[C(0x125)](w),process[C(0x13c)](0x1);}});}catch(g){Log[B(0x125)](g),process[B(0x13c)](0x1);}});
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node --experimental-modules --no-warnings --experimental-json-modules
2
+ const a106l=a106d;function a106c(){const m=['131204NVGJzX','126804yizXPQ','parse','slice','env','214696DOOHpP','80sUlptL','MAKA_COMMAND_PATH','--max-old-space-size=','argv','floor','36vENYkQ','run','1514880DBCuaJ','toString','49828sDjFGW','constructor','search','url','3346240XLBeeY','dirname','(((.+)+)+)+$','stringify','7kOOgNL','TOOL_NODE_FLAGS','2201139BezWAe'];a106c=function(){return m;};return a106c();}(function(a,b){const j=a106d,c=a();while(!![]){try{const d=parseInt(j(0x131))/0x1+-parseInt(j(0x132))/0x2*(parseInt(j(0x13c))/0x3)+-parseInt(j(0x140))/0x4*(-parseInt(j(0x137))/0x5)+parseInt(j(0x13e))/0x6+parseInt(j(0x12e))/0x7*(parseInt(j(0x136))/0x8)+parseInt(j(0x130))/0x9+parseInt(j(0x144))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x688ac));const a106b=(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;};}()),a106a=a106b(this,function(){const k=a106d;return a106a[k(0x13f)]()[k(0x142)](k(0x146))['toString']()[k(0x141)](a106a)[k(0x142)](k(0x146));});a106a();import a106e from'minimist';import a106f from'os';import a106g from'path';import a106h from'humps';import a106i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a106l(0x143)]),__dirname=a106g[a106l(0x145)](__filename);global[a106l(0x138)]=__dirname;const total_memory=a106f['totalmem'](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a106l(0x13b)](total_mem_in_mb),process[a106l(0x135)][a106l(0x12f)]=a106l(0x139)+total_mem_in_mb,process['env']['BROWSERSLIST_IGNORE_OLD_DATA']='1';const argv=a106e(process[a106l(0x13a)][a106l(0x134)](0x2)),args=argv['_'],deepCopyArgv=JSON[a106l(0x133)](JSON[a106l(0x12d)](argv));function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x12d;let f=c[d];return f;},a106d(a,b);}delete deepCopyArgv['_'];const opts=a106h['camelizeKeys'](deepCopyArgv);a106i[a106l(0x13d)](args,opts);
@@ -0,0 +1,11 @@
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 %>);
@@ -0,0 +1,11 @@
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 %>);
@@ -0,0 +1,86 @@
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 %>;
@@ -0,0 +1,94 @@
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 %>;
@@ -0,0 +1,23 @@
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
+ });