@maka/maka-cli 5.3.0 → 5.3.1

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 (477) hide show
  1. package/package.json +5 -4
  2. package/.claude/codebase-overview.md +0 -736
  3. package/.claude/mcp.json +0 -17
  4. package/.eslintrc.json +0 -29
  5. package/.github/workflows/npm-publish.yml +0 -54
  6. package/.mocharc.json +0 -3
  7. package/.vscode/mcp.json +0 -8
  8. package/CLAUDE.md +0 -239
  9. package/eslint.config.js +0 -28
  10. package/jest.config.js +0 -12
  11. package/test/integration/default.test.js +0 -84
  12. package/test/integration/fixtures/blaze/.maka/config.json +0 -30
  13. package/test/integration/fixtures/blaze/.tern-project +0 -17
  14. package/test/integration/fixtures/blaze/app/.meteor/.finished-upgraders +0 -17
  15. package/test/integration/fixtures/blaze/app/.meteor/.id +0 -7
  16. package/test/integration/fixtures/blaze/app/.meteor/packages +0 -21
  17. package/test/integration/fixtures/blaze/app/.meteor/platforms +0 -2
  18. package/test/integration/fixtures/blaze/app/.meteor/release +0 -1
  19. package/test/integration/fixtures/blaze/app/.meteor/versions +0 -78
  20. package/test/integration/fixtures/blaze/app/client/.gitkeep +0 -1
  21. package/test/integration/fixtures/blaze/app/client/body.html +0 -2
  22. package/test/integration/fixtures/blaze/app/client/head.html +0 -8
  23. package/test/integration/fixtures/blaze/app/client/main.js +0 -1
  24. package/test/integration/fixtures/blaze/app/imports/api/.gitkeep +0 -1
  25. package/test/integration/fixtures/blaze/app/imports/startup/client/index.js +0 -3
  26. package/test/integration/fixtures/blaze/app/imports/startup/client/routes.js +0 -25
  27. package/test/integration/fixtures/blaze/app/imports/startup/client/templates.js +0 -15
  28. package/test/integration/fixtures/blaze/app/imports/startup/lib/index.js +0 -1
  29. package/test/integration/fixtures/blaze/app/imports/startup/server/index.js +0 -1
  30. package/test/integration/fixtures/blaze/app/imports/ui/layouts/master-layout/master-layout.css +0 -5
  31. package/test/integration/fixtures/blaze/app/imports/ui/layouts/master-layout/master-layout.html +0 -3
  32. package/test/integration/fixtures/blaze/app/imports/ui/layouts/master-layout/master-layout.js +0 -29
  33. package/test/integration/fixtures/blaze/app/imports/ui/pages/home/home.css +0 -5
  34. package/test/integration/fixtures/blaze/app/imports/ui/pages/home/home.html +0 -5
  35. package/test/integration/fixtures/blaze/app/imports/ui/pages/home/home.js +0 -53
  36. package/test/integration/fixtures/blaze/app/imports/ui/pages/not-found/not-found.css +0 -5
  37. package/test/integration/fixtures/blaze/app/imports/ui/pages/not-found/not-found.html +0 -5
  38. package/test/integration/fixtures/blaze/app/imports/ui/pages/not-found/not-found.js +0 -53
  39. package/test/integration/fixtures/blaze/app/imports/ui/test-helpers.js +0 -25
  40. package/test/integration/fixtures/blaze/app/lib/.gitkeep +0 -1
  41. package/test/integration/fixtures/blaze/app/lib/main.js +0 -1
  42. package/test/integration/fixtures/blaze/app/packages/.gitkeep +0 -1
  43. package/test/integration/fixtures/blaze/app/private/.gitkeep +0 -1
  44. package/test/integration/fixtures/blaze/app/public/.gitkeep +0 -1
  45. package/test/integration/fixtures/blaze/app/public/favicon.ico +0 -0
  46. package/test/integration/fixtures/blaze/app/server/.gitkeep +0 -1
  47. package/test/integration/fixtures/blaze/app/server/main.js +0 -1
  48. package/test/integration/fixtures/blaze/bin/.gitkeep +0 -1
  49. package/test/integration/fixtures/blaze/build/.gitkeep +0 -1
  50. package/test/integration/fixtures/blaze/build/README +0 -4
  51. package/test/integration/fixtures/blaze/config/.gitkeep +0 -1
  52. package/test/integration/fixtures/blaze/config/development/env.sh +0 -9
  53. package/test/integration/fixtures/blaze/config/development/settings.json +0 -6
  54. package/test/integration/fixtures/blaze/config/production/env.sh +0 -9
  55. package/test/integration/fixtures/blaze/config/production/settings.json +0 -6
  56. package/test/integration/fixtures/blaze/config/staging/env.sh +0 -9
  57. package/test/integration/fixtures/blaze/config/staging/settings.json +0 -6
  58. package/test/integration/fixtures/react/.maka/config.json +0 -30
  59. package/test/integration/fixtures/react/.tern-project +0 -17
  60. package/test/integration/fixtures/react/app/.meteor/.finished-upgraders +0 -17
  61. package/test/integration/fixtures/react/app/.meteor/.id +0 -7
  62. package/test/integration/fixtures/react/app/.meteor/packages +0 -21
  63. package/test/integration/fixtures/react/app/.meteor/platforms +0 -2
  64. package/test/integration/fixtures/react/app/.meteor/release +0 -1
  65. package/test/integration/fixtures/react/app/.meteor/versions +0 -78
  66. package/test/integration/fixtures/react/app/client/.gitkeep +0 -1
  67. package/test/integration/fixtures/react/app/client/body.html +0 -3
  68. package/test/integration/fixtures/react/app/client/head.html +0 -8
  69. package/test/integration/fixtures/react/app/client/main.jsx +0 -1
  70. package/test/integration/fixtures/react/app/imports/api/.gitkeep +0 -1
  71. package/test/integration/fixtures/react/app/imports/startup/client/index.jsx +0 -12
  72. package/test/integration/fixtures/react/app/imports/startup/client/routes.jsx +0 -24
  73. package/test/integration/fixtures/react/app/imports/startup/client/templates.jsx +0 -21
  74. package/test/integration/fixtures/react/app/imports/startup/lib/index.jsx +0 -1
  75. package/test/integration/fixtures/react/app/imports/startup/server/index.jsx +0 -1
  76. package/test/integration/fixtures/react/app/imports/ui/layouts/master-layout/master-layout.css +0 -5
  77. package/test/integration/fixtures/react/app/imports/ui/layouts/master-layout/master-layout.jsx +0 -28
  78. package/test/integration/fixtures/react/app/imports/ui/pages/home/home.css +0 -5
  79. package/test/integration/fixtures/react/app/imports/ui/pages/home/home.jsx +0 -29
  80. package/test/integration/fixtures/react/app/imports/ui/pages/not-found/not-found.css +0 -5
  81. package/test/integration/fixtures/react/app/imports/ui/pages/not-found/not-found.jsx +0 -29
  82. package/test/integration/fixtures/react/app/imports/ui/test-helpers.jsx +0 -1
  83. package/test/integration/fixtures/react/app/lib/.gitkeep +0 -1
  84. package/test/integration/fixtures/react/app/lib/main.jsx +0 -1
  85. package/test/integration/fixtures/react/app/packages/.gitkeep +0 -1
  86. package/test/integration/fixtures/react/app/private/.gitkeep +0 -1
  87. package/test/integration/fixtures/react/app/public/.gitkeep +0 -1
  88. package/test/integration/fixtures/react/app/public/favicon.ico +0 -0
  89. package/test/integration/fixtures/react/app/server/.gitkeep +0 -1
  90. package/test/integration/fixtures/react/app/server/main.jsx +0 -1
  91. package/test/integration/fixtures/react/bin/.gitkeep +0 -1
  92. package/test/integration/fixtures/react/build/.gitkeep +0 -1
  93. package/test/integration/fixtures/react/build/README +0 -4
  94. package/test/integration/fixtures/react/config/.gitkeep +0 -1
  95. package/test/integration/fixtures/react/config/development/env.sh +0 -9
  96. package/test/integration/fixtures/react/config/development/settings.json +0 -6
  97. package/test/integration/fixtures/react/config/production/env.sh +0 -9
  98. package/test/integration/fixtures/react/config/production/settings.json +0 -6
  99. package/test/integration/fixtures/react/config/staging/env.sh +0 -9
  100. package/test/integration/fixtures/react/config/staging/settings.json +0 -6
  101. package/test/integration/fixtures/react-apollo/.maka/config.json +0 -30
  102. package/test/integration/fixtures/react-apollo/.tern-project +0 -17
  103. package/test/integration/fixtures/react-apollo/app/.meteor/.finished-upgraders +0 -17
  104. package/test/integration/fixtures/react-apollo/app/.meteor/.id +0 -7
  105. package/test/integration/fixtures/react-apollo/app/.meteor/packages +0 -21
  106. package/test/integration/fixtures/react-apollo/app/.meteor/platforms +0 -2
  107. package/test/integration/fixtures/react-apollo/app/.meteor/release +0 -1
  108. package/test/integration/fixtures/react-apollo/app/.meteor/versions +0 -78
  109. package/test/integration/fixtures/react-apollo/app/client/.gitkeep +0 -1
  110. package/test/integration/fixtures/react-apollo/app/client/body.html +0 -3
  111. package/test/integration/fixtures/react-apollo/app/client/head.html +0 -8
  112. package/test/integration/fixtures/react-apollo/app/client/main.jsx +0 -1
  113. package/test/integration/fixtures/react-apollo/app/imports/api/.gitkeep +0 -1
  114. package/test/integration/fixtures/react-apollo/app/imports/startup/client/index.jsx +0 -20
  115. package/test/integration/fixtures/react-apollo/app/imports/startup/client/routes.jsx +0 -24
  116. package/test/integration/fixtures/react-apollo/app/imports/startup/client/templates.jsx +0 -21
  117. package/test/integration/fixtures/react-apollo/app/imports/startup/lib/index.jsx +0 -1
  118. package/test/integration/fixtures/react-apollo/app/imports/startup/server/index.jsx +0 -25
  119. package/test/integration/fixtures/react-apollo/app/imports/ui/layouts/master-layout/master-layout.css +0 -5
  120. package/test/integration/fixtures/react-apollo/app/imports/ui/layouts/master-layout/master-layout.jsx +0 -28
  121. package/test/integration/fixtures/react-apollo/app/imports/ui/pages/home/home.css +0 -5
  122. package/test/integration/fixtures/react-apollo/app/imports/ui/pages/home/home.jsx +0 -34
  123. package/test/integration/fixtures/react-apollo/app/imports/ui/pages/not-found/not-found.css +0 -5
  124. package/test/integration/fixtures/react-apollo/app/imports/ui/pages/not-found/not-found.jsx +0 -34
  125. package/test/integration/fixtures/react-apollo/app/imports/ui/test-helpers.jsx +0 -1
  126. package/test/integration/fixtures/react-apollo/app/lib/.gitkeep +0 -1
  127. package/test/integration/fixtures/react-apollo/app/lib/main.jsx +0 -1
  128. package/test/integration/fixtures/react-apollo/app/packages/.gitkeep +0 -1
  129. package/test/integration/fixtures/react-apollo/app/private/.gitkeep +0 -1
  130. package/test/integration/fixtures/react-apollo/app/public/.gitkeep +0 -1
  131. package/test/integration/fixtures/react-apollo/app/public/favicon.ico +0 -0
  132. package/test/integration/fixtures/react-apollo/app/server/.gitkeep +0 -1
  133. package/test/integration/fixtures/react-apollo/app/server/main.jsx +0 -1
  134. package/test/integration/fixtures/react-apollo/bin/.gitkeep +0 -1
  135. package/test/integration/fixtures/react-apollo/build/.gitkeep +0 -1
  136. package/test/integration/fixtures/react-apollo/build/README +0 -4
  137. package/test/integration/fixtures/react-apollo/config/.gitkeep +0 -1
  138. package/test/integration/fixtures/react-apollo/config/development/env.sh +0 -9
  139. package/test/integration/fixtures/react-apollo/config/development/settings.json +0 -6
  140. package/test/integration/fixtures/react-apollo/config/production/env.sh +0 -9
  141. package/test/integration/fixtures/react-apollo/config/production/settings.json +0 -6
  142. package/test/integration/fixtures/react-apollo/config/staging/env.sh +0 -9
  143. package/test/integration/fixtures/react-apollo/config/staging/settings.json +0 -6
  144. package/test/integration/fixtures/react-apollo-ssr/.maka/config.json +0 -30
  145. package/test/integration/fixtures/react-apollo-ssr/.tern-project +0 -17
  146. package/test/integration/fixtures/react-apollo-ssr/app/.meteor/.finished-upgraders +0 -17
  147. package/test/integration/fixtures/react-apollo-ssr/app/.meteor/.id +0 -7
  148. package/test/integration/fixtures/react-apollo-ssr/app/.meteor/packages +0 -21
  149. package/test/integration/fixtures/react-apollo-ssr/app/.meteor/platforms +0 -2
  150. package/test/integration/fixtures/react-apollo-ssr/app/.meteor/release +0 -1
  151. package/test/integration/fixtures/react-apollo-ssr/app/.meteor/versions +0 -78
  152. package/test/integration/fixtures/react-apollo-ssr/app/client/.gitkeep +0 -1
  153. package/test/integration/fixtures/react-apollo-ssr/app/client/body.html +0 -3
  154. package/test/integration/fixtures/react-apollo-ssr/app/client/head.html +0 -8
  155. package/test/integration/fixtures/react-apollo-ssr/app/client/main.jsx +0 -1
  156. package/test/integration/fixtures/react-apollo-ssr/app/imports/api/.gitkeep +0 -1
  157. package/test/integration/fixtures/react-apollo-ssr/app/imports/startup/client/index.jsx +0 -29
  158. package/test/integration/fixtures/react-apollo-ssr/app/imports/startup/lib/index.jsx +0 -1
  159. package/test/integration/fixtures/react-apollo-ssr/app/imports/startup/lib/routes.jsx +0 -21
  160. package/test/integration/fixtures/react-apollo-ssr/app/imports/startup/lib/templates.jsx +0 -21
  161. package/test/integration/fixtures/react-apollo-ssr/app/imports/startup/server/index.jsx +0 -65
  162. package/test/integration/fixtures/react-apollo-ssr/app/imports/ui/layouts/master-layout/master-layout.jsx +0 -27
  163. package/test/integration/fixtures/react-apollo-ssr/app/imports/ui/pages/home/home.jsx +0 -33
  164. package/test/integration/fixtures/react-apollo-ssr/app/imports/ui/pages/not-found/not-found.jsx +0 -33
  165. package/test/integration/fixtures/react-apollo-ssr/app/imports/ui/test-helpers.jsx +0 -1
  166. package/test/integration/fixtures/react-apollo-ssr/app/lib/.gitkeep +0 -1
  167. package/test/integration/fixtures/react-apollo-ssr/app/lib/main.jsx +0 -1
  168. package/test/integration/fixtures/react-apollo-ssr/app/packages/.gitkeep +0 -1
  169. package/test/integration/fixtures/react-apollo-ssr/app/private/.gitkeep +0 -1
  170. package/test/integration/fixtures/react-apollo-ssr/app/public/.gitkeep +0 -1
  171. package/test/integration/fixtures/react-apollo-ssr/app/public/favicon.ico +0 -0
  172. package/test/integration/fixtures/react-apollo-ssr/app/server/.gitkeep +0 -1
  173. package/test/integration/fixtures/react-apollo-ssr/app/server/main.jsx +0 -1
  174. package/test/integration/fixtures/react-apollo-ssr/bin/.gitkeep +0 -1
  175. package/test/integration/fixtures/react-apollo-ssr/build/.gitkeep +0 -1
  176. package/test/integration/fixtures/react-apollo-ssr/build/README +0 -4
  177. package/test/integration/fixtures/react-apollo-ssr/config/.gitkeep +0 -1
  178. package/test/integration/fixtures/react-apollo-ssr/config/development/env.sh +0 -9
  179. package/test/integration/fixtures/react-apollo-ssr/config/development/settings.json +0 -6
  180. package/test/integration/fixtures/react-apollo-ssr/config/production/env.sh +0 -9
  181. package/test/integration/fixtures/react-apollo-ssr/config/production/settings.json +0 -6
  182. package/test/integration/fixtures/react-apollo-ssr/config/staging/env.sh +0 -9
  183. package/test/integration/fixtures/react-apollo-ssr/config/staging/settings.json +0 -6
  184. package/test/integration/fixtures/react-material/.maka/config.json +0 -30
  185. package/test/integration/fixtures/react-material/.tern-project +0 -17
  186. package/test/integration/fixtures/react-material/app/.meteor/.finished-upgraders +0 -17
  187. package/test/integration/fixtures/react-material/app/.meteor/.id +0 -7
  188. package/test/integration/fixtures/react-material/app/.meteor/packages +0 -21
  189. package/test/integration/fixtures/react-material/app/.meteor/platforms +0 -2
  190. package/test/integration/fixtures/react-material/app/.meteor/release +0 -1
  191. package/test/integration/fixtures/react-material/app/.meteor/versions +0 -78
  192. package/test/integration/fixtures/react-material/app/client/.gitkeep +0 -1
  193. package/test/integration/fixtures/react-material/app/client/body.html +0 -3
  194. package/test/integration/fixtures/react-material/app/client/head.html +0 -8
  195. package/test/integration/fixtures/react-material/app/client/main.jsx +0 -1
  196. package/test/integration/fixtures/react-material/app/imports/api/.gitkeep +0 -1
  197. package/test/integration/fixtures/react-material/app/imports/startup/client/index.jsx +0 -19
  198. package/test/integration/fixtures/react-material/app/imports/startup/client/routes.jsx +0 -24
  199. package/test/integration/fixtures/react-material/app/imports/startup/client/templates.jsx +0 -21
  200. package/test/integration/fixtures/react-material/app/imports/startup/lib/index.jsx +0 -1
  201. package/test/integration/fixtures/react-material/app/imports/startup/server/index.jsx +0 -1
  202. package/test/integration/fixtures/react-material/app/imports/ui/layouts/master-layout/master-layout.css +0 -5
  203. package/test/integration/fixtures/react-material/app/imports/ui/layouts/master-layout/master-layout.jsx +0 -28
  204. package/test/integration/fixtures/react-material/app/imports/ui/pages/home/home.css +0 -5
  205. package/test/integration/fixtures/react-material/app/imports/ui/pages/home/home.jsx +0 -29
  206. package/test/integration/fixtures/react-material/app/imports/ui/pages/not-found/not-found.css +0 -5
  207. package/test/integration/fixtures/react-material/app/imports/ui/pages/not-found/not-found.jsx +0 -29
  208. package/test/integration/fixtures/react-material/app/imports/ui/test-helpers.jsx +0 -1
  209. package/test/integration/fixtures/react-material/app/lib/.gitkeep +0 -1
  210. package/test/integration/fixtures/react-material/app/lib/main.jsx +0 -1
  211. package/test/integration/fixtures/react-material/app/packages/.gitkeep +0 -1
  212. package/test/integration/fixtures/react-material/app/private/.gitkeep +0 -1
  213. package/test/integration/fixtures/react-material/app/public/.gitkeep +0 -1
  214. package/test/integration/fixtures/react-material/app/public/favicon.ico +0 -0
  215. package/test/integration/fixtures/react-material/app/server/.gitkeep +0 -1
  216. package/test/integration/fixtures/react-material/app/server/main.jsx +0 -1
  217. package/test/integration/fixtures/react-material/bin/.gitkeep +0 -1
  218. package/test/integration/fixtures/react-material/build/.gitkeep +0 -1
  219. package/test/integration/fixtures/react-material/build/README +0 -4
  220. package/test/integration/fixtures/react-material/config/.gitkeep +0 -1
  221. package/test/integration/fixtures/react-material/config/development/env.sh +0 -9
  222. package/test/integration/fixtures/react-material/config/development/settings.json +0 -6
  223. package/test/integration/fixtures/react-material/config/production/env.sh +0 -9
  224. package/test/integration/fixtures/react-material/config/production/settings.json +0 -6
  225. package/test/integration/fixtures/react-material/config/staging/env.sh +0 -9
  226. package/test/integration/fixtures/react-material/config/staging/settings.json +0 -6
  227. package/test/integration/fixtures/react-ssr/.maka/config.json +0 -30
  228. package/test/integration/fixtures/react-ssr/.tern-project +0 -17
  229. package/test/integration/fixtures/react-ssr/app/.meteor/.finished-upgraders +0 -17
  230. package/test/integration/fixtures/react-ssr/app/.meteor/.id +0 -7
  231. package/test/integration/fixtures/react-ssr/app/.meteor/packages +0 -21
  232. package/test/integration/fixtures/react-ssr/app/.meteor/platforms +0 -2
  233. package/test/integration/fixtures/react-ssr/app/.meteor/release +0 -1
  234. package/test/integration/fixtures/react-ssr/app/.meteor/versions +0 -78
  235. package/test/integration/fixtures/react-ssr/app/client/.gitkeep +0 -1
  236. package/test/integration/fixtures/react-ssr/app/client/body.html +0 -3
  237. package/test/integration/fixtures/react-ssr/app/client/head.html +0 -8
  238. package/test/integration/fixtures/react-ssr/app/client/main.jsx +0 -1
  239. package/test/integration/fixtures/react-ssr/app/imports/api/.gitkeep +0 -1
  240. package/test/integration/fixtures/react-ssr/app/imports/startup/client/index.jsx +0 -21
  241. package/test/integration/fixtures/react-ssr/app/imports/startup/lib/index.jsx +0 -1
  242. package/test/integration/fixtures/react-ssr/app/imports/startup/lib/routes.jsx +0 -21
  243. package/test/integration/fixtures/react-ssr/app/imports/startup/lib/templates.jsx +0 -21
  244. package/test/integration/fixtures/react-ssr/app/imports/startup/server/index.jsx +0 -36
  245. package/test/integration/fixtures/react-ssr/app/imports/ui/layouts/master-layout/master-layout.jsx +0 -27
  246. package/test/integration/fixtures/react-ssr/app/imports/ui/pages/home/home.jsx +0 -28
  247. package/test/integration/fixtures/react-ssr/app/imports/ui/pages/not-found/not-found.jsx +0 -28
  248. package/test/integration/fixtures/react-ssr/app/imports/ui/test-helpers.jsx +0 -1
  249. package/test/integration/fixtures/react-ssr/app/lib/.gitkeep +0 -1
  250. package/test/integration/fixtures/react-ssr/app/lib/main.jsx +0 -1
  251. package/test/integration/fixtures/react-ssr/app/packages/.gitkeep +0 -1
  252. package/test/integration/fixtures/react-ssr/app/private/.gitkeep +0 -1
  253. package/test/integration/fixtures/react-ssr/app/public/.gitkeep +0 -1
  254. package/test/integration/fixtures/react-ssr/app/public/favicon.ico +0 -0
  255. package/test/integration/fixtures/react-ssr/app/server/.gitkeep +0 -1
  256. package/test/integration/fixtures/react-ssr/app/server/main.jsx +0 -1
  257. package/test/integration/fixtures/react-ssr/bin/.gitkeep +0 -1
  258. package/test/integration/fixtures/react-ssr/build/.gitkeep +0 -1
  259. package/test/integration/fixtures/react-ssr/build/README +0 -4
  260. package/test/integration/fixtures/react-ssr/config/.gitkeep +0 -1
  261. package/test/integration/fixtures/react-ssr/config/development/env.sh +0 -9
  262. package/test/integration/fixtures/react-ssr/config/development/settings.json +0 -6
  263. package/test/integration/fixtures/react-ssr/config/production/env.sh +0 -9
  264. package/test/integration/fixtures/react-ssr/config/production/settings.json +0 -6
  265. package/test/integration/fixtures/react-ssr/config/staging/env.sh +0 -9
  266. package/test/integration/fixtures/react-ssr/config/staging/settings.json +0 -6
  267. package/test/integration/fixtures/reflux/.maka/config.json +0 -30
  268. package/test/integration/fixtures/reflux/.tern-project +0 -17
  269. package/test/integration/fixtures/reflux/app/.meteor/.finished-upgraders +0 -17
  270. package/test/integration/fixtures/reflux/app/.meteor/.id +0 -7
  271. package/test/integration/fixtures/reflux/app/.meteor/packages +0 -21
  272. package/test/integration/fixtures/reflux/app/.meteor/platforms +0 -2
  273. package/test/integration/fixtures/reflux/app/.meteor/release +0 -1
  274. package/test/integration/fixtures/reflux/app/.meteor/versions +0 -78
  275. package/test/integration/fixtures/reflux/app/client/.gitkeep +0 -1
  276. package/test/integration/fixtures/reflux/app/client/body.html +0 -3
  277. package/test/integration/fixtures/reflux/app/client/head.html +0 -8
  278. package/test/integration/fixtures/reflux/app/client/main.jsx +0 -1
  279. package/test/integration/fixtures/reflux/app/imports/api/.gitkeep +0 -1
  280. package/test/integration/fixtures/reflux/app/imports/startup/client/index.jsx +0 -12
  281. package/test/integration/fixtures/reflux/app/imports/startup/client/routes.jsx +0 -24
  282. package/test/integration/fixtures/reflux/app/imports/startup/client/templates.jsx +0 -21
  283. package/test/integration/fixtures/reflux/app/imports/startup/lib/index.jsx +0 -1
  284. package/test/integration/fixtures/reflux/app/imports/startup/server/index.jsx +0 -1
  285. package/test/integration/fixtures/reflux/app/imports/ui/layouts/master-layout/master-layout.css +0 -5
  286. package/test/integration/fixtures/reflux/app/imports/ui/layouts/master-layout/master-layout.jsx +0 -31
  287. package/test/integration/fixtures/reflux/app/imports/ui/pages/home/home.css +0 -5
  288. package/test/integration/fixtures/reflux/app/imports/ui/pages/home/home.jsx +0 -33
  289. package/test/integration/fixtures/reflux/app/imports/ui/pages/not-found/not-found.css +0 -5
  290. package/test/integration/fixtures/reflux/app/imports/ui/pages/not-found/not-found.jsx +0 -33
  291. package/test/integration/fixtures/reflux/app/imports/ui/test-helpers.jsx +0 -1
  292. package/test/integration/fixtures/reflux/app/lib/.gitkeep +0 -1
  293. package/test/integration/fixtures/reflux/app/lib/main.jsx +0 -1
  294. package/test/integration/fixtures/reflux/app/packages/.gitkeep +0 -1
  295. package/test/integration/fixtures/reflux/app/private/.gitkeep +0 -1
  296. package/test/integration/fixtures/reflux/app/public/.gitkeep +0 -1
  297. package/test/integration/fixtures/reflux/app/public/favicon.ico +0 -0
  298. package/test/integration/fixtures/reflux/app/server/.gitkeep +0 -1
  299. package/test/integration/fixtures/reflux/app/server/main.jsx +0 -1
  300. package/test/integration/fixtures/reflux/bin/.gitkeep +0 -1
  301. package/test/integration/fixtures/reflux/build/.gitkeep +0 -1
  302. package/test/integration/fixtures/reflux/build/README +0 -4
  303. package/test/integration/fixtures/reflux/config/.gitkeep +0 -1
  304. package/test/integration/fixtures/reflux/config/development/env.sh +0 -9
  305. package/test/integration/fixtures/reflux/config/development/settings.json +0 -6
  306. package/test/integration/fixtures/reflux/config/production/env.sh +0 -9
  307. package/test/integration/fixtures/reflux/config/production/settings.json +0 -6
  308. package/test/integration/fixtures/reflux/config/staging/env.sh +0 -9
  309. package/test/integration/fixtures/reflux/config/staging/settings.json +0 -6
  310. package/test/integration/fixtures/reflux-apollo/.maka/config.json +0 -30
  311. package/test/integration/fixtures/reflux-apollo/.tern-project +0 -17
  312. package/test/integration/fixtures/reflux-apollo/app/.meteor/.finished-upgraders +0 -17
  313. package/test/integration/fixtures/reflux-apollo/app/.meteor/.id +0 -7
  314. package/test/integration/fixtures/reflux-apollo/app/.meteor/packages +0 -21
  315. package/test/integration/fixtures/reflux-apollo/app/.meteor/platforms +0 -2
  316. package/test/integration/fixtures/reflux-apollo/app/.meteor/release +0 -1
  317. package/test/integration/fixtures/reflux-apollo/app/.meteor/versions +0 -78
  318. package/test/integration/fixtures/reflux-apollo/app/client/.gitkeep +0 -1
  319. package/test/integration/fixtures/reflux-apollo/app/client/body.html +0 -3
  320. package/test/integration/fixtures/reflux-apollo/app/client/head.html +0 -8
  321. package/test/integration/fixtures/reflux-apollo/app/client/main.jsx +0 -1
  322. package/test/integration/fixtures/reflux-apollo/app/imports/api/.gitkeep +0 -1
  323. package/test/integration/fixtures/reflux-apollo/app/imports/startup/client/index.jsx +0 -20
  324. package/test/integration/fixtures/reflux-apollo/app/imports/startup/client/routes.jsx +0 -24
  325. package/test/integration/fixtures/reflux-apollo/app/imports/startup/client/templates.jsx +0 -21
  326. package/test/integration/fixtures/reflux-apollo/app/imports/startup/lib/index.jsx +0 -1
  327. package/test/integration/fixtures/reflux-apollo/app/imports/startup/server/index.jsx +0 -25
  328. package/test/integration/fixtures/reflux-apollo/app/imports/ui/layouts/master-layout/master-layout.css +0 -5
  329. package/test/integration/fixtures/reflux-apollo/app/imports/ui/layouts/master-layout/master-layout.jsx +0 -31
  330. package/test/integration/fixtures/reflux-apollo/app/imports/ui/pages/home/home.css +0 -5
  331. package/test/integration/fixtures/reflux-apollo/app/imports/ui/pages/home/home.jsx +0 -38
  332. package/test/integration/fixtures/reflux-apollo/app/imports/ui/pages/not-found/not-found.css +0 -5
  333. package/test/integration/fixtures/reflux-apollo/app/imports/ui/pages/not-found/not-found.jsx +0 -38
  334. package/test/integration/fixtures/reflux-apollo/app/imports/ui/test-helpers.jsx +0 -1
  335. package/test/integration/fixtures/reflux-apollo/app/lib/.gitkeep +0 -1
  336. package/test/integration/fixtures/reflux-apollo/app/lib/main.jsx +0 -1
  337. package/test/integration/fixtures/reflux-apollo/app/packages/.gitkeep +0 -1
  338. package/test/integration/fixtures/reflux-apollo/app/private/.gitkeep +0 -1
  339. package/test/integration/fixtures/reflux-apollo/app/public/.gitkeep +0 -1
  340. package/test/integration/fixtures/reflux-apollo/app/public/favicon.ico +0 -0
  341. package/test/integration/fixtures/reflux-apollo/app/server/.gitkeep +0 -1
  342. package/test/integration/fixtures/reflux-apollo/app/server/main.jsx +0 -1
  343. package/test/integration/fixtures/reflux-apollo/bin/.gitkeep +0 -1
  344. package/test/integration/fixtures/reflux-apollo/build/.gitkeep +0 -1
  345. package/test/integration/fixtures/reflux-apollo/build/README +0 -4
  346. package/test/integration/fixtures/reflux-apollo/config/.gitkeep +0 -1
  347. package/test/integration/fixtures/reflux-apollo/config/development/env.sh +0 -9
  348. package/test/integration/fixtures/reflux-apollo/config/development/settings.json +0 -6
  349. package/test/integration/fixtures/reflux-apollo/config/production/env.sh +0 -9
  350. package/test/integration/fixtures/reflux-apollo/config/production/settings.json +0 -6
  351. package/test/integration/fixtures/reflux-apollo/config/staging/env.sh +0 -9
  352. package/test/integration/fixtures/reflux-apollo/config/staging/settings.json +0 -6
  353. package/test/integration/fixtures/reflux-apollo-ssr/.maka/config.json +0 -30
  354. package/test/integration/fixtures/reflux-apollo-ssr/.tern-project +0 -17
  355. package/test/integration/fixtures/reflux-apollo-ssr/app/.meteor/.finished-upgraders +0 -17
  356. package/test/integration/fixtures/reflux-apollo-ssr/app/.meteor/.id +0 -7
  357. package/test/integration/fixtures/reflux-apollo-ssr/app/.meteor/packages +0 -21
  358. package/test/integration/fixtures/reflux-apollo-ssr/app/.meteor/platforms +0 -2
  359. package/test/integration/fixtures/reflux-apollo-ssr/app/.meteor/release +0 -1
  360. package/test/integration/fixtures/reflux-apollo-ssr/app/.meteor/versions +0 -78
  361. package/test/integration/fixtures/reflux-apollo-ssr/app/client/.gitkeep +0 -1
  362. package/test/integration/fixtures/reflux-apollo-ssr/app/client/body.html +0 -3
  363. package/test/integration/fixtures/reflux-apollo-ssr/app/client/head.html +0 -8
  364. package/test/integration/fixtures/reflux-apollo-ssr/app/client/main.jsx +0 -1
  365. package/test/integration/fixtures/reflux-apollo-ssr/app/imports/api/.gitkeep +0 -1
  366. package/test/integration/fixtures/reflux-apollo-ssr/app/imports/startup/client/index.jsx +0 -29
  367. package/test/integration/fixtures/reflux-apollo-ssr/app/imports/startup/lib/index.jsx +0 -1
  368. package/test/integration/fixtures/reflux-apollo-ssr/app/imports/startup/lib/routes.jsx +0 -21
  369. package/test/integration/fixtures/reflux-apollo-ssr/app/imports/startup/lib/templates.jsx +0 -21
  370. package/test/integration/fixtures/reflux-apollo-ssr/app/imports/startup/server/index.jsx +0 -65
  371. package/test/integration/fixtures/reflux-apollo-ssr/app/imports/ui/layouts/master-layout/master-layout.jsx +0 -27
  372. package/test/integration/fixtures/reflux-apollo-ssr/app/imports/ui/pages/home/home.jsx +0 -33
  373. package/test/integration/fixtures/reflux-apollo-ssr/app/imports/ui/pages/not-found/not-found.jsx +0 -33
  374. package/test/integration/fixtures/reflux-apollo-ssr/app/imports/ui/test-helpers.jsx +0 -1
  375. package/test/integration/fixtures/reflux-apollo-ssr/app/lib/.gitkeep +0 -1
  376. package/test/integration/fixtures/reflux-apollo-ssr/app/lib/main.jsx +0 -1
  377. package/test/integration/fixtures/reflux-apollo-ssr/app/packages/.gitkeep +0 -1
  378. package/test/integration/fixtures/reflux-apollo-ssr/app/private/.gitkeep +0 -1
  379. package/test/integration/fixtures/reflux-apollo-ssr/app/public/.gitkeep +0 -1
  380. package/test/integration/fixtures/reflux-apollo-ssr/app/public/favicon.ico +0 -0
  381. package/test/integration/fixtures/reflux-apollo-ssr/app/server/.gitkeep +0 -1
  382. package/test/integration/fixtures/reflux-apollo-ssr/app/server/main.jsx +0 -1
  383. package/test/integration/fixtures/reflux-apollo-ssr/bin/.gitkeep +0 -1
  384. package/test/integration/fixtures/reflux-apollo-ssr/build/.gitkeep +0 -1
  385. package/test/integration/fixtures/reflux-apollo-ssr/build/README +0 -4
  386. package/test/integration/fixtures/reflux-apollo-ssr/config/.gitkeep +0 -1
  387. package/test/integration/fixtures/reflux-apollo-ssr/config/development/env.sh +0 -9
  388. package/test/integration/fixtures/reflux-apollo-ssr/config/development/settings.json +0 -6
  389. package/test/integration/fixtures/reflux-apollo-ssr/config/production/env.sh +0 -9
  390. package/test/integration/fixtures/reflux-apollo-ssr/config/production/settings.json +0 -6
  391. package/test/integration/fixtures/reflux-apollo-ssr/config/staging/env.sh +0 -9
  392. package/test/integration/fixtures/reflux-apollo-ssr/config/staging/settings.json +0 -6
  393. package/test/integration/fixtures/reflux-material/.maka/config.json +0 -30
  394. package/test/integration/fixtures/reflux-material/.tern-project +0 -17
  395. package/test/integration/fixtures/reflux-material/app/.meteor/.finished-upgraders +0 -17
  396. package/test/integration/fixtures/reflux-material/app/.meteor/.id +0 -7
  397. package/test/integration/fixtures/reflux-material/app/.meteor/packages +0 -21
  398. package/test/integration/fixtures/reflux-material/app/.meteor/platforms +0 -2
  399. package/test/integration/fixtures/reflux-material/app/.meteor/release +0 -1
  400. package/test/integration/fixtures/reflux-material/app/.meteor/versions +0 -78
  401. package/test/integration/fixtures/reflux-material/app/client/.gitkeep +0 -1
  402. package/test/integration/fixtures/reflux-material/app/client/body.html +0 -3
  403. package/test/integration/fixtures/reflux-material/app/client/head.html +0 -8
  404. package/test/integration/fixtures/reflux-material/app/client/main.jsx +0 -1
  405. package/test/integration/fixtures/reflux-material/app/imports/api/.gitkeep +0 -1
  406. package/test/integration/fixtures/reflux-material/app/imports/startup/client/index.jsx +0 -19
  407. package/test/integration/fixtures/reflux-material/app/imports/startup/client/routes.jsx +0 -24
  408. package/test/integration/fixtures/reflux-material/app/imports/startup/client/templates.jsx +0 -21
  409. package/test/integration/fixtures/reflux-material/app/imports/startup/lib/index.jsx +0 -1
  410. package/test/integration/fixtures/reflux-material/app/imports/startup/server/index.jsx +0 -1
  411. package/test/integration/fixtures/reflux-material/app/imports/ui/layouts/master-layout/master-layout.css +0 -5
  412. package/test/integration/fixtures/reflux-material/app/imports/ui/layouts/master-layout/master-layout.jsx +0 -31
  413. package/test/integration/fixtures/reflux-material/app/imports/ui/pages/home/home.css +0 -5
  414. package/test/integration/fixtures/reflux-material/app/imports/ui/pages/home/home.jsx +0 -33
  415. package/test/integration/fixtures/reflux-material/app/imports/ui/pages/not-found/not-found.css +0 -5
  416. package/test/integration/fixtures/reflux-material/app/imports/ui/pages/not-found/not-found.jsx +0 -33
  417. package/test/integration/fixtures/reflux-material/app/imports/ui/test-helpers.jsx +0 -1
  418. package/test/integration/fixtures/reflux-material/app/lib/.gitkeep +0 -1
  419. package/test/integration/fixtures/reflux-material/app/lib/main.jsx +0 -1
  420. package/test/integration/fixtures/reflux-material/app/packages/.gitkeep +0 -1
  421. package/test/integration/fixtures/reflux-material/app/private/.gitkeep +0 -1
  422. package/test/integration/fixtures/reflux-material/app/public/.gitkeep +0 -1
  423. package/test/integration/fixtures/reflux-material/app/public/favicon.ico +0 -0
  424. package/test/integration/fixtures/reflux-material/app/server/.gitkeep +0 -1
  425. package/test/integration/fixtures/reflux-material/app/server/main.jsx +0 -1
  426. package/test/integration/fixtures/reflux-material/bin/.gitkeep +0 -1
  427. package/test/integration/fixtures/reflux-material/build/.gitkeep +0 -1
  428. package/test/integration/fixtures/reflux-material/build/README +0 -4
  429. package/test/integration/fixtures/reflux-material/config/.gitkeep +0 -1
  430. package/test/integration/fixtures/reflux-material/config/development/env.sh +0 -9
  431. package/test/integration/fixtures/reflux-material/config/development/settings.json +0 -6
  432. package/test/integration/fixtures/reflux-material/config/production/env.sh +0 -9
  433. package/test/integration/fixtures/reflux-material/config/production/settings.json +0 -6
  434. package/test/integration/fixtures/reflux-material/config/staging/env.sh +0 -9
  435. package/test/integration/fixtures/reflux-material/config/staging/settings.json +0 -6
  436. package/test/integration/fixtures/reflux-ssr/.maka/config.json +0 -30
  437. package/test/integration/fixtures/reflux-ssr/.tern-project +0 -17
  438. package/test/integration/fixtures/reflux-ssr/app/.meteor/.finished-upgraders +0 -17
  439. package/test/integration/fixtures/reflux-ssr/app/.meteor/.id +0 -7
  440. package/test/integration/fixtures/reflux-ssr/app/.meteor/packages +0 -21
  441. package/test/integration/fixtures/reflux-ssr/app/.meteor/platforms +0 -2
  442. package/test/integration/fixtures/reflux-ssr/app/.meteor/release +0 -1
  443. package/test/integration/fixtures/reflux-ssr/app/.meteor/versions +0 -78
  444. package/test/integration/fixtures/reflux-ssr/app/client/.gitkeep +0 -1
  445. package/test/integration/fixtures/reflux-ssr/app/client/body.html +0 -3
  446. package/test/integration/fixtures/reflux-ssr/app/client/head.html +0 -8
  447. package/test/integration/fixtures/reflux-ssr/app/client/main.jsx +0 -1
  448. package/test/integration/fixtures/reflux-ssr/app/imports/api/.gitkeep +0 -1
  449. package/test/integration/fixtures/reflux-ssr/app/imports/startup/client/index.jsx +0 -21
  450. package/test/integration/fixtures/reflux-ssr/app/imports/startup/lib/index.jsx +0 -1
  451. package/test/integration/fixtures/reflux-ssr/app/imports/startup/lib/routes.jsx +0 -21
  452. package/test/integration/fixtures/reflux-ssr/app/imports/startup/lib/templates.jsx +0 -21
  453. package/test/integration/fixtures/reflux-ssr/app/imports/startup/server/index.jsx +0 -36
  454. package/test/integration/fixtures/reflux-ssr/app/imports/ui/layouts/master-layout/master-layout.jsx +0 -30
  455. package/test/integration/fixtures/reflux-ssr/app/imports/ui/pages/home/home.jsx +0 -32
  456. package/test/integration/fixtures/reflux-ssr/app/imports/ui/pages/not-found/not-found.jsx +0 -32
  457. package/test/integration/fixtures/reflux-ssr/app/imports/ui/test-helpers.jsx +0 -1
  458. package/test/integration/fixtures/reflux-ssr/app/lib/.gitkeep +0 -1
  459. package/test/integration/fixtures/reflux-ssr/app/lib/main.jsx +0 -1
  460. package/test/integration/fixtures/reflux-ssr/app/packages/.gitkeep +0 -1
  461. package/test/integration/fixtures/reflux-ssr/app/private/.gitkeep +0 -1
  462. package/test/integration/fixtures/reflux-ssr/app/public/.gitkeep +0 -1
  463. package/test/integration/fixtures/reflux-ssr/app/public/favicon.ico +0 -0
  464. package/test/integration/fixtures/reflux-ssr/app/server/.gitkeep +0 -1
  465. package/test/integration/fixtures/reflux-ssr/app/server/main.jsx +0 -1
  466. package/test/integration/fixtures/reflux-ssr/bin/.gitkeep +0 -1
  467. package/test/integration/fixtures/reflux-ssr/build/.gitkeep +0 -1
  468. package/test/integration/fixtures/reflux-ssr/build/README +0 -4
  469. package/test/integration/fixtures/reflux-ssr/config/.gitkeep +0 -1
  470. package/test/integration/fixtures/reflux-ssr/config/development/env.sh +0 -9
  471. package/test/integration/fixtures/reflux-ssr/config/development/settings.json +0 -6
  472. package/test/integration/fixtures/reflux-ssr/config/production/env.sh +0 -9
  473. package/test/integration/fixtures/reflux-ssr/config/production/settings.json +0 -6
  474. package/test/integration/fixtures/reflux-ssr/config/staging/env.sh +0 -9
  475. package/test/integration/fixtures/reflux-ssr/config/staging/settings.json +0 -6
  476. package/test/integration/integration_helpers.js +0 -60
  477. package/tsconfig.json +0 -30
