@maka/maka-cli 4.6.11 → 4.6.13

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 (136) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/build/_index.js +1 -1
  20. package/bundle/obf/src/commands/build/build.js +1 -1
  21. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/create.js +1 -1
  23. package/bundle/obf/src/commands/debug.js +1 -1
  24. package/bundle/obf/src/commands/deploy.js +1 -1
  25. package/bundle/obf/src/commands/game/_index.js +1 -1
  26. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/game/play.command.js +1 -1
  28. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  29. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  30. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  31. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  63. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  64. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  65. package/bundle/obf/src/commands/generate.js +1 -1
  66. package/bundle/obf/src/commands/get/_index.js +1 -1
  67. package/bundle/obf/src/commands/get/get.command.js +1 -1
  68. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/help.js +1 -1
  72. package/bundle/obf/src/commands/install.js +1 -1
  73. package/bundle/obf/src/commands/jsdoc.js +1 -1
  74. package/bundle/obf/src/commands/lint.js +1 -1
  75. package/bundle/obf/src/commands/login.js +1 -1
  76. package/bundle/obf/src/commands/logout.js +1 -1
  77. package/bundle/obf/src/commands/logs.js +1 -1
  78. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  79. package/bundle/obf/src/commands/murder.js +1 -1
  80. package/bundle/obf/src/commands/proxy.js +1 -1
  81. package/bundle/obf/src/commands/reconfig.js +1 -1
  82. package/bundle/obf/src/commands/run/_index.js +1 -1
  83. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  84. package/bundle/obf/src/commands/run/run.command.js +1 -1
  85. package/bundle/obf/src/commands/set/_index.js +1 -1
  86. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  88. package/bundle/obf/src/commands/set/set.command.js +1 -1
  89. package/bundle/obf/src/commands/ssh.js +1 -1
  90. package/bundle/obf/src/commands/ssl.js +1 -1
  91. package/bundle/obf/src/commands/test.js +1 -1
  92. package/bundle/obf/src/commands/version.js +1 -1
  93. package/bundle/obf/src/error.js +1 -1
  94. package/bundle/obf/src/exec.js +1 -1
  95. package/bundle/obf/src/generator.js +1 -1
  96. package/bundle/obf/src/generators/_index.js +1 -1
  97. package/bundle/obf/src/generators/api.js +1 -1
  98. package/bundle/obf/src/generators/collection.js +1 -1
  99. package/bundle/obf/src/generators/component.js +1 -1
  100. package/bundle/obf/src/generators/config.js +1 -1
  101. package/bundle/obf/src/generators/dbc.js +1 -1
  102. package/bundle/obf/src/generators/dockerfile.js +1 -1
  103. package/bundle/obf/src/generators/hook.js +1 -1
  104. package/bundle/obf/src/generators/kit.js +1 -1
  105. package/bundle/obf/src/generators/layout.js +1 -1
  106. package/bundle/obf/src/generators/maka.gen.js +1 -1
  107. package/bundle/obf/src/generators/methods.js +1 -1
  108. package/bundle/obf/src/generators/package.js +1 -1
  109. package/bundle/obf/src/generators/page.js +1 -1
  110. package/bundle/obf/src/generators/publish.js +1 -1
  111. package/bundle/obf/src/generators/route.js +1 -1
  112. package/bundle/obf/src/generators/service.js +1 -1
  113. package/bundle/obf/src/generators/services/_index.js +1 -1
  114. package/bundle/obf/src/generators/services/openssl.js +1 -1
  115. package/bundle/obf/src/generators/services/translation.js +1 -1
  116. package/bundle/obf/src/maka.js +1 -1
  117. package/bundle/obf/src/tool.js +1 -1
  118. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  119. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  120. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  121. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  122. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  123. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  124. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  125. package/bundle/obf/src/tools/https/https.class.js +1 -1
  126. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  127. package/bundle/obf/src/tools/log/log.class.js +1 -1
  128. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  129. package/bundle/obf/src/tools/options/options.class.js +1 -1
  130. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  131. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  132. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  133. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  134. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  135. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  136. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(a,b){var f=a95d,c=a();while(!![]){try{var d=-parseInt(f(0x113))/0x1+-parseInt(f(0x119))/0x2+-parseInt(f(0x118))/0x3*(-parseInt(f(0x11d))/0x4)+-parseInt(f(0x11c))/0x5*(-parseInt(f(0x121))/0x6)+parseInt(f(0x11b))/0x7+parseInt(f(0x117))/0x8*(parseInt(f(0x114))/0x9)+-parseInt(f(0x115))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0xcd5de));var a95b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a95d;if(c){var e=c[g(0x120)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){var h=a95d;return a95a[h(0x11e)]()[h(0x116)](h(0x11a))[h(0x11e)]()[h(0x11f)](a95a)[h(0x116)](h(0x11a));});a95a();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';function a95d(a,b){var c=a95c();return a95d=function(d,e){d=d-0x113;var f=c[d];return f;},a95d(a,b);}import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';function a95c(){var i=['4dYpBHQ','toString','constructor','apply','6Ppnhkw','722946msJzEP','10627002aYcBat','7935390YuDsio','search','8meUATl','194787igiqJG','1612516Vqscdd','(((.+)+)+)+$','2375464fWnLla','7894330TLtRxh'];a95c=function(){return i;};return a95c();}
1
+ (function(a,b){var f=a95d,c=a();while(!![]){try{var d=parseInt(f(0xe8))/0x1+parseInt(f(0xdb))/0x2*(parseInt(f(0xe1))/0x3)+parseInt(f(0xe9))/0x4*(parseInt(f(0xe0))/0x5)+parseInt(f(0xda))/0x6*(-parseInt(f(0xe3))/0x7)+parseInt(f(0xde))/0x8+-parseInt(f(0xe2))/0x9+-parseInt(f(0xdf))/0xa*(parseInt(f(0xdd))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0xd7112));var a95b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a95d;if(c){var e=c[g(0xe7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){var h=a95d;return a95a[h(0xe6)]()[h(0xdc)](h(0xe4))[h(0xe6)]()[h(0xe5)](a95a)[h(0xdc)](h(0xe4));});a95a();function a95d(a,b){var c=a95c();return a95d=function(d,e){d=d-0xda;var f=c[d];return f;},a95d(a,b);}import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';function a95c(){var i=['1922838PUeaXF','314bJzNSy','search','561EOFpnJ','5520328nvOXND','72510fJdgRJ','893545aMFebF','19743kehEAd','11290374NZZmvl','14qfEtlQ','(((.+)+)+)+$','constructor','toString','apply','1244180dHduao','4spvGUN'];a95c=function(){return i;};return a95c();}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';import'./dockerfile.js';import'./maka.gen.js';
@@ -1 +1 @@
1
- const a96z=a96d;(function(a,b){const w=a96d,c=a();while(!![]){try{const d=-parseInt(w(0x19e))/0x1+parseInt(w(0x16b))/0x2*(parseInt(w(0x194))/0x3)+parseInt(w(0x17e))/0x4*(-parseInt(w(0x183))/0x5)+-parseInt(w(0x15e))/0x6*(parseInt(w(0x1b0))/0x7)+-parseInt(w(0x1a3))/0x8+parseInt(w(0x160))/0x9+parseInt(w(0x180))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x49d51));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a96d;if(c){const e=c[x(0x18d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const y=a96d;return a96a[y(0x157)]()[y(0x191)](y(0x1a1))[y(0x157)]()['constructor'](a96a)[y(0x191)](y(0x1a1));});a96a();import{Generator}from'../generator.js';function a96c(){const C=['787584qgVcnE','injectAtBeginningOfFile','1012986EOOYMJ','resourceName','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','length','Publications','-api.','import\x20\x27./register-','\x0aimport\x20{\x20resolvers\x20as\x20','withGql','graphql','apiAnswers','162wblGmF','push','none','tsx','TypeDefs\x20}\x20from\x20\x27','injectIntoFile','API\x20boundaries\x20to\x20create','/imports/api','fsi','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','withPubs','invoke','imports','ddp-rate-limiter','rest','fixtures.','.app-tests.','collection','error','20kGRqjQ','No\x20API\x20boundaries\x20selected','8415020qSBdxZ','apollo','const','260675boZkQl','/graphql/resolvers','withValue','maka:rest','TypeDefs);\x0a','injectAtEndOfFile','Fixtures','resolvers.','withMethods','test','apply','maka\x20{generate,\x20g}:{api}\x20<resource-name>','rpc-methods.','withRest','search','mongo','startup','17151rOoaOJ','withFixtures','typeList.push(','api/tests.js','dir','options','maka:check','exit','includes','/graphql/typeDefs','332693XYQvXA','mdg:validated-method','server','(((.+)+)+)+$','api','2070560rVYLTl','api/methods.js','api/fixtures.js','RPC\x20(Methods)','GraphQL','if\x20\x5c(typeList','Resolvers\x20}\x20from\x20\x27','index.','notice','checkMeteorPackage','api/register-api.js','template','api/resolvers.js','14lzyKuE','Resolvers);\x0a\x0a','Verifying\x20meteor\x20package\x20requirements\x20...','pathFromApp','toString','publications.','register-','maka\x20g:api\x20Todos','api/api.js','engines','\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20a\x20collection,\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20'];a96c=function(){return C;};return a96c();}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a96e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x155;let f=c[d];return f;},a96d(a,b);}Generator['create']({'name':a96z(0x1a2),'aliases':['a'],'usage':a96z(0x18e),'shortDesc':a96z(0x174),'validOpts':[a96z(0x198)],'examples':[a96z(0x15a)],'description':a96z(0x15d)},async function(a,b){const A=a96z;try{const c=this[A(0x173)]['getProjectConfig'](),d=[{'name':A(0x1a6),'value':'withMethods'},{'name':A(0x189),'value':'withFixtures'},{'name':A(0x164),'value':A(0x175)}];c[A(0x15c)][A(0x1a2)]===A(0x179)&&d[A(0x16c)]({'name':'REST\x20API','value':'withRest'});c[A(0x15c)][A(0x169)]===A(0x181)&&d[A(0x16c)]({'name':A(0x1a7),'value':A(0x168)});const f={'type':'checkbox','name':A(0x16a),'message':A(0x171),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x199)](f);g[A(0x163)]===0x0&&(Log[A(0x17d)](A(0x17f)),process[A(0x19b)](0x1)),this['fsi'][A(0x185)](c,async()=>{const B=A,h=this[B(0x173)][B(0x156)]({}),i=b[B(0x161)],j=paramCase(i),k=camelCase(i),l=b[B(0x198)]?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x15c)][B(0x1a2)],'graphql':c[B(0x15c)][B(0x169)],'test':c[B(0x15c)][B(0x18c)],'noRename':!![],'withPubs':g[B(0x19c)](B(0x175)),'withFixtures':g[B(0x19c)](B(0x195)),'withMethods':g[B(0x19c)](B(0x18b)),'withRest':g[B(0x19c)](B(0x190))};let n='js';c[B(0x15c)]['js']===B(0x16e)&&(n='ts');(!this[B(0x173)][B(0x1ac)](B(0x186))||!this['fsi'][B(0x1ac)](B(0x19a))||!this[B(0x173)]['checkMeteorPackage'](B(0x178))||!this[B(0x173)][B(0x1ac)](B(0x19f))||!this[B(0x173)][B(0x1ac)](B(0x192)))&&(Log[B(0x1ab)](B(0x155)),await this[B(0x173)]['installMeteorPackage'](B(0x162),{'cwd':h}));const o=a96e['findGenerator'](B(0x17c));o&&await o[B(0x176)]([j],{'config':c,'where':B(0x1a0)});c[B(0x15c)][B(0x1a2)]===B(0x179)&&(m['withRest']&&this[B(0x173)]['template']({'srcPath':B(0x15b),'destPath':this[B(0x173)][B(0x156)]({'pathParts':['imports',B(0x1a2),b[B(0x198)],j,'rest-api.'+n]}),'context':m,'config':c}));m['withMethods']&&this['fsi']['template']({'srcPath':B(0x1a4),'destPath':this['fsi'][B(0x156)]({'pathParts':[B(0x177),B(0x1a2),b[B(0x198)],j,B(0x18f)+n]}),'context':m,'config':c});m[B(0x195)]&&this[B(0x173)]['template']({'srcPath':B(0x1a5),'destPath':this[B(0x173)]['pathFromApp']({'pathParts':['imports','api',b[B(0x198)],j,B(0x17a)+n]}),'context':m,'config':c});c[B(0x15c)]['test']!==B(0x16d)&&this['fsi'][B(0x1ae)]({'srcPath':B(0x197),'destPath':this['fsi'][B(0x156)]({'pathParts':['imports',B(0x1a2),b[B(0x198)],j,j+B(0x17b)+n]}),'context':m,'config':c});m[B(0x175)]&&this[B(0x173)]['template']({'srcPath':'api/publications.js','destPath':this[B(0x173)][B(0x156)]({'pathParts':[B(0x177),B(0x1a2),b[B(0x198)],j,B(0x158)+n]}),'context':m,'config':c});if(c[B(0x15c)]['graphql']===B(0x181)){if(g[B(0x19c)]('withGql')){const q=this[B(0x173)][B(0x156)]({'pathParts':[B(0x177),B(0x193),'server',B(0x1aa)+c['engines']['js']]}),r=this[B(0x173)]['rewriteDestinationPathForEngine']({'pathParts':[q],'config':c}),s=this[B(0x173)][B(0x156)]({'pathParts':[B(0x177),'api',b['dir'],j,B(0x169),'typeDefs.'+n]}),t=B(0x172)+l+j+B(0x19d);this[B(0x173)]['template']({'srcPath':'api/typeDefs.js','destPath':s,'context':m,'config':c}),this[B(0x173)][B(0x15f)]({'filePath':r,'content':'import\x20{\x20typeDefs\x20as\x20'+k+B(0x16f)+t+'\x27;\x0a'}),this['fsi']['injectIntoFile']({'filePath':r,'content':B(0x196)+k+B(0x187),'begin':B(0x182),'end':B(0x1a8)});const u=this[B(0x173)][B(0x156)]({'pathParts':[B(0x177),B(0x1a2),b['dir'],j,'graphql',B(0x18a)+n]}),v=B(0x172)+l+j+B(0x184);this[B(0x173)]['template']({'srcPath':B(0x1af),'destPath':u,'context':m,'config':c}),this[B(0x173)][B(0x15f)]({'filePath':r,'content':B(0x167)+k+B(0x1a9)+v+'\x27;'}),this[B(0x173)][B(0x170)]({'filePath':r,'content':'resolverList.push('+k+B(0x1b1),'begin':B(0x182),'end':B(0x1a8)});}}this[B(0x173)][B(0x1ae)]({'srcPath':B(0x1ad),'destPath':this['fsi'][B(0x156)]({'pathParts':[B(0x177),'startup',B(0x1a0),B(0x159)+j+B(0x165)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x173)]['pathFromApp']({'pathParts':['imports',B(0x193),B(0x1a0),'index.'+c[B(0x15c)]['js']]});this[B(0x173)][B(0x188)]({'filePath':p,'content':B(0x166)+j+'-api\x27;'});});}catch(h){console[A(0x17d)](h),process['exit'](0x0);}});
1
+ const a96z=a96d;(function(a,b){const w=a96d,c=a();while(!![]){try{const d=-parseInt(w(0x1c5))/0x1+-parseInt(w(0x1ae))/0x2+parseInt(w(0x1a1))/0x3+parseInt(w(0x193))/0x4*(parseInt(w(0x183))/0x5)+-parseInt(w(0x1a6))/0x6*(-parseInt(w(0x1d7))/0x7)+-parseInt(w(0x1d4))/0x8*(-parseInt(w(0x1bc))/0x9)+-parseInt(w(0x195))/0xa*(parseInt(w(0x1c8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x91408));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a96d;if(c){const e=c[x(0x1ba)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const y=a96d;return a96a['toString']()[y(0x190)](y(0x196))[y(0x1cb)]()[y(0x1d2)](a96a)[y(0x190)](y(0x196));});a96a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x17e;let f=c[d];return f;},a96d(a,b);}import{Actions}from'../tools/actions/actions.class.js';import a96e from'../generators/maka.gen.js';function a96c(){const C=['9916819wxDngS','installMeteorPackage','graphql','toString','push','engines','withPubs','none','api/register-api.js','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','constructor','Resolvers\x20}\x20from\x20\x27','1771224GWNqrM','import\x20\x27./register-','apiAnswers','14aLAynW','mdg:validated-method','typeDefs.','api/api.js','getProjectConfig','api/typeDefs.js','rest','pathFromApp','api/tests.js','rest-api.','typeList.push(','345EwnshL','fixtures.','api','Publications','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','-api.','Fixtures','test','TypeDefs);\x0a','rpc-methods.','/graphql/resolvers','apollo','\x0aimport\x20{\x20resolvers\x20as\x20','search','\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20a\x20collection,\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20','checkbox','56080gskSTi','collection','20lGxyet','(((.+)+)+)+$','injectAtBeginningOfFile','maka\x20{generate,\x20g}:{api}\x20<resource-name>','dir','api/fixtures.js','mongo','resolverList.push(','startup','checkMeteorPackage','template','invoke','1170027ijgSRs','tsx','notice','exit','imports','1274100ayhdEC','API\x20boundaries\x20to\x20create','register-','server','maka\x20g:api\x20Todos','withGql','index.','GraphQL','291922jXzUWg','injectIntoFile','api/resolvers.js','Resolvers);\x0a\x0a','includes','maka:rest','error','.app-tests.','api/publications.js','withRest','options','const','apply','resourceName','45VNXURL','resolvers.','withFixtures','/graphql/typeDefs','Verifying\x20meteor\x20package\x20requirements\x20...','/imports/api','withMethods','ddp-rate-limiter','-api\x27;','345133ezrzLE','if\x20\x5c(typeList','fsi'];a96c=function(){return C;};return a96c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':'api','aliases':['a'],'usage':a96z(0x198),'shortDesc':a96z(0x1d1),'validOpts':[a96z(0x199)],'examples':[a96z(0x1aa)],'description':a96z(0x191)},async function(a,b){const A=a96z;try{const c=this[A(0x1c7)][A(0x1db)](),d=[{'name':'RPC\x20(Methods)','value':'withMethods'},{'name':A(0x189),'value':'withFixtures'},{'name':A(0x186),'value':'withPubs'}];c['engines'][A(0x185)]===A(0x17e)&&d[A(0x1cc)]({'name':'REST\x20API','value':A(0x1b7)});c[A(0x1cd)][A(0x1ca)]===A(0x18e)&&d[A(0x1cc)]({'name':A(0x1ad),'value':A(0x1ab)});const f={'type':A(0x192),'name':A(0x1d6),'message':A(0x1a7),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x1b8)](f);g['length']===0x0&&(Log[A(0x1b4)]('No\x20API\x20boundaries\x20selected'),process[A(0x1a4)](0x1)),this[A(0x1c7)]['withValue'](c,async()=>{const B=A,h=this[B(0x1c7)][B(0x17f)]({}),i=b[B(0x1bb)],j=paramCase(i),k=camelCase(i),l=b['dir']?'/'+b[B(0x199)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x1cd)][B(0x185)],'graphql':c[B(0x1cd)][B(0x1ca)],'test':c[B(0x1cd)][B(0x18a)],'noRename':!![],'withPubs':g[B(0x1b2)](B(0x1ce)),'withFixtures':g[B(0x1b2)]('withFixtures'),'withMethods':g[B(0x1b2)](B(0x1c2)),'withRest':g[B(0x1b2)](B(0x1b7))};let n='js';c['engines']['js']===B(0x1a2)&&(n='ts');(!this[B(0x1c7)][B(0x19e)](B(0x1b3))||!this[B(0x1c7)][B(0x19e)]('maka:check')||!this[B(0x1c7)]['checkMeteorPackage'](B(0x1c3))||!this[B(0x1c7)][B(0x19e)](B(0x1d8))||!this[B(0x1c7)][B(0x19e)](B(0x19b)))&&(Log[B(0x1a3)](B(0x1c0)),await this[B(0x1c7)][B(0x1c9)](B(0x187),{'cwd':h}));const o=a96e['findGenerator'](B(0x194));o&&await o[B(0x1a0)]([j],{'config':c,'where':B(0x1a9)});c['engines'][B(0x185)]===B(0x17e)&&(m['withRest']&&this[B(0x1c7)]['template']({'srcPath':B(0x1da),'destPath':this[B(0x1c7)][B(0x17f)]({'pathParts':[B(0x1a5),'api',b[B(0x199)],j,B(0x181)+n]}),'context':m,'config':c}));m['withMethods']&&this[B(0x1c7)][B(0x19f)]({'srcPath':'api/methods.js','destPath':this[B(0x1c7)][B(0x17f)]({'pathParts':[B(0x1a5),B(0x185),b['dir'],j,B(0x18c)+n]}),'context':m,'config':c});m[B(0x1be)]&&this[B(0x1c7)][B(0x19f)]({'srcPath':B(0x19a),'destPath':this[B(0x1c7)][B(0x17f)]({'pathParts':[B(0x1a5),'api',b[B(0x199)],j,B(0x184)+n]}),'context':m,'config':c});c['engines'][B(0x18a)]!==B(0x1cf)&&this[B(0x1c7)][B(0x19f)]({'srcPath':B(0x180),'destPath':this['fsi'][B(0x17f)]({'pathParts':[B(0x1a5),B(0x185),b['dir'],j,j+B(0x1b5)+n]}),'context':m,'config':c});m[B(0x1ce)]&&this['fsi'][B(0x19f)]({'srcPath':B(0x1b6),'destPath':this[B(0x1c7)][B(0x17f)]({'pathParts':['imports','api',b[B(0x199)],j,'publications.'+n]}),'context':m,'config':c});if(c['engines'][B(0x1ca)]===B(0x18e)){if(g[B(0x1b2)](B(0x1ab))){const q=this['fsi'][B(0x17f)]({'pathParts':['imports',B(0x19d),B(0x1a9),B(0x1ac)+c[B(0x1cd)]['js']]}),r=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[q],'config':c}),s=this[B(0x1c7)][B(0x17f)]({'pathParts':['imports',B(0x185),b[B(0x199)],j,B(0x1ca),B(0x1d9)+n]}),t=B(0x1c1)+l+j+B(0x1bf);this[B(0x1c7)][B(0x19f)]({'srcPath':B(0x1dc),'destPath':s,'context':m,'config':c}),this[B(0x1c7)][B(0x197)]({'filePath':r,'content':'import\x20{\x20typeDefs\x20as\x20'+k+'TypeDefs\x20}\x20from\x20\x27'+t+'\x27;\x0a'}),this[B(0x1c7)][B(0x1af)]({'filePath':r,'content':B(0x182)+k+B(0x18b),'begin':B(0x1b9),'end':B(0x1c6)});const u=this[B(0x1c7)][B(0x17f)]({'pathParts':[B(0x1a5),B(0x185),b['dir'],j,'graphql',B(0x1bd)+n]}),v=B(0x1c1)+l+j+B(0x18d);this[B(0x1c7)][B(0x19f)]({'srcPath':B(0x1b0),'destPath':u,'context':m,'config':c}),this[B(0x1c7)][B(0x197)]({'filePath':r,'content':B(0x18f)+k+B(0x1d3)+v+'\x27;'}),this['fsi']['injectIntoFile']({'filePath':r,'content':B(0x19c)+k+B(0x1b1),'begin':B(0x1b9),'end':B(0x1c6)});}}this[B(0x1c7)][B(0x19f)]({'srcPath':B(0x1d0),'destPath':this[B(0x1c7)]['pathFromApp']({'pathParts':[B(0x1a5),B(0x19d),'server',B(0x1a8)+j+B(0x188)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x1c7)][B(0x17f)]({'pathParts':[B(0x1a5),B(0x19d),B(0x1a9),B(0x1ac)+c[B(0x1cd)]['js']]});this[B(0x1c7)]['injectAtEndOfFile']({'filePath':p,'content':B(0x1d5)+j+B(0x1c4)});});}catch(h){console[A(0x1b4)](h),process[A(0x1a4)](0x0);}});
@@ -1 +1 @@
1
- const a97n=a97d;(function(a,b){const k=a97d,c=a();while(!![]){try{const d=parseInt(k(0x1ce))/0x1*(-parseInt(k(0x1bd))/0x2)+-parseInt(k(0x1c4))/0x3*(-parseInt(k(0x1d9))/0x4)+parseInt(k(0x1cc))/0x5*(parseInt(k(0x1df))/0x6)+-parseInt(k(0x1db))/0x7+parseInt(k(0x1d6))/0x8*(-parseInt(k(0x1c5))/0x9)+-parseInt(k(0x1ca))/0xa+parseInt(k(0x1b8))/0xb*(parseInt(k(0x1c0))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x87fb9));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a97d;if(c){const e=c[l(0x1d8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const m=a97d;return a97a[m(0x1da)]()['search']('(((.+)+)+)+$')['toString']()[m(0x1c7)](a97a)[m(0x1b4)](m(0x1d0));});function a97c(){const q=['test','(((.+)+)+)+$','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','getProjectConfig','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','appPathPrefix','fsi','8sUVJLu','col','apply','2534668RxLbYT','toString','5300680yTzTao','installMeteorPackage','collections','dir','18XZxPQG','maka:check','checkMeteorPackage','imports','template','search','startup','.app-tests.','\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','10656019UTFSff','index.','mongo','error','injectAtEndOfFile','806064ZrWWSX','pathFromApp','maka\x20g:collection\x20todos','24OLIBiH','resourceName','tsx','where','3NOgRjT','7772319CzeJvy','collection/tests.js','constructor','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','import\x20\x27./collections','3529980ROERTa','engines','1276255JGwbdx','collection','2BKyaVY'];a97c=function(){return q;};return a97c();}a97a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1b1;let f=c[d];return f;},a97d(a,b);}import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a97n(0x1cd),'aliases':[a97n(0x1d7)],'usage':a97n(0x1c8),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':[a97n(0x1de),a97n(0x1c3)],'description':a97n(0x1b7),'examples':[a97n(0x1bf)]},async function(a,b){const o=a97n;try{const c=this[o(0x1d5)][o(0x1be)]({}),d=this[o(0x1d5)][o(0x1d2)]();this[o(0x1d5)]['withValue'](d,async()=>{const p=o,f=paramCase(b[p(0x1c1)]),g={'name':pascalCase(b[p(0x1c1)]),'collectionName':pascalCase(b[p(0x1c1)]),'fileName':f,'where':b[p(0x1c3)],'test':d[p(0x1cb)][p(0x1cf)],'noRename':!![]};let h='js';d[p(0x1cb)]['js']===p(0x1c2)&&(h='ts');!this[p(0x1d5)]['checkMeteorPackage'](p(0x1ba))&&(Log['notice'](p(0x1d1)),await this[p(0x1d5)][p(0x1dc)](p(0x1ba),{'cwd':c}));!this[p(0x1d5)][p(0x1b1)](p(0x1e0))&&(Log['notice'](p(0x1d3)),await this[p(0x1d5)][p(0x1dc)](p(0x1e0),{'cwd':c}));this[p(0x1d5)][p(0x1b3)]({'srcPath':'collection/collection.js','destPath':this[p(0x1d5)][p(0x1be)]({'pathParts':[p(0x1b2),p(0x1b5),b[p(0x1d4)],p(0x1dd),b['dir'],f+'.'+h]}),'context':g,'config':d});d[p(0x1cb)]['test']!=='none'&&this[p(0x1d5)][p(0x1b3)]({'srcPath':p(0x1c6),'destPath':this[p(0x1d5)][p(0x1be)]({'pathParts':[p(0x1b2),p(0x1b5),b[p(0x1d4)],p(0x1dd),b[p(0x1de)],f+p(0x1b6)+h]}),'context':g,'config':d});const i=b['dir']?'/'+b[p(0x1de)]+'/':'/',j=this[p(0x1d5)][p(0x1be)]({'pathParts':[p(0x1b2),'startup',b[p(0x1d4)],p(0x1b9)+d['engines']['js']]});this[p(0x1d5)][p(0x1bc)]({'filePath':j,'content':p(0x1c9)+i+f+'\x27;'});});}catch(f){Log[o(0x1bb)](f);}});
1
+ const a97n=a97d;(function(a,b){const k=a97d,c=a();while(!![]){try{const d=parseInt(k(0x1fa))/0x1*(-parseInt(k(0x20d))/0x2)+parseInt(k(0x208))/0x3*(parseInt(k(0x205))/0x4)+parseInt(k(0x214))/0x5+parseInt(k(0x1f5))/0x6*(parseInt(k(0x1ec))/0x7)+-parseInt(k(0x209))/0x8+-parseInt(k(0x212))/0x9+parseInt(k(0x219))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x5ff89));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a97d;if(c){const e=c[l(0x1f7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const m=a97d;return a97a['toString']()['search']('(((.+)+)+)+$')[m(0x1fb)]()[m(0x213)](a97a)[m(0x217)](m(0x20e));});a97a();function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1eb;let f=c[d];return f;},a97d(a,b);}import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a97c(){const q=['injectAtEndOfFile','create','mongo','.app-tests.','startup','16rEsBTN','import\x20\x27./collections','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','272214MRSFwh','5626944PmMwui','checkMeteorPackage','collections','installMeteorPackage','854778ypAfLI','(((.+)+)+)+$','notice','\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','getProjectConfig','4872357ZxlHAs','constructor','3751335UwPaui','maka\x20g:collection\x20todos','template','search','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','1883540wgaHVX','collection/tests.js','none','86219fSfLms','imports','test','withValue','dir','engines','pathFromApp','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','error','372HKFnMF','fsi','apply','appPathPrefix','resourceName','1LceYDp','toString','maka:check','index.','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','where'];a97c=function(){return q;};return a97c();}import{Log}from'../tools/log/log.class.js';Generator[a97n(0x201)]({'name':'collection','aliases':['col'],'usage':a97n(0x207),'checkWhere':!![],'shortDesc':a97n(0x1f3),'validOpts':[a97n(0x1f0),a97n(0x1ff)],'description':a97n(0x210),'examples':[a97n(0x215)]},async function(a,b){const o=a97n;try{const c=this[o(0x1f6)][o(0x1f2)]({}),d=this[o(0x1f6)][o(0x211)]();this['fsi'][o(0x1ef)](d,async()=>{const p=o,f=paramCase(b[p(0x1f9)]),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b[p(0x1f9)]),'fileName':f,'where':b[p(0x1ff)],'test':d[p(0x1f1)][p(0x1ee)],'noRename':!![]};let h='js';d[p(0x1f1)]['js']==='tsx'&&(h='ts');!this[p(0x1f6)][p(0x20a)](p(0x202))&&(Log[p(0x20f)](p(0x1fe)),await this[p(0x1f6)][p(0x20c)]('mongo',{'cwd':c}));!this['fsi']['checkMeteorPackage'](p(0x1fc))&&(Log[p(0x20f)](p(0x218)),await this[p(0x1f6)][p(0x20c)](p(0x1fc),{'cwd':c}));this[p(0x1f6)][p(0x216)]({'srcPath':'collection/collection.js','destPath':this[p(0x1f6)]['pathFromApp']({'pathParts':[p(0x1ed),p(0x204),b['appPathPrefix'],p(0x20b),b[p(0x1f0)],f+'.'+h]}),'context':g,'config':d});d[p(0x1f1)]['test']!==p(0x1eb)&&this[p(0x1f6)][p(0x216)]({'srcPath':p(0x21a),'destPath':this[p(0x1f6)][p(0x1f2)]({'pathParts':[p(0x1ed),p(0x204),b[p(0x1f8)],p(0x20b),b[p(0x1f0)],f+p(0x203)+h]}),'context':g,'config':d});const i=b[p(0x1f0)]?'/'+b[p(0x1f0)]+'/':'/',j=this[p(0x1f6)][p(0x1f2)]({'pathParts':[p(0x1ed),p(0x204),b[p(0x1f8)],p(0x1fd)+d[p(0x1f1)]['js']]});this[p(0x1f6)][p(0x200)]({'filePath':j,'content':p(0x206)+i+f+'\x27;'});});}catch(f){Log[o(0x1f4)](f);}});
@@ -1 +1 @@
1
- const a98q=a98d;(function(a,b){const n=a98d,c=a();while(!![]){try{const d=parseInt(n(0x1aa))/0x1+parseInt(n(0x16e))/0x2+parseInt(n(0x16c))/0x3*(-parseInt(n(0x1a5))/0x4)+-parseInt(n(0x16a))/0x5*(parseInt(n(0x19a))/0x6)+-parseInt(n(0x167))/0x7+parseInt(n(0x18b))/0x8+parseInt(n(0x16d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x40147));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a98d;if(c){const e=c[o(0x168)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const p=a98d;return a98a[p(0x18c)]()['search'](p(0x195))[p(0x18c)]()[p(0x174)](a98a)['search'](p(0x195));});function a98c(){const t=['143803MOZKtX','engines','assign','client','setTemplate','installNpmPackage','none','findAppDirectory','checkNpmPackage','features','2055872QPqqDt','apply','root','634895PratSF','css','16557qLtXMT','3607668cBTJwX','467020BujjWT','baseDir','injectAtEndOfFile','theme','.js','injectAtBeginningOfFile','constructor','test','true','import\x20\x27./','fsi','hooks','cssCaseName','lib','warn','imports','rewriteDestinationPathForEngine','import\x20{\x20','ramda','comp','component','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','className','fileName','graphql','dir','react','create','api','122888WqoQcD','toString','pages','\x20};\x0a','/imports/ui/','export\x20{\x20','component/component.js','ssr','import\x20\x27','resourceName','(((.+)+)+)+$','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','layouts','template','pathFromApp','6PyFiCT','relative','withTranslations','components','error','\x27;\x0a','templates.js','withValue','startup','string','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','80TzRSUf','tsx','\x20}\x20from\x20\x27','.css','/imports/ui/components'];a98c=function(){return t;};return a98c();}a98a();import a98e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a98q(0x181)];function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x167;let f=c[d];return f;},a98d(a,b);}Generator[a98q(0x189)]({'name':a98q(0x182),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':a98q(0x1a4),'validOpts':[{'name':'baseDir','values':[a98q(0x179),a98q(0x19d),a98q(0x18d),a98q(0x197)]}],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const r=a98q;try{const c=this['fsi'][r(0x1b1)](),d=b[r(0x16f)]?r(0x18f)+b[r(0x16f)]:r(0x1a9),f=this['fsi'][r(0x199)]({'pathParts':[d,b['dir'],paramCase(b[r(0x194)]),paramCase(b[r(0x194)])]}),g=await this[r(0x178)]['getProjectConfig']();this[r(0x178)][r(0x1a1)](g,async()=>{const s=r;typeof g[s(0x198)][s(0x175)]===s(0x1a3)&&(g[s(0x198)][s(0x175)]=g[s(0x198)][s(0x175)]==='true'?!![]:![],this['fsi'][s(0x1ae)](s(0x175),g[s(0x198)][s(0x175)]));typeof g[s(0x198)][s(0x16b)]===s(0x1a3)&&(g[s(0x198)][s(0x16b)]=g[s(0x198)][s(0x16b)]==='true'?!![]:![],this[s(0x178)][s(0x1ae)](s(0x16b),g[s(0x198)][s(0x16b)]));typeof g[s(0x198)]['js']===s(0x1a3)&&(g['template']['js']=g[s(0x198)]['js']===s(0x176)?!![]:![],this[s(0x178)]['setTemplate']('js',g['template']['js']));!g[s(0x1b3)]&&(g[s(0x1b3)]={});!b[s(0x169)]&&!this[s(0x178)][s(0x1b2)](s(0x180))&&(Log[s(0x17c)](s(0x183)),await this[s(0x178)][s(0x1af)](s(0x180),{'cwd':c}));if(!b['root']&&!this[s(0x178)][s(0x1b2)](s(0x188))){Log['error'](s(0x196));return;}const h={'name':pascalCase(b[s(0x194)]),'myPath':a98e[s(0x19b)](this[s(0x178)]['pathFromProject']({}),f),'cssCaseName':paramCase(b[s(0x194)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[s(0x194)]),'fileName':paramCase(b['resourceName']),'graphql':g[s(0x1ab)][s(0x186)],'features':g[s(0x1b3)],'client':g['engines'][s(0x1ad)],'api':g[s(0x1ab)][s(0x18a)],'ssr':g['engines'][s(0x192)],'test':g[s(0x1ab)][s(0x175)],'theme':g[s(0x1ab)][s(0x171)],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0x1b3)][s(0x19c)]};this[s(0x178)][s(0x198)]({'srcPath':s(0x191),'destPath':f+s(0x172),'context':h,'framework':s(0x188),'config':g});g['engines'][s(0x175)]!==s(0x1b0)&&this[s(0x178)][s(0x198)]({'srcPath':'test/test.js','destPath':f+'.tests.js','context':h,'framework':'react','config':g});g[s(0x198)][s(0x16b)]&&(this[s(0x178)][s(0x198)]({'srcPath':'template/template.css','destPath':f+s(0x1a8),'context':Object[s(0x1ac)]({},h,{'className':paramCase(b[s(0x194)])}),'config':g}),this[s(0x178)][s(0x173)]({'filePath':f+'.'+g[s(0x1ab)]['js'],'content':s(0x177)+h[s(0x17a)]+'.'+g[s(0x1ab)][s(0x16b)]+'\x27;'}));const i=b[s(0x187)]?'/'+b[s(0x187)]+'/':'/',j=''+d+i+h[s(0x185)]+'/'+h['fileName'];let k;if(g[s(0x1ab)][s(0x192)]===s(0x176)){const l=this['fsi'][s(0x199)]({'pathParts':[s(0x17d),s(0x1a2),s(0x17b),s(0x1a0)]});k=this[s(0x178)][s(0x17e)]({'pathParts':[l],'config':g});}else{const m=this[s(0x178)][s(0x199)]({'pathParts':[s(0x17d),s(0x1a2),'client',s(0x1a0)]});k=this[s(0x178)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':g});}g['engines']['client']===s(0x188)||g[s(0x1ab)][s(0x1ad)]==='reflux'?(g[s(0x1ab)]['js']===s(0x1a6)?this[s(0x178)][s(0x173)]({'filePath':k,'content':s(0x17f)+h[s(0x184)]+'\x20}\x20from\x20\x27'+j+'\x27;\x0a'}):this[s(0x178)][s(0x173)]({'filePath':k,'content':s(0x17f)+h['className']+s(0x1a7)+j+'.'+g[s(0x1ab)]['js']+s(0x19f)}),this[s(0x178)][s(0x170)]({'filePath':k,'content':s(0x190)+h[s(0x184)]+s(0x18e)})):this[s(0x178)]['injectAtEndOfFile']({'filePath':k,'content':s(0x193)+j+'.'+g[s(0x1ab)]['js']+s(0x19f)});});}catch(h){Log[r(0x19e)](h);}});
1
+ const a98q=a98d;(function(a,b){const n=a98d,c=a();while(!![]){try{const d=-parseInt(n(0x1b8))/0x1+-parseInt(n(0x1ea))/0x2*(-parseInt(n(0x1cc))/0x3)+-parseInt(n(0x1cd))/0x4*(parseInt(n(0x1c2))/0x5)+parseInt(n(0x1c5))/0x6*(-parseInt(n(0x1d3))/0x7)+parseInt(n(0x1db))/0x8*(-parseInt(n(0x1e5))/0x9)+-parseInt(n(0x1f9))/0xa+parseInt(n(0x1ca))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x845db));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a98d;if(c){const e=c[o(0x1dd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const p=a98d;return a98a[p(0x1ef)]()[p(0x1c4)](p(0x1e3))['toString']()[p(0x1cf)](a98a)[p(0x1c4)](p(0x1e3));});a98a();import a98e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a98c(){const t=['(((.+)+)+)+$','resourceName','27hlMdxW','checkNpmPackage','/imports/ui/','startup','withTranslations','2vatdZj','.js','baseDir','template','export\x20{\x20','toString','component/component.js','true','rewriteDestinationPathForEngine','create','reflux','api','installNpmPackage','lib','features','8236200ACtHGY','templates.js','layouts','error','test','components','96714RygrwV','ramda','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','ssr','injectAtBeginningOfFile','tsx','none','import\x20\x27./','fsi','warn','466770RZMBAO','fileName','search','615858YJtDSg','import\x20{\x20','string','\x20}\x20from\x20\x27','client','24964962twsMIt','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','1520979onVYFA','28fZWrzZ','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','constructor','assign','relative','dir','21XpztGi','\x27;\x0a','theme','pages','setTemplate','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','css','\x20};\x0a','940328eHTnKE','engines','apply','className','imports','/imports/ui/components','comp','pathFromApp'];a98c=function(){return t;};return a98c();}const aliases=[a98q(0x1e1)];function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x1b3;let f=c[d];return f;},a98d(a,b);}Generator[a98q(0x1f3)]({'name':'component','aliases':aliases,'usage':a98q(0x1d8),'shortDesc':a98q(0x1cb),'validOpts':[{'name':a98q(0x1ec),'values':['hooks',a98q(0x1b7),a98q(0x1d6),a98q(0x1b4)]}],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const r=a98q;try{const c=this[r(0x1c0)]['findAppDirectory'](),d=b['baseDir']?r(0x1e7)+b[r(0x1ec)]:r(0x1e0),f=this[r(0x1c0)][r(0x1e2)]({'pathParts':[d,b[r(0x1d2)],paramCase(b[r(0x1e4)]),paramCase(b['resourceName'])]}),g=await this['fsi']['getProjectConfig']();this[r(0x1c0)]['withValue'](g,async()=>{const s=r;typeof g['template'][s(0x1b6)]===s(0x1c7)&&(g[s(0x1ed)][s(0x1b6)]=g['template'][s(0x1b6)]===s(0x1f1)?!![]:![],this['fsi'][s(0x1d7)]('test',g[s(0x1ed)][s(0x1b6)]));typeof g[s(0x1ed)][s(0x1d9)]==='string'&&(g[s(0x1ed)]['css']=g[s(0x1ed)][s(0x1d9)]===s(0x1f1)?!![]:![],this['fsi'][s(0x1d7)](s(0x1d9),g[s(0x1ed)][s(0x1d9)]));typeof g['template']['js']===s(0x1c7)&&(g[s(0x1ed)]['js']=g[s(0x1ed)]['js']===s(0x1f1)?!![]:![],this[s(0x1c0)][s(0x1d7)]('js',g[s(0x1ed)]['js']));!g['features']&&(g[s(0x1f8)]={});!b['root']&&!this[s(0x1c0)][s(0x1e6)](s(0x1b9))&&(Log[s(0x1c1)](s(0x1ce)),await this[s(0x1c0)][s(0x1f6)](s(0x1b9),{'cwd':c}));if(!b['root']&&!this[s(0x1c0)]['checkNpmPackage']('react')){Log[s(0x1b5)](s(0x1ba));return;}const h={'name':pascalCase(b['resourceName']),'myPath':a98e[s(0x1d1)](this[s(0x1c0)]['pathFromProject']({}),f),'cssCaseName':paramCase(b[s(0x1e4)]),'className':pascalCase(b[s(0x1e4)]),'camelCaseName':camelCase(b[s(0x1e4)]),'fileName':paramCase(b[s(0x1e4)]),'graphql':g['engines']['graphql'],'features':g['features'],'client':g[s(0x1dc)][s(0x1c9)],'api':g['engines'][s(0x1f5)],'ssr':g[s(0x1dc)][s(0x1bb)],'test':g[s(0x1dc)][s(0x1b6)],'theme':g['engines'][s(0x1d5)],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0x1f8)][s(0x1e9)]};this[s(0x1c0)][s(0x1ed)]({'srcPath':s(0x1f0),'destPath':f+s(0x1eb),'context':h,'framework':'react','config':g});g['engines'][s(0x1b6)]!==s(0x1be)&&this[s(0x1c0)][s(0x1ed)]({'srcPath':'test/test.js','destPath':f+'.tests.js','context':h,'framework':'react','config':g});g[s(0x1ed)][s(0x1d9)]&&(this[s(0x1c0)][s(0x1ed)]({'srcPath':'template/template.css','destPath':f+'.css','context':Object[s(0x1d0)]({},h,{'className':paramCase(b[s(0x1e4)])}),'config':g}),this[s(0x1c0)]['injectAtBeginningOfFile']({'filePath':f+'.'+g[s(0x1dc)]['js'],'content':s(0x1bf)+h['cssCaseName']+'.'+g[s(0x1dc)][s(0x1d9)]+'\x27;'}));const i=b['dir']?'/'+b[s(0x1d2)]+'/':'/',j=''+d+i+h['fileName']+'/'+h[s(0x1c3)];let k;if(g[s(0x1dc)][s(0x1bb)]==='true'){const l=this[s(0x1c0)][s(0x1e2)]({'pathParts':['imports',s(0x1e8),s(0x1f7),s(0x1b3)]});k=this[s(0x1c0)][s(0x1f2)]({'pathParts':[l],'config':g});}else{const m=this[s(0x1c0)]['pathFromApp']({'pathParts':[s(0x1df),'startup',s(0x1c9),s(0x1b3)]});k=this['fsi'][s(0x1f2)]({'pathParts':[m],'config':g});}g[s(0x1dc)][s(0x1c9)]==='react'||g[s(0x1dc)][s(0x1c9)]===s(0x1f4)?(g[s(0x1dc)]['js']===s(0x1bd)?this[s(0x1c0)][s(0x1bc)]({'filePath':k,'content':s(0x1c6)+h[s(0x1de)]+'\x20}\x20from\x20\x27'+j+'\x27;\x0a'}):this[s(0x1c0)][s(0x1bc)]({'filePath':k,'content':s(0x1c6)+h[s(0x1de)]+s(0x1c8)+j+'.'+g[s(0x1dc)]['js']+s(0x1d4)}),this['fsi']['injectAtEndOfFile']({'filePath':k,'content':s(0x1ee)+h['className']+s(0x1da)})):this[s(0x1c0)]['injectAtEndOfFile']({'filePath':k,'content':'import\x20\x27'+j+'.'+g['engines']['js']+s(0x1d4)});});}catch(h){Log[r(0x1b5)](h);}});
@@ -1 +1 @@
1
- function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x73;let f=c[d];return f;},a99d(a,b);}const a99k=a99d;(function(a,b){const h=a99d,c=a();while(!![]){try{const d=parseInt(h(0x87))/0x1+parseInt(h(0x91))/0x2*(parseInt(h(0x74))/0x3)+-parseInt(h(0x81))/0x4*(-parseInt(h(0x8c))/0x5)+parseInt(h(0x7c))/0x6*(-parseInt(h(0x8a))/0x7)+parseInt(h(0x8e))/0x8+parseInt(h(0x76))/0x9+-parseInt(h(0x82))/0xa*(parseInt(h(0x73))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x93b55));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a99d;if(c){const e=c[i(0x77)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const j=a99d;return a99a[j(0x92)]()[j(0x79)]('(((.+)+)+)+$')[j(0x92)]()[j(0x80)](a99a)[j(0x79)](j(0x7b));});function a99c(){const n=['isDocker','2jtfMCY','toString','pathFromProject','989593sKHTyC','2061777thGBfq','template','10187820tQUvcX','apply','appName','search','prod','(((.+)+)+)+$','3616974RhurSi','development','getProjectConfig','resourceName','constructor','20OkeuOW','320BhlMdp','ubuntu','maka\x20{generate,\x20g}:{config}\x20<name>','withValue','maka\x20g:config\x20production','926115QpDjcr','config','Generate\x20configuration\x20settings.','14ukfevM','fsi','789895KslJqR','process.env','9233904vArDcf','settings.json'];a99c=function(){return n;};return a99c();}a99a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a99k(0x88),'usage':a99k(0x84),'shortDesc':a99k(0x89),'validOpts':[a99k(0x90)],'examples':[a99k(0x86)]},function(a,b){const l=a99k,c=this[l(0x8b)][l(0x7e)]();this[l(0x8b)][l(0x85)](c,async()=>{const m=l,d={'app':c['appName'],'appFileCase':paramCase(c[m(0x78)]),'name':pascalCase(b[m(0x7f)]),'fileName':paramCase(b[m(0x7f)]),'camelCase':camelCase(b[m(0x7f)]),'userName':m(0x83),'isDocker':b[m(0x90)]};let e=b[m(0x7f)];if(e==='dev')e=m(0x7d);else e===m(0x7a)&&(e='production');const f=this[m(0x8b)][m(0x93)]({'pathParts':[m(0x88),e,m(0x8f)]});this[m(0x8b)][m(0x75)]({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b['isDocker']){const g=this[m(0x8b)][m(0x93)]({'pathParts':[m(0x88),e,m(0x8d)]});this['fsi'][m(0x75)]({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});
1
+ function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x180;let f=c[d];return f;},a99d(a,b);}const a99k=a99d;(function(a,b){const h=a99d,c=a();while(!![]){try{const d=parseInt(h(0x185))/0x1+-parseInt(h(0x189))/0x2*(-parseInt(h(0x197))/0x3)+parseInt(h(0x198))/0x4*(parseInt(h(0x19b))/0x5)+parseInt(h(0x184))/0x6+parseInt(h(0x192))/0x7*(-parseInt(h(0x19a))/0x8)+parseInt(h(0x199))/0x9*(-parseInt(h(0x18d))/0xa)+-parseInt(h(0x18b))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x6ba5d));function a99c(){const n=['apply','getProjectConfig','Generate\x20configuration\x20settings.','1620951rTFhWe','4IZFwJW','22158wrkgSB','42072GuLjym','1688075kVPdCT','config/process.env','config/settings.json','maka\x20{generate,\x20g}:{config}\x20<name>','dev','toString','process.env','prod','config','fsi','1864206LxhXUg','144170zmnmjC','search','isDocker','resourceName','2GJkWdI','create','1837671ZMeIoe','maka\x20g:config\x20production','2410uicsrv','(((.+)+)+)+$','template','settings.json','pathFromProject','175hdBvXr','appName'];a99c=function(){return n;};return a99c();}const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a99d;if(c){const e=c[i(0x194)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const j=a99d;return a99a['toString']()[j(0x186)](j(0x18e))[j(0x1a0)]()['constructor'](a99a)['search'](j(0x18e));});a99a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a99k(0x18a)]({'name':a99k(0x182),'usage':a99k(0x19e),'shortDesc':a99k(0x196),'validOpts':['isDocker'],'examples':[a99k(0x18c)]},function(a,b){const l=a99k,c=this[l(0x183)][l(0x195)]();this[l(0x183)]['withValue'](c,async()=>{const m=l,d={'app':c[m(0x193)],'appFileCase':paramCase(c[m(0x193)]),'name':pascalCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[m(0x188)]),'userName':'ubuntu','isDocker':b['isDocker']};let e=b['resourceName'];if(e===m(0x19f))e='development';else e===m(0x181)&&(e='production');const f=this[m(0x183)][m(0x191)]({'pathParts':[m(0x182),e,m(0x190)]});this[m(0x183)][m(0x18f)]({'srcPath':m(0x19d),'destPath':f,'context':d,'config':c});if(!b[m(0x187)]){const g=this[m(0x183)][m(0x191)]({'pathParts':['config',e,m(0x180)]});this[m(0x183)][m(0x18f)]({'srcPath':m(0x19c),'destPath':g,'context':d,'config':c});}});});
@@ -1 +1 @@
1
- const a100l=a100d;(function(a,b){const j=a100d,c=a();while(!![]){try{const d=-parseInt(j(0x90))/0x1*(-parseInt(j(0xa1))/0x2)+-parseInt(j(0x91))/0x3+parseInt(j(0xa6))/0x4+-parseInt(j(0xb5))/0x5*(-parseInt(j(0x94))/0x6)+-parseInt(j(0xa9))/0x7*(-parseInt(j(0xa8))/0x8)+-parseInt(j(0x86))/0x9+-parseInt(j(0xa7))/0xa*(parseInt(j(0x9b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xb233b));const a100b=(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;};}()),a100a=a100b(this,function(){const k=a100d;return a100a[k(0x96)]()[k(0xb3)](k(0x9c))[k(0x96)]()['constructor'](a100a)[k(0xb3)](k(0x9c));});a100a();function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x84;let f=c[d];return f;},a100d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a100l(0xa3)]({'name':a100l(0x84),'usage':a100l(0xae),'shortDesc':a100l(0xa0),'validOpts':[a100l(0xaa)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a100l(0x95),'values':['pgsql',a100l(0xb4),'sqlite']}],'examples':[a100l(0xa2),a100l(0xab),a100l(0xb2)]},async function(a,b){const m=a100l;try{const c=await this[m(0x98)][m(0x8f)](),d=this[m(0x98)][m(0x89)]({}),f=paramCase(b[m(0x93)]),g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[m(0x93)]),'camelCase':camelCase(b['resourceName']),'type':b[m(0x95)],'engine':c[m(0xa4)]['js'],'noRename':!![]};this['fsi']['withValue'](c,async()=>{const n=m;let h='js';c[n(0xa4)]['js']===n(0x88)&&(h='ts');b[n(0x95)]===n(0xb0)&&!this[n(0x98)][n(0xa5)]('pg')&&(Log[n(0x8e)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this[n(0x98)][n(0x8a)]('pg',{'cwd':d}));b[n(0x95)]==='mssql'&&!this[n(0x98)][n(0xa5)](n(0xb4))&&(Log[n(0x8e)]('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[n(0x98)][n(0x8a)](n(0xb4),{'cwd':d}));b[n(0x95)]===n(0x8b)&&!this[n(0x98)][n(0xa5)](n(0xad))&&(Log[n(0x8e)](n(0x8d)),await this['fsi']['installNpmPackage'](n(0xad),{'cwd':d}));this[n(0x98)]['template']({'srcPath':n(0x9d),'destPath':this[n(0x98)][n(0x89)]({'pathParts':[n(0xb1),n(0x9e),n(0x92),'dbc',b[n(0xaa)],f,'config.'+h]}),'context':g,'config':c}),this[n(0x98)][n(0x99)]({'srcPath':n(0x97),'destPath':this[n(0x98)][n(0x89)]({'pathParts':['imports','startup',n(0x92),n(0x84),b['dir'],f,n(0x9f)+h]}),'context':g,'config':c}),this[n(0x98)][n(0x99)]({'srcPath':n(0x9a),'destPath':this[n(0x98)][n(0x89)]({'pathParts':[n(0xb1),'startup',n(0x92),n(0x8c)+f+'-dbc.'+h]}),'context':g,'config':c});const i=this[n(0x98)][n(0x89)]({'pathParts':[n(0xb1),n(0x9e),n(0x92),n(0xac)+c[n(0xa4)]['js']]});this[n(0x98)][n(0xaf)]({'filePath':i,'content':n(0x87)+f+'-dbc\x27;'});});}catch(h){Log[m(0x85)](h);}});function a100c(){const o=['(((.+)+)+)+$','dbc/config.js','startup','conn.','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','2PfWQTB','maka\x20g:dbc\x20geoserver\x20--type=pgsql','create','engines','checkNpmPackage','1027192PnecCg','337390EeetsT','203440wyIzbk','14GSLzam','dir','maka\x20g:dbc\x20azure\x20--type=mssql','index.','better-sqlite3','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','injectAtEndOfFile','pgsql','imports','maka\x20g:dbc\x20todos\x20--type=sqlite','search','mssql','37825esFdUP','dbc','error','983583nYOJYX','import\x20\x27./register-','tsx','pathFromApp','installNpmPackage','sqlite','register-','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','warn','getProjectConfig','1392694ArZiDQ','1865961HeEAso','server','resourceName','1068qoNzJG','type','toString','dbc/conn.js','fsi','template','dbc/register-dbc.js','517hVztKd'];a100c=function(){return o;};return a100c();}
1
+ const a100m=a100d;(function(a,b){const j=a100d,c=a();while(!![]){try{const d=-parseInt(j(0xc3))/0x1*(-parseInt(j(0xcf))/0x2)+parseInt(j(0xc9))/0x3+parseInt(j(0xc0))/0x4*(parseInt(j(0xca))/0x5)+parseInt(j(0xb2))/0x6+parseInt(j(0xb5))/0x7*(parseInt(j(0xbb))/0x8)+parseInt(j(0xbd))/0x9+-parseInt(j(0xc5))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x9f4c4));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a100d;if(c){const e=c[k(0xbc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const l=a100d;return a100a[l(0xd3)]()['search'](l(0xd0))[l(0xd3)]()[l(0xda)](a100a)[l(0xaf)](l(0xd0));});function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0xaf;let f=c[d];return f;},a100d(a,b);}a100a();function a100c(){const p=['withValue','pathFromApp','mssql','fsi','605656ylCeWK','apply','1184229sqUhvF','type','register-','4zCktFy','engines','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','65893NLXvPX','pgsql','26766040rOLOSr','server','checkNpmPackage','imports','2635233hqNopV','3012820NezVkL','maka\x20g:dbc\x20geoserver\x20--type=pgsql','conn.','dir','maka\x20g:dbc\x20azure\x20--type=mssql','10qrnDSL','(((.+)+)+)+$','getProjectConfig','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','toString','maka\x20g:dbc\x20todos\x20--type=sqlite','template','better-sqlite3','config.','error','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','constructor','startup','index.','resourceName','dbc/conn.js','dbc/register-dbc.js','search','-dbc\x27;','import\x20\x27./register-','4234224UuylKF','dbc','warn','63kDNwBJ','installNpmPackage'];a100c=function(){return p;};return a100c();}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':'dbc','usage':'maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','shortDesc':a100m(0xd2),'validOpts':[a100m(0xcd)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'type','values':[a100m(0xc4),'mssql','sqlite']}],'examples':[a100m(0xcb),a100m(0xce),a100m(0xd4)]},async function(a,b){const n=a100m;try{const c=await this[n(0xba)][n(0xd1)](),d=this[n(0xba)][n(0xb8)]({}),f=paramCase(b[n(0xdd)]),g={'name':pascalCase(b[n(0xdd)]),'fileName':paramCase(b[n(0xdd)]),'camelCase':camelCase(b['resourceName']),'type':b[n(0xbe)],'engine':c[n(0xc1)]['js'],'noRename':!![]};this[n(0xba)][n(0xb7)](c,async()=>{const o=n;let h='js';c[o(0xc1)]['js']==='tsx'&&(h='ts');b[o(0xbe)]==='pgsql'&&!this[o(0xba)][o(0xc7)]('pg')&&(Log[o(0xb4)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this[o(0xba)][o(0xb6)]('pg',{'cwd':d}));b[o(0xbe)]===o(0xb9)&&!this[o(0xba)][o(0xc7)](o(0xb9))&&(Log['warn'](o(0xc2)),await this['fsi'][o(0xb6)](o(0xb9),{'cwd':d}));b[o(0xbe)]==='sqlite'&&!this[o(0xba)][o(0xc7)](o(0xd6))&&(Log[o(0xb4)](o(0xd9)),await this[o(0xba)][o(0xb6)](o(0xd6),{'cwd':d}));this[o(0xba)][o(0xd5)]({'srcPath':'dbc/config.js','destPath':this[o(0xba)][o(0xb8)]({'pathParts':[o(0xc8),'startup',o(0xc6),'dbc',b[o(0xcd)],f,o(0xd7)+h]}),'context':g,'config':c}),this[o(0xba)][o(0xd5)]({'srcPath':o(0xde),'destPath':this['fsi']['pathFromApp']({'pathParts':['imports',o(0xdb),o(0xc6),o(0xb3),b[o(0xcd)],f,o(0xcc)+h]}),'context':g,'config':c}),this[o(0xba)][o(0xd5)]({'srcPath':o(0xdf),'destPath':this[o(0xba)][o(0xb8)]({'pathParts':['imports',o(0xdb),o(0xc6),o(0xbf)+f+'-dbc.'+h]}),'context':g,'config':c});const i=this[o(0xba)]['pathFromApp']({'pathParts':[o(0xc8),o(0xdb),o(0xc6),o(0xdc)+c[o(0xc1)]['js']]});this[o(0xba)]['injectAtEndOfFile']({'filePath':i,'content':o(0xb1)+f+o(0xb0)});});}catch(h){Log[n(0xd8)](h);}});
@@ -1 +1 @@
1
- const a101i=a101d;(function(a,b){const f=a101d,c=a();while(!![]){try{const d=parseInt(f(0x18d))/0x1+parseInt(f(0x197))/0x2*(parseInt(f(0x193))/0x3)+-parseInt(f(0x195))/0x4+parseInt(f(0x188))/0x5+parseInt(f(0x199))/0x6+parseInt(f(0x18f))/0x7+parseInt(f(0x19e))/0x8*(-parseInt(f(0x19c))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xb56d5));function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x186;let f=c[d];return f;},a101d(a,b);}function a101c(){const l=['appName','getProjectConfig','fsi','1411694EbtJzE','withValue','525224idwpHo','apply','docker/Dockerfile','(((.+)+)+)+$','9nEPnup','template','220984AgXysq','maka\x20{generate,\x20g}:dockerfile','654586jsPFsI','isFile','6480402vzVGOx','getGlobalConfig','join','243279ROwPXO','maka\x20g:dockerfile','1096KeDZjm','search','service','4764730myfBbk','error'];a101c=function(){return l;};return a101c();}const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a101d;if(c){const e=c[g(0x190)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const h=a101d;return a101a['toString']()[h(0x186)](h(0x192))['toString']()['constructor'](a101a)['search'](h(0x192));});a101a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a101e from'path';Generator['create']({'name':'dockerfile','usage':a101i(0x196),'shortDesc':'Generate\x20an\x20updated\x20dockerfile','validOpts':[],'noResource':!![],'examples':[a101i(0x19d)]},async function(){const j=a101i;try{const a=await this[j(0x18c)][j(0x18b)](),b=await this[j(0x18c)][j(0x19a)](),c=this[j(0x18c)]['findProjectDirectory']();this[j(0x18c)][j(0x18e)](a,async()=>{const k=j,d={'app':b[k(0x18a)],'config':a,'appPath':a101e[k(0x19b)](c,'app'),'bundlePath':a101e[k(0x19b)](c,'build','app.tar.gz'),'useCert':this['fsi'][k(0x198)](b['cert'])};this['fsi'][k(0x194)]({'srcPath':k(0x191),'destPath':a101e[k(0x19b)](c,'Dockerfile'),'framework':k(0x187),'context':d,'config':a});});}catch(d){Log[j(0x189)](d);}});
1
+ const a101i=a101d;(function(a,b){const f=a101d,c=a();while(!![]){try{const d=parseInt(f(0x1bc))/0x1+parseInt(f(0x1d2))/0x2+-parseInt(f(0x1cc))/0x3+parseInt(f(0x1c4))/0x4+parseInt(f(0x1d3))/0x5*(-parseInt(f(0x1bd))/0x6)+parseInt(f(0x1ca))/0x7*(parseInt(f(0x1c5))/0x8)+parseInt(f(0x1cb))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x1c172));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a101d;if(c){const e=c[g(0x1bf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const h=a101d;return a101a[h(0x1ba)]()[h(0x1d1)](h(0x1d4))[h(0x1ba)]()[h(0x1c6)](a101a)[h(0x1d1)](h(0x1d4));});function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x1b6;let f=c[d];return f;},a101d(a,b);}a101a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a101e from'path';Generator['create']({'name':a101i(0x1b7),'usage':a101i(0x1c8),'shortDesc':a101i(0x1ce),'validOpts':[],'noResource':!![],'examples':[a101i(0x1be)]},async function(){const j=a101i;try{const a=await this[j(0x1cd)]['getProjectConfig'](),b=await this[j(0x1cd)][j(0x1d0)](),c=this[j(0x1cd)][j(0x1b9)]();this[j(0x1cd)]['withValue'](a,async()=>{const k=j,d={'app':b[k(0x1c1)],'config':a,'appPath':a101e[k(0x1b6)](c,'app'),'bundlePath':a101e[k(0x1b6)](c,'build',k(0x1b8)),'useCert':this[k(0x1cd)][k(0x1c3)](b[k(0x1c2)])};this[k(0x1cd)][k(0x1c9)]({'srcPath':k(0x1c0),'destPath':a101e[k(0x1b6)](c,k(0x1c7)),'framework':k(0x1cf),'context':d,'config':a});});}catch(d){Log[j(0x1bb)](d);}});function a101c(){const l=['fsi','Generate\x20an\x20updated\x20dockerfile','service','getGlobalConfig','search','97928XVPEdc','1685YAjqUe','(((.+)+)+)+$','join','dockerfile','app.tar.gz','findProjectDirectory','toString','error','15667gIirnl','1866hncFff','maka\x20g:dockerfile','apply','docker/Dockerfile','appName','cert','isFile','121888WlHzAz','16ggsJpg','constructor','Dockerfile','maka\x20{generate,\x20g}:dockerfile','template','56161MzSvrQ','1632600LSMENY','218052BLoikq'];a101c=function(){return l;};return a101c();}
@@ -1 +1 @@
1
- const a102q=a102d;(function(a,b){const o=a102d,c=a();while(!![]){try{const d=-parseInt(o(0x85))/0x1+-parseInt(o(0x74))/0x2+parseInt(o(0x95))/0x3*(-parseInt(o(0x92))/0x4)+parseInt(o(0x80))/0x5*(parseInt(o(0xaa))/0x6)+-parseInt(o(0x91))/0x7+-parseInt(o(0xa9))/0x8*(parseInt(o(0x71))/0x9)+parseInt(o(0xa8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xe662a));const a102b=(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;};}()),a102a=a102b(this,function(){const p=a102d;return a102a[p(0x7b)]()[p(0x76)]('(((.+)+)+)+$')[p(0x7b)]()[p(0x86)](a102a)['search'](p(0x77));});a102a();function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x6c;let f=c[d];return f;},a102d(a,b);}import a102e from'path';function a102c(){const t=['components','startup','pathFromApp','lib','pathFromProject','\x20}\x20from\x20\x27','tsx','getProjectConfig','css','warn','9RbdhpY','resourceName','import\x20\x27./','113054FblLQC','notice','search','(((.+)+)+)+$','template','setTemplate','checkNpmPackage','toString','hook','theme','template/template.css','assign','445IfqzXl','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','test/test.js','layouts','error','789328PARfkl','constructor','import\x20\x27','\x20hook...','injectAtBeginningOfFile','Creating\x20','true','rewriteDestinationPathForEngine','fileName','features','string','import\x20{\x20','8481466BuafMk','752kNVyph','apollo','className','17907WeVpPM','@apollo/client\x20isomorphic-fetch','injectAtEndOfFile','react','\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20Hooks\x20are\x20created\x20in\x20the\x20imports/ui/hooks\x20directory\x20by\x20default,\x20but\x20can\x20be\x20created\x20in\x0a\x20\x20the\x20imports/ui/components,\x20imports/ui/pages,\x20or\x20imports/ui/layouts\x20directories\x20by\x0a\x20\x20using\x20the\x20--baseDir\x20option\x20with\x20the\x20appropriate\x20directory\x20name.\x0a\x0a\x20\x20To\x20create\x20a\x20hook\x20in\x20a\x20subdirectory\x20of\x20the\x20hooks\x20directory,\x20add\x20the\x20path\x20to\x20the\x0a\x20\x20hook\x20name.\x20For\x20example,\x20maka\x20g:hook\x20myHooks/useCoolHook\x20will\x20create\x20a\x20hook\x20in\x0a\x20\x20imports/ui/hooks/my-hooks/use-cool-hook.jsx\x0a\x0a\x20\x20If\x20you\x27d\x20like\x20a\x20hook\x20created\x20as\x20part\x20of\x20an\x20existing\x20page,\x20component,\x20or\x20layout,\x0a\x20\x20use\x20the\x20maka\x20g:hook\x20command\x20with\x20the\x20--baseDir\x20option.\x20For\x20example,\x0a\x0a\x20\x20\x20\x20maka\x20g:hook\x20--baseDir=pages\x20myPage/useCoolHook\x0a\x0a\x20\x20will\x20create\x20a\x20hook\x20in\x20imports/ui/pages/my-page/use-cool-hook.jsx\x0a\x0a\x20\x20','\x20};\x0a','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','create','dir','\x27;\x0a','hooks','maka\x20g:hook\x20cool-hook','pages','graphql','.js','engines','baseDir','.css','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','46784320jsUmxC','12935032DCqeKV','71580jyZYqJ','ssr','export\x20{\x20','client','templates.js','cssCaseName','imports','relative','withValue','hook/hook.js','fsi'];a102c=function(){return t;};return a102c();}import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a102q(0x9c)]({'name':a102q(0x7c),'aliases':['h'],'checkWhere':![],'usage':'maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','shortDesc':a102q(0x9b),'validOpts':[{'name':a102q(0xa5),'values':[a102q(0x9f),a102q(0xb5),a102q(0xa1),a102q(0x83)]}],'examples':[a102q(0xa0)],'description':a102q(0x99)},async function(a,b){const r=a102q;Log[r(0x75)](r(0x8a)+b[r(0x72)]+r(0x88));try{const c=this[r(0xb4)][r(0x7a)](r(0x98));if(!c){Log[r(0x84)](r(0x81));throw new UsageError();}const d=this['fsi']['pathFromApp'](b),f=b[r(0xa5)]?'/imports/ui/'+b[r(0xa5)]:'/imports/ui/hooks',g=this[r(0xb4)][r(0xb7)]({'pathParts':[f,b[r(0x9d)],paramCase(b[r(0x72)]),paramCase(b['resourceName'])]}),h=await this[r(0xb4)][r(0x6e)]();this[r(0xb4)][r(0xb2)](h,async()=>{const s=r;typeof h['template'][s(0x6f)]===s(0x8f)&&(h['template']['css']=h[s(0x78)][s(0x6f)]===s(0x8b)?!![]:![],this['fsi'][s(0x79)](s(0x6f),h['template'][s(0x6f)]));h[s(0xa4)][s(0xa2)]===s(0x93)&&!this['fsi']['checkNpmPackage']('@apollo/client')&&(Log[s(0x70)](s(0xa7)),await this[s(0xb4)]['installNpmPackage'](s(0x96),{'cwd':d}));const i={'cssCaseName':paramCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'className':pascalCase(b[s(0x72)]),'name':pascalCase(b[s(0x72)]),'graphql':h[s(0xa4)][s(0xa2)],'theme':h[s(0xa4)][s(0x7d)],'features':h[s(0x8e)],'myPath':a102e[s(0xb1)](this[s(0xb4)][s(0xb9)]({}),g),'fileName':paramCase(b[s(0x72)]),'isComponent':![],'isLayout':![],'withTranslations':h['features']['withTranslations']};this[s(0xb4)][s(0x78)]({'srcPath':s(0xb3),'destPath':g+s(0xa3),'context':i,'config':h,'framework':s(0x98)});h[s(0x78)][s(0x6f)]&&(this[s(0xb4)][s(0x78)]({'srcPath':s(0x7e),'destPath':g+s(0xa6),'context':Object[s(0x7f)]({},i,{'className':i[s(0xaf)]}),'config':h}),this[s(0xb4)][s(0x89)]({'filePath':g+'.'+h[s(0xa4)]['js'],'content':s(0x73)+i[s(0x8d)]+'.'+h[s(0xa4)]['css']+'\x27;'}));h[s(0xa4)]['test']!=='none'&&this['fsi'][s(0x78)]({'srcPath':s(0x82),'destPath':g+'.app-tests.js','framework':s(0x98),'context':i,'config':h});const j=b[s(0x9d)]?'/'+b[s(0x9d)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[s(0x8d)];let l;if(h['engines'][s(0xab)]==='true'){const m=this[s(0xb4)]['pathFromApp']({'pathParts':[s(0xb0),s(0xb6),s(0xb8),s(0xae)]});l=this[s(0xb4)][s(0x8c)]({'pathParts':[m],'config':h});}else{const n=this[s(0xb4)][s(0xb7)]({'pathParts':[s(0xb0),'startup',s(0xad),'templates.js']});l=this[s(0xb4)][s(0x8c)]({'pathParts':[n],'config':h});}h[s(0xa4)][s(0xad)]==='react'?(h[s(0xa4)]['js']===s(0x6d)?this['fsi'][s(0x89)]({'filePath':l,'content':'import\x20{\x20'+i['className']+s(0x6c)+k+s(0x9e)}):this[s(0xb4)][s(0x89)]({'filePath':l,'content':s(0x90)+i[s(0x94)]+s(0x6c)+k+'.'+h[s(0xa4)]['js']+s(0x9e)}),this[s(0xb4)]['injectAtEndOfFile']({'filePath':l,'content':s(0xac)+i[s(0x94)]+s(0x9a)})):this[s(0xb4)][s(0x97)]({'filePath':l,'content':s(0x87)+k+'.'+h[s(0xa4)]['js']+s(0x9e)});});}catch(i){Log['error'](i);}});
1
+ const a102q=a102d;function a102c(){const t=['987gfsbsu','test/test.js','\x20hook...','graphql','injectAtBeginningOfFile','installNpmPackage','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','react','38168wBlFGx','true','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','error','278ekUajB','template','fileName','cssCaseName','css','\x27;\x0a','startup','imports','template/template.css','components','/imports/ui/hooks','@apollo/client','toString','5168160UMUlqS','maka\x20g:hook\x20cool-hook','none','464iKEkoX','className','theme','constructor','templates.js','29298VGRtpG','resourceName','baseDir','28296675XYarir','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','import\x20\x27','checkNpmPackage','20yAfyHd','pathFromProject','355opNZSM','create','test','injectAtEndOfFile','rewriteDestinationPathForEngine','notice','withValue','8244558owgvmS','engines','import\x20{\x20','apollo','fsi','features','dir','search','\x20};\x0a','setTemplate','3276684wMCsCl','hooks','getProjectConfig','(((.+)+)+)+$','pathFromApp','lib','hook'];a102c=function(){return t;};return a102c();}(function(a,b){const o=a102d,c=a();while(!![]){try{const d=parseInt(o(0x9f))/0x1*(-parseInt(o(0xc3))/0x2)+-parseInt(o(0x96))/0x3*(-parseInt(o(0x91))/0x4)+parseInt(o(0x8e))/0x5+parseInt(o(0xa6))/0x6+-parseInt(o(0xb7))/0x7*(-parseInt(o(0xbf))/0x8)+parseInt(o(0xb0))/0x9*(-parseInt(o(0x9d))/0xa)+-parseInt(o(0x99))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xd2c8a));function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x8c;let f=c[d];return f;},a102d(a,b);}const a102b=(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;};}()),a102a=a102b(this,function(){const p=a102d;return a102a[p(0x8d)]()[p(0xad)](p(0xb3))[p(0x8d)]()[p(0x94)](a102a)[p(0xad)]('(((.+)+)+)+$');});a102a();import a102e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a102q(0xa0)]({'name':a102q(0xb6),'aliases':['h'],'checkWhere':![],'usage':a102q(0x9a),'shortDesc':a102q(0xc1),'validOpts':[{'name':a102q(0x98),'values':[a102q(0xb1),a102q(0xcc),'pages','layouts']}],'examples':[a102q(0x8f)],'description':'\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20Hooks\x20are\x20created\x20in\x20the\x20imports/ui/hooks\x20directory\x20by\x20default,\x20but\x20can\x20be\x20created\x20in\x0a\x20\x20the\x20imports/ui/components,\x20imports/ui/pages,\x20or\x20imports/ui/layouts\x20directories\x20by\x0a\x20\x20using\x20the\x20--baseDir\x20option\x20with\x20the\x20appropriate\x20directory\x20name.\x0a\x0a\x20\x20To\x20create\x20a\x20hook\x20in\x20a\x20subdirectory\x20of\x20the\x20hooks\x20directory,\x20add\x20the\x20path\x20to\x20the\x0a\x20\x20hook\x20name.\x20For\x20example,\x20maka\x20g:hook\x20myHooks/useCoolHook\x20will\x20create\x20a\x20hook\x20in\x0a\x20\x20imports/ui/hooks/my-hooks/use-cool-hook.jsx\x0a\x0a\x20\x20If\x20you\x27d\x20like\x20a\x20hook\x20created\x20as\x20part\x20of\x20an\x20existing\x20page,\x20component,\x20or\x20layout,\x0a\x20\x20use\x20the\x20maka\x20g:hook\x20command\x20with\x20the\x20--baseDir\x20option.\x20For\x20example,\x0a\x0a\x20\x20\x20\x20maka\x20g:hook\x20--baseDir=pages\x20myPage/useCoolHook\x0a\x0a\x20\x20will\x20create\x20a\x20hook\x20in\x20imports/ui/pages/my-page/use-cool-hook.jsx\x0a\x0a\x20\x20'},async function(a,b){const r=a102q;Log[r(0xa4)]('Creating\x20'+b[r(0x97)]+r(0xb9));try{const c=this[r(0xaa)][r(0x9c)](r(0xbe));if(!c){Log[r(0xc2)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');throw new UsageError();}const d=this[r(0xaa)][r(0xb4)](b),f=b[r(0x98)]?'/imports/ui/'+b['baseDir']:r(0xcd),g=this[r(0xaa)][r(0xb4)]({'pathParts':[f,b[r(0xac)],paramCase(b['resourceName']),paramCase(b[r(0x97)])]}),h=await this[r(0xaa)][r(0xb2)]();this[r(0xaa)][r(0xa5)](h,async()=>{const s=r;typeof h[s(0xc4)][s(0xc7)]==='string'&&(h[s(0xc4)][s(0xc7)]=h['template'][s(0xc7)]===s(0xc0)?!![]:![],this[s(0xaa)][s(0xaf)](s(0xc7),h[s(0xc4)][s(0xc7)]));h['engines']['graphql']===s(0xa9)&&!this[s(0xaa)]['checkNpmPackage'](s(0x8c))&&(Log['warn'](s(0xbd)),await this['fsi'][s(0xbc)]('@apollo/client\x20isomorphic-fetch',{'cwd':d}));const i={'cssCaseName':paramCase(b[s(0x97)]),'camelCaseName':camelCase(b[s(0x97)]),'className':pascalCase(b['resourceName']),'name':pascalCase(b[s(0x97)]),'graphql':h[s(0xa7)][s(0xba)],'theme':h[s(0xa7)][s(0x93)],'features':h['features'],'myPath':a102e['relative'](this['fsi'][s(0x9e)]({}),g),'fileName':paramCase(b[s(0x97)]),'isComponent':![],'isLayout':![],'withTranslations':h[s(0xab)]['withTranslations']};this[s(0xaa)][s(0xc4)]({'srcPath':'hook/hook.js','destPath':g+'.js','context':i,'config':h,'framework':s(0xbe)});h['template'][s(0xc7)]&&(this[s(0xaa)][s(0xc4)]({'srcPath':s(0xcb),'destPath':g+'.css','context':Object['assign']({},i,{'className':i[s(0xc6)]}),'config':h}),this[s(0xaa)]['injectAtBeginningOfFile']({'filePath':g+'.'+h[s(0xa7)]['js'],'content':'import\x20\x27./'+i[s(0xc5)]+'.'+h[s(0xa7)][s(0xc7)]+'\x27;'}));h[s(0xa7)][s(0xa1)]!==s(0x90)&&this[s(0xaa)][s(0xc4)]({'srcPath':s(0xb8),'destPath':g+'.app-tests.js','framework':s(0xbe),'context':i,'config':h});const j=b[s(0xac)]?'/'+b[s(0xac)]+'/':'/',k=''+f+j+i[s(0xc5)]+'/'+i[s(0xc5)];let l;if(h[s(0xa7)]['ssr']===s(0xc0)){const m=this['fsi']['pathFromApp']({'pathParts':[s(0xca),s(0xc9),s(0xb5),s(0x95)]});l=this[s(0xaa)][s(0xa3)]({'pathParts':[m],'config':h});}else{const n=this['fsi'][s(0xb4)]({'pathParts':[s(0xca),'startup','client',s(0x95)]});l=this[s(0xaa)]['rewriteDestinationPathForEngine']({'pathParts':[n],'config':h});}h['engines']['client']==='react'?(h[s(0xa7)]['js']==='tsx'?this[s(0xaa)]['injectAtBeginningOfFile']({'filePath':l,'content':s(0xa8)+i[s(0x92)]+'\x20}\x20from\x20\x27'+k+s(0xc8)}):this[s(0xaa)][s(0xbb)]({'filePath':l,'content':s(0xa8)+i['className']+'\x20}\x20from\x20\x27'+k+'.'+h[s(0xa7)]['js']+s(0xc8)}),this['fsi'][s(0xa2)]({'filePath':l,'content':'export\x20{\x20'+i[s(0x92)]+s(0xae)})):this[s(0xaa)]['injectAtEndOfFile']({'filePath':l,'content':s(0x9b)+k+'.'+h['engines']['js']+s(0xc8)});});}catch(i){Log[r(0xc2)](i);}});
@@ -1 +1 @@
1
- const a103k=a103d;(function(a,b){const h=a103d,c=a();while(!![]){try{const d=-parseInt(h(0x1a3))/0x1+parseInt(h(0x1ac))/0x2*(-parseInt(h(0x1b0))/0x3)+-parseInt(h(0x196))/0x4+-parseInt(h(0x1a2))/0x5+-parseInt(h(0x1a0))/0x6+-parseInt(h(0x19a))/0x7*(parseInt(h(0x1a5))/0x8)+parseInt(h(0x1b3))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xe3ca5));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a103d;if(c){const e=c[i(0x195)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const j=a103d;return a103a[j(0x19e)]()[j(0x1b2)](j(0x197))[j(0x19e)]()[j(0x1aa)](a103a)[j(0x1b2)](j(0x197));});a103a();import{Generator}from'../generator.js';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x193;let f=c[d];return f;},a103d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a103c(){const n=['type','search','43357572mONgEF','notice','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','apply','1872848vHvFiI','(((.+)+)+)+$','fsi','Invalid\x20type\x20','7PYXRxm','engines','leaflet-map','withValue','toString','login','5420364irTmpp','maka\x20g:k\x20city-map\x20--type=leaflet-map','6559725QAgvCX','486726GiFkmA','error','250696FeLWvk','resourceName','(blank)','maka\x20g:kit\x20--type=map','NIE','constructor','create','1365730dVsoCu','map',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','indexOf','3CihMyZ'];a103c=function(){return n;};return a103c();}Generator[a103k(0x1ab)]({'name':'kit','aliases':['k'],'usage':a103k(0x194),'shortDesc':'(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','validOpts':[a103k(0x1b1)],'examples':[a103k(0x1a8),a103k(0x1a1)]},async function(a,b){const l=a103k;try{const c=this[l(0x198)]['getProjectConfig']();this[l(0x198)][l(0x19d)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x1a6)]),'fileName':paramCase(b[m(0x1a6)]),'camelCase':camelCase(b[m(0x1a6)]),'type':b['type'],'engine':c[m(0x19b)]['js'],'noRename':!![]},f=[m(0x19c),m(0x19f)];if(f[m(0x1af)](d[m(0x1b1)])<0x0){const g=d[m(0x1b1)]?d[m(0x1b1)]:m(0x1a7);Log['error'](m(0x199)+g+m(0x1ae));return;}b['type']===m(0x1ad)&&Log[m(0x193)](m(0x1a9)),b[m(0x1b1)]===m(0x19f)&&Log['notice']('NIE');});}catch(d){Log[l(0x1a4)](d);}});
1
+ function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x74;let f=c[d];return f;},a103d(a,b);}function a103c(){const n=['notice','20724zofnej','5835467GIAujf','type','create','toString','indexOf','1OCKEkh','resourceName','leaflet-map','27VDWfYD','830PXnsBu','fsi','map','error','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','(blank)','NIE','apply','withValue','114ziRpwu','8GYxCTg','(((.+)+)+)+$','611402fKCIUM','engines','2064680oEncPF','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','maka\x20g:kit\x20--type=map','89383TYyYlY','kit',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','592408rbwUWy'];a103c=function(){return n;};return a103c();}const a103k=a103d;(function(a,b){const h=a103d,c=a();while(!![]){try{const d=-parseInt(h(0x74))/0x1*(parseInt(h(0x84))/0x2)+-parseInt(h(0x8e))/0x3*(parseInt(h(0x82))/0x4)+parseInt(h(0x78))/0x5*(-parseInt(h(0x81))/0x6)+parseInt(h(0x89))/0x7+-parseInt(h(0x8c))/0x8*(parseInt(h(0x77))/0x9)+parseInt(h(0x86))/0xa+parseInt(h(0x8f))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x3206e));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a103d;if(c){const e=c[i(0x7f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const j=a103d;return a103a[j(0x92)]()['search']('(((.+)+)+)+$')[j(0x92)]()['constructor'](a103a)['search'](j(0x83));});a103a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a103k(0x91)]({'name':a103k(0x8a),'aliases':['k'],'usage':a103k(0x7c),'shortDesc':a103k(0x87),'validOpts':['type'],'examples':[a103k(0x88),'maka\x20g:k\x20city-map\x20--type=leaflet-map']},async function(a,b){const l=a103k;try{const c=this[l(0x79)]['getProjectConfig']();this[l(0x79)][l(0x80)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x75)]),'fileName':paramCase(b[m(0x75)]),'camelCase':camelCase(b[m(0x75)]),'type':b[m(0x90)],'engine':c[m(0x85)]['js'],'noRename':!![]},f=[m(0x76),'login'];if(f[m(0x93)](d[m(0x90)])<0x0){const g=d[m(0x90)]?d['type']:m(0x7d);Log[m(0x7b)]('Invalid\x20type\x20'+g+m(0x8b));return;}b['type']===m(0x7a)&&Log[m(0x8d)]('NIE'),b[m(0x90)]==='login'&&Log['notice'](m(0x7e));});}catch(d){Log[l(0x7b)](d);}});
@@ -1 +1 @@
1
- const a104r=a104d;function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0xc7;let f=c[d];return f;},a104d(a,b);}(function(a,b){const o=a104d,c=a();while(!![]){try{const d=-parseInt(o(0xc7))/0x1*(-parseInt(o(0xf6))/0x2)+parseInt(o(0xd2))/0x3*(parseInt(o(0x10a))/0x4)+parseInt(o(0xe3))/0x5+-parseInt(o(0xd4))/0x6+parseInt(o(0xdd))/0x7*(parseInt(o(0xf1))/0x8)+parseInt(o(0xf5))/0x9+-parseInt(o(0xe2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x5ad91));function a104c(){const u=['pathFromProject','dir','test','includes','14gcGWmR','export\x20{\x20','withHook','injectAtBeginningOfFile','react','18008730VriKJT','3633700fSNBQt','toString','layout','features','ramda','import\x20{\x20','fileName','\x20};\x0a','\x20}\x20from\x20\x27','tsx','fsi','import\x20\x27','template/template.css','none','1797944ZzeMPC','warn','api','setTemplate','6560937FblthC','50vLWMqb','getProjectConfig','graphql','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','withHooks','injectAtEndOfFile','split','resourceName','assign','template','hook/hook.js','\x27;\x0a','test/test.js','.css','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','maka\x20g:layout\x20mobile/iPhone8','.js','client','ssr','component/component.js','4SOZzYr','lib','css','withValue','imports','constructor','import\x20\x27./','4461VLRWjR','engines','maka\x20g:l\x20web/safari','string','findAppDirectory','checkNpmPackage','/imports/ui/layouts','relative','true','search','theme','634803lwmiTy','className','332154ZUsdlY','(((.+)+)+)+$','pathFromApp','apply','startup'];a104c=function(){return u;};return a104c();}const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a104d;if(c){const e=c[p(0xd7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const q=a104d;return a104a[q(0xe4)]()[q(0xd0)]('(((.+)+)+)+$')[q(0xe4)]()[q(0x10f)](a104a)[q(0xd0)](q(0xd5));});a104a();import a104e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator['create']({'name':a104r(0xe5),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[],'examples':[a104r(0x105),a104r(0xc9)]},function(a,b){const s=a104r,c=s(0xcd),d=this[s(0xed)][s(0xcb)](),e=this[s(0xed)][s(0xd6)]({'pathParts':[c,b[s(0xda)],paramCase(b['resourceName']),paramCase(b[s(0xfd)])]}),f=this['fsi'][s(0xf7)]();this[s(0xed)][s(0x10d)](f,()=>{const t=s;typeof f['template'][t(0xdb)]==='string'&&(f[t(0xff)]['test']=f['template'][t(0xdb)]===t(0xcf)?!![]:![],this[t(0xed)][t(0xf4)](t(0xdb),f[t(0xff)][t(0xdb)]));typeof f[t(0xff)]['css']===t(0xca)&&(f['template'][t(0x10c)]=f[t(0xff)][t(0x10c)]==='true'?!![]:![],this['fsi'][t(0xf4)](t(0x10c),f[t(0xff)][t(0x10c)]));typeof f['template']['js']===t(0xca)&&(f[t(0xff)]['js']=f[t(0xff)]['js']===t(0xcf)?!![]:![],this[t(0xed)]['setTemplate']('js',f['template']['js']));!f[t(0xe6)]&&(f[t(0xe6)]={});const g=b['_']?b['_'][0x0][t(0xfc)](':')[0x1]:![],h=b['_']&&aliases[t(0xdc)](g);h&&!this['checkNpmPackage'](t(0xe7))&&(Log[t(0xf2)](t(0x104)),this[t(0xed)]['installNpmPackage'](t(0xe7),{'cwd':d}));if(h&&!this[t(0xcc)]('react')){Log['warn'](t(0xf9));return;}const i={'name':pascalCase(b[t(0xfd)]),'myPath':a104e[t(0xce)](this[t(0xed)][t(0xd9)]({}),e),'cssCaseName':paramCase(b[t(0xfd)]),'className':pascalCase(b[t(0xfd)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[t(0xfd)]),'graphql':f[t(0xc8)][t(0xf8)],'features':f['features'],'client':f['engines'][t(0x107)],'api':f['engines'][t(0xf3)],'ssr':f['engines'][t(0x108)],'test':f['engines'][t(0xdb)],'theme':f['engines'][t(0xd1)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0xe6)]['withTranslations']};f['features']?.[t(0xfa)]||b[t(0xdf)]?this[t(0xed)][t(0xff)]({'srcPath':t(0x100),'destPath':e+t(0x106),'framework':t(0xe1),'context':i,'config':f}):this[t(0xed)][t(0xff)]({'srcPath':t(0x109),'destPath':e+t(0x106),'framework':t(0xe1),'context':i,'config':f});f[t(0xc8)][t(0xdb)]!==t(0xf0)&&this[t(0xed)]['template']({'srcPath':t(0x102),'destPath':e+'.app-tests.js','framework':'react','context':i,'config':f});f[t(0xff)][t(0x10c)]&&(this[t(0xed)]['template']({'srcPath':t(0xef),'destPath':e+t(0x103),'context':Object[t(0xfe)]({},i,{'className':paramCase(b['resourceName'])}),'config':f}),this[t(0xed)][t(0xe0)]({'filePath':e+'.'+f['engines']['js'],'content':t(0x110)+i[t(0xe9)]+'.'+f[t(0xc8)]['css']+'\x27;'}));const j=b[t(0xda)]?'/'+b['dir']+'/':'/',k=''+c+j+i[t(0xe9)]+'/'+i['fileName'];let l;if(f['engines']['ssr']===t(0xcf)){const m=this[t(0xed)][t(0xd6)]({'pathParts':['imports',t(0xd8),t(0x10b),'templates.js']});l=this[t(0xed)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':f});}else{const n=this[t(0xed)][t(0xd6)]({'pathParts':[t(0x10e),t(0xd8),t(0x107),'templates.js']});l=this[t(0xed)]['rewriteDestinationPathForEngine']({'pathParts':[n],'config':f});}f[t(0xc8)][t(0x107)]==='react'?(f['engines']['js']===t(0xec)?this[t(0xed)][t(0xe0)]({'filePath':l,'content':t(0xe8)+i[t(0xd3)]+t(0xeb)+k+t(0x101)}):this[t(0xed)][t(0xe0)]({'filePath':l,'content':t(0xe8)+i[t(0xd3)]+'\x20}\x20from\x20\x27'+k+'.'+f['engines']['js']+t(0x101)}),this[t(0xed)]['injectAtEndOfFile']({'filePath':l,'content':t(0xde)+i[t(0xd3)]+t(0xea)})):this[t(0xed)][t(0xfb)]({'filePath':l,'content':t(0xee)+k+'.'+f[t(0xc8)]['js']+t(0x101)});});});
1
+ const a104q=a104d;function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1ea;let f=c[d];return f;},a104d(a,b);}(function(a,b){const o=a104d,c=a();while(!![]){try{const d=parseInt(o(0x1fd))/0x1+-parseInt(o(0x20c))/0x2*(-parseInt(o(0x1ee))/0x3)+parseInt(o(0x1ed))/0x4+-parseInt(o(0x205))/0x5+parseInt(o(0x1ec))/0x6+-parseInt(o(0x220))/0x7+-parseInt(o(0x20d))/0x8*(parseInt(o(0x202))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x828b3));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 p=a104d;return a104a[p(0x223)]()['search']('(((.+)+)+)+$')[p(0x223)]()[p(0x1ea)](a104a)[p(0x1f9)](p(0x209));});a104a();import a104e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a104c(){const t=['maka\x20g:layout\x20mobile/iPhone8','includes','toString','import\x20{\x20','maka\x20g:l\x20web/safari','warn','hook/hook.js','none','import\x20\x27','.app-tests.js','.js','installNpmPackage','ssr','fsi','Scaffolding\x20for\x20a\x20React\x20Layout.','component/component.js','checkNpmPackage','getProjectConfig','constructor','startup','551484zMeiCa','4130572EQiHoX','1190643YKHGgj','relative','css','withTranslations','features','split','injectAtEndOfFile','\x20}\x20from\x20\x27','test/test.js','withHook','templates.js','search','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','\x27;\x0a','fileName','43839GkWGNR','graphql','template','assign','react','9ByviMg','theme','engines','1333020cjXOam','dir','layout','injectAtBeginningOfFile','(((.+)+)+)+$','ramda','export\x20{\x20','2jDHSDz','2824520wclBxS','.css','create','/imports/ui/layouts','rewriteDestinationPathForEngine','pathFromApp','setTemplate','client','\x20};\x0a','test','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','import\x20\x27./','withHooks','string','template/template.css','true','className','resourceName','tsx','2876307GnfiOo'];a104c=function(){return t;};return a104c();}const aliases=['l'];Generator[a104q(0x20f)]({'name':a104q(0x207),'aliases':aliases,'usage':a104q(0x217),'shortDesc':a104q(0x22f),'validOpts':[],'examples':[a104q(0x221),a104q(0x225)]},function(a,b){const r=a104q,c=r(0x210),d=this[r(0x22e)]['findAppDirectory'](),e=this['fsi']['pathFromApp']({'pathParts':[c,b['dir'],paramCase(b[r(0x21e)]),paramCase(b[r(0x21e)])]}),f=this['fsi'][r(0x232)]();this[r(0x22e)]['withValue'](f,()=>{const s=r;typeof f[s(0x1ff)][s(0x216)]===s(0x21a)&&(f[s(0x1ff)][s(0x216)]=f[s(0x1ff)][s(0x216)]==='true'?!![]:![],this[s(0x22e)][s(0x213)](s(0x216),f[s(0x1ff)][s(0x216)]));typeof f[s(0x1ff)]['css']===s(0x21a)&&(f[s(0x1ff)][s(0x1f0)]=f[s(0x1ff)][s(0x1f0)]===s(0x21c)?!![]:![],this['fsi'][s(0x213)](s(0x1f0),f[s(0x1ff)][s(0x1f0)]));typeof f['template']['js']===s(0x21a)&&(f[s(0x1ff)]['js']=f[s(0x1ff)]['js']===s(0x21c)?!![]:![],this[s(0x22e)][s(0x213)]('js',f['template']['js']));!f[s(0x1f2)]&&(f[s(0x1f2)]={});const g=b['_']?b['_'][0x0][s(0x1f3)](':')[0x1]:![],h=b['_']&&aliases[s(0x222)](g);h&&!this[s(0x231)]('ramda')&&(Log['warn'](s(0x1fa)),this['fsi'][s(0x22c)](s(0x20a),{'cwd':d}));if(h&&!this[s(0x231)](s(0x201))){Log[s(0x226)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const i={'name':pascalCase(b[s(0x21e)]),'myPath':a104e[s(0x1ef)](this['fsi']['pathFromProject']({}),e),'cssCaseName':paramCase(b[s(0x21e)]),'className':pascalCase(b[s(0x21e)]),'camelCaseName':camelCase(b[s(0x21e)]),'fileName':paramCase(b[s(0x21e)]),'graphql':f[s(0x204)][s(0x1fe)],'features':f[s(0x1f2)],'client':f[s(0x204)][s(0x214)],'api':f[s(0x204)]['api'],'ssr':f[s(0x204)][s(0x22d)],'test':f[s(0x204)][s(0x216)],'theme':f['engines'][s(0x203)],'isComponent':![],'isLayout':!![],'withTranslations':f[s(0x1f2)][s(0x1f1)]};f[s(0x1f2)]?.[s(0x219)]||b[s(0x1f7)]?this['fsi'][s(0x1ff)]({'srcPath':s(0x227),'destPath':e+s(0x22b),'framework':s(0x201),'context':i,'config':f}):this[s(0x22e)][s(0x1ff)]({'srcPath':s(0x230),'destPath':e+'.js','framework':s(0x201),'context':i,'config':f});f[s(0x204)][s(0x216)]!==s(0x228)&&this['fsi'][s(0x1ff)]({'srcPath':s(0x1f6),'destPath':e+s(0x22a),'framework':s(0x201),'context':i,'config':f});f[s(0x1ff)][s(0x1f0)]&&(this[s(0x22e)][s(0x1ff)]({'srcPath':s(0x21b),'destPath':e+s(0x20e),'context':Object[s(0x200)]({},i,{'className':paramCase(b[s(0x21e)])}),'config':f}),this['fsi'][s(0x208)]({'filePath':e+'.'+f[s(0x204)]['js'],'content':s(0x218)+i[s(0x1fc)]+'.'+f['engines'][s(0x1f0)]+'\x27;'}));const j=b[s(0x206)]?'/'+b[s(0x206)]+'/':'/',k=''+c+j+i['fileName']+'/'+i['fileName'];let l;if(f[s(0x204)]['ssr']===s(0x21c)){const m=this[s(0x22e)][s(0x212)]({'pathParts':['imports',s(0x1eb),'lib',s(0x1f8)]});l=this[s(0x22e)][s(0x211)]({'pathParts':[m],'config':f});}else{const n=this[s(0x22e)][s(0x212)]({'pathParts':['imports',s(0x1eb),s(0x214),s(0x1f8)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[n],'config':f});}f['engines'][s(0x214)]===s(0x201)?(f[s(0x204)]['js']===s(0x21f)?this[s(0x22e)]['injectAtBeginningOfFile']({'filePath':l,'content':s(0x224)+i[s(0x21d)]+s(0x1f5)+k+s(0x1fb)}):this[s(0x22e)][s(0x208)]({'filePath':l,'content':s(0x224)+i[s(0x21d)]+s(0x1f5)+k+'.'+f['engines']['js']+s(0x1fb)}),this['fsi']['injectAtEndOfFile']({'filePath':l,'content':s(0x20b)+i['className']+s(0x215)})):this['fsi'][s(0x1f4)]({'filePath':l,'content':s(0x229)+k+'.'+f[s(0x204)]['js']+s(0x1fb)});});});
@@ -1 +1 @@
1
- const a105h=a105d;(function(a,b){const f=a105d,c=a();while(!![]){try{const d=parseInt(f(0x18f))/0x1*(parseInt(f(0x18d))/0x2)+-parseInt(f(0x196))/0x3*(-parseInt(f(0x18e))/0x4)+-parseInt(f(0x19a))/0x5*(parseInt(f(0x194))/0x6)+-parseInt(f(0x19d))/0x7+-parseInt(f(0x198))/0x8*(-parseInt(f(0x19e))/0x9)+parseInt(f(0x193))/0xa*(parseInt(f(0x195))/0xb)+-parseInt(f(0x191))/0xc*(parseInt(f(0x197))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x2bef4));const a105b=(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;};}()),a105a=a105b(this,function(){const g=a105d;return a105a[g(0x199)]()[g(0x18c)](g(0x192))[g(0x199)]()['constructor'](a105a)[g(0x18c)](g(0x192));});function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x18c;let f=c[d];return f;},a105d(a,b);}a105a();import{Generator}from'../generator.js';function a105c(){const i=['11csqQAm','514938qksVZK','1580774NZwpso','16rIimzD','toString','151565TAQqcP','maka\x20g:hook\x20cool-hook','Maka!','2095716SFJGRf','450999ApVcaH','maka\x20generate:api\x20Trucks','\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','search','2CgcdSQ','8qLNdMo','252315LLXiSi','maka','24QMnWyT','(((.+)+)+)+$','873370oeEtnr','12pLmAME'];a105c=function(){return i;};return a105c();}const MakaGen=new Generator({'name':a105h(0x190),'shortDesc':a105h(0x19c),'validOpts':[],'description':a105h(0x1a0),'usage':'maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','examples':[a105h(0x19f),a105h(0x19b)]},function(){return null;});export default MakaGen;
1
+ const a105i=a105d;(function(a,b){const f=a105d,c=a();while(!![]){try{const d=-parseInt(f(0x8d))/0x1*(parseInt(f(0x87))/0x2)+parseInt(f(0x8a))/0x3+-parseInt(f(0x84))/0x4*(parseInt(f(0x92))/0x5)+-parseInt(f(0x88))/0x6*(parseInt(f(0x8b))/0x7)+-parseInt(f(0x82))/0x8*(-parseInt(f(0x86))/0x9)+parseInt(f(0x90))/0xa*(parseInt(f(0x94))/0xb)+-parseInt(f(0x85))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x5da38));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a105d;if(c){const e=c[g(0x8e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const h=a105d;return a105a[h(0x93)]()[h(0x8f)]('(((.+)+)+)+$')['toString']()[h(0x81)](a105a)[h(0x8f)](h(0x91));});a105a();import{Generator}from'../generator.js';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x81;let f=c[d];return f;},a105d(a,b);}function a105c(){const j=['apply','search','10kSDaKK','(((.+)+)+)+$','612215qDyvzW','toString','4901941DbfAsZ','constructor','4623848wvcOdA','maka','4nyAxED','5731944cNOGRp','9sWWjnM','20350GSTUhZ','6CXKvIY','\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','1759530FzvdVE','3459386yQzXmP','maka\x20g:hook\x20cool-hook','13eGeJcw'];a105c=function(){return j;};return a105c();}const MakaGen=new Generator({'name':a105i(0x83),'shortDesc':'Maka!','validOpts':[],'description':a105i(0x89),'usage':'maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','examples':['maka\x20generate:api\x20Trucks',a105i(0x8c)]},function(){return null;});export default MakaGen;
@@ -1 +1 @@
1
- const a106n=a106d;(function(a,b){const k=a106d,c=a();while(!![]){try{const d=-parseInt(k(0x1f9))/0x1+parseInt(k(0x1f5))/0x2*(-parseInt(k(0x1fc))/0x3)+parseInt(k(0x1fb))/0x4*(-parseInt(k(0x211))/0x5)+parseInt(k(0x1fa))/0x6+-parseInt(k(0x1fd))/0x7+parseInt(k(0x212))/0x8+parseInt(k(0x1ee))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xd93c3));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a106d;if(c){const e=c[l(0x200)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const m=a106d;return a106a[m(0x215)]()['search'](m(0x1f1))[m(0x215)]()[m(0x20b)](a106a)[m(0x203)](m(0x1f1));});a106a();import{Generator}from'../generator.js';function a106c(){const q=['import\x20\x27./methods','toString','check','engines','template','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','injectAtEndOfFile','43071849YtwHID','-rpc-method\x27;','getProjectConfig','(((.+)+)+)+$','index.','mdg:validated-method','tsx','458342gHRahi','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','withValue','resourceName','1607353AlmAND','6734316rrDHlE','5128fXKkyl','12MtOIab','12165888ZTeAyB','create','methods','apply','maka\x20{generate,\x20g}:{method,\x20m}\x20name','error','search','maka\x20g:method\x20todos','installMeteorPackage','method','method/method.js','fsi','pathFromApp','appPathPrefix','constructor','check\x20ddp-rate-limiter\x20mdg:validated-method','imports','ddp-rate-limiter','checkMeteorPackage','dir','4435bZcIvN','3046424gVGkEw','startup'];a106c=function(){return q;};return a106c();}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x1ec;let f=c[d];return f;},a106d(a,b);}Generator[a106n(0x1fe)]({'name':a106n(0x206),'aliases':['m'],'usage':a106n(0x201),'checkWhere':!![],'shortDesc':a106n(0x1f6),'validOpts':[a106n(0x210)],'examples':[a106n(0x204)]},function(a,b){const o=a106n;try{const c=this['fsi'][o(0x1f0)]();this[o(0x208)][o(0x1f7)](c,async()=>{const p=o,d=paramCase(b['resourceName']),f={'name':b[p(0x1f8)],'fileName':d,'className':pascalCase(b[p(0x1f8)]),'camelCase':camelCase(b[p(0x1f8)]),'noRename':!![]};let g='js';c[p(0x217)]['js']===p(0x1f4)&&(g='ts');const h=this['fsi'][p(0x209)]({});(!this[p(0x208)][p(0x20f)](p(0x216))||!this[p(0x208)][p(0x20f)](p(0x20e))||!this[p(0x208)][p(0x20f)](p(0x1f3)))&&(Log['warn'](p(0x1ec)),this[p(0x208)][p(0x205)](p(0x20c),{'cwd':h}));this[p(0x208)][p(0x218)]({'srcPath':p(0x207),'destPath':this[p(0x208)][p(0x209)]({'pathParts':[p(0x20d),p(0x213),b[p(0x20a)],p(0x1ff),b[p(0x210)],d+'-rpc-method.'+g]}),'context':f,'config':c});const i=b[p(0x210)]?'/'+b[p(0x210)]+'/':'/',j=this[p(0x208)][p(0x209)]({'pathParts':[p(0x20d),p(0x213),b[p(0x20a)],p(0x1f2)+c[p(0x217)]['js']]});this['fsi'][p(0x1ed)]({'filePath':j,'content':p(0x214)+i+d+p(0x1ef)});});}catch(d){Log[o(0x202)](d);}});
1
+ function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x162;let f=c[d];return f;},a106d(a,b);}const a106n=a106d;(function(a,b){const k=a106d,c=a();while(!![]){try{const d=-parseInt(k(0x180))/0x1*(-parseInt(k(0x183))/0x2)+-parseInt(k(0x172))/0x3+parseInt(k(0x171))/0x4+parseInt(k(0x18b))/0x5*(parseInt(k(0x166))/0x6)+-parseInt(k(0x187))/0x7*(-parseInt(k(0x17c))/0x8)+parseInt(k(0x185))/0x9+-parseInt(k(0x167))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x69871));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a106d;if(c){const e=c[l(0x176)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const m=a106d;return a106a[m(0x17f)]()['search'](m(0x184))[m(0x17f)]()[m(0x17b)](a106a)['search'](m(0x184));});a106a();function a106c(){const q=['dir','installMeteorPackage','759010SCgEOP','(((.+)+)+)+$','6363144ReTgRQ','error','791kgRawW','-rpc-method.','engines','mdg:validated-method','20YogDqN','maka\x20g:method\x20todos','index.','pathFromApp','appPathPrefix','577506labfnz','15873160RldEyE','resourceName','injectAtEndOfFile','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','checkMeteorPackage','withValue','startup','getProjectConfig','fsi','warn','549320nXRdHF','824607xtPppI','method/method.js','import\x20\x27./methods','template','apply','imports','maka\x20{generate,\x20g}:{method,\x20m}\x20name','-rpc-method\x27;','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','constructor','48536LYwouU','check\x20ddp-rate-limiter\x20mdg:validated-method','methods','toString','1yWVzgz'];a106c=function(){return q;};return a106c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':'method','aliases':['m'],'usage':a106n(0x178),'checkWhere':!![],'shortDesc':a106n(0x16a),'validOpts':[a106n(0x181)],'examples':[a106n(0x162)]},function(a,b){const o=a106n;try{const c=this[o(0x16f)][o(0x16e)]();this[o(0x16f)][o(0x16c)](c,async()=>{const p=o,d=paramCase(b['resourceName']),f={'name':b[p(0x168)],'fileName':d,'className':pascalCase(b[p(0x168)]),'camelCase':camelCase(b[p(0x168)]),'noRename':!![]};let g='js';c[p(0x189)]['js']==='tsx'&&(g='ts');const h=this[p(0x16f)][p(0x164)]({});(!this[p(0x16f)][p(0x16b)]('check')||!this[p(0x16f)][p(0x16b)]('ddp-rate-limiter')||!this[p(0x16f)][p(0x16b)](p(0x18a)))&&(Log[p(0x170)](p(0x17a)),this['fsi'][p(0x182)](p(0x17d),{'cwd':h}));this['fsi'][p(0x175)]({'srcPath':p(0x173),'destPath':this['fsi'][p(0x164)]({'pathParts':[p(0x177),p(0x16d),b[p(0x165)],p(0x17e),b[p(0x181)],d+p(0x188)+g]}),'context':f,'config':c});const i=b[p(0x181)]?'/'+b[p(0x181)]+'/':'/',j=this[p(0x16f)]['pathFromApp']({'pathParts':[p(0x177),p(0x16d),b[p(0x165)],p(0x163)+c['engines']['js']]});this['fsi'][p(0x169)]({'filePath':j,'content':p(0x174)+i+d+p(0x179)});});}catch(d){Log[o(0x186)](d);}});
@@ -1 +1 @@
1
- const a107o=a107d;(function(a,b){const l=a107d,c=a();while(!![]){try{const d=parseInt(l(0xc7))/0x1*(-parseInt(l(0xdb))/0x2)+parseInt(l(0xb9))/0x3*(-parseInt(l(0xc0))/0x4)+-parseInt(l(0xb2))/0x5+parseInt(l(0xc5))/0x6*(-parseInt(l(0xd5))/0x7)+parseInt(l(0xc1))/0x8*(parseInt(l(0xb4))/0x9)+parseInt(l(0xbe))/0xa*(-parseInt(l(0xbb))/0xb)+parseInt(l(0xd3))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x980d3));function a107c(){const s=['ssr','package','/client/','server','9StGgcM','engines','2513764aaXNle','component','relative','40ZMzNfH','pathFromApp','648072LaywDn','16pwTEjz','/package.js','fsi','store','7018590aDZBEf','pathFromAppWithNoReWrite','198112CsYHZt','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','lib','(((.+)+)+)+$','template/template.js','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','maka\x20g:package\x20todos:package','withValue','dir','client','toString','packages','48027612Ujkzxb','tests/client','7quLYsB','search','.js','resourceName','apply','noRename','6WllYUy','theme','features','forEach','hasOwnProperty','template','1662265egPwde','constructor','527427tDCAaL'];a107c=function(){return s;};return a107c();}const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a107d;if(c){const e=c[m(0xd9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const n=a107d;return a107a['toString']()[n(0xd6)](n(0xca))[n(0xd1)]()[n(0xb3)](a107a)[n(0xd6)](n(0xca));});a107a();function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0xae;let f=c[d];return f;},a107d(a,b);}import a107e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a107o(0xb6),'aliases':['p'],'usage':a107o(0xcc),'shortDesc':a107o(0xc8),'validOpts':[a107o(0xcf)],'examples':[a107o(0xcd)]},async function(a,b){const p=a107o,c=paramCase(b[p(0xd8)]),d=this[p(0xc3)][p(0xbf)]({'pathParts':[p(0xd2),b['dir'],c]}),e=this[p(0xc3)][p(0xc6)]({'pathParts':[p(0xd2),b[p(0xcf)],c,'package.js']}),f=this[p(0xc3)]['getProjectConfig']();this[p(0xc3)][p(0xce)](f,async()=>{const q=p,g={'name':paramCase(b['resourceName']),'myPath':a107e[q(0xbd)](this['fsi']['pathFromProject']({}),d),'cssCaseName':paramCase(b[q(0xd8)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0xd8)]),'fileName':c,'client':f[q(0xba)][q(0xd0)],'graphql':f[q(0xba)]['graphql'],'ssr':f[q(0xba)][q(0xb5)],'isComponent':b[q(0xb0)](q(0xbc)),'isLayout':b[q(0xb0)]('layout'),'isStore':b[q(0xb0)](q(0xc4)),'features':f[q(0xae)],'noRename':!![],'theme':f[q(0xba)][q(0xdc)]};this[q(0xc3)][q(0xb1)]({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g[q(0xda)]=![];const h=d+q(0xb7)+c+'.js';this[q(0xc3)][q(0xb1)]({'srcPath':q(0xcb),'destPath':h,'context':g,'config':f});const i=[q(0xc9),q(0xb8),q(0xd4),'tests/server'];i[q(0xaf)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0xd7);this['fsi'][r(0xb1)]({'srcPath':'package/'+j+r(0xc2),'destPath':k,'context':g,'config':f});});});});
1
+ const a107o=a107d;(function(a,b){const l=a107d,c=a();while(!![]){try{const d=-parseInt(l(0x1a4))/0x1+parseInt(l(0x198))/0x2+parseInt(l(0x180))/0x3+parseInt(l(0x18e))/0x4+parseInt(l(0x193))/0x5+parseInt(l(0x18a))/0x6*(parseInt(l(0x186))/0x7)+-parseInt(l(0x18f))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x3c271));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a107d;if(c){const e=c[m(0x1a8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const n=a107d;return a107a['toString']()['search'](n(0x1aa))[n(0x18d)]()[n(0x19c)](a107a)[n(0x17d)]('(((.+)+)+)+$');});function a107c(){const s=['424007npcuZo','relative','store','features','apply','/package.js','(((.+)+)+)+$','pathFromProject','search','pathFromAppWithNoReWrite','maka\x20g:package\x20todos:package','483342GWRmCF','withValue','graphql','tests/client','fsi','resourceName','21SHHVgs','hasOwnProperty','/client/','packages','349572SWjlpk','tests/server','theme','toString','690848BVkLIl','277944gNHrFS','engines','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','dir','489020YQpkDS','ssr','package.js','package/','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','197438gwiZbR','template','package/package.js','getProjectConfig','constructor','component','noRename','template/template.js','.js','client','layout','lib'];a107c=function(){return s;};return a107c();}a107a();function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x17c;let f=c[d];return f;},a107d(a,b);}import a107e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':'package','aliases':['p'],'usage':a107o(0x191),'shortDesc':a107o(0x197),'validOpts':[a107o(0x192)],'examples':[a107o(0x17f)]},async function(a,b){const p=a107o,c=paramCase(b['resourceName']),d=this[p(0x184)]['pathFromApp']({'pathParts':['packages',b[p(0x192)],c]}),e=this[p(0x184)][p(0x17e)]({'pathParts':[p(0x189),b[p(0x192)],c,p(0x195)]}),f=this[p(0x184)][p(0x19b)]();this[p(0x184)][p(0x181)](f,async()=>{const q=p,g={'name':paramCase(b['resourceName']),'myPath':a107e[q(0x1a5)](this[q(0x184)][q(0x17c)]({}),d),'cssCaseName':paramCase(b[q(0x185)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0x185)]),'fileName':c,'client':f[q(0x190)][q(0x1a1)],'graphql':f[q(0x190)][q(0x182)],'ssr':f[q(0x190)][q(0x194)],'isComponent':b[q(0x187)](q(0x19d)),'isLayout':b['hasOwnProperty'](q(0x1a2)),'isStore':b[q(0x187)](q(0x1a6)),'features':f[q(0x1a7)],'noRename':!![],'theme':f[q(0x190)][q(0x18c)]};this[q(0x184)][q(0x199)]({'srcPath':q(0x19a),'destPath':e,'context':g,'config':f}),g[q(0x19e)]=![];const h=d+q(0x188)+c+q(0x1a0);this[q(0x184)][q(0x199)]({'srcPath':q(0x19f),'destPath':h,'context':g,'config':f});const i=[q(0x1a3),'server',q(0x183),q(0x18b)];i['forEach'](j=>{const r=q,k=d+'/'+j+'/'+c+'.js';this[r(0x184)][r(0x199)]({'srcPath':r(0x196)+j+r(0x1a9),'destPath':k,'context':g,'config':f});});});});
@@ -1 +1 @@
1
- function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0xe4;let f=c[d];return f;},a108d(a,b);}const a108o=a108d;(function(a,b){const m=a108d,c=a();while(!![]){try{const d=parseInt(m(0xf4))/0x1+-parseInt(m(0xfa))/0x2+parseInt(m(0x114))/0x3+parseInt(m(0xea))/0x4*(parseInt(m(0x109))/0x5)+-parseInt(m(0x122))/0x6+parseInt(m(0x103))/0x7+-parseInt(m(0x131))/0x8*(parseInt(m(0xf8))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xcec06));const a108b=(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;};}()),a108a=a108b(this,function(){const n=a108d;return a108a[n(0x12f)]()[n(0x10b)](n(0x102))[n(0x12f)]()['constructor'](a108a)['search'](n(0x102));});a108a();import a108e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a108c(){const r=['2560712PENIPS','components','true','store','client','warn','7249190gAFOdB','create','search','assign','injectAtEndOfFile','string','\x27;\x0a','ramda','\x20}\x20from\x20\x27','css','imports','4347213sWrAwb','getProjectConfig','injectAtBeginningOfFile','template/template.css','lib','export\x20{\x20','templates.js','engines','withHook','/imports/ui/pages','react','hasOwnProperty','.html','.js','6224754TQiEJk','ssr','import\x20\x27','baseDir','api','component','import\x20{\x20','template/template.html','.app-tests.js','test','fileName','pages','layout','toString','graphql','16lJcSgy','installNpmPackage','resourceName','import\x20\x27./','.css','\x20};\x0a','html','features','none','4SakVXK','className','fsi','template','vanilla','Updating\x20npm\x20packages\x20...','setTemplate','layouts','startup','test/test.js','1394943ckizYI','maka\x20g:page\x20todos/todos-item','hooks','checkNpmPackage','5441157dMHRjY','pathFromApp','3132418tNxiyb','relative','withValue','rewriteDestinationPathForEngine','tsx','withHooks','Generate\x20a\x20page.','theme','(((.+)+)+)+$'];a108c=function(){return r;};return a108c();}const aliases=['p'];Generator[a108o(0x10a)]({'name':'page','aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':a108o(0x100),'validOpts':[{'name':a108o(0x125),'values':[a108o(0xf6),a108o(0x104),a108o(0x12d),a108o(0xf1)]},{'name':a108o(0x11c),'boolFlag':!![]}],'examples':[a108o(0xf5)]},function(a,b){const p=a108o,c=b[p(0x125)]?'/imports/ui/'+b[p(0x125)]:p(0x11d),d=this['fsi'][p(0xf9)](b),e=this[p(0xec)]['pathFromApp']({'pathParts':[c,b['dir'],paramCase(b['resourceName']),paramCase(b['resourceName'])]}),f=this[p(0xec)][p(0x115)]();this[p(0xec)][p(0xfc)](f,()=>{const q=p;typeof f[q(0xed)][q(0xe7)]===q(0x10e)&&(f['template']['html']=f['template']['html']===q(0x105)?!![]:![],this['fsi']['setTemplate'](q(0xe7),f[q(0xed)][q(0xe7)]));typeof f[q(0xed)]['test']===q(0x10e)&&(f[q(0xed)][q(0x12b)]=f[q(0xed)][q(0x12b)]===q(0x105)?!![]:![],this['fsi'][q(0xf0)](q(0x12b),f[q(0xed)]['test']));typeof f[q(0xed)]['css']===q(0x10e)&&(f['template'][q(0x112)]=f[q(0xed)][q(0x112)]===q(0x105)?!![]:![],this[q(0xec)][q(0xf0)](q(0x112),f[q(0xed)]['css']));typeof f[q(0xed)]['js']===q(0x10e)&&(f[q(0xed)]['js']=f[q(0xed)]['js']===q(0x105)?!![]:![],this[q(0xec)][q(0xf0)]('js',f['template']['js']));!f[q(0xe8)]&&(f[q(0xe8)]={});!b['root']&&!this[q(0xec)][q(0xf7)]('ramda')&&(Log[q(0x108)](q(0xef)),this[q(0xec)][q(0x132)](q(0x110),{'cwd':d}));const g={'name':pascalCase(b[q(0x133)]),'myPath':a108e[q(0xfb)](this['fsi']['pathFromProject']({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0x133)]),'fileName':paramCase(b[q(0x133)]),'graphql':f[q(0x11b)][q(0x130)],'features':f[q(0xe8)],'client':f['engines'][q(0x107)],'api':f[q(0x11b)][q(0x126)],'ssr':f[q(0x11b)][q(0x123)],'isStore':b[q(0x11f)](q(0x106)),'isComponent':b[q(0x11f)](q(0x127)),'isLayout':b['hasOwnProperty'](q(0x12e)),'withTranslations':f[q(0xe8)]['withTranslations'],'test':f[q(0x11b)][q(0x12b)],'theme':f['engines'][q(0x101)]};f[q(0xed)][q(0xe7)]&&this['fsi']['template']({'srcPath':q(0x129),'destPath':e+q(0x120),'context':g,'config':f});f[q(0xe8)]?.[q(0xff)]||b[q(0x11c)]?this[q(0xec)][q(0xed)]({'srcPath':'hook/hook.js','destPath':e+q(0x121),'framework':'react','context':g,'config':f}):this[q(0xec)]['template']({'srcPath':'component/component.js','destPath':e+'.js','framework':q(0x11e),'context':g,'config':f});f[q(0x11b)][q(0x12b)]!==q(0xe9)&&this['fsi']['template']({'srcPath':q(0xf3),'destPath':e+q(0x12a),'framework':'react','context':g,'config':f});f['template']['css']&&this['fsi'][q(0xed)]({'srcPath':q(0x117),'destPath':e+q(0xe5),'context':Object[q(0x10c)]({},g,{'className':paramCase(b[q(0x133)])}),'config':f});f[q(0x11b)][q(0x107)]!==q(0x11e)&&f[q(0x11b)]['client']!==q(0xee)?(f[q(0xed)][q(0x112)]&&this[q(0xec)][q(0x116)]({'filePath':e+'.'+f[q(0x11b)]['js'],'content':'import\x20\x27./'+g[q(0x12c)]+'.'+f[q(0x11b)]['html']+q(0x10f)+'import\x20\x27./'+g[q(0x12c)]+'.'+f[q(0x11b)][q(0x112)]+'\x27;'}),!f[q(0xed)]['css']&&this['fsi'][q(0x116)]({'filePath':e+'.'+f[q(0x11b)]['js'],'content':'import\x20\x27./'+g[q(0x12c)]+'.'+f['engines'][q(0xe7)]+'\x27;'})):f[q(0xed)][q(0x112)]&&this[q(0xec)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[q(0x11b)]['js'],'content':q(0xe4)+g['fileName']+'.'+f[q(0x11b)][q(0x112)]+'\x27;'});const h=b['dir']?'/'+b['dir']+'/':'/',i=''+c+h+g['fileName']+'/'+g[q(0x12c)];let j;if(f[q(0x11b)][q(0x123)]==='true'){const k=this[q(0xec)]['pathFromApp']({'pathParts':[q(0x113),'startup',q(0x118),q(0x11a)]});j=this[q(0xec)][q(0xfd)]({'pathParts':[k],'config':f});}else{const l=this['fsi'][q(0xf9)]({'pathParts':[q(0x113),q(0xf2),'client',q(0x11a)]});j=this[q(0xec)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':f});}f['engines'][q(0x107)]==='react'?(f[q(0x11b)]['js']===q(0xfe)?this[q(0xec)][q(0x116)]({'filePath':j,'content':q(0x128)+g[q(0xeb)]+q(0x111)+i+q(0x10f)}):this[q(0xec)][q(0x116)]({'filePath':j,'content':q(0x128)+g[q(0xeb)]+q(0x111)+i+'.'+f[q(0x11b)]['js']+q(0x10f)}),this[q(0xec)][q(0x10d)]({'filePath':j,'content':q(0x119)+g[q(0xeb)]+q(0xe6)})):this['fsi'][q(0x10d)]({'filePath':j,'content':q(0x124)+i+'.'+f[q(0x11b)]['js']+'\x27;\x0a'});});});
1
+ const a108p=a108d;(function(a,b){const m=a108d,c=a();while(!![]){try{const d=parseInt(m(0x196))/0x1+parseInt(m(0x16c))/0x2+-parseInt(m(0x187))/0x3+parseInt(m(0x19c))/0x4*(-parseInt(m(0x1a2))/0x5)+-parseInt(m(0x179))/0x6*(parseInt(m(0x1ac))/0x7)+parseInt(m(0x195))/0x8*(-parseInt(m(0x19e))/0x9)+-parseInt(m(0x194))/0xa*(-parseInt(m(0x1a6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x80b8b));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a108d;if(c){const e=c[n(0x171)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const o=a108d;return a108a[o(0x18b)]()['search'](o(0x173))[o(0x18b)]()[o(0x193)](a108a)[o(0x1a5)](o(0x173));});function a108c(){const s=['tsx','constructor','521970KAkzVk','24fxOVxa','90262tSSEwY','rewriteDestinationPathForEngine','layout','pathFromProject','layouts','engines','207772YAPimU','.app-tests.js','371439EadJHq','import\x20{\x20','fileName','template/template.css','5fTDyFb','installNpmPackage','hooks','search','341hfaYHm','import\x20\x27./','ssr','setTemplate','vanilla','ramda','3614954vHWJMj','assign','css','features','client','graphql','true','fsi','root','create','string','react','export\x20{\x20','101418gTZEvm','html','.js','baseDir','/imports/ui/pages','apply','getProjectConfig','(((.+)+)+)+$','/imports/ui/','pages','page','Updating\x20npm\x20packages\x20...','warn','6VkUwzU','.html','\x20}\x20from\x20\x27','className','hasOwnProperty','withHook','test','template','checkNpmPackage','maka\x20g:page\x20todos/todos-item','none','withTranslations','theme','resourceName','1618971URUnGg','\x27;\x0a','imports','pathFromApp','toString','import\x20\x27','injectAtBeginningOfFile','withHooks','dir','templates.js','injectAtEndOfFile'];a108c=function(){return s;};return a108c();}a108a();import a108e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x163;let f=c[d];return f;},a108d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a108p(0x168)]({'name':a108p(0x176),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':'Generate\x20a\x20page.','validOpts':[{'name':a108p(0x16f),'values':[a108p(0x1a4),'components',a108p(0x175),a108p(0x19a)]},{'name':'withHook','boolFlag':!![]}],'examples':[a108p(0x182)]},function(a,b){const q=a108p,c=b['baseDir']?q(0x174)+b[q(0x16f)]:q(0x170),d=this[q(0x166)][q(0x18a)](b),e=this[q(0x166)][q(0x18a)]({'pathParts':[c,b[q(0x18f)],paramCase(b[q(0x186)]),paramCase(b[q(0x186)])]}),f=this[q(0x166)][q(0x172)]();this[q(0x166)]['withValue'](f,()=>{const r=q;typeof f[r(0x180)][r(0x16d)]==='string'&&(f[r(0x180)][r(0x16d)]=f[r(0x180)][r(0x16d)]===r(0x165)?!![]:![],this[r(0x166)][r(0x1a9)](r(0x16d),f['template']['html']));typeof f[r(0x180)][r(0x17f)]==='string'&&(f['template']['test']=f['template'][r(0x17f)]==='true'?!![]:![],this[r(0x166)][r(0x1a9)](r(0x17f),f[r(0x180)][r(0x17f)]));typeof f['template']['css']===r(0x169)&&(f['template']['css']=f[r(0x180)][r(0x1ae)]==='true'?!![]:![],this[r(0x166)][r(0x1a9)]('css',f['template']['css']));typeof f['template']['js']==='string'&&(f[r(0x180)]['js']=f['template']['js']===r(0x165)?!![]:![],this['fsi'][r(0x1a9)]('js',f[r(0x180)]['js']));!f[r(0x1af)]&&(f[r(0x1af)]={});!b[r(0x167)]&&!this[r(0x166)][r(0x181)](r(0x1ab))&&(Log[r(0x178)](r(0x177)),this[r(0x166)][r(0x1a3)](r(0x1ab),{'cwd':d}));const g={'name':pascalCase(b[r(0x186)]),'myPath':a108e['relative'](this[r(0x166)][r(0x199)]({}),e),'cssCaseName':paramCase(b[r(0x186)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[r(0x186)]),'fileName':paramCase(b[r(0x186)]),'graphql':f[r(0x19b)][r(0x164)],'features':f[r(0x1af)],'client':f[r(0x19b)][r(0x163)],'api':f[r(0x19b)]['api'],'ssr':f[r(0x19b)][r(0x1a8)],'isStore':b[r(0x17d)]('store'),'isComponent':b[r(0x17d)]('component'),'isLayout':b['hasOwnProperty'](r(0x198)),'withTranslations':f[r(0x1af)][r(0x184)],'test':f[r(0x19b)]['test'],'theme':f[r(0x19b)][r(0x185)]};f[r(0x180)][r(0x16d)]&&this[r(0x166)][r(0x180)]({'srcPath':'template/template.html','destPath':e+r(0x17a),'context':g,'config':f});f[r(0x1af)]?.[r(0x18e)]||b[r(0x17e)]?this[r(0x166)][r(0x180)]({'srcPath':'hook/hook.js','destPath':e+r(0x16e),'framework':'react','context':g,'config':f}):this[r(0x166)][r(0x180)]({'srcPath':'component/component.js','destPath':e+'.js','framework':r(0x16a),'context':g,'config':f});f[r(0x19b)][r(0x17f)]!==r(0x183)&&this[r(0x166)][r(0x180)]({'srcPath':'test/test.js','destPath':e+r(0x19d),'framework':r(0x16a),'context':g,'config':f});f[r(0x180)][r(0x1ae)]&&this[r(0x166)][r(0x180)]({'srcPath':r(0x1a1),'destPath':e+'.css','context':Object[r(0x1ad)]({},g,{'className':paramCase(b['resourceName'])}),'config':f});f[r(0x19b)][r(0x163)]!==r(0x16a)&&f[r(0x19b)]['client']!==r(0x1aa)?(f['template'][r(0x1ae)]&&this[r(0x166)][r(0x18d)]({'filePath':e+'.'+f['engines']['js'],'content':'import\x20\x27./'+g[r(0x1a0)]+'.'+f[r(0x19b)][r(0x16d)]+'\x27;\x0a'+'import\x20\x27./'+g[r(0x1a0)]+'.'+f[r(0x19b)][r(0x1ae)]+'\x27;'}),!f['template'][r(0x1ae)]&&this['fsi'][r(0x18d)]({'filePath':e+'.'+f['engines']['js'],'content':r(0x1a7)+g[r(0x1a0)]+'.'+f[r(0x19b)][r(0x16d)]+'\x27;'})):f[r(0x180)]['css']&&this[r(0x166)][r(0x18d)]({'filePath':e+'.'+f[r(0x19b)]['js'],'content':r(0x1a7)+g[r(0x1a0)]+'.'+f[r(0x19b)][r(0x1ae)]+'\x27;'});const h=b[r(0x18f)]?'/'+b[r(0x18f)]+'/':'/',i=''+c+h+g[r(0x1a0)]+'/'+g[r(0x1a0)];let j;if(f[r(0x19b)]['ssr']===r(0x165)){const k=this[r(0x166)][r(0x18a)]({'pathParts':[r(0x189),'startup','lib',r(0x190)]});j=this[r(0x166)][r(0x197)]({'pathParts':[k],'config':f});}else{const l=this[r(0x166)][r(0x18a)]({'pathParts':[r(0x189),'startup',r(0x163),r(0x190)]});j=this[r(0x166)][r(0x197)]({'pathParts':[l],'config':f});}f[r(0x19b)]['client']===r(0x16a)?(f[r(0x19b)]['js']===r(0x192)?this[r(0x166)]['injectAtBeginningOfFile']({'filePath':j,'content':r(0x19f)+g[r(0x17c)]+r(0x17b)+i+r(0x188)}):this[r(0x166)][r(0x18d)]({'filePath':j,'content':r(0x19f)+g['className']+r(0x17b)+i+'.'+f[r(0x19b)]['js']+'\x27;\x0a'}),this['fsi']['injectAtEndOfFile']({'filePath':j,'content':r(0x16b)+g['className']+'\x20};\x0a'})):this['fsi'][r(0x191)]({'filePath':j,'content':r(0x18c)+i+'.'+f[r(0x19b)]['js']+r(0x188)});});});
@@ -1 +1 @@
1
- const a109k=a109d;(function(a,b){const h=a109d,c=a();while(!![]){try{const d=parseInt(h(0xc1))/0x1+parseInt(h(0xa7))/0x2+parseInt(h(0xbb))/0x3*(parseInt(h(0xb1))/0x4)+parseInt(h(0xad))/0x5+-parseInt(h(0xb0))/0x6*(parseInt(h(0xbd))/0x7)+parseInt(h(0xaa))/0x8*(parseInt(h(0xb9))/0x9)+-parseInt(h(0xb7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x5333d));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a109d;if(c){const e=c[i(0xc0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const j=a109d;return a109a[j(0xa4)]()[j(0xa9)](j(0xbc))[j(0xa4)]()[j(0xb8)](a109a)[j(0xa9)](j(0xbc));});function a109c(){const n=['toString','resourceName','withValue','67632PfYuDx','getProjectConfig','search','491120mTMamk','publish','create','2179480EXajUn','tsx','engines','6nfWNHF','4RXDLsk','rewriteDestinationPathForEngine','templateContent','publish/publish.','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','8319710jjjlDv','constructor','18oUZQYC','injectAtEndOfFile','1670919BNMRZj','(((.+)+)+)+$','1661814iGhPzL','maka\x20g:publish\x20todos','fsi','apply','260705HTjcLR','server/publish.'];a109c=function(){return n;};return a109c();}a109a();function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0xa3;let f=c[d];return f;},a109d(a,b);}import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a109k(0xac)]({'name':a109k(0xab),'aliases':['p'],'usage':a109k(0xb5),'shortDesc':a109k(0xb6),'validOpts':[],'examples':[a109k(0xbe)]},async function(a,b){const l=a109k,c=this[l(0xbf)][l(0xa8)]();this[l(0xbf)][l(0xa6)](c,async()=>{const m=l,d={'name':b[m(0xa5)],'collection':paramCase(b[m(0xa5)]),'noRename':!![]};let e='js';c[m(0xaf)]['js']===m(0xae)&&(e='ts');const f=this[m(0xbf)][m(0xb2)]({'pathParts':[m(0xa3)+c['engines']['js']]}),g=this[m(0xbf)][m(0xb3)]({'srcPath':m(0xb4)+e,'context':d,'config':c});this[m(0xbf)][m(0xba)]({'filePath':f,'content':'\x0a'+g});});});
1
+ const a109k=a109d;function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x12e;let f=c[d];return f;},a109d(a,b);}(function(a,b){const h=a109d,c=a();while(!![]){try{const d=parseInt(h(0x139))/0x1+-parseInt(h(0x13c))/0x2+parseInt(h(0x134))/0x3+-parseInt(h(0x141))/0x4*(-parseInt(h(0x131))/0x5)+parseInt(h(0x13f))/0x6+-parseInt(h(0x140))/0x7*(parseInt(h(0x147))/0x8)+-parseInt(h(0x133))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xda642));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a109d;if(c){const e=c[i(0x130)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const j=a109d;return a109a[j(0x143)]()[j(0x12f)](j(0x137))['toString']()[j(0x13d)](a109a)['search']('(((.+)+)+)+$');});a109a();import{paramCase}from'change-case';import{Generator}from'../generator.js';function a109c(){const n=['search','apply','10pchHNF','templateContent','22418109nRVrfd','151743xFvZPi','engines','server/publish.','(((.+)+)+)+$','withValue','1444344eHjFLm','create','fsi','686972gQKpvg','constructor','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','3954222VvDwue','7oGbqLT','3289388HWEZLA','maka\x20g:publish\x20todos','toString','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','publish','rewriteDestinationPathForEngine','557912lGFZwy','publish/publish.','resourceName'];a109c=function(){return n;};return a109c();}Generator[a109k(0x13a)]({'name':a109k(0x145),'aliases':['p'],'usage':a109k(0x144),'shortDesc':a109k(0x13e),'validOpts':[],'examples':[a109k(0x142)]},async function(a,b){const l=a109k,c=this[l(0x13b)]['getProjectConfig']();this[l(0x13b)][l(0x138)](c,async()=>{const m=l,d={'name':b['resourceName'],'collection':paramCase(b[m(0x12e)]),'noRename':!![]};let e='js';c['engines']['js']==='tsx'&&(e='ts');const f=this[m(0x13b)][m(0x146)]({'pathParts':[m(0x136)+c[m(0x135)]['js']]}),g=this[m(0x13b)][m(0x132)]({'srcPath':m(0x148)+e,'context':d,'config':c});this[m(0x13b)]['injectAtEndOfFile']({'filePath':f,'content':'\x0a'+g});});});