package/.claude/mcp.json DELETED
@@ -1,17 +0,0 @@
1
- {
2
- "mcpServers": {
3
- "maka-cli": {
4
- "command": "maka",
5
- "args": [
6
- "ai:mcp",
7
- "--port=5050"
8
- ],
9
- "autoApprove": [
10
- "list-maka-commands",
11
- "get-command-info",
12
- "get-project-info",
13
- "get-run-logs"
14
- ]
15
- }
16
- }
17
- }
package/.eslintrc.json DELETED
@@ -1,29 +0,0 @@
1
- {
2
- "env": {
3
- "es2021": true,
4
- "node": true
5
- },
6
- "extends": [
7
- "eslint:recommended",
8
- "plugin:@typescript-eslint/recommended"
9
- ],
10
- "overrides": [
11
- ],
12
- "parser": "@typescript-eslint/parser",
13
- "parserOptions": {
14
- "ecmaVersion": "latest",
15
- "sourceType": "module"
16
- },
17
- "plugins": [
18
- "@typescript-eslint"
19
- ],
20
- "rules": {
21
- "@typescript-eslint/ban-types": "off",
22
- "prefer-spread": "off",
23
- "no-prototype-builtins": "off",
24
- "no-useless-escape": "off",
25
- "@typescript-eslint/no-explicit-any": "off",
26
- "no-console": 1
27
- },
28
- "ignorePatterns": ["**/templates/**", "*.test.*"]
29
- }
@@ -1,54 +0,0 @@
1
- # This workflow runs tests on every push to master, when a GitHub Release is
2
- # created, or manually via workflow_dispatch, and publishes to npm only when
3
- # package.json's version differs from what's currently live on the registry.
4
- # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
5
-
6
- name: Node.js Package
7
-
8
- on:
9
- push:
10
- branches: [master]
11
- release:
12
- types: [created]
13
- workflow_dispatch:
14
-
15
- jobs:
16
- build:
17
- runs-on: ubuntu-latest
18
- steps:
19
- - uses: actions/checkout@v4
20
- - uses: actions/setup-node@v4
21
- with:
22
- node-version: 22
23
- - run: npm ci
24
- - run: npm test
25
-
26
- publish-npm:
27
- needs: build
28
- runs-on: ubuntu-latest
29
- permissions:
30
- contents: read
31
- id-token: write # required for npm trusted publishing (OIDC)
32
- steps:
33
- - uses: actions/checkout@v4
34
- - uses: actions/setup-node@v4
35
- with:
36
- node-version: 22
37
- registry-url: https://registry.npmjs.org/
38
- - run: npm ci
39
- - run: npm install -g npm@latest # trusted publishing needs npm >=11.5.1
40
- - name: Check if version changed
41
- id: version-check
42
- run: |
43
- LOCAL_VERSION=$(node -p "require('./package.json').version")
44
- PUBLISHED_VERSION=$(npm view "$(node -p "require('./package.json').name")" version 2>/dev/null || echo "none")
45
- echo "Local version: $LOCAL_VERSION"
46
- echo "Published version: $PUBLISHED_VERSION"
47
- if [ "$LOCAL_VERSION" != "$PUBLISHED_VERSION" ]; then
48
- echo "should_publish=true" >> "$GITHUB_OUTPUT"
49
- else
50
- echo "should_publish=false" >> "$GITHUB_OUTPUT"
51
- fi
52
- - name: Publish to npm
53
- if: steps.version-check.outputs.should_publish == 'true'
54
- run: npm publish --access public
package/.mocharc.json DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "loader": "ts-node/esm"
3
- }
package/.vscode/mcp.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "servers": {
3
- "maka-cli": {
4
- "type": "http",
5
- "url": "http://localhost:5050/mcp"
6
- }
7
- }
8
- }
package/CLAUDE.md DELETED
@@ -1,239 +0,0 @@
1
- # CLAUDE.md
2
-
3
- This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4
-
5
- ## About
6
-
7
- Maka-CLI is a command-line scaffolding and DevOps tool for Meteor 2.x applications with React. It provides generators for creating application components and commands for building, deploying, and managing Meteor applications.
8
-
9
- ## Development Commands
10
-
11
- ### Build and Test
12
- ```bash
13
- # Full build: compile TypeScript and copy templates/assets
14
- npm run build
15
-
16
- # Watch mode for development
17
- npm run develop
18
-
19
- # Run tests
20
- npm test
21
-
22
- # Lint code
23
- npm run lint
24
- ```
25
-
26
- ### Build Process Details
27
- The `npm run build` command:
28
- 1. Removes `./bundle` directory
29
- 2. Compiles TypeScript to `./bundle/typescript/`
30
- 3. Runs `prep` which copies templates, README, package.json, and game JSON files
31
- 4. Makes the executable file at `./bundle/typescript/src/exec.js` executable
32
-
33
- ### Testing the CLI Locally
34
- After building, test the CLI:
35
- ```bash
36
- ./bundle/typescript/src/exec.js <command>
37
- ```
38
-
39
- ## Architecture
40
-
41
- ### Three-Tier Class Hierarchy
42
-
43
- The codebase is built on a three-tier inheritance model:
44
-
45
- **1. Tool (Base Class)** - `src/tool.ts`
46
- - Provides shared utility services via singleton instances
47
- - All Commands and Generators inherit from Tool
48
- - Key services accessible via properties:
49
- - `this.fsi` (FSI): File system operations, project path resolution
50
- - `this.cfg` (CFG): Configuration management (global and project configs)
51
- - `this.mpi` (MPI): Meteor package interface, proxies to Meteor CLI
52
- - `this.scaffold` (Scaffold): Template processing with EJS
53
- - `this.pkg` (PKG): Package.json manipulation
54
- - `this.docker` (Docker): Docker operations
55
- - `this.aws` (AWS): AWS infrastructure management
56
- - Handles parameter validation and option processing
57
- - Provides `validateParams()` for interactive prompting when options are missing
58
-
59
- **2. Command (Extends Tool)** - `src/command.ts`
60
- - Used for operational commands: `run`, `build`, `deploy`, `test`, `aws`, etc.
61
- - Commands form a hierarchical tree structure (commands can have sub-commands)
62
- - Create with: `Command.create(opts, handler, parentCommand)`
63
- - The root `maka` command routes to sub-commands via `processAndRunCommand()`
64
- - Special handling: commands prefixed with `generate:` or `g:` are routed to the generator system
65
-
66
- **3. Generator (Extends Tool)** - `src/generator.ts`
67
- - Used for code scaffolding: `component`, `route`, `api`, `collection`, etc.
68
- - Generators form a hierarchical tree (generators can have sub-generators)
69
- - Create with: `Generator.create(opts, handler, undoHandler, parentGenerator)`
70
- - Includes history tracking to `.maka/history.json` for undo functionality
71
- - Auto-sets `resourceNameRequired: true` unless explicitly overridden
72
- - `checkWhere: true` option automatically prompts for client/server/both location
73
-
74
- ### Command and Generator Registration
75
-
76
- Self-registration pattern:
77
- - `src/maka.ts` imports `src/commands/_index.ts` and `src/generators/_index.ts`
78
- - These index files import all command/generator modules
79
- - Each module calls `.create()` which auto-registers with its parent
80
- - Commands register with the root `Maka` command
81
- - Generators register with the root `MakaGen` generator
82
-
83
- ### Entry Point Flow
84
-
85
- `src/maka.ts` (entry point):
86
- 1. Parses CLI arguments with `minimist`
87
- 2. Camelizes option keys with `humps` (e.g., `--my-option` → `myOption`)
88
- 3. Calls `Maka.run(args, opts)` where Maka is the root command
89
-
90
- Root command routing (`src/commands/maka.cmd.ts`):
91
- - Uses `processAndRunCommand()` to parse colon-delimited commands
92
- - Example: `"build:docker"` traverses build → docker sub-command
93
- - Generator syntax: `"g:route"` or `"generate:route"` routes to generator system
94
- - Falls back to proxying unknown commands to Meteor CLI via `mpi.maybeProxyCommandToMeteor()`
95
-
96
- ### Template System
97
-
98
- Templates located in `src/templates/`:
99
- - Uses EJS (Embedded JavaScript) for templating
100
- - Processed via `this.scaffold.write({ templatePath, outputPath, data })`
101
- - Must be copied to bundle during build (handled by `prep` script)
102
- - Common data passed to templates: `name`, `className`, `fileName`, `pathPrefix`
103
-
104
- ### Options and Parameter System
105
-
106
- **Option Types:**
107
- - `requiredOpts`: Must be provided (prompts interactively if missing)
108
- - `validOpts`: Allowed options with optional validation
109
- - Short aliases auto-generated (first letter of option name)
110
- - Special `env` option: auto-prompts from available project configs
111
-
112
- **NamedParam Structure:**
113
- ```typescript
114
- {
115
- name: string,
116
- values?: string[], // Allowed values (will prompt if invalid)
117
- regex?: RegExp, // Pattern validation
118
- description?: string, // Help text
119
- boolFlag?: boolean, // Treat as boolean
120
- hidden?: boolean // Don't show in help
121
- }
122
- ```
123
-
124
- **Generator-Specific Options:**
125
- - `checkWhere: true` - Automatically adds and validates `--where` option (client/server/both)
126
- - `where` option sets `opts.appPathPrefix` to `'lib'`, `'server'`, or `'client'`
127
- - Resource names can include paths: `maka g:route todos/edit` → extracts dir and name
128
-
129
- ### History and Undo System
130
-
131
- Generators track actions in `.maka/history.json`:
132
- - Max file size: 100KB (auto-prunes oldest entries)
133
- - Each transaction gets a UUID
134
- - Related actions (same transaction) are undone together
135
- - Undo handlers are optional (passed as 3rd param to `Generator.create()`)
136
-
137
- ## Code Conventions
138
-
139
- - **ES Modules**: Uses `type: "module"` in package.json
140
- - **Import extensions**: Always use `.js` extension in imports (TypeScript compiles `.ts` → `.js`)
141
- - **Logging**: Use `Log` class methods, never `console.log`
142
- - `Log.info()`, `Log.error()`, `Log.warn()`, `Log.notice()`, `Log.success()`
143
- - Color mode (light/dark) read from global config
144
- - **Error Handling**: Use custom error classes from `src/error.ts`
145
- - `UsageError`, `MustBeInProjectError`, `NoMeteorFoundError`, etc.
146
- - **Async/Await**: Prefer over callbacks
147
- - **Handler Binding**: Handlers are auto-bound to their Command/Generator instance (`this` context)
148
-
149
- ## Key Patterns
150
-
151
- ### Creating a Command
152
- ```typescript
153
- Command.create({
154
- name: 'my-command',
155
- aliases: ['mc'],
156
- shortDesc: 'Short description',
157
- validOpts: ['option1', 'option2'],
158
- mustBeInMakaProject: true,
159
- examples: ['maka my-command --option1=value']
160
- }, async function(args, opts) {
161
- // 'this' is the Command instance
162
- // Access: this.fsi, this.cfg, this.mpi, etc.
163
- Log.info('Executing command');
164
- }, parentCommand);
165
- ```
166
-
167
- ### Creating a Generator
168
- ```typescript
169
- Generator.create({
170
- name: 'my-generator',
171
- aliases: ['mg'],
172
- shortDesc: 'Generates something',
173
- checkWhere: true, // Adds --where option
174
- validOpts: [],
175
- }, async function(args, opts) {
176
- const name = opts.resourceName;
177
-
178
- // Process template
179
- await this.scaffold.write({
180
- templatePath: this.fsi.pathFromProject({
181
- pathParts: ['src', 'templates', 'my-template.ejs']
182
- }),
183
- outputPath: this.fsi.pathFromApp({
184
- pathParts: [opts.appPathPrefix, 'my-file.js']
185
- }),
186
- data: { name }
187
- });
188
-
189
- return { success: true, message: 'Generated successfully' };
190
- }, undoHandler, parentGenerator);
191
- ```
192
-
193
- ### Using Scaffold for Templates
194
- ```typescript
195
- await this.scaffold.write({
196
- templatePath: 'path/to/template.ejs',
197
- outputPath: this.fsi.pathFromApp({ pathParts: ['app', 'components', `${name}.tsx`] }),
198
- data: { name, className: pascalCase(name), fileName: kebabCase(name) }
199
- });
200
- ```
201
-
202
- ## Project Structure
203
-
204
- ```
205
- src/
206
- ├── command.ts # Command base class
207
- ├── generator.ts # Generator base class
208
- ├── tool.ts # Tool base class
209
- ├── maka.ts # Entry point
210
- ├── exec.ts # Executable wrapper
211
- ├── error.ts # Custom error classes
212
- ├── commands/
213
- │ ├── _index.ts # Registers all commands
214
- │ ├── maka.cmd.ts # Root command
215
- │ └── [feature]/ # Commands organized by feature
216
- ├── generators/
217
- │ ├── _index.ts # Registers all generators
218
- │ ├── maka.gen.ts # Root generator
219
- │ └── [generator].ts # Individual generators
220
- ├── templates/ # EJS templates (copied to bundle)
221
- │ ├── meteor/
222
- │ ├── react/
223
- │ └── service/
224
- └── tools/ # Utility singleton classes
225
- ├── fsi/ # File system interface
226
- ├── cfg/ # Config management
227
- ├── mpi/ # Meteor package interface
228
- ├── scaffold/ # Template scaffolding
229
- ├── actions/ # Interactive prompts (@inquirer/prompts)
230
- └── [others]/
231
- ```
232
-
233
- ## Important Notes
234
-
235
- - Commands ending with `.sub.cmd.ts` are sub-commands
236
- - Generators can be nested: `g:kit:auth:basic-meteor` traverses kit → auth → basic-meteor
237
- - The `generate` command is special-cased in `maka.cmd.ts` routing logic
238
- - All tool singletons use `getInstance()` pattern and maintain dependencies
239
- - Import paths must use `.js` even for `.ts` files (ESM compatibility)
package/eslint.config.js DELETED
@@ -1,28 +0,0 @@
1
- import globals from "globals";
2
- import pluginJs from "@eslint/js";
3
- import tseslint from "typescript-eslint";
4
-
5
-
6
- export default [
7
- {files: ["**/*.{js,mjs,cjs,ts}"]},
8
- {languageOptions: { globals: globals.browser, parserOptions: { project: "./tsconfig.json" } }},
9
- pluginJs.configs.recommended,
10
- ...tseslint.configs.recommended,
11
- {
12
- rules: {
13
- "@typescript-eslint/no-explicit-any": "off",
14
- "@typescript-eslint/no-floating-promises": "error",
15
- "@typescript-eslint/no-misused-promises": "error",
16
- "@typescript-eslint/prefer-promise-reject-errors": "error",
17
- "@typescript-eslint/only-throw-error": "error",
18
- "@typescript-eslint/no-unused-vars": ["error", {
19
- argsIgnorePattern: "^_",
20
- varsIgnorePattern: "^_",
21
- destructuredArrayIgnorePattern: "^_",
22
- }],
23
- },
24
- },
25
- {
26
- ignores: ["src/templates/**/*"]
27
- }
28
- ];
package/jest.config.js DELETED
@@ -1,12 +0,0 @@
1
- export default {
2
- preset: 'ts-jest',
3
- testEnvironment: 'node',
4
- testMatch: ['**/*.test.ts'],
5
- moduleFileExtensions: ['ts', 'js'],
6
- transform: {
7
- '^.+\\.ts$': 'ts-jest',
8
- },
9
- coveragePathIgnorePatterns: ['/bundle'],
10
- passWithNoTests: true,
11
- };
12
-
@@ -1,84 +0,0 @@
1
- var assert = require("chai").assert;
2
- var helpers = require('./integration_helpers');
3
-
4
- describe("default languages", function() {
5
-
6
- it('react genenerated correctly', function(done) {
7
- helpers.compare('react', [''], function(err) {
8
- assert(err == null, err);
9
- done();
10
- });
11
- });
12
-
13
- it('react-material genenerated correctly', function(done) {
14
- helpers.compare('react', ['--theme=material'], function(err) {
15
- assert(err == null, err);
16
- done();
17
- });
18
- });
19
-
20
- it('react-ssr genenerated correctly', function(done) {
21
- helpers.compare('react', ['--ssr=true'], function(err) {
22
- assert(err == null, err);
23
- done();
24
- });
25
- });
26
-
27
-
28
- it('react-apollo genenerated correctly', function(done) {
29
- helpers.compare('react', ['--graphql=apollo'], function(err) {
30
- assert(err == null, err);
31
- done();
32
- });
33
- });
34
-
35
- it('react-apollo-ssr genenerated correctly', function(done) {
36
- helpers.compare('react', ['--graphql=apollo', '--ssr=true'], function(err) {
37
- assert(err == null, err);
38
- done();
39
- });
40
- });
41
-
42
- it('reflux genenerated correctly', function(done) {
43
- helpers.compare('react', ['--client=reflux'], function(err) {
44
- assert(err == null, err);
45
- done();
46
- });
47
- });
48
-
49
- it('reflux-material genenerated correctly', function(done) {
50
- helpers.compare('react', ['--client=reflux', '--theme=material'], function(err) {
51
- assert(err == null, err);
52
- done();
53
- });
54
- });
55
-
56
- it('reflux-ssr genenerated correctly', function(done) {
57
- helpers.compare('react', ['--client=reflux', '--ssr=true'], function(err) {
58
- assert(err == null, err);
59
- done();
60
- });
61
- });
62
-
63
- it('reflux-apollo genenerated correctly', function(done) {
64
- helpers.compare('react', ['--client=reflux', '--graphql=apollo'], function(err) {
65
- assert(err == null, err);
66
- done();
67
- });
68
- });
69
-
70
- it('reflux-apollo-ssr genenerated correctly', function(done) {
71
- helpers.compare('react', ['--client=reflux', '--graphql=apollo', '-ssr=true'], function(err) {
72
- assert(err == null, err);
73
- done();
74
- });
75
- });
76
-
77
-
78
- it('blaze genenerated correctly', function(done) {
79
- helpers.compare('react', ['--client=blaze'], function(err) {
80
- assert(err == null, err);
81
- done();
82
- });
83
- });
84
- });
@@ -1,30 +0,0 @@
1
- {
2
- "engines": {
3
- "html": "html",
4
- "js": "js",
5
- "css": "css",
6
- "api": "none",
7
- "client": "blaze",
8
- "test": "none",
9
- "graphql": "none",
10
- "ssr": "false"
11
- },
12
-
13
- "template": {
14
- "html": "true",
15
- "js": "true",
16
- "css": "true",
17
- "test": "true"
18
- },
19
- "features": {
20
- "withTracker": "true"
21
- },
22
- "route": {
23
- "controller": "",
24
- "template": "true"
25
- },
26
-
27
- "generator": {
28
- "comments": "true"
29
- }
30
- }
@@ -1,17 +0,0 @@
1
- {
2
- "libs": [
3
- "browser",
4
- "jquery",
5
- "underscore"
6
- ],
7
- "loadEagerly": [ "*.js", "*/*.js", "*/*/*.js", "*/*/*/*.js" ],
8
- "dontLoad": [ ".meteor" ],
9
- "plugins": {
10
- "meteor": {}
11
- },
12
- "requirejs": {
13
- "baseURL": "./",
14
- "paths": {}
15
- },
16
- "node": {}
17
- }
@@ -1,17 +0,0 @@
1
- # This file contains information which helps Meteor properly upgrade your
2
- # app when you run 'meteor update'. You should check it into version control
3
- # with your project.
4
-
5
- notices-for-0.9.0
6
- notices-for-0.9.1
7
- 0.9.4-platform-file
8
- notices-for-facebook-graph-api-2
9
- 1.2.0-standard-minifiers-package
10
- 1.2.0-meteor-platform-split
11
- 1.2.0-cordova-changes
12
- 1.2.0-breaking-changes
13
- 1.3.0-split-minifiers-package
14
- 1.4.0-remove-old-dev-bundle-link
15
- 1.4.1-add-shell-server-package
16
- 1.4.3-split-account-service-packages
17
- 1.5-add-dynamic-import-package
@@ -1,7 +0,0 @@
1
- # This file contains a token that is unique to your project.
2
- # Check it into your repository along with the rest of this directory.
3
- # It can be used for purposes such as:
4
- # - ensuring you don't accidentally deploy one app on top of another
5
- # - providing package authors with aggregated statistics
6
-
7
- y8p9ecjug4zu.hb4hpnxnc5o7
@@ -1,21 +0,0 @@
1
- # Meteor packages used by this project, one per line.
2
- # Check this file (and the other files in this directory) into your repository.
3
- #
4
- # 'meteor add' and 'meteor remove' will edit this file for you,
5
- # but you can also edit it by hand.
6
-
7
- meteor-base@1.3.0 # Packages every Meteor app needs to have
8
- mobile-experience@1.0.5 # Packages for a great mobile UX
9
- mongo@1.4.2 # The database Meteor supports right now
10
- blaze-html-templates@1.0.4 # Compile .html files into Meteor Blaze views
11
- reactive-var@1.0.11 # Reactive variable for tracker
12
- tracker@1.1.3 # Meteor's client-side reactive programming library
13
-
14
- standard-minifier-css@1.4.0 # CSS minifier run for production mode
15
- standard-minifier-js@2.3.1 # JS minifier run for production mode
16
- es5-shim@4.7.0 # ECMAScript 5 compatibility for older browsers
17
- ecmascript@0.10.0 # Enable ECMAScript2015+ syntax in app code
18
- shell-server@0.3.1 # Server-side component of the `meteor shell` command
19
-
20
- autopublish@1.0.7 # Publish all data to the clients (for prototyping)
21
- insecure@1.0.7 # Allow all DB writes from clients (for prototyping)
@@ -1,2 +0,0 @@
1
- server
2
- browser
@@ -1 +0,0 @@
1
- METEOR@1.6.1
@@ -1,78 +0,0 @@
1
- allow-deny@1.1.0
2
- autopublish@1.0.7
3
- autoupdate@1.4.0
4
- babel-compiler@7.0.5
5
- babel-runtime@1.2.2
6
- base64@1.0.11
7
- binary-heap@1.0.10
8
- blaze@2.3.2
9
- blaze-html-templates@1.1.2
10
- blaze-tools@1.0.10
11
- boilerplate-generator@1.4.0
12
- caching-compiler@1.1.11
13
- caching-html-compiler@1.1.2
14
- callback-hook@1.1.0
15
- check@1.3.1
16
- ddp@1.4.0
17
- ddp-client@2.3.2
18
- ddp-common@1.4.0
19
- ddp-server@2.1.2
20
- deps@1.0.12
21
- diff-sequence@1.1.0
22
- dynamic-import@0.3.0
23
- ecmascript@0.10.5
24
- ecmascript-runtime@0.5.0
25
- ecmascript-runtime-client@0.6.2
26
- ecmascript-runtime-server@0.5.0
27
- ejson@1.1.0
28
- es5-shim@4.7.3
29
- geojson-utils@1.0.10
30
- hot-code-push@1.0.4
31
- html-tools@1.0.11
32
- htmljs@1.0.11
33
- http@1.4.0
34
- id-map@1.1.0
35
- insecure@1.0.7
36
- jquery@1.11.11
37
- launch-screen@1.1.1
38
- livedata@1.0.18
39
- logging@1.1.20
40
- meteor@1.8.6
41
- meteor-base@1.3.0
42
- minifier-css@1.3.1
43
- minifier-js@2.3.3
44
- minimongo@1.4.3
45
- mobile-experience@1.0.5
46
- mobile-status-bar@1.0.14
47
- modules@0.11.5
48
- modules-runtime@0.9.2
49
- mongo@1.4.5
50
- mongo-dev-server@1.1.0
51
- mongo-id@1.0.7
52
- npm-mongo@2.2.34
53
- observe-sequence@1.0.16
54
- ordered-dict@1.1.0
55
- promise@0.10.2
56
- random@1.1.0
57
- reactive-var@1.0.11
58
- reload@1.2.0
59
- retry@1.1.0
60
- routepolicy@1.0.13
61
- server-render@0.3.0
62
- shell-server@0.3.1
63
- shim-common@0.1.0
64
- socket-stream-client@0.1.0
65
- spacebars@1.0.15
66
- spacebars-compiler@1.1.3
67
- standard-minifier-css@1.4.1
68
- standard-minifier-js@2.3.2
69
- templating@1.3.2
70
- templating-compiler@1.3.3
71
- templating-runtime@1.3.2
72
- templating-tools@1.1.2
73
- tracker@1.1.3
74
- ui@1.0.13
75
- underscore@1.0.10
76
- url@1.2.0
77
- webapp@1.5.0
78
- webapp-hashing@1.0.9
@@ -1,2 +0,0 @@
1
- <body>
2
- </body>
@@ -1,8 +0,0 @@
1
- <head>
2
- <meta charset="utf-8">
3
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
- <meta name="viewport" content="width=device-width, initial-scale=1">
5
- <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
6
- <meta name="description" content="blaze">
7
- <title>blaze</title>
8
- </head>