@maka/maka-cli 4.5.52 → 4.6.2

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 -0
  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/https/progress.class.js +1 -0
  128. package/bundle/obf/src/tools/log/log.class.js +1 -1
  129. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  130. package/bundle/obf/src/tools/options/options.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
- const a95z=a95d;(function(a,b){const w=a95d,c=a();while(!![]){try{const d=-parseInt(w(0x11f))/0x1*(-parseInt(w(0x12b))/0x2)+-parseInt(w(0x158))/0x3+parseInt(w(0x126))/0x4+parseInt(w(0x152))/0x5*(parseInt(w(0x113))/0x6)+-parseInt(w(0x111))/0x7*(-parseInt(w(0x15a))/0x8)+-parseInt(w(0x15b))/0x9*(-parseInt(w(0x12a))/0xa)+parseInt(w(0x12e))/0xb*(-parseInt(w(0x10e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0xae482));const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a95d;if(c){const e=c[x(0x118)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const y=a95d;return a95a[y(0x12f)]()['search'](y(0x131))['toString']()['constructor'](a95a)[y(0x145)](y(0x131));});function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0x100;let f=c[d];return f;},a95d(a,b);}a95a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a95e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a95z(0x13e)]({'name':a95z(0x11a),'aliases':['a'],'usage':a95z(0x156),'shortDesc':a95z(0x124),'validOpts':[a95z(0x12c)],'examples':['maka\x20g:api\x20Todos'],'description':'\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'},async function(a,b){const A=a95z;try{const c=this[A(0x102)][A(0x13f)](),d=[{'name':A(0x149),'value':'withMethods'},{'name':A(0x15d),'value':A(0x110)},{'name':'Publications','value':'withPubs'}];c[A(0x10f)][A(0x11a)]===A(0x143)&&d[A(0x14f)]({'name':A(0x147),'value':'withRest'});c['engines'][A(0x123)]===A(0x121)&&d['push']({'name':A(0x11e),'value':'withGql'});const f={'type':'checkbox','name':A(0x109),'message':A(0x119),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x133)](f);g[A(0x132)]===0x0&&(Log[A(0x112)](A(0x100)),process['exit'](0x1)),this[A(0x102)][A(0x159)](c,async()=>{const B=A,h=this['fsi']['pathFromApp']({}),i=b['resourceName'],j=paramCase(i),k=camelCase(i),l=b[B(0x12c)]?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x10f)][B(0x11a)],'graphql':c[B(0x10f)]['graphql'],'test':c[B(0x10f)][B(0x151)],'noRename':!![],'withPubs':g[B(0x13c)](B(0x135)),'withFixtures':g[B(0x13c)]('withFixtures'),'withMethods':g[B(0x13c)](B(0x108)),'withRest':g[B(0x13c)](B(0x14a))};let n='js';c[B(0x10f)]['js']===B(0x106)&&(n='ts');(!this[B(0x102)]['checkMeteorPackage'](B(0x144))||!this[B(0x102)]['checkMeteorPackage'](B(0x122))||!this['fsi'][B(0x139)](B(0x11d))||!this[B(0x102)][B(0x139)]('mdg:validated-method')||!this[B(0x102)][B(0x139)](B(0x11c)))&&(Log[B(0x107)](B(0x155)),await this[B(0x102)][B(0x105)]('maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo',{'cwd':h}));const o=a95e[B(0x117)](B(0x116));o&&await o[B(0x141)]([j],{'config':c,'where':B(0x140)});c[B(0x10f)][B(0x11a)]==='rest'&&(m[B(0x14a)]&&this['fsi'][B(0x13a)]({'srcPath':B(0x146),'destPath':this['fsi']['pathFromApp']({'pathParts':[B(0x11b),'api',b[B(0x12c)],j,'rest-api.'+n]}),'context':m,'config':c}));m[B(0x108)]&&this[B(0x102)][B(0x13a)]({'srcPath':B(0x154),'destPath':this[B(0x102)][B(0x12d)]({'pathParts':[B(0x11b),B(0x11a),b['dir'],j,B(0x103)+n]}),'context':m,'config':c});m[B(0x110)]&&this['fsi'][B(0x13a)]({'srcPath':B(0x10d),'destPath':this['fsi'][B(0x12d)]({'pathParts':[B(0x11b),B(0x11a),b[B(0x12c)],j,'fixtures.'+n]}),'context':m,'config':c});c['engines'][B(0x151)]!==B(0x14d)&&this[B(0x102)][B(0x13a)]({'srcPath':B(0x127),'destPath':this['fsi'][B(0x12d)]({'pathParts':['imports',B(0x11a),b[B(0x12c)],j,j+B(0x136)+n]}),'context':m,'config':c});m[B(0x135)]&&this[B(0x102)][B(0x13a)]({'srcPath':B(0x138),'destPath':this[B(0x102)][B(0x12d)]({'pathParts':[B(0x11b),B(0x11a),b['dir'],j,B(0x14c)+n]}),'context':m,'config':c});if(c[B(0x10f)]['graphql']===B(0x121)){if(g['includes'](B(0x148))){const q=this[B(0x102)][B(0x12d)]({'pathParts':[B(0x11b),B(0x10b),'server',B(0x157)+c[B(0x10f)]['js']]}),r=this[B(0x102)][B(0x125)]({'pathParts':[q],'config':c}),s=this[B(0x102)][B(0x12d)]({'pathParts':[B(0x11b),B(0x11a),b[B(0x12c)],j,B(0x123),B(0x101)+n]}),t=B(0x142)+l+j+B(0x128);this[B(0x102)][B(0x13a)]({'srcPath':B(0x129),'destPath':s,'context':m,'config':c}),this[B(0x102)][B(0x137)]({'filePath':r,'content':B(0x134)+k+B(0x14b)+t+B(0x14e)}),this['fsi'][B(0x10c)]({'filePath':r,'content':'typeList.push('+k+B(0x153),'begin':B(0x13b),'end':B(0x115)});const u=this[B(0x102)][B(0x12d)]({'pathParts':['imports',B(0x11a),b[B(0x12c)],j,B(0x123),'resolvers.'+n]}),v=B(0x142)+l+j+'/graphql/resolvers';this['fsi'][B(0x13a)]({'srcPath':B(0x130),'destPath':u,'context':m,'config':c}),this[B(0x102)][B(0x137)]({'filePath':r,'content':B(0x104)+k+B(0x15c)+v+'\x27;'}),this['fsi'][B(0x10c)]({'filePath':r,'content':'resolverList.push('+k+'Resolvers);\x0a\x0a','begin':B(0x13b),'end':B(0x115)});}}this[B(0x102)]['template']({'srcPath':B(0x114),'destPath':this[B(0x102)][B(0x12d)]({'pathParts':[B(0x11b),'startup',B(0x140),B(0x120)+j+B(0x13d)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x102)][B(0x12d)]({'pathParts':[B(0x11b),B(0x10b),B(0x140),B(0x157)+c['engines']['js']]});this[B(0x102)]['injectAtEndOfFile']({'filePath':p,'content':B(0x150)+j+'-api\x27;'});});}catch(h){console[A(0x112)](h),process[A(0x10a)](0x0);}});function a95c(){const C=['TypeDefs\x20}\x20from\x20\x27','publications.','none','\x27;\x0a','push','import\x20\x27./register-','test','446865NpDdiB','TypeDefs);\x0a','api/methods.js','Verifying\x20meteor\x20package\x20requirements\x20...','maka\x20{generate,\x20g}:{api}\x20<resource-name>','index.','704577mszFTR','withValue','24whhrwu','9oMrOTF','Resolvers\x20}\x20from\x20\x27','Fixtures','No\x20API\x20boundaries\x20selected','typeDefs.','fsi','rpc-methods.','\x0aimport\x20{\x20resolvers\x20as\x20','installMeteorPackage','tsx','notice','withMethods','apiAnswers','exit','startup','injectIntoFile','api/fixtures.js','24tSKjSL','engines','withFixtures','1153922MGzalk','error','36wThrVR','api/register-api.js','if\x20\x5c(typeList','collection','findGenerator','apply','API\x20boundaries\x20to\x20create','api','imports','mongo','ddp-rate-limiter','GraphQL','19tAeDsd','register-','apollo','maka:check','graphql','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','rewriteDestinationPathForEngine','3735308GvQTnV','api/tests.js','/graphql/typeDefs','api/typeDefs.js','9438550gPrGcN','41134TYwcgV','dir','pathFromApp','12927827tyRVxU','toString','api/resolvers.js','(((.+)+)+)+$','length','options','import\x20{\x20typeDefs\x20as\x20','withPubs','.app-tests.','injectAtBeginningOfFile','api/publications.js','checkMeteorPackage','template','const','includes','-api.','create','getProjectConfig','server','invoke','/imports/api','rest','maka:rest','search','api/api.js','REST\x20API','withGql','RPC\x20(Methods)','withRest'];a95c=function(){return C;};return a95c();}
1
+ const a96z=a96d;function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x19f;let f=c[d];return f;},a96d(a,b);}function a96c(){const C=['REST\x20API','const','injectAtBeginningOfFile','/graphql/typeDefs','withGql','index.','includes','if\x20\x5c(typeList','6IMRDuu','withPubs','engines','api','api/typeDefs.js','search','push','collection','pathFromApp','1386287VgtuoX','template','TypeDefs);\x0a','register-','Fixtures','api/api.js','Resolvers);\x0a\x0a','startup','ddp-rate-limiter','withRest','create','\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','apiAnswers','10073530RXFcAj','(((.+)+)+)+$','1670430yMIXnO','maka:check','rest-api.','fsi','typeList.push(','resolvers.','imports','typeDefs.','graphql','rewriteDestinationPathForEngine','3mDIypi','GraphQL','dir','API\x20boundaries\x20to\x20create','229770QcopCU','11WsGmuQ','checkbox','api/register-api.js','apply','mongo','TypeDefs\x20}\x20from\x20\x27','api/methods.js','432207Cqnshh','constructor','withMethods','apollo','maka\x20{generate,\x20g}:{api}\x20<resource-name>','api/fixtures.js','resolverList.push(','.app-tests.','resourceName','api/tests.js','40rJKcBA','withValue','api/resolvers.js','length','Verifying\x20meteor\x20package\x20requirements\x20...','\x27;\x0a','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','injectIntoFile','withFixtures','\x0aimport\x20{\x20resolvers\x20as\x20','rest','/graphql/resolvers','checkMeteorPackage','1067276opUMrD','353172mKxIxO','toString','rpc-methods.','import\x20\x27./register-','injectAtEndOfFile','error','tsx','server','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','exit','installMeteorPackage','-api.','/imports/api'];a96c=function(){return C;};return a96c();}(function(a,b){const w=a96d,c=a();while(!![]){try{const d=-parseInt(w(0x1e7))/0x1+-parseInt(w(0x1b9))/0x2+-parseInt(w(0x1c3))/0x3*(-parseInt(w(0x1e6))/0x4)+-parseInt(w(0x1c7))/0x5+-parseInt(w(0x1a1))/0x6*(-parseInt(w(0x1aa))/0x7)+parseInt(w(0x1d9))/0x8*(parseInt(w(0x1cf))/0x9)+parseInt(w(0x1b7))/0xa*(parseInt(w(0x1c8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x74b23));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a96d;if(c){const e=c[x(0x1cb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const y=a96d;return a96a[y(0x1e8)]()['search'](y(0x1b8))[y(0x1e8)]()[y(0x1d0)](a96a)[y(0x1a6)]('(((.+)+)+)+$');});a96a();import{Generator}from'../generator.js';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';Generator[a96z(0x1b4)]({'name':a96z(0x1a4),'aliases':['a'],'usage':a96z(0x1d3),'shortDesc':a96z(0x1ef),'validOpts':['dir'],'examples':['maka\x20g:api\x20Todos'],'description':a96z(0x1b5)},async function(a,b){const A=a96z;try{const c=this['fsi']['getProjectConfig'](),d=[{'name':'RPC\x20(Methods)','value':'withMethods'},{'name':A(0x1ae),'value':A(0x1e1)},{'name':'Publications','value':A(0x1a2)}];c[A(0x1a3)][A(0x1a4)]==='rest'&&d[A(0x1a7)]({'name':A(0x1f4),'value':'withRest'});c[A(0x1a3)][A(0x1c1)]===A(0x1d2)&&d[A(0x1a7)]({'name':A(0x1c4),'value':A(0x1f8)});const f={'type':A(0x1c9),'name':A(0x1b6),'message':A(0x1c6),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions['options'](f);g[A(0x1dc)]===0x0&&(Log[A(0x1ec)]('No\x20API\x20boundaries\x20selected'),process[A(0x1f0)](0x1)),this['fsi'][A(0x1da)](c,async()=>{const B=A,h=this['fsi'][B(0x1a9)]({}),i=b[B(0x1d7)],j=paramCase(i),k=camelCase(i),l=b[B(0x1c5)]?'/'+b[B(0x1c5)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x1a3)][B(0x1a4)],'graphql':c[B(0x1a3)][B(0x1c1)],'test':c[B(0x1a3)]['test'],'noRename':!![],'withPubs':g[B(0x19f)](B(0x1a2)),'withFixtures':g[B(0x19f)](B(0x1e1)),'withMethods':g[B(0x19f)](B(0x1d1)),'withRest':g[B(0x19f)](B(0x1b3))};let n='js';c[B(0x1a3)]['js']===B(0x1ed)&&(n='ts');(!this['fsi']['checkMeteorPackage']('maka:rest')||!this['fsi']['checkMeteorPackage'](B(0x1ba))||!this[B(0x1bc)][B(0x1e5)](B(0x1b2))||!this[B(0x1bc)][B(0x1e5)]('mdg:validated-method')||!this[B(0x1bc)][B(0x1e5)](B(0x1cc)))&&(Log['notice'](B(0x1dd)),await this[B(0x1bc)][B(0x1f1)](B(0x1df),{'cwd':h}));const o=a96e['findGenerator'](B(0x1a8));o&&await o['invoke']([j],{'config':c,'where':B(0x1ee)});c[B(0x1a3)][B(0x1a4)]===B(0x1e3)&&(m[B(0x1b3)]&&this[B(0x1bc)][B(0x1ab)]({'srcPath':B(0x1af),'destPath':this[B(0x1bc)][B(0x1a9)]({'pathParts':['imports',B(0x1a4),b['dir'],j,B(0x1bb)+n]}),'context':m,'config':c}));m[B(0x1d1)]&&this[B(0x1bc)][B(0x1ab)]({'srcPath':B(0x1ce),'destPath':this[B(0x1bc)][B(0x1a9)]({'pathParts':['imports',B(0x1a4),b[B(0x1c5)],j,B(0x1e9)+n]}),'context':m,'config':c});m[B(0x1e1)]&&this[B(0x1bc)][B(0x1ab)]({'srcPath':B(0x1d4),'destPath':this[B(0x1bc)][B(0x1a9)]({'pathParts':[B(0x1bf),B(0x1a4),b[B(0x1c5)],j,'fixtures.'+n]}),'context':m,'config':c});c[B(0x1a3)]['test']!=='none'&&this[B(0x1bc)]['template']({'srcPath':B(0x1d8),'destPath':this[B(0x1bc)][B(0x1a9)]({'pathParts':['imports',B(0x1a4),b[B(0x1c5)],j,j+B(0x1d6)+n]}),'context':m,'config':c});m[B(0x1a2)]&&this[B(0x1bc)][B(0x1ab)]({'srcPath':'api/publications.js','destPath':this['fsi']['pathFromApp']({'pathParts':[B(0x1bf),'api',b[B(0x1c5)],j,'publications.'+n]}),'context':m,'config':c});if(c['engines'][B(0x1c1)]===B(0x1d2)){if(g[B(0x19f)](B(0x1f8))){const q=this['fsi'][B(0x1a9)]({'pathParts':[B(0x1bf),'startup','server',B(0x1f9)+c['engines']['js']]}),r=this[B(0x1bc)][B(0x1c2)]({'pathParts':[q],'config':c}),s=this['fsi'][B(0x1a9)]({'pathParts':[B(0x1bf),B(0x1a4),b['dir'],j,B(0x1c1),B(0x1c0)+n]}),t=B(0x1f3)+l+j+B(0x1f7);this['fsi']['template']({'srcPath':B(0x1a5),'destPath':s,'context':m,'config':c}),this[B(0x1bc)]['injectAtBeginningOfFile']({'filePath':r,'content':'import\x20{\x20typeDefs\x20as\x20'+k+B(0x1cd)+t+B(0x1de)}),this[B(0x1bc)][B(0x1e0)]({'filePath':r,'content':B(0x1bd)+k+B(0x1ac),'begin':B(0x1f5),'end':B(0x1a0)});const u=this[B(0x1bc)][B(0x1a9)]({'pathParts':[B(0x1bf),B(0x1a4),b['dir'],j,B(0x1c1),B(0x1be)+n]}),v='/imports/api'+l+j+B(0x1e4);this['fsi']['template']({'srcPath':B(0x1db),'destPath':u,'context':m,'config':c}),this[B(0x1bc)][B(0x1f6)]({'filePath':r,'content':B(0x1e2)+k+'Resolvers\x20}\x20from\x20\x27'+v+'\x27;'}),this['fsi'][B(0x1e0)]({'filePath':r,'content':B(0x1d5)+k+B(0x1b0),'begin':B(0x1f5),'end':B(0x1a0)});}}this[B(0x1bc)][B(0x1ab)]({'srcPath':B(0x1ca),'destPath':this[B(0x1bc)][B(0x1a9)]({'pathParts':[B(0x1bf),B(0x1b1),B(0x1ee),B(0x1ad)+j+B(0x1f2)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x1bc)]['pathFromApp']({'pathParts':['imports',B(0x1b1),'server','index.'+c[B(0x1a3)]['js']]});this[B(0x1bc)][B(0x1eb)]({'filePath':p,'content':B(0x1ea)+j+'-api\x27;'});});}catch(h){console[A(0x1ec)](h),process[A(0x1f0)](0x0);}});
@@ -1 +1 @@
1
- function a96c(){const q=['col','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','injectAtEndOfFile','4649304QKVwMB','appPathPrefix','85827VHOlHR','resourceName','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','withValue','imports','tsx','5019488jWcmlH','mongo','import\x20\x27./collections','template','notice','353810kpgjwk','getProjectConfig','apply','create','266768EPIkHT','search','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','collection/tests.js','collections','none','maka\x20g:collection\x20todos','constructor','\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','test','1655WNvFtZ','4124Ehywzc','collection/collection.js','(((.+)+)+)+$','maka:check','error','collection','startup','fsi','dir','7hGRCvA','63JYjBAY','engines','installMeteorPackage','checkMeteorPackage','688964PvHqIJ','.app-tests.','pathFromApp','toString'];a96c=function(){return q;};return a96c();}const a96n=a96d;(function(a,b){const k=a96d,c=a();while(!![]){try{const d=-parseInt(k(0x138))/0x1+-parseInt(k(0x11f))/0x2+parseInt(k(0x141))/0x3+-parseInt(k(0x12a))/0x4*(parseInt(k(0x129))/0x5)+-parseInt(k(0x13f))/0x6*(-parseInt(k(0x133))/0x7)+parseInt(k(0x116))/0x8+parseInt(k(0x134))/0x9*(parseInt(k(0x11b))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x7dbab));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a96d;if(c){const e=c[l(0x11d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const m=a96d;return a96a[m(0x13b)]()[m(0x120)](m(0x12c))[m(0x13b)]()[m(0x126)](a96a)[m(0x120)](m(0x12c));});a96a();import{paramCase,pascalCase}from'change-case';function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x113;let f=c[d];return f;},a96d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a96n(0x11e)]({'name':a96n(0x12f),'aliases':[a96n(0x13c)],'usage':a96n(0x143),'checkWhere':!![],'shortDesc':a96n(0x121),'validOpts':[a96n(0x132),'where'],'description':a96n(0x127),'examples':[a96n(0x125)]},async function(a,b){const o=a96n;try{const c=this['fsi'][o(0x13a)]({}),d=this[o(0x131)][o(0x11c)]();this[o(0x131)][o(0x113)](d,async()=>{const p=o,f=paramCase(b['resourceName']),g={'name':pascalCase(b[p(0x142)]),'collectionName':pascalCase(b[p(0x142)]),'fileName':f,'where':b['where'],'test':d[p(0x135)][p(0x128)],'noRename':!![]};let h='js';d[p(0x135)]['js']===p(0x115)&&(h='ts');!this[p(0x131)][p(0x137)](p(0x117))&&(Log[p(0x11a)]('Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...'),await this[p(0x131)][p(0x136)]('mongo',{'cwd':c}));!this['fsi'][p(0x137)](p(0x12d))&&(Log[p(0x11a)](p(0x13d)),await this[p(0x131)][p(0x136)]('maka:check',{'cwd':c}));this['fsi'][p(0x119)]({'srcPath':p(0x12b),'destPath':this[p(0x131)]['pathFromApp']({'pathParts':[p(0x114),p(0x130),b[p(0x140)],p(0x123),b['dir'],f+'.'+h]}),'context':g,'config':d});d[p(0x135)][p(0x128)]!==p(0x124)&&this[p(0x131)]['template']({'srcPath':p(0x122),'destPath':this[p(0x131)][p(0x13a)]({'pathParts':[p(0x114),p(0x130),b[p(0x140)],p(0x123),b[p(0x132)],f+p(0x139)+h]}),'context':g,'config':d});const i=b[p(0x132)]?'/'+b[p(0x132)]+'/':'/',j=this['fsi'][p(0x13a)]({'pathParts':[p(0x114),p(0x130),b[p(0x140)],'index.'+d[p(0x135)]['js']]});this[p(0x131)][p(0x13e)]({'filePath':j,'content':p(0x118)+i+f+'\x27;'});});}catch(f){Log[o(0x12e)](f);}});
1
+ const a97n=a97d;(function(a,b){const k=a97d,c=a();while(!![]){try{const d=-parseInt(k(0x1da))/0x1*(parseInt(k(0x1d9))/0x2)+-parseInt(k(0x1e6))/0x3+parseInt(k(0x1f6))/0x4+parseInt(k(0x1f7))/0x5+-parseInt(k(0x1f1))/0x6*(parseInt(k(0x1d7))/0x7)+-parseInt(k(0x1dc))/0x8+parseInt(k(0x1d5))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x6fece));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a97d;if(c){const e=c[l(0x1f9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const m=a97d;return a97a[m(0x1d3)]()['search'](m(0x1db))[m(0x1d3)]()[m(0x1e7)](a97a)[m(0x1e3)](m(0x1db));});a97a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a97c(){const q=['collection','2189577wGNwyD','constructor','tsx','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','startup','installMeteorPackage','mongo','where','engines','resourceName','pathFromApp','1964676YCPSGo','notice','fsi','maka\x20g:collection\x20todos','imports','2036692nWVptE','4166225YjQutn','test','apply','injectAtEndOfFile','collection/tests.js','create','template','.app-tests.','error','index.','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','appPathPrefix','toString','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','2562912hsaMOG','col','7tqdCMK','maka:check','67198nwfpho','3wZXhCU','(((.+)+)+)+$','85104aVNMpC','withValue','collections','checkMeteorPackage','collection/collection.js','\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','dir','search','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection'];a97c=function(){return q;};return a97c();}function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1d1;let f=c[d];return f;},a97d(a,b);}import{Log}from'../tools/log/log.class.js';Generator[a97n(0x1fc)]({'name':a97n(0x1e5),'aliases':[a97n(0x1d6)],'usage':a97n(0x1d4),'checkWhere':!![],'shortDesc':a97n(0x1e4),'validOpts':['dir',a97n(0x1ed)],'description':a97n(0x1e1),'examples':[a97n(0x1f4)]},async function(a,b){const o=a97n;try{const c=this['fsi']['pathFromApp']({}),d=this[o(0x1f3)]['getProjectConfig']();this[o(0x1f3)][o(0x1dd)](d,async()=>{const p=o,f=paramCase(b['resourceName']),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b[p(0x1ef)]),'fileName':f,'where':b['where'],'test':d[p(0x1ee)][p(0x1f8)],'noRename':!![]};let h='js';d[p(0x1ee)]['js']===p(0x1e8)&&(h='ts');!this[p(0x1f3)]['checkMeteorPackage'](p(0x1ec))&&(Log[p(0x1f2)](p(0x1e9)),await this[p(0x1f3)][p(0x1eb)]('mongo',{'cwd':c}));!this[p(0x1f3)][p(0x1df)](p(0x1d8))&&(Log[p(0x1f2)](p(0x1d1)),await this[p(0x1f3)][p(0x1eb)](p(0x1d8),{'cwd':c}));this[p(0x1f3)][p(0x1fd)]({'srcPath':p(0x1e0),'destPath':this[p(0x1f3)][p(0x1f0)]({'pathParts':[p(0x1f5),p(0x1ea),b[p(0x1d2)],p(0x1de),b[p(0x1e2)],f+'.'+h]}),'context':g,'config':d});d[p(0x1ee)][p(0x1f8)]!=='none'&&this['fsi']['template']({'srcPath':p(0x1fb),'destPath':this[p(0x1f3)][p(0x1f0)]({'pathParts':[p(0x1f5),p(0x1ea),b['appPathPrefix'],p(0x1de),b[p(0x1e2)],f+p(0x1fe)+h]}),'context':g,'config':d});const i=b[p(0x1e2)]?'/'+b[p(0x1e2)]+'/':'/',j=this['fsi']['pathFromApp']({'pathParts':[p(0x1f5),p(0x1ea),b[p(0x1d2)],p(0x200)+d['engines']['js']]});this[p(0x1f3)][p(0x1fa)]({'filePath':j,'content':'import\x20\x27./collections'+i+f+'\x27;'});});}catch(f){Log[o(0x1ff)](f);}});
@@ -1 +1 @@
1
- const a97q=a97d;(function(a,b){const n=a97d,c=a();while(!![]){try{const d=parseInt(n(0x108))/0x1+-parseInt(n(0xfc))/0x2+parseInt(n(0xe1))/0x3+-parseInt(n(0xe6))/0x4+-parseInt(n(0xe8))/0x5*(-parseInt(n(0xe4))/0x6)+-parseInt(n(0xff))/0x7+parseInt(n(0x104))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x975d1));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a97d;if(c){const e=c[o(0x10e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const p=a97d;return a97a['toString']()['search']('(((.+)+)+)+$')[p(0xeb)]()['constructor'](a97a)[p(0xf9)](p(0x111));});a97a();function a97c(){const t=['graphql','1994424Jxybnl','withValue','baseDir','6236503aZmDbZ','resourceName','relative','fileName','api','17395544pzmrIr','rewriteDestinationPathForEngine','.css','import\x20\x27./','273421XwBUBo','test','import\x20{\x20','reflux','assign','className','apply','client','theme','(((.+)+)+)+$','engines','react','warn','imports','templates.js','startup','installNpmPackage','lib','css','string','.tests.js','ssr','pathFromProject','ramda','findAppDirectory','setTemplate','features','1589652bXRBUw','test/test.js','withTranslations','11886CaYwUA','dir','3170100iqgvJF','template','815XlhqYc','none','\x20}\x20from\x20\x27','toString','create','layouts','true','hooks','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','error','\x27;\x0a','checkNpmPackage','cssCaseName','fsi','/imports/ui/components','injectAtEndOfFile','root','search','component/component.js'];a97c=function(){return t;};return a97c();}import a97e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=['comp'];function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0xda;let f=c[d];return f;},a97d(a,b);}Generator[a97q(0xec)]({'name':'component','aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','validOpts':[{'name':a97q(0xfe),'values':[a97q(0xef),'components','pages',a97q(0xed)]}],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const r=a97q;try{const c=this['fsi'][r(0xde)](),d=b[r(0xfe)]?'/imports/ui/'+b[r(0xfe)]:r(0xf6),f=this[r(0xf5)]['pathFromApp']({'pathParts':[d,b[r(0xe5)],paramCase(b[r(0x100)]),paramCase(b[r(0x100)])]}),g=await this['fsi']['getProjectConfig']();this['fsi'][r(0xfd)](g,async()=>{const s=r;typeof g[s(0xe7)]['test']===s(0x11b)&&(g['template'][s(0x109)]=g['template'][s(0x109)]===s(0xee)?!![]:![],this[s(0xf5)]['setTemplate']('test',g[s(0xe7)]['test']));typeof g['template'][s(0x11a)]===s(0x11b)&&(g['template']['css']=g[s(0xe7)]['css']==='true'?!![]:![],this[s(0xf5)][s(0xdf)](s(0x11a),g[s(0xe7)][s(0x11a)]));typeof g['template']['js']===s(0x11b)&&(g[s(0xe7)]['js']=g[s(0xe7)]['js']===s(0xee)?!![]:![],this[s(0xf5)][s(0xdf)]('js',g[s(0xe7)]['js']));!g[s(0xe0)]&&(g[s(0xe0)]={});!b[s(0xf8)]&&!this[s(0xf5)][s(0xf3)]('ramda')&&(Log[s(0x114)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this['fsi'][s(0x118)](s(0xdd),{'cwd':c}));if(!b[s(0xf8)]&&!this[s(0xf5)][s(0xf3)]('react')){Log[s(0xf1)](s(0xf0));return;}const h={'name':pascalCase(b[s(0x100)]),'myPath':a97e[s(0x101)](this['fsi'][s(0xdc)]({}),f),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[s(0x100)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'graphql':g[s(0x112)][s(0xfb)],'features':g[s(0xe0)],'client':g[s(0x112)][s(0x10f)],'api':g[s(0x112)][s(0x103)],'ssr':g['engines'][s(0xdb)],'test':g[s(0x112)][s(0x109)],'theme':g['engines'][s(0x110)],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0xe0)][s(0xe3)]};this[s(0xf5)][s(0xe7)]({'srcPath':s(0xfa),'destPath':f+'.js','context':h,'framework':s(0x113),'config':g});g[s(0x112)][s(0x109)]!==s(0xe9)&&this[s(0xf5)][s(0xe7)]({'srcPath':s(0xe2),'destPath':f+s(0xda),'context':h,'framework':s(0x113),'config':g});g[s(0xe7)][s(0x11a)]&&(this[s(0xf5)][s(0xe7)]({'srcPath':'template/template.css','destPath':f+s(0x106),'context':Object[s(0x10c)]({},h,{'className':paramCase(b[s(0x100)])}),'config':g}),this[s(0xf5)]['injectAtBeginningOfFile']({'filePath':f+'.'+g[s(0x112)]['js'],'content':s(0x107)+h[s(0xf4)]+'.'+g[s(0x112)][s(0x11a)]+'\x27;'}));const i=b['dir']?'/'+b[s(0xe5)]+'/':'/',j=''+d+i+h[s(0x102)]+'/'+h['fileName'];let k;if(g[s(0x112)][s(0xdb)]===s(0xee)){const l=this[s(0xf5)]['pathFromApp']({'pathParts':[s(0x115),s(0x117),s(0x119),s(0x116)]});k=this[s(0xf5)][s(0x105)]({'pathParts':[l],'config':g});}else{const m=this[s(0xf5)]['pathFromApp']({'pathParts':[s(0x115),s(0x117),s(0x10f),s(0x116)]});k=this[s(0xf5)][s(0x105)]({'pathParts':[m],'config':g});}g[s(0x112)]['client']==='react'||g[s(0x112)][s(0x10f)]===s(0x10b)?(g['engines']['js']==='tsx'?this['fsi']['injectAtBeginningOfFile']({'filePath':k,'content':s(0x10a)+h[s(0x10d)]+s(0xea)+j+s(0xf2)}):this[s(0xf5)]['injectAtBeginningOfFile']({'filePath':k,'content':s(0x10a)+h[s(0x10d)]+'\x20}\x20from\x20\x27'+j+'.'+g[s(0x112)]['js']+'\x27;\x0a'}),this[s(0xf5)][s(0xf7)]({'filePath':k,'content':'export\x20{\x20'+h['className']+'\x20};\x0a'})):this['fsi'][s(0xf7)]({'filePath':k,'content':'import\x20\x27'+j+'.'+g[s(0x112)]['js']+s(0xf2)});});}catch(h){Log[r(0xf1)](h);}});
1
+ const a98q=a98d;(function(a,b){const n=a98d,c=a();while(!![]){try{const d=parseInt(n(0xf4))/0x1*(parseInt(n(0x105))/0x2)+-parseInt(n(0xd7))/0x3+parseInt(n(0xc4))/0x4+-parseInt(n(0xd1))/0x5+-parseInt(n(0xf9))/0x6+-parseInt(n(0x104))/0x7*(-parseInt(n(0xef))/0x8)+parseInt(n(0x103))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x81a1f));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a98d;if(c){const e=c[o(0xc5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const p=a98d;return a98a[p(0xf5)]()['search']('(((.+)+)+)+$')[p(0xf5)]()[p(0xcd)](a98a)[p(0xd3)](p(0xec));});a98a();import a98e from'path';function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0xbd;let f=c[d];return f;},a98d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a98q(0xca)];Generator[a98q(0xbe)]({'name':'component','aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':a98q(0xbf),'validOpts':[{'name':a98q(0x106),'values':[a98q(0xed),'components','pages',a98q(0xee)]}],'examples':[a98q(0xce)]},async function(a,b){const r=a98q;try{const c=this['fsi'][r(0xc7)](),d=b[r(0x106)]?r(0xd8)+b['baseDir']:r(0xc6),f=this[r(0xeb)][r(0x102)]({'pathParts':[d,b[r(0xdf)],paramCase(b[r(0xff)]),paramCase(b['resourceName'])]}),g=await this[r(0xeb)][r(0x109)]();this['fsi'][r(0xe8)](g,async()=>{const s=r;typeof g['template']['test']===s(0xd9)&&(g[s(0xd6)][s(0xfc)]=g[s(0xd6)][s(0xfc)]===s(0xd2)?!![]:![],this[s(0xeb)][s(0xde)](s(0xfc),g[s(0xd6)]['test']));typeof g[s(0xd6)]['css']==='string'&&(g[s(0xd6)]['css']=g[s(0xd6)][s(0xe3)]===s(0xd2)?!![]:![],this[s(0xeb)][s(0xde)](s(0xe3),g[s(0xd6)][s(0xe3)]));typeof g[s(0xd6)]['js']===s(0xd9)&&(g[s(0xd6)]['js']=g[s(0xd6)]['js']===s(0xd2)?!![]:![],this[s(0xeb)]['setTemplate']('js',g[s(0xd6)]['js']));!g[s(0xfd)]&&(g['features']={});!b['root']&&!this[s(0xeb)][s(0xc3)](s(0xe2))&&(Log[s(0xfe)](s(0xd0)),await this[s(0xeb)][s(0x10a)](s(0xe2),{'cwd':c}));if(!b[s(0xf0)]&&!this[s(0xeb)][s(0xc3)](s(0xd5))){Log[s(0xdd)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const h={'name':pascalCase(b[s(0xff)]),'myPath':a98e['relative'](this[s(0xeb)][s(0xe7)]({}),f),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[s(0xff)]),'graphql':g[s(0xcb)][s(0xf1)],'features':g['features'],'client':g[s(0xcb)][s(0xf8)],'api':g['engines'][s(0xe0)],'ssr':g[s(0xcb)][s(0xda)],'test':g['engines'][s(0xfc)],'theme':g[s(0xcb)][s(0xcf)],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0xfd)][s(0xc1)]};this[s(0xeb)]['template']({'srcPath':s(0xf7),'destPath':f+s(0x101),'context':h,'framework':s(0xd5),'config':g});g[s(0xcb)][s(0xfc)]!==s(0xc0)&&this[s(0xeb)][s(0xd6)]({'srcPath':s(0xd4),'destPath':f+s(0xea),'context':h,'framework':s(0xd5),'config':g});g[s(0xd6)][s(0xe3)]&&(this[s(0xeb)][s(0xd6)]({'srcPath':'template/template.css','destPath':f+s(0xdc),'context':Object[s(0xe5)]({},h,{'className':paramCase(b[s(0xff)])}),'config':g}),this['fsi'][s(0xe9)]({'filePath':f+'.'+g[s(0xcb)]['js'],'content':s(0x108)+h[s(0xe6)]+'.'+g[s(0xcb)][s(0xe3)]+'\x27;'}));const i=b[s(0xdf)]?'/'+b[s(0xdf)]+'/':'/',j=''+d+i+h[s(0xf3)]+'/'+h[s(0xf3)];let k;if(g[s(0xcb)]['ssr']===s(0xd2)){const l=this['fsi']['pathFromApp']({'pathParts':[s(0xe1),s(0xf6),s(0xfa),s(0xf2)]});k=this[s(0xeb)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this[s(0xeb)][s(0x102)]({'pathParts':[s(0xe1),s(0xf6),s(0xf8),s(0xf2)]});k=this[s(0xeb)][s(0xbd)]({'pathParts':[m],'config':g});}g[s(0xcb)][s(0xf8)]===s(0xd5)||g[s(0xcb)][s(0xf8)]===s(0xc8)?(g[s(0xcb)]['js']==='tsx'?this[s(0xeb)][s(0xe9)]({'filePath':k,'content':'import\x20{\x20'+h['className']+s(0x107)+j+s(0x100)}):this['fsi']['injectAtBeginningOfFile']({'filePath':k,'content':s(0xcc)+h[s(0xc2)]+s(0x107)+j+'.'+g['engines']['js']+s(0x100)}),this['fsi'][s(0xc9)]({'filePath':k,'content':s(0xdb)+h[s(0xc2)]+s(0xe4)})):this[s(0xeb)]['injectAtEndOfFile']({'filePath':k,'content':s(0xfb)+j+'.'+g[s(0xcb)]['js']+s(0x100)});});}catch(h){Log[r(0xdd)](h);}});function a98c(){const t=['export\x20{\x20','.css','error','setTemplate','dir','api','imports','ramda','css','\x20};\x0a','assign','cssCaseName','pathFromProject','withValue','injectAtBeginningOfFile','.tests.js','fsi','(((.+)+)+)+$','hooks','layouts','8HEBSky','root','graphql','templates.js','fileName','13394PNgCGL','toString','startup','component/component.js','client','3780684kWmyTn','lib','import\x20\x27','test','features','warn','resourceName','\x27;\x0a','.js','pathFromApp','619299vyKMZy','6694429pdyFjM','38vkbSiA','baseDir','\x20}\x20from\x20\x27','import\x20\x27./','getProjectConfig','installNpmPackage','rewriteDestinationPathForEngine','create','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','none','withTranslations','className','checkNpmPackage','3369376gcRMff','apply','/imports/ui/components','findAppDirectory','reflux','injectAtEndOfFile','comp','engines','import\x20{\x20','constructor','maka\x20g:comp\x20todos/todos-item','theme','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','1681405dooRxB','true','search','test/test.js','react','template','1873854trRUye','/imports/ui/','string','ssr'];a98c=function(){return t;};return a98c();}
@@ -1 +1 @@
1
- const a98k=a98d;(function(a,b){const h=a98d,c=a();while(!![]){try{const d=-parseInt(h(0x135))/0x1*(-parseInt(h(0x127))/0x2)+parseInt(h(0x124))/0x3*(-parseInt(h(0x13c))/0x4)+parseInt(h(0x136))/0x5*(-parseInt(h(0x138))/0x6)+-parseInt(h(0x134))/0x7+parseInt(h(0x130))/0x8+parseInt(h(0x13b))/0x9+parseInt(h(0x125))/0xa*(parseInt(h(0x12c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x256e4));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a98d;if(c){const e=c[i(0x12f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const j=a98d;return a98a['toString']()[j(0x133)](j(0x137))[j(0x129)]()[j(0x139)](a98a)['search'](j(0x137));});a98a();function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x121;let f=c[d];return f;},a98d(a,b);}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a98k(0x128)]({'name':'config','usage':a98k(0x122),'shortDesc':'Generate\x20configuration\x20settings.','validOpts':[a98k(0x12b)],'examples':['maka\x20g:config\x20production']},function(a,b){const l=a98k,c=this[l(0x12e)][l(0x121)]();this[l(0x12e)][l(0x123)](c,async()=>{const m=l,d={'app':c[m(0x126)],'appFileCase':paramCase(c[m(0x126)]),'name':pascalCase(b['resourceName']),'fileName':paramCase(b[m(0x12a)]),'camelCase':camelCase(b[m(0x12a)]),'userName':'ubuntu','isDocker':b[m(0x12b)]};let e=b[m(0x12a)];if(e===m(0x12d))e='development';else e==='prod'&&(e='production');const f=this[m(0x12e)][m(0x132)]({'pathParts':[m(0x13a),e,m(0x13d)]});this['fsi'][m(0x131)]({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b[m(0x12b)]){const g=this[m(0x12e)][m(0x132)]({'pathParts':[m(0x13a),e,'process.env']});this[m(0x12e)][m(0x131)]({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});function a98c(){const n=['withValue','321gIAIZH','130JcytPG','appName','12102CnrlnW','create','toString','resourceName','isDocker','168157IOoHka','dev','fsi','apply','484464CaPOWb','template','pathFromProject','search','629202sMDwnc','1allTgX','5415SLwATG','(((.+)+)+)+$','234ELGKZO','constructor','config','523719vsYwus','1424vDoepY','settings.json','getProjectConfig','maka\x20{generate,\x20g}:{config}\x20<name>'];a98c=function(){return n;};return a98c();}
1
+ const a99k=a99d;(function(a,b){const h=a99d,c=a();while(!![]){try{const d=parseInt(h(0x118))/0x1+parseInt(h(0x117))/0x2*(parseInt(h(0x101))/0x3)+parseInt(h(0x10a))/0x4+parseInt(h(0x115))/0x5+parseInt(h(0x105))/0x6+parseInt(h(0x11a))/0x7+parseInt(h(0x111))/0x8*(-parseInt(h(0x119))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x95255));function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0xff;let f=c[d];return f;},a99d(a,b);}const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a99d;if(c){const e=c[i(0x10f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const j=a99d;return a99a[j(0x102)]()[j(0x10c)]('(((.+)+)+)+$')[j(0x102)]()[j(0x106)](a99a)[j(0x10c)](j(0x11b));});a99a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a99c(){const n=['4431287VeHJDC','(((.+)+)+)+$','maka\x20{generate,\x20g}:{config}\x20<name>','settings.json','getProjectConfig','1658574yYmrly','toString','resourceName','fsi','3381618UXJGWX','constructor','dev','maka\x20g:config\x20production','config/process.env','2753328EunjZq','appName','search','template','pathFromProject','apply','Generate\x20configuration\x20settings.','5766184AoCVbs','production','config','isDocker','5896720iDrsdH','development','4jNuuAg','765503iHchFQ','54zomewH'];a99c=function(){return n;};return a99c();}Generator['create']({'name':a99k(0x113),'usage':a99k(0x11c),'shortDesc':a99k(0x110),'validOpts':[a99k(0x114)],'examples':[a99k(0x108)]},function(a,b){const l=a99k,c=this[l(0x104)][l(0x100)]();this[l(0x104)]['withValue'](c,async()=>{const m=l,d={'app':c[m(0x10b)],'appFileCase':paramCase(c[m(0x10b)]),'name':pascalCase(b['resourceName']),'fileName':paramCase(b[m(0x103)]),'camelCase':camelCase(b[m(0x103)]),'userName':'ubuntu','isDocker':b['isDocker']};let e=b['resourceName'];if(e===m(0x107))e=m(0x116);else e==='prod'&&(e=m(0x112));const f=this[m(0x104)][m(0x10e)]({'pathParts':['config',e,m(0xff)]});this[m(0x104)][m(0x10d)]({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b[m(0x114)]){const g=this[m(0x104)]['pathFromProject']({'pathParts':[m(0x113),e,'process.env']});this[m(0x104)][m(0x10d)]({'srcPath':m(0x109),'destPath':g,'context':d,'config':c});}});});
@@ -1 +1 @@
1
- const a99m=a99d;(function(a,b){const j=a99d,c=a();while(!![]){try{const d=-parseInt(j(0x1b0))/0x1+-parseInt(j(0x1b3))/0x2+parseInt(j(0x1a1))/0x3+parseInt(j(0x1a7))/0x4+parseInt(j(0x1ac))/0x5*(-parseInt(j(0x1c0))/0x6)+-parseInt(j(0x1a5))/0x7+parseInt(j(0x1ae))/0x8*(parseInt(j(0x1c4))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x93202));function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x19a;let f=c[d];return f;},a99d(a,b);}const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a99d;if(c){const e=c[k(0x1bc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const l=a99d;return a99a['toString']()['search'](l(0x19c))[l(0x1b9)]()['constructor'](a99a)[l(0x1b7)](l(0x19c));});a99a();import{camelCase,paramCase,pascalCase}from'change-case';function a99c(){const p=['53085WYAbBU','sqlite','register-','800818PbLXYx','maka\x20g:dbc\x20todos\x20--type=sqlite','dbc/conn.js','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','search','getProjectConfig','toString','maka\x20g:dbc\x20azure\x20--type=mssql','template','apply','better-sqlite3','checkNpmPackage','mssql','4585080HeVSrT','injectAtEndOfFile','imports','fsi','2312478HRXsrF','create','warn','-dbc.','pgsql','server','error','(((.+)+)+)+$','installNpmPackage','pathFromApp','tsx','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','2438661QdJarg','resourceName','maka\x20g:dbc\x20geoserver\x20--type=pgsql','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','3886232EtQSYb','startup','1111516zHjdmQ','engines','dir','withValue','dbc','5dPrmEb','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','40AHMldl','dbc/config.js'];a99c=function(){return p;};return a99c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a99m(0x1c5)]({'name':'dbc','usage':a99m(0x1a0),'shortDesc':a99m(0x1b6),'validOpts':[a99m(0x1a9)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'type','values':['pgsql','mssql',a99m(0x1b1)]}],'examples':[a99m(0x1a3),a99m(0x1ba),a99m(0x1b4)]},async function(a,b){const n=a99m;try{const c=await this['fsi'][n(0x1b8)](),d=this[n(0x1c3)]['pathFromApp']({}),f=paramCase(b[n(0x1a2)]),g={'name':pascalCase(b[n(0x1a2)]),'fileName':paramCase(b[n(0x1a2)]),'camelCase':camelCase(b[n(0x1a2)]),'type':b['type'],'engine':c[n(0x1a8)]['js'],'noRename':!![]};this[n(0x1c3)][n(0x1aa)](c,async()=>{const o=n;let h='js';c[o(0x1a8)]['js']===o(0x19f)&&(h='ts');b['type']===o(0x1c8)&&!this['fsi'][o(0x1be)]('pg')&&(Log[o(0x1c6)](o(0x1ad)),await this['fsi']['installNpmPackage']('pg',{'cwd':d}));b['type']===o(0x1bf)&&!this['fsi'][o(0x1be)](o(0x1bf))&&(Log['warn']('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[o(0x1c3)][o(0x19d)](o(0x1bf),{'cwd':d}));b['type']===o(0x1b1)&&!this[o(0x1c3)][o(0x1be)](o(0x1bd))&&(Log[o(0x1c6)](o(0x1a4)),await this['fsi'][o(0x19d)](o(0x1bd),{'cwd':d}));this[o(0x1c3)][o(0x1bb)]({'srcPath':o(0x1af),'destPath':this[o(0x1c3)][o(0x19e)]({'pathParts':['imports','startup','server',o(0x1ab),b[o(0x1a9)],f,'config.'+h]}),'context':g,'config':c}),this[o(0x1c3)]['template']({'srcPath':o(0x1b5),'destPath':this[o(0x1c3)][o(0x19e)]({'pathParts':[o(0x1c2),o(0x1a6),o(0x19a),'dbc',b[o(0x1a9)],f,'conn.'+h]}),'context':g,'config':c}),this[o(0x1c3)]['template']({'srcPath':'dbc/register-dbc.js','destPath':this['fsi'][o(0x19e)]({'pathParts':[o(0x1c2),o(0x1a6),'server',o(0x1b2)+f+o(0x1c7)+h]}),'context':g,'config':c});const i=this[o(0x1c3)][o(0x19e)]({'pathParts':['imports',o(0x1a6),o(0x19a),'index.'+c[o(0x1a8)]['js']]});this[o(0x1c3)][o(0x1c1)]({'filePath':i,'content':'import\x20\x27./register-'+f+'-dbc\x27;'});});}catch(h){Log[n(0x19b)](h);}});
1
+ const a100m=a100d;(function(a,b){const j=a100d,c=a();while(!![]){try{const d=parseInt(j(0xbf))/0x1+parseInt(j(0xda))/0x2+parseInt(j(0xd1))/0x3*(-parseInt(j(0xb9))/0x4)+parseInt(j(0xcd))/0x5*(-parseInt(j(0xd6))/0x6)+parseInt(j(0xe0))/0x7+parseInt(j(0xbd))/0x8*(parseInt(j(0xcf))/0x9)+-parseInt(j(0xc9))/0xa*(-parseInt(j(0xd7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xc0b5f));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a100d;if(c){const e=c[k(0xe3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const l=a100d;return a100a[l(0xcc)]()[l(0xdf)](l(0xe4))['toString']()[l(0xe1)](a100a)[l(0xdf)]('(((.+)+)+)+$');});a100a();function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0xaf;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';function a100c(){const p=['69142VpgQjr','getProjectConfig','dir','server','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','engines','-dbc.','dbc/conn.js','maka\x20g:dbc\x20todos\x20--type=sqlite','pathFromApp','212210gTyWcF','-dbc\x27;','startup','toString','29145lQbjgd','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','1413ghiPwv','type','575199tsCsgK','index.','pgsql','dbc/register-dbc.js','injectAtEndOfFile','294HtDZdo','253WVytcx','better-sqlite3','maka\x20g:dbc\x20geoserver\x20--type=pgsql','2618760FLFWrp','conn.','withValue','dbc','maka\x20g:dbc\x20azure\x20--type=mssql','search','839972cvHOuC','constructor','resourceName','apply','(((.+)+)+)+$','imports','register-','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','dbc/config.js','import\x20\x27./register-','error','sqlite','mssql','checkNpmPackage','config.','28VtgNnz','fsi','installNpmPackage','template','21936fJmPXx','warn'];a100c=function(){return p;};return a100c();}Generator['create']({'name':a100m(0xdd),'usage':a100m(0xc3),'shortDesc':'Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','validOpts':[a100m(0xc1)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a100m(0xd0),'values':[a100m(0xd3),'mssql',a100m(0xb5)]}],'examples':[a100m(0xd9),a100m(0xde),a100m(0xc7)]},async function(a,b){const n=a100m;try{const c=await this[n(0xba)][n(0xc0)](),d=this[n(0xba)]['pathFromApp']({}),f=paramCase(b[n(0xe2)]),g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[n(0xe2)]),'camelCase':camelCase(b['resourceName']),'type':b['type'],'engine':c['engines']['js'],'noRename':!![]};this['fsi'][n(0xdc)](c,async()=>{const o=n;let h='js';c[o(0xc4)]['js']==='tsx'&&(h='ts');b[o(0xd0)]==='pgsql'&&!this[o(0xba)][o(0xb7)]('pg')&&(Log[o(0xbe)](o(0xce)),await this['fsi'][o(0xbb)]('pg',{'cwd':d}));b['type']===o(0xb6)&&!this[o(0xba)][o(0xb7)](o(0xb6))&&(Log[o(0xbe)](o(0xb1)),await this['fsi'][o(0xbb)](o(0xb6),{'cwd':d}));b[o(0xd0)]===o(0xb5)&&!this[o(0xba)]['checkNpmPackage']('better-sqlite3')&&(Log['warn']('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this[o(0xba)][o(0xbb)](o(0xd8),{'cwd':d}));this[o(0xba)][o(0xbc)]({'srcPath':o(0xb2),'destPath':this[o(0xba)]['pathFromApp']({'pathParts':['imports','startup',o(0xc2),o(0xdd),b[o(0xc1)],f,o(0xb8)+h]}),'context':g,'config':c}),this[o(0xba)]['template']({'srcPath':o(0xc6),'destPath':this['fsi']['pathFromApp']({'pathParts':[o(0xaf),o(0xcb),o(0xc2),o(0xdd),b[o(0xc1)],f,o(0xdb)+h]}),'context':g,'config':c}),this[o(0xba)][o(0xbc)]({'srcPath':o(0xd4),'destPath':this[o(0xba)][o(0xc8)]({'pathParts':[o(0xaf),o(0xcb),o(0xc2),o(0xb0)+f+o(0xc5)+h]}),'context':g,'config':c});const i=this[o(0xba)][o(0xc8)]({'pathParts':[o(0xaf),o(0xcb),o(0xc2),o(0xd2)+c['engines']['js']]});this[o(0xba)][o(0xd5)]({'filePath':i,'content':o(0xb3)+f+o(0xca)});});}catch(h){Log[n(0xb4)](h);}});
@@ -1 +1 @@
1
- const a100i=a100d;(function(a,b){const f=a100d,c=a();while(!![]){try{const d=-parseInt(f(0xc1))/0x1+parseInt(f(0xbf))/0x2*(-parseInt(f(0xca))/0x3)+-parseInt(f(0xc8))/0x4*(-parseInt(f(0xc6))/0x5)+-parseInt(f(0xb7))/0x6+-parseInt(f(0xb3))/0x7*(-parseInt(f(0xcb))/0x8)+parseInt(f(0xb2))/0x9+parseInt(f(0xd1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xb33dc));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a100d;if(c){const e=c[g(0xb1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const h=a100d;return a100a['toString']()[h(0xb9)](h(0xb5))[h(0xc5)]()['constructor'](a100a)[h(0xb9)](h(0xb5));});function a100c(){const l=['template','build','isFile','getProjectConfig','2LPZyqA','service','1109811YIonHT','dockerfile','maka\x20g:dockerfile','app','toString','410BHVSkB','app.tar.gz','46996LBgdGm','join','913785xwRCmq','13176EqSnGD','cert','withValue','create','fsi','appName','3876560rxWJPF','apply','7479522FVetyN','5131oUDtQI','docker/Dockerfile','(((.+)+)+)+$','getGlobalConfig','7444830ggcOGN','Dockerfile','search','maka\x20{generate,\x20g}:dockerfile'];a100c=function(){return l;};return a100c();}a100a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a100e from'path';function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0xb1;let f=c[d];return f;},a100d(a,b);}Generator[a100i(0xce)]({'name':a100i(0xc2),'usage':a100i(0xba),'shortDesc':'Generate\x20an\x20updated\x20dockerfile','validOpts':[],'noResource':!![],'examples':[a100i(0xc3)]},async function(){const j=a100i;try{const a=await this[j(0xcf)][j(0xbe)](),b=await this['fsi'][j(0xb6)](),c=this['fsi']['findProjectDirectory']();this['fsi'][j(0xcd)](a,async()=>{const k=j,d={'app':b[k(0xd0)],'config':a,'appPath':a100e['join'](c,k(0xc4)),'bundlePath':a100e[k(0xc9)](c,k(0xbc),k(0xc7)),'useCert':this['fsi'][k(0xbd)](b[k(0xcc)])};this[k(0xcf)][k(0xbb)]({'srcPath':k(0xb4),'destPath':a100e[k(0xc9)](c,k(0xb8)),'framework':k(0xc0),'context':d,'config':a});});}catch(d){Log['error'](d);}});
1
+ function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x1cb;let f=c[d];return f;},a101d(a,b);}const a101i=a101d;(function(a,b){const f=a101d,c=a();while(!![]){try{const d=-parseInt(f(0x1d1))/0x1+parseInt(f(0x1ce))/0x2*(parseInt(f(0x1cb))/0x3)+-parseInt(f(0x1e5))/0x4+-parseInt(f(0x1d2))/0x5*(-parseInt(f(0x1d0))/0x6)+-parseInt(f(0x1e2))/0x7+parseInt(f(0x1cf))/0x8*(parseInt(f(0x1d6))/0x9)+parseInt(f(0x1e3))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x5ead8));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a101d;if(c){const e=c[g(0x1cc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const h=a101d;return a101a[h(0x1d3)]()[h(0x1de)](h(0x1cd))[h(0x1d3)]()[h(0x1d5)](a101a)[h(0x1de)](h(0x1cd));});a101a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a101e from'path';Generator[a101i(0x1e1)]({'name':'dockerfile','usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':'Generate\x20an\x20updated\x20dockerfile','validOpts':[],'noResource':!![],'examples':[a101i(0x1e4)]},async function(){const j=a101i;try{const a=await this[j(0x1e7)]['getProjectConfig'](),b=await this[j(0x1e7)]['getGlobalConfig'](),c=this[j(0x1e7)]['findProjectDirectory']();this[j(0x1e7)]['withValue'](a,async()=>{const k=j,d={'app':b[k(0x1dc)],'config':a,'appPath':a101e[k(0x1db)](c,k(0x1dd)),'bundlePath':a101e[k(0x1db)](c,k(0x1d8),'app.tar.gz'),'useCert':this['fsi'][k(0x1da)](b[k(0x1d7)])};this[k(0x1e7)][k(0x1d4)]({'srcPath':k(0x1df),'destPath':a101e['join'](c,k(0x1d9)),'framework':k(0x1e6),'context':d,'config':a});});}catch(d){Log[j(0x1e0)](d);}});function a101c(){const l=['Dockerfile','isFile','join','appName','app','search','docker/Dockerfile','error','create','1999123gVToHR','144410AzvtyJ','maka\x20g:dockerfile','2395000iSVAfz','service','fsi','12seRvyV','apply','(((.+)+)+)+$','182786xhwhZl','4104624EnczqJ','4056IVPbxG','315204reuxBj','5135UNsWRD','toString','template','constructor','9PsFJrs','cert','build'];a101c=function(){return l;};return a101c();}
@@ -1 +1 @@
1
- function a101c(){const u=['17646vxwhGX','apply','import\x20\x27','\x20hook...','apollo','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','9984430XeJVCR','graphql','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','Creating\x20','@apollo/client\x20isomorphic-fetch','injectAtEndOfFile','tsx','hooks','features','installNpmPackage','692185VJUflm','hook/hook.js','withValue','layouts','warn','className','rewriteDestinationPathForEngine','22464baepXB','702CpQMNp','imports','\x20}\x20from\x20\x27','import\x20{\x20','error','startup','react','fsi','108osAmEt','\x20};\x0a','lib','true','dir','import\x20\x27./','9bldBoy','test/test.js','setTemplate','876327UHTSFN','@apollo/client','create','assign','templates.js','1799VFgDNd','checkNpmPackage','129252nAdixL','(((.+)+)+)+$','css','test','\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','template','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','components','client','6RPoIQQ','baseDir','theme','2030006yJdjXf','engines','pathFromProject','getProjectConfig','fileName','string','maka\x20g:hook\x20cool-hook','8OpnTaW','none','pathFromApp','hook','/imports/ui/','\x27;\x0a','resourceName','constructor','withTranslations','injectAtBeginningOfFile','toString','pages','search'];a101c=function(){return u;};return a101c();}const a101r=a101d;(function(a,b){const o=a101d,c=a();while(!![]){try{const d=parseInt(o(0x139))/0x1*(parseInt(o(0x169))/0x2)+parseInt(o(0x142))/0x3*(parseInt(o(0x15c))/0x4)+-parseInt(o(0x129))/0x5*(-parseInt(o(0x152))/0x6)+parseInt(o(0x147))/0x7*(parseInt(o(0x130))/0x8)+-parseInt(o(0x13f))/0x9*(parseInt(o(0x11f))/0xa)+-parseInt(o(0x155))/0xb+-parseInt(o(0x149))/0xc*(parseInt(o(0x131))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x9a6fc));function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x11e;let f=c[d];return f;},a101d(a,b);}const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a101d;if(c){const e=c[p(0x16a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const q=a101d;return a101a[q(0x166)]()[q(0x168)](q(0x14a))['toString']()[q(0x163)](a101a)[q(0x168)]('(((.+)+)+)+$');});a101a();import a101e 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[a101r(0x144)]({'name':a101r(0x15f),'aliases':['h'],'checkWhere':![],'usage':'maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','shortDesc':a101r(0x14f),'validOpts':[{'name':a101r(0x153),'values':[a101r(0x126),a101r(0x150),a101r(0x167),a101r(0x12c)]}],'examples':[a101r(0x15b)],'description':a101r(0x14d)},async function(a,b){const s=a101r;Log['notice'](s(0x122)+b[s(0x162)]+s(0x16c));try{const c=this[s(0x138)][s(0x148)](s(0x137));if(!c){Log[s(0x135)](s(0x11e));throw new UsageError();}const d=this['fsi'][s(0x15e)](b),f=b['baseDir']?s(0x160)+b['baseDir']:'/imports/ui/hooks',g=this[s(0x138)][s(0x15e)]({'pathParts':[f,b[s(0x13d)],paramCase(b[s(0x162)]),paramCase(b['resourceName'])]}),h=await this[s(0x138)][s(0x158)]();this[s(0x138)][s(0x12b)](h,async()=>{const t=s;typeof h['template'][t(0x14b)]===t(0x15a)&&(h[t(0x14e)][t(0x14b)]=h['template'][t(0x14b)]==='true'?!![]:![],this['fsi'][t(0x141)](t(0x14b),h['template'][t(0x14b)]));h[t(0x156)][t(0x120)]===t(0x16d)&&!this[t(0x138)]['checkNpmPackage'](t(0x143))&&(Log[t(0x12d)](t(0x121)),await this[t(0x138)][t(0x128)](t(0x123),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x162)]),'camelCaseName':camelCase(b[t(0x162)]),'className':pascalCase(b['resourceName']),'name':pascalCase(b[t(0x162)]),'graphql':h[t(0x156)][t(0x120)],'theme':h[t(0x156)][t(0x154)],'features':h[t(0x127)],'myPath':a101e['relative'](this[t(0x138)][t(0x157)]({}),g),'fileName':paramCase(b['resourceName']),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x127)][t(0x164)]};this[t(0x138)][t(0x14e)]({'srcPath':t(0x12a),'destPath':g+'.js','context':i,'config':h,'framework':'react'});h[t(0x14e)]['css']&&(this['fsi'][t(0x14e)]({'srcPath':'template/template.css','destPath':g+'.css','context':Object[t(0x145)]({},i,{'className':i['cssCaseName']}),'config':h}),this['fsi'][t(0x165)]({'filePath':g+'.'+h['engines']['js'],'content':t(0x13e)+i[t(0x159)]+'.'+h[t(0x156)][t(0x14b)]+'\x27;'}));h[t(0x156)][t(0x14c)]!==t(0x15d)&&this['fsi'][t(0x14e)]({'srcPath':t(0x140),'destPath':g+'.app-tests.js','framework':'react','context':i,'config':h});const j=b[t(0x13d)]?'/'+b[t(0x13d)]+'/':'/',k=''+f+j+i[t(0x159)]+'/'+i['fileName'];let l;if(h[t(0x156)]['ssr']===t(0x13c)){const m=this[t(0x138)][t(0x15e)]({'pathParts':[t(0x132),t(0x136),t(0x13b),t(0x146)]});l=this[t(0x138)][t(0x12f)]({'pathParts':[m],'config':h});}else{const n=this[t(0x138)][t(0x15e)]({'pathParts':[t(0x132),t(0x136),t(0x151),t(0x146)]});l=this[t(0x138)][t(0x12f)]({'pathParts':[n],'config':h});}h[t(0x156)][t(0x151)]===t(0x137)?(h[t(0x156)]['js']===t(0x125)?this[t(0x138)][t(0x165)]({'filePath':l,'content':'import\x20{\x20'+i[t(0x12e)]+t(0x133)+k+t(0x161)}):this[t(0x138)][t(0x165)]({'filePath':l,'content':t(0x134)+i['className']+'\x20}\x20from\x20\x27'+k+'.'+h[t(0x156)]['js']+t(0x161)}),this['fsi'][t(0x124)]({'filePath':l,'content':'export\x20{\x20'+i['className']+t(0x13a)})):this[t(0x138)][t(0x124)]({'filePath':l,'content':t(0x16b)+k+'.'+h[t(0x156)]['js']+t(0x161)});});}catch(i){Log[s(0x135)](i);}});
1
+ const a102r=a102d;(function(a,b){const o=a102d,c=a();while(!![]){try{const d=parseInt(o(0x8c))/0x1+parseInt(o(0x74))/0x2*(parseInt(o(0xa9))/0x3)+-parseInt(o(0x7e))/0x4+parseInt(o(0xa0))/0x5*(-parseInt(o(0x7f))/0x6)+parseInt(o(0xab))/0x7+parseInt(o(0xba))/0x8+parseInt(o(0xaf))/0x9*(-parseInt(o(0xb4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x7455c));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a102d;if(c){const e=c[p(0xa2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const q=a102d;return a102a['toString']()[q(0x84)](q(0xa1))[q(0x83)]()['constructor'](a102a)[q(0x84)](q(0xa1));});a102a();function a102c(){const u=['startup','6762744hGWgLQ','.js','export\x20{\x20','injectAtEndOfFile','@apollo/client\x20isomorphic-fetch','className','2SfjGOw','tsx','hook','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','/imports/ui/','installNpmPackage','setTemplate','.css','withTranslations','notice','10720GkoByc','54HhrdCv','Creating\x20','string','cssCaseName','toString','search','rewriteDestinationPathForEngine','theme','test','import\x20\x27./','warn','withValue','components','547102hlVFrS','react','getProjectConfig','injectAtBeginningOfFile','fileName','pathFromProject','pathFromApp','\x20}\x20from\x20\x27','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','checkNpmPackage','relative','resourceName','graphql','\x27;\x0a','fsi','\x20hook...','client','true','hooks','import\x20\x27','180240NKYfny','(((.+)+)+)+$','apply','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','features','error','/imports/ui/hooks','templates.js','import\x20{\x20','1525089ZNAwmL','template','1256899kwaOSD','css','layouts','pages','9OnUDQF','\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','engines','imports','dir','12767450gDRwAv','none','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','baseDir','template/template.css'];a102c=function(){return u;};return a102c();}import a102e from'path';function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x74;let f=c[d];return f;},a102d(a,b);}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['create']({'name':a102r(0x76),'aliases':['h'],'checkWhere':![],'usage':a102r(0xa3),'shortDesc':a102r(0x94),'validOpts':[{'name':a102r(0xb7),'values':[a102r(0x9e),a102r(0x8b),a102r(0xae),a102r(0xad)]}],'examples':['maka\x20g:hook\x20cool-hook'],'description':a102r(0xb0)},async function(a,b){const s=a102r;Log[s(0x7d)](s(0x80)+b[s(0x97)]+s(0x9b));try{const c=this[s(0x9a)][s(0x95)](s(0x8d));if(!c){Log[s(0xa5)](s(0xb6));throw new UsageError();}const d=this[s(0x9a)][s(0x92)](b),f=b[s(0xb7)]?s(0x78)+b[s(0xb7)]:s(0xa6),g=this[s(0x9a)][s(0x92)]({'pathParts':[f,b[s(0xb3)],paramCase(b[s(0x97)]),paramCase(b[s(0x97)])]}),h=await this[s(0x9a)][s(0x8e)]();this[s(0x9a)][s(0x8a)](h,async()=>{const t=s;typeof h[t(0xaa)][t(0xac)]===t(0x81)&&(h[t(0xaa)]['css']=h[t(0xaa)]['css']===t(0x9d)?!![]:![],this[t(0x9a)][t(0x7a)]('css',h[t(0xaa)]['css']));h['engines'][t(0x98)]==='apollo'&&!this[t(0x9a)][t(0x95)]('@apollo/client')&&(Log[t(0x89)](t(0x77)),await this[t(0x9a)][t(0x79)](t(0xbe),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x97)]),'camelCaseName':camelCase(b[t(0x97)]),'className':pascalCase(b[t(0x97)]),'name':pascalCase(b[t(0x97)]),'graphql':h[t(0xb1)][t(0x98)],'theme':h[t(0xb1)][t(0x86)],'features':h[t(0xa4)],'myPath':a102e[t(0x96)](this[t(0x9a)][t(0x91)]({}),g),'fileName':paramCase(b[t(0x97)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0xa4)][t(0x7c)]};this['fsi'][t(0xaa)]({'srcPath':'hook/hook.js','destPath':g+t(0xbb),'context':i,'config':h,'framework':'react'});h['template']['css']&&(this[t(0x9a)]['template']({'srcPath':t(0xb8),'destPath':g+t(0x7b),'context':Object['assign']({},i,{'className':i[t(0x82)]}),'config':h}),this['fsi'][t(0x8f)]({'filePath':g+'.'+h[t(0xb1)]['js'],'content':t(0x88)+i[t(0x90)]+'.'+h['engines'][t(0xac)]+'\x27;'}));h[t(0xb1)][t(0x87)]!==t(0xb5)&&this[t(0x9a)][t(0xaa)]({'srcPath':'test/test.js','destPath':g+'.app-tests.js','framework':t(0x8d),'context':i,'config':h});const j=b['dir']?'/'+b[t(0xb3)]+'/':'/',k=''+f+j+i[t(0x90)]+'/'+i[t(0x90)];let l;if(h[t(0xb1)]['ssr']===t(0x9d)){const m=this[t(0x9a)][t(0x92)]({'pathParts':[t(0xb2),'startup','lib',t(0xa7)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m],'config':h});}else{const n=this[t(0x9a)][t(0x92)]({'pathParts':['imports',t(0xb9),t(0x9c),t(0xa7)]});l=this[t(0x9a)][t(0x85)]({'pathParts':[n],'config':h});}h['engines']['client']===t(0x8d)?(h['engines']['js']===t(0x75)?this[t(0x9a)][t(0x8f)]({'filePath':l,'content':'import\x20{\x20'+i[t(0xbf)]+t(0x93)+k+t(0x99)}):this[t(0x9a)][t(0x8f)]({'filePath':l,'content':t(0xa8)+i[t(0xbf)]+'\x20}\x20from\x20\x27'+k+'.'+h[t(0xb1)]['js']+'\x27;\x0a'}),this['fsi']['injectAtEndOfFile']({'filePath':l,'content':t(0xbc)+i[t(0xbf)]+'\x20};\x0a'})):this[t(0x9a)][t(0xbd)]({'filePath':l,'content':t(0x9f)+k+'.'+h[t(0xb1)]['js']+t(0x99)});});}catch(i){Log['error'](i);}});
@@ -1 +1 @@
1
- const a102k=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=-parseInt(h(0xa4))/0x1*(-parseInt(h(0x98))/0x2)+-parseInt(h(0xa2))/0x3+parseInt(h(0x94))/0x4*(-parseInt(h(0xaa))/0x5)+-parseInt(h(0x9a))/0x6*(parseInt(h(0x93))/0x7)+parseInt(h(0x9c))/0x8*(parseInt(h(0x9e))/0x9)+parseInt(h(0xa0))/0xa+-parseInt(h(0x8a))/0xb*(-parseInt(h(0xa1))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x8f0ff));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a102d;if(c){const e=c[i(0x92)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const j=a102d;return a102a[j(0x8f)]()[j(0x9b)](j(0x8b))[j(0x8f)]()[j(0x96)](a102a)[j(0x9b)](j(0x8b));});function a102c(){const n=['3108069SkjJoG','resourceName','8268130clVUdl','70068TOzvAc','2066574PHZIYh','error','2JBErvm','getProjectConfig','notice','Invalid\x20type\x20','engines','NIE','10HsDIVY','map',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','leaflet-map','1397qbjGHf','(((.+)+)+)+$','fsi','withValue','maka\x20g:kit\x20--type=map','toString','type','maka\x20g:k\x20city-map\x20--type=leaflet-map','apply','3239670CXlvjI','1703244joqGkV','kit','constructor','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','675566tqduYB','indexOf','6xmjkLR','search','8nVYWaO','login'];a102c=function(){return n;};return a102c();}function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x87;let f=c[d];return f;},a102d(a,b);}a102a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a102k(0x95),'aliases':['k'],'usage':a102k(0x97),'shortDesc':'(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','validOpts':[a102k(0x90)],'examples':[a102k(0x8e),a102k(0x91)]},async function(a,b){const l=a102k;try{const c=this['fsi'][l(0xa5)]();this[l(0x8c)][l(0x8d)](c,async()=>{const m=l,d={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[m(0x9f)]),'camelCase':camelCase(b[m(0x9f)]),'type':b[m(0x90)],'engine':c[m(0xa8)]['js'],'noRename':!![]},f=[m(0x89),m(0x9d)];if(f[m(0x99)](d[m(0x90)])<0x0){const g=d[m(0x90)]?d[m(0x90)]:'(blank)';Log[m(0xa3)](m(0xa7)+g+m(0x88));return;}b[m(0x90)]===m(0x87)&&Log[m(0xa6)](m(0xa9)),b[m(0x90)]===m(0x9d)&&Log[m(0xa6)](m(0xa9));});}catch(d){Log['error'](d);}});
1
+ function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x12a;let f=c[d];return f;},a103d(a,b);}const a103k=a103d;(function(a,b){const h=a103d,c=a();while(!![]){try{const d=-parseInt(h(0x12a))/0x1*(parseInt(h(0x146))/0x2)+-parseInt(h(0x138))/0x3*(-parseInt(h(0x13b))/0x4)+parseInt(h(0x12e))/0x5*(parseInt(h(0x139))/0x6)+parseInt(h(0x141))/0x7+parseInt(h(0x12b))/0x8*(-parseInt(h(0x134))/0x9)+parseInt(h(0x13e))/0xa+-parseInt(h(0x144))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xcd641));function a103c(){const n=['4175850CNtGSe','type','apply','10804192zrWHXR','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','search','25445288DmWVYQ','engines','109414AhdZBh','toString','error','fsi','25jObhlA','1464NnNjtE','notice','login','20Ynjtem','kit','NIE',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','(((.+)+)+)+$','resourceName','14247mfvjgc','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','withValue','Invalid\x20type\x20','1167351XFopYy','1941516PUiisc','indexOf','16ABGwjD','maka\x20g:k\x20city-map\x20--type=leaflet-map','(blank)'];a103c=function(){return n;};return a103c();}const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a103d;if(c){const e=c[i(0x140)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const j=a103d;return a103a[j(0x147)]()[j(0x143)](j(0x132))[j(0x147)]()['constructor'](a103a)[j(0x143)](j(0x132));});a103a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a103k(0x12f),'aliases':['k'],'usage':a103k(0x135),'shortDesc':a103k(0x142),'validOpts':['type'],'examples':['maka\x20g:kit\x20--type=map',a103k(0x13c)]},async function(a,b){const l=a103k;try{const c=this[l(0x149)]['getProjectConfig']();this['fsi'][l(0x136)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x133)]),'fileName':paramCase(b[m(0x133)]),'camelCase':camelCase(b[m(0x133)]),'type':b[m(0x13f)],'engine':c[m(0x145)]['js'],'noRename':!![]},f=['leaflet-map','login'];if(f[m(0x13a)](d[m(0x13f)])<0x0){const g=d[m(0x13f)]?d[m(0x13f)]:m(0x13d);Log[m(0x148)](m(0x137)+g+m(0x131));return;}b[m(0x13f)]==='map'&&Log[m(0x12c)](m(0x130)),b[m(0x13f)]===m(0x12d)&&Log[m(0x12c)]('NIE');});}catch(d){Log[l(0x148)](d);}});
@@ -1 +1 @@
1
- const a103q=a103d;(function(a,b){const o=a103d,c=a();while(!![]){try{const d=parseInt(o(0x152))/0x1*(-parseInt(o(0x14c))/0x2)+-parseInt(o(0x150))/0x3+-parseInt(o(0x116))/0x4+-parseInt(o(0x112))/0x5*(-parseInt(o(0x146))/0x6)+-parseInt(o(0x145))/0x7*(-parseInt(o(0x110))/0x8)+parseInt(o(0x128))/0x9*(parseInt(o(0x10f))/0xa)+parseInt(o(0x11d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x553a5));const a103b=(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;};}()),a103a=a103b(this,function(){const p=a103d;return a103a[p(0x14d)]()[p(0x12a)]('(((.+)+)+)+$')[p(0x14d)]()[p(0x13e)](a103a)[p(0x12a)]('(((.+)+)+)+$');});a103a();import a103e from'path';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x10b;let f=c[d];return f;},a103d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a103c(){const t=['react','\x20}\x20from\x20\x27','pathFromApp','10397926uHbrle','relative','.app-tests.js','withValue','withHook','warn','api','import\x20{\x20','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','className','string','2133XYRdwl','component/component.js','search','withTranslations','setTemplate','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','resourceName','checkNpmPackage','hook/hook.js','client','startup','/imports/ui/layouts','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','test','graphql','templates.js','import\x20\x27','rewriteDestinationPathForEngine','fsi','injectAtEndOfFile','installNpmPackage','export\x20{\x20','constructor','layout','Scaffolding\x20for\x20a\x20React\x20Layout.','theme','tsx','injectAtBeginningOfFile','imports','154630FyaZuK','30QhZvzn','maka\x20g:layout\x20mobile/iPhone8','engines','import\x20\x27./','lib','dir','25136DbgcCc','toString','template','.js','1979484XaIuWL','.css','55BQKFAj','test/test.js','none','withHooks','fileName','23290srEjdN','176QaRCBu','features','87940BzQYNO','\x20};\x0a','ssr','ramda','1483992JYfkPr','true','\x27;\x0a','css'];a103c=function(){return t;};return a103c();}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator['create']({'name':a103q(0x13f),'aliases':aliases,'usage':a103q(0x125),'shortDesc':a103q(0x140),'validOpts':[],'examples':[a103q(0x147),'maka\x20g:l\x20web/safari']},function(a,b){const r=a103q,c=r(0x133),d=this['fsi']['findAppDirectory'](),e=this[r(0x13a)][r(0x11c)]({'pathParts':[c,b[r(0x14b)],paramCase(b[r(0x12e)]),paramCase(b[r(0x12e)])]}),f=this[r(0x13a)]['getProjectConfig']();this[r(0x13a)][r(0x120)](f,()=>{const s=r;typeof f[s(0x14e)]['test']==='string'&&(f[s(0x14e)][s(0x135)]=f[s(0x14e)]['test']===s(0x117)?!![]:![],this[s(0x13a)][s(0x12c)](s(0x135),f[s(0x14e)][s(0x135)]));typeof f[s(0x14e)][s(0x119)]==='string'&&(f[s(0x14e)]['css']=f[s(0x14e)]['css']===s(0x117)?!![]:![],this['fsi'][s(0x12c)]('css',f[s(0x14e)][s(0x119)]));typeof f['template']['js']===s(0x127)&&(f[s(0x14e)]['js']=f[s(0x14e)]['js']===s(0x117)?!![]:![],this[s(0x13a)][s(0x12c)]('js',f[s(0x14e)]['js']));!f[s(0x111)]&&(f[s(0x111)]={});const g=b['_']?b['_'][0x0]['split'](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this['checkNpmPackage'](s(0x115))&&(Log['warn'](s(0x134)),this[s(0x13a)][s(0x13c)](s(0x115),{'cwd':d}));if(h&&!this[s(0x12f)](s(0x11a))){Log[s(0x122)](s(0x12d));return;}const i={'name':pascalCase(b[s(0x12e)]),'myPath':a103e[s(0x11e)](this[s(0x13a)]['pathFromProject']({}),e),'cssCaseName':paramCase(b[s(0x12e)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[s(0x12e)]),'fileName':paramCase(b[s(0x12e)]),'graphql':f[s(0x148)][s(0x136)],'features':f[s(0x111)],'client':f[s(0x148)][s(0x131)],'api':f[s(0x148)][s(0x123)],'ssr':f[s(0x148)][s(0x114)],'test':f['engines'][s(0x135)],'theme':f['engines'][s(0x141)],'isComponent':![],'isLayout':!![],'withTranslations':f[s(0x111)][s(0x12b)]};f[s(0x111)]?.[s(0x10d)]||b[s(0x121)]?this[s(0x13a)][s(0x14e)]({'srcPath':s(0x130),'destPath':e+'.js','framework':s(0x11a),'context':i,'config':f}):this['fsi'][s(0x14e)]({'srcPath':s(0x129),'destPath':e+s(0x14f),'framework':'react','context':i,'config':f});f[s(0x148)]['test']!==s(0x10c)&&this[s(0x13a)][s(0x14e)]({'srcPath':s(0x10b),'destPath':e+s(0x11f),'framework':s(0x11a),'context':i,'config':f});f[s(0x14e)]['css']&&(this[s(0x13a)][s(0x14e)]({'srcPath':'template/template.css','destPath':e+s(0x151),'context':Object['assign']({},i,{'className':paramCase(b[s(0x12e)])}),'config':f}),this[s(0x13a)][s(0x143)]({'filePath':e+'.'+f[s(0x148)]['js'],'content':s(0x149)+i['fileName']+'.'+f[s(0x148)][s(0x119)]+'\x27;'}));const j=b[s(0x14b)]?'/'+b[s(0x14b)]+'/':'/',k=''+c+j+i[s(0x10e)]+'/'+i[s(0x10e)];let l;if(f[s(0x148)]['ssr']===s(0x117)){const m=this['fsi']['pathFromApp']({'pathParts':['imports',s(0x132),s(0x14a),s(0x137)]});l=this[s(0x13a)][s(0x139)]({'pathParts':[m],'config':f});}else{const n=this[s(0x13a)][s(0x11c)]({'pathParts':[s(0x144),'startup',s(0x131),s(0x137)]});l=this[s(0x13a)][s(0x139)]({'pathParts':[n],'config':f});}f[s(0x148)][s(0x131)]===s(0x11a)?(f[s(0x148)]['js']===s(0x142)?this[s(0x13a)][s(0x143)]({'filePath':l,'content':'import\x20{\x20'+i[s(0x126)]+s(0x11b)+k+s(0x118)}):this['fsi'][s(0x143)]({'filePath':l,'content':s(0x124)+i[s(0x126)]+s(0x11b)+k+'.'+f[s(0x148)]['js']+s(0x118)}),this[s(0x13a)][s(0x13b)]({'filePath':l,'content':s(0x13d)+i['className']+s(0x113)})):this[s(0x13a)][s(0x13b)]({'filePath':l,'content':s(0x138)+k+'.'+f['engines']['js']+'\x27;\x0a'});});});
1
+ const a104r=a104d;(function(a,b){const o=a104d,c=a();while(!![]){try{const d=-parseInt(o(0xb8))/0x1*(-parseInt(o(0xbc))/0x2)+parseInt(o(0x75))/0x3+-parseInt(o(0x8c))/0x4*(parseInt(o(0xa3))/0x5)+parseInt(o(0x78))/0x6+parseInt(o(0x89))/0x7*(parseInt(o(0x99))/0x8)+-parseInt(o(0x85))/0x9*(-parseInt(o(0x7c))/0xa)+-parseInt(o(0xac))/0xb*(parseInt(o(0x7b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x9fa35));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a104d;if(c){const e=c[p(0x9a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const q=a104d;return a104a[q(0xb0)]()[q(0x7a)](q(0x8b))[q(0xb0)]()[q(0x9f)](a104a)[q(0x7a)]('(((.+)+)+)+$');});function a104c(){const u=['import\x20\x27./','create','template/template.css','getProjectConfig','engines','api','5lizrYt','dir','string','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','388328pdHsRT','template','rewriteDestinationPathForEngine','injectAtBeginningOfFile','setTemplate','pathFromApp','405240qkASbB','import\x20\x27','fileName','3386058gHIbJS','\x20}\x20from\x20\x27','search','2083656vQZrQN','5698540jPUrer','none','tsx','hook/hook.js','maka\x20g:layout\x20mobile/iPhone8','.app-tests.js','component/component.js','graphql','className','9mqiBtq','true','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','fsi','63JaVBbp','injectAtEndOfFile','(((.+)+)+)+$','92XKxojl','resourceName','/imports/ui/layouts','findAppDirectory','\x20};\x0a','css','ssr','startup','ramda','.css','test','.js','features','394032kyvkXx','apply','split','layout','includes','imports','constructor','warn','export\x20{\x20','client','252460wGzvaL','relative','lib','withTranslations','test/test.js','checkNpmPackage','pathFromProject','withHook','import\x20{\x20','55fKrEpf','assign','react','\x27;\x0a','toString','templates.js'];a104c=function(){return u;};return a104c();}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'];function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x72;let f=c[d];return f;},a104d(a,b);}Generator[a104r(0xb3)]({'name':a104r(0x9c),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[],'examples':[a104r(0x80),'maka\x20g:l\x20web/safari']},function(a,b){const s=a104r,c=s(0x8e),d=this[s(0x88)][s(0x8f)](),e=this['fsi'][s(0x74)]({'pathParts':[c,b[s(0xb9)],paramCase(b[s(0x8d)]),paramCase(b[s(0x8d)])]}),f=this['fsi'][s(0xb5)]();this[s(0x88)]['withValue'](f,()=>{const t=s;typeof f['template'][t(0x96)]===t(0xba)&&(f['template']['test']=f[t(0xbd)][t(0x96)]==='true'?!![]:![],this[t(0x88)][t(0x73)](t(0x96),f[t(0xbd)]['test']));typeof f[t(0xbd)][t(0x91)]===t(0xba)&&(f['template'][t(0x91)]=f[t(0xbd)][t(0x91)]===t(0x86)?!![]:![],this[t(0x88)][t(0x73)]('css',f[t(0xbd)][t(0x91)]));typeof f['template']['js']==='string'&&(f[t(0xbd)]['js']=f[t(0xbd)]['js']===t(0x86)?!![]:![],this[t(0x88)]['setTemplate']('js',f[t(0xbd)]['js']));!f['features']&&(f[t(0x98)]={});const g=b['_']?b['_'][0x0][t(0x9b)](':')[0x1]:![],h=b['_']&&aliases[t(0x9d)](g);h&&!this[t(0xa8)]('ramda')&&(Log['warn'](t(0x87)),this[t(0x88)]['installNpmPackage'](t(0x94),{'cwd':d}));if(h&&!this[t(0xa8)](t(0xae))){Log[t(0xa0)](t(0xbb));return;}const i={'name':pascalCase(b['resourceName']),'myPath':a104e[t(0xa4)](this['fsi'][t(0xa9)]({}),e),'cssCaseName':paramCase(b[t(0x8d)]),'className':pascalCase(b[t(0x8d)]),'camelCaseName':camelCase(b[t(0x8d)]),'fileName':paramCase(b[t(0x8d)]),'graphql':f['engines'][t(0x83)],'features':f[t(0x98)],'client':f[t(0xb6)][t(0xa2)],'api':f['engines'][t(0xb7)],'ssr':f[t(0xb6)][t(0x92)],'test':f[t(0xb6)][t(0x96)],'theme':f[t(0xb6)]['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x98)][t(0xa6)]};f['features']?.['withHooks']||b[t(0xaa)]?this['fsi'][t(0xbd)]({'srcPath':t(0x7f),'destPath':e+'.js','framework':t(0xae),'context':i,'config':f}):this['fsi'][t(0xbd)]({'srcPath':t(0x82),'destPath':e+t(0x97),'framework':t(0xae),'context':i,'config':f});f[t(0xb6)][t(0x96)]!==t(0x7d)&&this[t(0x88)][t(0xbd)]({'srcPath':t(0xa7),'destPath':e+t(0x81),'framework':'react','context':i,'config':f});f[t(0xbd)][t(0x91)]&&(this[t(0x88)][t(0xbd)]({'srcPath':t(0xb4),'destPath':e+t(0x95),'context':Object[t(0xad)]({},i,{'className':paramCase(b[t(0x8d)])}),'config':f}),this['fsi'][t(0x72)]({'filePath':e+'.'+f[t(0xb6)]['js'],'content':t(0xb2)+i['fileName']+'.'+f[t(0xb6)]['css']+'\x27;'}));const j=b['dir']?'/'+b[t(0xb9)]+'/':'/',k=''+c+j+i[t(0x77)]+'/'+i[t(0x77)];let l;if(f[t(0xb6)][t(0x92)]===t(0x86)){const m=this[t(0x88)][t(0x74)]({'pathParts':[t(0x9e),t(0x93),t(0xa5),t(0xb1)]});l=this[t(0x88)][t(0xbe)]({'pathParts':[m],'config':f});}else{const n=this['fsi'][t(0x74)]({'pathParts':[t(0x9e),t(0x93),t(0xa2),t(0xb1)]});l=this[t(0x88)][t(0xbe)]({'pathParts':[n],'config':f});}f[t(0xb6)]['client']==='react'?(f[t(0xb6)]['js']===t(0x7e)?this[t(0x88)][t(0x72)]({'filePath':l,'content':t(0xab)+i[t(0x84)]+t(0x79)+k+t(0xaf)}):this[t(0x88)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0xab)+i[t(0x84)]+t(0x79)+k+'.'+f[t(0xb6)]['js']+'\x27;\x0a'}),this['fsi'][t(0x8a)]({'filePath':l,'content':t(0xa1)+i[t(0x84)]+t(0x90)})):this[t(0x88)]['injectAtEndOfFile']({'filePath':l,'content':t(0x76)+k+'.'+f[t(0xb6)]['js']+t(0xaf)});});});
@@ -1 +1 @@
1
- function a104c(){const j=['40CZbVHa','3097262kyMMXT','3148956fPaejb','1733643CQMAfJ','search','2612332ZCXCzr','4481360yutYhs','toString','(((.+)+)+)+$','Maka!','maka','constructor','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','maka\x20generate:api\x20Trucks','maka\x20g:hook\x20cool-hook','\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','7322VknCGV','apply','801117bOIkMk','5BVDqne'];a104c=function(){return j;};return a104c();}function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1af;let f=c[d];return f;},a104d(a,b);}const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=-parseInt(f(0x1b9))/0x1*(-parseInt(f(0x1bd))/0x2)+-parseInt(f(0x1c0))/0x3+-parseInt(f(0x1c2))/0x4*(parseInt(f(0x1bc))/0x5)+parseInt(f(0x1bf))/0x6+parseInt(f(0x1be))/0x7+parseInt(f(0x1af))/0x8+-parseInt(f(0x1bb))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x56685));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x1ba)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a[h(0x1b0)]()[h(0x1c1)](h(0x1b1))[h(0x1b0)]()[h(0x1b4)](a104a)[h(0x1c1)](h(0x1b1));});a104a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a104i(0x1b3),'shortDesc':a104i(0x1b2),'validOpts':[],'description':a104i(0x1b8),'usage':a104i(0x1b5),'examples':[a104i(0x1b6),a104i(0x1b7)]},function(){return null;});export default MakaGen;
1
+ const a105i=a105d;(function(a,b){const f=a105d,c=a();while(!![]){try{const d=parseInt(f(0x103))/0x1+-parseInt(f(0xfe))/0x2*(-parseInt(f(0xfb))/0x3)+-parseInt(f(0xfc))/0x4*(parseInt(f(0x107))/0x5)+parseInt(f(0x10b))/0x6+parseInt(f(0xfd))/0x7*(parseInt(f(0x104))/0x8)+parseInt(f(0x105))/0x9+-parseInt(f(0x102))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x94df2));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a105d;if(c){const e=c[g(0x10a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const h=a105d;return a105a[h(0x101)]()['search'](h(0x100))[h(0x101)]()[h(0xff)](a105a)['search']('(((.+)+)+)+$');});a105a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a105i(0x108),'shortDesc':a105i(0x106),'validOpts':[],'description':a105i(0x10c),'usage':'maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','examples':[a105i(0x109),'maka\x20g:hook\x20cool-hook']},function(){return null;});function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0xfb;let f=c[d];return f;},a105d(a,b);}function a105c(){const j=['90GdAFeY','constructor','(((.+)+)+)+$','toString','34713860zcnpWU','1077776LgsaQN','16efYCqz','10742679uNXQsr','Maka!','357515icMQiT','maka','maka\x20generate:api\x20Trucks','apply','4707912UfuHxX','\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','69693ajHULv','24hfHwPc','1430548aJikRR'];a105c=function(){return j;};return a105c();}export default MakaGen;
@@ -1 +1 @@
1
- const a105n=a105d;function a105c(){const q=['57725MuHNLY','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','95tjYXGe','create','18RJmepi','resourceName','4244298DhyQwO','apply','index.','-rpc-method.','warn','check','engines','search','checkMeteorPackage','-rpc-method\x27;','startup','appPathPrefix','fsi','7079149SEqTGN','method','maka\x20{generate,\x20g}:{method,\x20m}\x20name','270290jgMZuo','imports','2KrLhkT','getProjectConfig','check\x20ddp-rate-limiter\x20mdg:validated-method','dir','2207170aqyrdr','import\x20\x27./methods','maka\x20g:method\x20todos','161972aGYbts','toString','16oZelzo','withValue','(((.+)+)+)+$','685167oAOkyx','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','methods','error'];a105c=function(){return q;};return a105c();}(function(a,b){const k=a105d,c=a();while(!![]){try{const d=-parseInt(k(0x1a0))/0x1*(parseInt(k(0x1b8))/0x2)+parseInt(k(0x19c))/0x3+-parseInt(k(0x197))/0x4*(-parseInt(k(0x1a2))/0x5)+parseInt(k(0x1a6))/0x6+-parseInt(k(0x194))/0x7*(parseInt(k(0x199))/0x8)+parseInt(k(0x1a4))/0x9*(parseInt(k(0x1b6))/0xa)+-parseInt(k(0x1b3))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x6851d));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a105d;if(c){const e=c[l(0x1a7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const m=a105d;return a105a[m(0x198)]()[m(0x1ad)](m(0x19b))[m(0x198)]()['constructor'](a105a)[m(0x1ad)](m(0x19b));});a105a();import{Generator}from'../generator.js';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x192;let f=c[d];return f;},a105d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a105n(0x1a3)]({'name':a105n(0x1b4),'aliases':['m'],'usage':a105n(0x1b5),'checkWhere':!![],'shortDesc':a105n(0x19d),'validOpts':['dir'],'examples':[a105n(0x196)]},function(a,b){const o=a105n;try{const c=this[o(0x1b2)][o(0x1b9)]();this[o(0x1b2)][o(0x19a)](c,async()=>{const p=o,d=paramCase(b[p(0x1a5)]),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b[p(0x1a5)]),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c[p(0x1ac)]['js']==='tsx'&&(g='ts');const h=this[p(0x1b2)]['pathFromApp']({});(!this['fsi'][p(0x1ae)](p(0x1ab))||!this[p(0x1b2)]['checkMeteorPackage']('ddp-rate-limiter')||!this[p(0x1b2)][p(0x1ae)]('mdg:validated-method'))&&(Log[p(0x1aa)](p(0x1a1)),this[p(0x1b2)]['installMeteorPackage'](p(0x192),{'cwd':h}));this[p(0x1b2)]['template']({'srcPath':'method/method.js','destPath':this[p(0x1b2)]['pathFromApp']({'pathParts':[p(0x1b7),p(0x1b0),b[p(0x1b1)],p(0x19e),b[p(0x193)],d+p(0x1a9)+g]}),'context':f,'config':c});const i=b[p(0x193)]?'/'+b['dir']+'/':'/',j=this[p(0x1b2)]['pathFromApp']({'pathParts':[p(0x1b7),p(0x1b0),b['appPathPrefix'],p(0x1a8)+c[p(0x1ac)]['js']]});this['fsi']['injectAtEndOfFile']({'filePath':j,'content':p(0x195)+i+d+p(0x1af)});});}catch(d){Log[o(0x19f)](d);}});
1
+ const a106n=a106d;(function(a,b){const k=a106d,c=a();while(!![]){try{const d=parseInt(k(0x1d8))/0x1*(-parseInt(k(0x1b7))/0x2)+-parseInt(k(0x1bd))/0x3+parseInt(k(0x1ba))/0x4+parseInt(k(0x1c4))/0x5*(-parseInt(k(0x1d7))/0x6)+parseInt(k(0x1b3))/0x7*(parseInt(k(0x1cf))/0x8)+-parseInt(k(0x1b0))/0x9+parseInt(k(0x1d6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xd5629));function a106c(){const q=['template','appPathPrefix','methods','startup','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','565ECWDvO','create','tsx','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','withValue','dir','pathFromApp','resourceName','method/method.js','getProjectConfig','imports','10776GlXzsd','warn','check\x20ddp-rate-limiter\x20mdg:validated-method','injectAtEndOfFile','(((.+)+)+)+$','error','-rpc-method\x27;','38353990EmhJry','47730RMTBtd','48zevgAG','13202595gKjQld','fsi','installMeteorPackage','1925dBKEGe','search','checkMeteorPackage','toString','52160CgWAGJ','check','ddp-rate-limiter','6314176jwxISw','method','engines','3877899MVUonV','apply'];a106c=function(){return q;};return a106c();}const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a106d;if(c){const e=c[l(0x1be)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const m=a106d;return a106a[m(0x1b6)]()[m(0x1b4)](m(0x1d3))['toString']()['constructor'](a106a)[m(0x1b4)](m(0x1d3));});a106a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x1b0;let f=c[d];return f;},a106d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a106n(0x1c5)]({'name':a106n(0x1bb),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':a106n(0x1c3),'validOpts':[a106n(0x1c9)],'examples':['maka\x20g:method\x20todos']},function(a,b){const o=a106n;try{const c=this[o(0x1b1)][o(0x1cd)]();this[o(0x1b1)][o(0x1c8)](c,async()=>{const p=o,d=paramCase(b[p(0x1cb)]),f={'name':b[p(0x1cb)],'fileName':d,'className':pascalCase(b[p(0x1cb)]),'camelCase':camelCase(b[p(0x1cb)]),'noRename':!![]};let g='js';c['engines']['js']===p(0x1c6)&&(g='ts');const h=this['fsi'][p(0x1ca)]({});(!this[p(0x1b1)][p(0x1b5)](p(0x1b8))||!this[p(0x1b1)][p(0x1b5)](p(0x1b9))||!this[p(0x1b1)][p(0x1b5)]('mdg:validated-method'))&&(Log[p(0x1d0)](p(0x1c7)),this['fsi'][p(0x1b2)](p(0x1d1),{'cwd':h}));this[p(0x1b1)][p(0x1bf)]({'srcPath':p(0x1cc),'destPath':this['fsi'][p(0x1ca)]({'pathParts':[p(0x1ce),'startup',b[p(0x1c0)],p(0x1c1),b[p(0x1c9)],d+'-rpc-method.'+g]}),'context':f,'config':c});const i=b[p(0x1c9)]?'/'+b[p(0x1c9)]+'/':'/',j=this[p(0x1b1)][p(0x1ca)]({'pathParts':[p(0x1ce),p(0x1c2),b[p(0x1c0)],'index.'+c[p(0x1bc)]['js']]});this[p(0x1b1)][p(0x1d2)]({'filePath':j,'content':'import\x20\x27./methods'+i+d+p(0x1d5)});});}catch(d){Log[o(0x1d4)](d);}});
@@ -1 +1 @@
1
- const a106o=a106d;function a106c(){const s=['client','1088349cQEcFy','7hSqmwz','pathFromProject','forEach','4458280iDGjCu','(((.+)+)+)+$','relative','component','getProjectConfig','1143918pvLoZd','layout','/package.js','.js','package','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','12Dbsrmw','withValue','11656539RaJLZl','apply','package/package.js','store','theme','4169552kVeiaT','hasOwnProperty','engines','toString','template/template.js','dir','noRename','constructor','tests/server','package/','search','pathFromAppWithNoReWrite','graphql','5103816xdLMVX','package.js','resourceName','packages','fsi','features','tests/client','1PQwDAt','29989440xyhoeM','template','/client/'];a106c=function(){return s;};return a106c();}(function(a,b){const l=a106d,c=a();while(!![]){try{const d=-parseInt(l(0x10b))/0x1*(-parseInt(l(0x119))/0x2)+-parseInt(l(0x110))/0x3*(parseInt(l(0x11f))/0x4)+parseInt(l(0x114))/0x5+-parseInt(l(0x104))/0x6+parseInt(l(0x111))/0x7*(-parseInt(l(0x126))/0x8)+-parseInt(l(0x121))/0x9+parseInt(l(0x10c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xaca89));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a106d;if(c){const e=c[m(0x122)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const n=a106d;return a106a[n(0x129)]()[n(0x130)](n(0x115))['toString']()[n(0x12d)](a106a)[n(0x130)](n(0x115));});a106a();import a106e from'path';import{Generator}from'../generator.js';function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x102;let f=c[d];return f;},a106d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a106o(0x11d),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':a106o(0x11e),'validOpts':[a106o(0x12b)],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const p=a106o,c=paramCase(b[p(0x106)]),d=this[p(0x108)]['pathFromApp']({'pathParts':['packages',b['dir'],c]}),e=this[p(0x108)][p(0x102)]({'pathParts':[p(0x107),b['dir'],c,p(0x105)]}),f=this[p(0x108)][p(0x118)]();this[p(0x108)][p(0x120)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x106)]),'myPath':a106e[q(0x116)](this[q(0x108)][q(0x112)]({}),d),'cssCaseName':paramCase(b[q(0x106)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0x106)]),'fileName':c,'client':f[q(0x128)][q(0x10f)],'graphql':f[q(0x128)][q(0x103)],'ssr':f[q(0x128)]['ssr'],'isComponent':b[q(0x127)](q(0x117)),'isLayout':b[q(0x127)](q(0x11a)),'isStore':b[q(0x127)](q(0x124)),'features':f[q(0x109)],'noRename':!![],'theme':f[q(0x128)][q(0x125)]};this[q(0x108)][q(0x10d)]({'srcPath':q(0x123),'destPath':e,'context':g,'config':f}),g[q(0x12c)]=![];const h=d+q(0x10e)+c+q(0x11c);this[q(0x108)]['template']({'srcPath':q(0x12a),'destPath':h,'context':g,'config':f});const i=['lib','server',q(0x10a),q(0x12e)];i[q(0x113)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0x11c);this[r(0x108)][r(0x10d)]({'srcPath':r(0x12f)+j+r(0x11b),'destPath':k,'context':g,'config':f});});});});
1
+ const a107o=a107d;function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x166;let f=c[d];return f;},a107d(a,b);}(function(a,b){const l=a107d,c=a();while(!![]){try{const d=-parseInt(l(0x171))/0x1+parseInt(l(0x17d))/0x2*(-parseInt(l(0x176))/0x3)+parseInt(l(0x180))/0x4+parseInt(l(0x190))/0x5+-parseInt(l(0x17a))/0x6*(parseInt(l(0x175))/0x7)+-parseInt(l(0x183))/0x8*(parseInt(l(0x17f))/0x9)+parseInt(l(0x186))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x8e5e0));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a107d;if(c){const e=c[m(0x16a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const n=a107d;return a107a['toString']()[n(0x16b)](n(0x178))[n(0x181)]()[n(0x182)](a107a)['search']('(((.+)+)+)+$');});a107a();import a107e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a107c(){const s=['pathFromApp','component','1044127drnfNN','3ERGKta','features','(((.+)+)+)+$','pathFromAppWithNoReWrite','24ALQELz','.js','create','2253082mnVTvd','packages','215037CVGLRM','766756kqlrgo','toString','constructor','176DZnmvI','lib','fsi','34548800VTPsjF','maka\x20g:package\x20todos:package','hasOwnProperty','tests/client','ssr','resourceName','noRename','withValue','/client/','package/','549890XfgHyI','template/template.js','package','template','pathFromProject','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','tests/server','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','apply','search','/package.js','engines','client','dir','package/package.js','924580yvlSmD','theme'];a107c=function(){return s;};return a107c();}Generator[a107o(0x17c)]({'name':a107o(0x192),'aliases':['p'],'usage':a107o(0x167),'shortDesc':a107o(0x169),'validOpts':['dir'],'examples':[a107o(0x187)]},async function(a,b){const p=a107o,c=paramCase(b[p(0x18b)]),d=this['fsi'][p(0x173)]({'pathParts':[p(0x17e),b[p(0x16f)],c]}),e=this[p(0x185)][p(0x179)]({'pathParts':[p(0x17e),b[p(0x16f)],c,'package.js']}),f=this[p(0x185)]['getProjectConfig']();this['fsi'][p(0x18d)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x18b)]),'myPath':a107e['relative'](this[q(0x185)][q(0x166)]({}),d),'cssCaseName':paramCase(b[q(0x18b)]),'className':pascalCase(b[q(0x18b)]),'camelCaseName':camelCase(b[q(0x18b)]),'fileName':c,'client':f['engines'][q(0x16e)],'graphql':f[q(0x16d)]['graphql'],'ssr':f['engines'][q(0x18a)],'isComponent':b[q(0x188)](q(0x174)),'isLayout':b[q(0x188)]('layout'),'isStore':b[q(0x188)]('store'),'features':f[q(0x177)],'noRename':!![],'theme':f[q(0x16d)][q(0x172)]};this[q(0x185)][q(0x193)]({'srcPath':q(0x170),'destPath':e,'context':g,'config':f}),g[q(0x18c)]=![];const h=d+q(0x18e)+c+q(0x17b);this[q(0x185)][q(0x193)]({'srcPath':q(0x191),'destPath':h,'context':g,'config':f});const i=[q(0x184),'server',q(0x189),q(0x168)];i['forEach'](j=>{const r=q,k=d+'/'+j+'/'+c+r(0x17b);this[r(0x185)][r(0x193)]({'srcPath':r(0x18f)+j+r(0x16c),'destPath':k,'context':g,'config':f});});});});
@@ -1 +1 @@
1
- const a107o=a107d;function a107c(){const r=['pathFromApp','page','ramda','test','test/test.js','client','imports','relative','.css','ssr','import\x20{\x20','dir','className','20678kSoviJ','lib','pathFromProject','string','none','features','withHooks','warn','html','templates.js','checkNpmPackage','installNpmPackage','55305RdujGw','withTranslations','startup','export\x20{\x20','hooks','144914HbMVXk','\x20}\x20from\x20\x27','642800svPsoM','search','fileName','rewriteDestinationPathForEngine','injectAtEndOfFile','resourceName','hook/hook.js','theme','graphql','injectAtBeginningOfFile','setTemplate','fsi','layouts','.html','baseDir','2770mSeGCs','.js','import\x20\x27./','create','vanilla','engines','.app-tests.js','maka\x20g:page\x20todos/todos-item','withHook','toString','165iLyPdk','component/component.js','543150gxLZDO','true','714840QpLRVH','tsx','api','hasOwnProperty','template','css','\x27;\x0a','pages','assign','template/template.css','components','(((.+)+)+)+$','/imports/ui/pages','318bYNDrg','import\x20\x27','96050QRRFER','Updating\x20npm\x20packages\x20...','react'];a107c=function(){return r;};return a107c();}(function(a,b){const m=a107d,c=a();while(!![]){try{const d=parseInt(m(0x1e1))/0x1+-parseInt(m(0x202))/0x2*(parseInt(m(0x1df))/0x3)+parseInt(m(0x215))/0x4+parseInt(m(0x1f2))/0x5+parseInt(m(0x1f0))/0x6*(-parseInt(m(0x213))/0x7)+-parseInt(m(0x1e3))/0x8+-parseInt(m(0x20e))/0x9*(-parseInt(m(0x224))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xa3943));const a107b=(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;};}()),a107a=a107b(this,function(){const n=a107d;return a107a[n(0x1de)]()['search'](n(0x1ee))['toString']()['constructor'](a107a)[n(0x216)](n(0x1ee));});a107a();import a107e from'path';function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x1da;let f=c[d];return f;},a107d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a107o(0x227)]({'name':a107o(0x1f6),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':'Generate\x20a\x20page.','validOpts':[{'name':a107o(0x223),'values':[a107o(0x212),a107o(0x1ed),a107o(0x1ea),a107o(0x221)]},{'name':a107o(0x1dd),'boolFlag':!![]}],'examples':[a107o(0x1dc)]},function(a,b){const p=a107o,c=b[p(0x223)]?'/imports/ui/'+b[p(0x223)]:p(0x1ef),d=this[p(0x220)][p(0x1f5)](b),e=this[p(0x220)][p(0x1f5)]({'pathParts':[c,b[p(0x200)],paramCase(b[p(0x21a)]),paramCase(b['resourceName'])]}),f=this[p(0x220)]['getProjectConfig']();this[p(0x220)]['withValue'](f,()=>{const q=p;typeof f[q(0x1e7)][q(0x20a)]===q(0x205)&&(f[q(0x1e7)][q(0x20a)]=f[q(0x1e7)]['html']==='true'?!![]:![],this[q(0x220)][q(0x21f)]('html',f['template'][q(0x20a)]));typeof f[q(0x1e7)][q(0x1f8)]===q(0x205)&&(f[q(0x1e7)]['test']=f[q(0x1e7)][q(0x1f8)]==='true'?!![]:![],this[q(0x220)][q(0x21f)](q(0x1f8),f['template']['test']));typeof f[q(0x1e7)][q(0x1e8)]===q(0x205)&&(f[q(0x1e7)]['css']=f['template'][q(0x1e8)]===q(0x1e2)?!![]:![],this[q(0x220)][q(0x21f)](q(0x1e8),f[q(0x1e7)][q(0x1e8)]));typeof f['template']['js']===q(0x205)&&(f['template']['js']=f[q(0x1e7)]['js']===q(0x1e2)?!![]:![],this[q(0x220)]['setTemplate']('js',f[q(0x1e7)]['js']));!f[q(0x207)]&&(f[q(0x207)]={});!b['root']&&!this['fsi'][q(0x20c)](q(0x1f7))&&(Log[q(0x209)](q(0x1f3)),this['fsi'][q(0x20d)](q(0x1f7),{'cwd':d}));const g={'name':pascalCase(b['resourceName']),'myPath':a107e[q(0x1fc)](this[q(0x220)][q(0x204)]({}),e),'cssCaseName':paramCase(b[q(0x21a)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0x21a)]),'fileName':paramCase(b[q(0x21a)]),'graphql':f[q(0x1da)][q(0x21d)],'features':f[q(0x207)],'client':f[q(0x1da)][q(0x1fa)],'api':f[q(0x1da)][q(0x1e5)],'ssr':f['engines']['ssr'],'isStore':b[q(0x1e6)]('store'),'isComponent':b[q(0x1e6)]('component'),'isLayout':b[q(0x1e6)]('layout'),'withTranslations':f['features'][q(0x20f)],'test':f[q(0x1da)][q(0x1f8)],'theme':f[q(0x1da)][q(0x21c)]};f[q(0x1e7)][q(0x20a)]&&this['fsi'][q(0x1e7)]({'srcPath':'template/template.html','destPath':e+q(0x222),'context':g,'config':f});f['features']?.[q(0x208)]||b[q(0x1dd)]?this[q(0x220)][q(0x1e7)]({'srcPath':q(0x21b),'destPath':e+q(0x225),'framework':'react','context':g,'config':f}):this[q(0x220)][q(0x1e7)]({'srcPath':q(0x1e0),'destPath':e+'.js','framework':q(0x1f4),'context':g,'config':f});f['engines']['test']!==q(0x206)&&this[q(0x220)][q(0x1e7)]({'srcPath':q(0x1f9),'destPath':e+q(0x1db),'framework':'react','context':g,'config':f});f[q(0x1e7)][q(0x1e8)]&&this[q(0x220)][q(0x1e7)]({'srcPath':q(0x1ec),'destPath':e+q(0x1fd),'context':Object[q(0x1eb)]({},g,{'className':paramCase(b[q(0x21a)])}),'config':f});f['engines'][q(0x1fa)]!==q(0x1f4)&&f['engines']['client']!==q(0x228)?(f[q(0x1e7)]['css']&&this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f[q(0x1da)]['js'],'content':q(0x226)+g[q(0x217)]+'.'+f['engines'][q(0x20a)]+q(0x1e9)+q(0x226)+g[q(0x217)]+'.'+f[q(0x1da)]['css']+'\x27;'}),!f[q(0x1e7)][q(0x1e8)]&&this[q(0x220)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[q(0x1da)]['js'],'content':q(0x226)+g[q(0x217)]+'.'+f[q(0x1da)][q(0x20a)]+'\x27;'})):f[q(0x1e7)][q(0x1e8)]&&this['fsi'][q(0x21e)]({'filePath':e+'.'+f[q(0x1da)]['js'],'content':'import\x20\x27./'+g['fileName']+'.'+f[q(0x1da)][q(0x1e8)]+'\x27;'});const h=b[q(0x200)]?'/'+b[q(0x200)]+'/':'/',i=''+c+h+g[q(0x217)]+'/'+g[q(0x217)];let j;if(f['engines'][q(0x1fe)]==='true'){const k=this[q(0x220)]['pathFromApp']({'pathParts':[q(0x1fb),q(0x210),q(0x203),q(0x20b)]});j=this['fsi'][q(0x218)]({'pathParts':[k],'config':f});}else{const l=this[q(0x220)][q(0x1f5)]({'pathParts':[q(0x1fb),'startup','client',q(0x20b)]});j=this[q(0x220)][q(0x218)]({'pathParts':[l],'config':f});}f[q(0x1da)][q(0x1fa)]===q(0x1f4)?(f[q(0x1da)]['js']===q(0x1e4)?this[q(0x220)][q(0x21e)]({'filePath':j,'content':q(0x1ff)+g[q(0x201)]+q(0x214)+i+'\x27;\x0a'}):this[q(0x220)][q(0x21e)]({'filePath':j,'content':q(0x1ff)+g[q(0x201)]+q(0x214)+i+'.'+f[q(0x1da)]['js']+q(0x1e9)}),this['fsi'][q(0x219)]({'filePath':j,'content':q(0x211)+g[q(0x201)]+'\x20};\x0a'})):this[q(0x220)]['injectAtEndOfFile']({'filePath':j,'content':q(0x1f1)+i+'.'+f[q(0x1da)]['js']+q(0x1e9)});});});
1
+ const a108p=a108d;function a108c(){const s=['/imports/ui/','rewriteDestinationPathForEngine','test','.js','search','(((.+)+)+)+$','fileName','1249995LIHpKo','80rLXwfw','import\x20\x27./','35qZxzag','page','installNpmPackage','lib','tsx','template/template.html','client','fsi','export\x20{\x20','withHook','features','pages','\x27;\x0a','api','withTranslations','ssr','checkNpmPackage','component/component.js','warn','withHooks','true','import\x20{\x20','css','string','startup','baseDir','\x20}\x20from\x20\x27','2997907SItnAb','create','engines','Generate\x20a\x20page.','pathFromProject','template','pathFromApp','layout','ramda','41934rNTKYO','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','className','injectAtEndOfFile','hook/hook.js','234044dtEEGL','maka\x20g:page\x20todos/todos-item','import\x20\x27','apply','root','1mIEbOX','getProjectConfig','react','hasOwnProperty','template/template.css','store','hooks','88QYaIWr','Updating\x20npm\x20packages\x20...','injectAtBeginningOfFile','test/test.js','resourceName','theme','none','templates.js','189432mwYOjT','\x20};\x0a','constructor','1292120hsxiKI','imports','setTemplate','dir','244422ySpgQb','html','graphql','/imports/ui/pages'];a108c=function(){return s;};return a108c();}function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x191;let f=c[d];return f;},a108d(a,b);}(function(a,b){const m=a108d,c=a();while(!![]){try{const d=-parseInt(m(0x1d7))/0x1*(parseInt(m(0x1d2))/0x2)+-parseInt(m(0x1cd))/0x3*(-parseInt(m(0x1de))/0x4)+-parseInt(m(0x1a6))/0x5+-parseInt(m(0x194))/0x6*(-parseInt(m(0x1a9))/0x7)+parseInt(m(0x1a7))/0x8*(parseInt(m(0x19b))/0x9)+parseInt(m(0x197))/0xa+-parseInt(m(0x1c4))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x37532));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a108d;if(c){const e=c[n(0x1d5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const o=a108d;return a108a['toString']()[o(0x1a3)](o(0x1a4))['toString']()[o(0x196)](a108a)['search'](o(0x1a4));});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';const aliases=['p'];Generator[a108p(0x1c5)]({'name':a108p(0x1aa),'aliases':aliases,'usage':a108p(0x1ce),'shortDesc':a108p(0x1c7),'validOpts':[{'name':a108p(0x1c2),'values':[a108p(0x1dd),'components',a108p(0x1b4),'layouts']},{'name':'withHook','boolFlag':!![]}],'examples':[a108p(0x1d3)]},function(a,b){const q=a108p,c=b[q(0x1c2)]?q(0x19f)+b[q(0x1c2)]:q(0x19e),d=this[q(0x1b0)][q(0x1ca)](b),e=this['fsi'][q(0x1ca)]({'pathParts':[c,b['dir'],paramCase(b[q(0x1e2)]),paramCase(b['resourceName'])]}),f=this[q(0x1b0)][q(0x1d8)]();this[q(0x1b0)]['withValue'](f,()=>{const r=q;typeof f['template'][r(0x19c)]===r(0x1c0)&&(f[r(0x1c9)][r(0x19c)]=f['template']['html']===r(0x1bd)?!![]:![],this[r(0x1b0)][r(0x199)](r(0x19c),f[r(0x1c9)][r(0x19c)]));typeof f[r(0x1c9)][r(0x1a1)]===r(0x1c0)&&(f[r(0x1c9)][r(0x1a1)]=f[r(0x1c9)][r(0x1a1)]===r(0x1bd)?!![]:![],this[r(0x1b0)][r(0x199)](r(0x1a1),f[r(0x1c9)][r(0x1a1)]));typeof f[r(0x1c9)][r(0x1bf)]===r(0x1c0)&&(f['template'][r(0x1bf)]=f[r(0x1c9)][r(0x1bf)]==='true'?!![]:![],this[r(0x1b0)][r(0x199)]('css',f[r(0x1c9)][r(0x1bf)]));typeof f['template']['js']==='string'&&(f[r(0x1c9)]['js']=f[r(0x1c9)]['js']===r(0x1bd)?!![]:![],this['fsi'][r(0x199)]('js',f[r(0x1c9)]['js']));!f[r(0x1b3)]&&(f[r(0x1b3)]={});!b[r(0x1d6)]&&!this[r(0x1b0)][r(0x1b9)](r(0x1cc))&&(Log[r(0x1bb)](r(0x1df)),this['fsi'][r(0x1ab)](r(0x1cc),{'cwd':d}));const g={'name':pascalCase(b[r(0x1e2)]),'myPath':a108e['relative'](this['fsi'][r(0x1c8)]({}),e),'cssCaseName':paramCase(b[r(0x1e2)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[r(0x1e2)]),'fileName':paramCase(b[r(0x1e2)]),'graphql':f[r(0x1c6)][r(0x19d)],'features':f[r(0x1b3)],'client':f['engines'][r(0x1af)],'api':f[r(0x1c6)][r(0x1b6)],'ssr':f[r(0x1c6)][r(0x1b8)],'isStore':b[r(0x1da)](r(0x1dc)),'isComponent':b[r(0x1da)]('component'),'isLayout':b[r(0x1da)](r(0x1cb)),'withTranslations':f[r(0x1b3)][r(0x1b7)],'test':f[r(0x1c6)][r(0x1a1)],'theme':f[r(0x1c6)][r(0x191)]};f['template'][r(0x19c)]&&this['fsi'][r(0x1c9)]({'srcPath':r(0x1ae),'destPath':e+'.html','context':g,'config':f});f[r(0x1b3)]?.[r(0x1bc)]||b[r(0x1b2)]?this['fsi'][r(0x1c9)]({'srcPath':r(0x1d1),'destPath':e+'.js','framework':r(0x1d9),'context':g,'config':f}):this['fsi'][r(0x1c9)]({'srcPath':r(0x1ba),'destPath':e+r(0x1a2),'framework':r(0x1d9),'context':g,'config':f});f[r(0x1c6)]['test']!==r(0x192)&&this['fsi'][r(0x1c9)]({'srcPath':r(0x1e1),'destPath':e+'.app-tests.js','framework':r(0x1d9),'context':g,'config':f});f[r(0x1c9)]['css']&&this[r(0x1b0)][r(0x1c9)]({'srcPath':r(0x1db),'destPath':e+'.css','context':Object['assign']({},g,{'className':paramCase(b[r(0x1e2)])}),'config':f});f[r(0x1c6)][r(0x1af)]!==r(0x1d9)&&f[r(0x1c6)][r(0x1af)]!=='vanilla'?(f[r(0x1c9)]['css']&&this[r(0x1b0)][r(0x1e0)]({'filePath':e+'.'+f[r(0x1c6)]['js'],'content':r(0x1a8)+g['fileName']+'.'+f[r(0x1c6)][r(0x19c)]+r(0x1b5)+r(0x1a8)+g[r(0x1a5)]+'.'+f[r(0x1c6)][r(0x1bf)]+'\x27;'}),!f[r(0x1c9)][r(0x1bf)]&&this[r(0x1b0)][r(0x1e0)]({'filePath':e+'.'+f['engines']['js'],'content':r(0x1a8)+g[r(0x1a5)]+'.'+f['engines']['html']+'\x27;'})):f[r(0x1c9)][r(0x1bf)]&&this[r(0x1b0)][r(0x1e0)]({'filePath':e+'.'+f[r(0x1c6)]['js'],'content':r(0x1a8)+g[r(0x1a5)]+'.'+f[r(0x1c6)][r(0x1bf)]+'\x27;'});const h=b[r(0x19a)]?'/'+b[r(0x19a)]+'/':'/',i=''+c+h+g['fileName']+'/'+g[r(0x1a5)];let j;if(f['engines'][r(0x1b8)]===r(0x1bd)){const k=this[r(0x1b0)][r(0x1ca)]({'pathParts':['imports',r(0x1c1),r(0x1ac),r(0x193)]});j=this[r(0x1b0)]['rewriteDestinationPathForEngine']({'pathParts':[k],'config':f});}else{const l=this[r(0x1b0)]['pathFromApp']({'pathParts':[r(0x198),r(0x1c1),r(0x1af),'templates.js']});j=this[r(0x1b0)][r(0x1a0)]({'pathParts':[l],'config':f});}f[r(0x1c6)][r(0x1af)]==='react'?(f['engines']['js']===r(0x1ad)?this[r(0x1b0)]['injectAtBeginningOfFile']({'filePath':j,'content':'import\x20{\x20'+g['className']+r(0x1c3)+i+r(0x1b5)}):this['fsi'][r(0x1e0)]({'filePath':j,'content':r(0x1be)+g[r(0x1cf)]+r(0x1c3)+i+'.'+f[r(0x1c6)]['js']+r(0x1b5)}),this[r(0x1b0)][r(0x1d0)]({'filePath':j,'content':r(0x1b1)+g[r(0x1cf)]+r(0x195)})):this[r(0x1b0)][r(0x1d0)]({'filePath':j,'content':r(0x1d4)+i+'.'+f[r(0x1c6)]['js']+r(0x1b5)});});});
@@ -1 +1 @@
1
- const a108k=a108d;(function(a,b){const h=a108d,c=a();while(!![]){try{const d=parseInt(h(0x1b7))/0x1*(parseInt(h(0x1b6))/0x2)+-parseInt(h(0x1bf))/0x3*(parseInt(h(0x1b0))/0x4)+-parseInt(h(0x1bc))/0x5+parseInt(h(0x1b3))/0x6*(-parseInt(h(0x1bd))/0x7)+parseInt(h(0x1b9))/0x8+-parseInt(h(0x1ad))/0x9*(-parseInt(h(0x1b1))/0xa)+parseInt(h(0x1aa))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x9323d));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a108d;if(c){const e=c[i(0x1bb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const j=a108d;return a108a[j(0x1ae)]()[j(0x1be)](j(0x1b4))[j(0x1ae)]()[j(0x1af)](a108a)[j(0x1be)](j(0x1b4));});function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a108d(a,b);}function a108c(){const n=['apply','5052665abZyIj','7fuBRLo','search','25851lgOqQy','templateContent','10654523WKApzF','withValue','fsi','45bpPFuO','toString','constructor','188WyKAyt','945590mwmAsL','publish','3913044UqzpWH','(((.+)+)+)+$','engines','4vvBymF','456415EKZZcl','resourceName','2529384JRoYvT','publish/publish.'];a108c=function(){return n;};return a108c();}a108a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator['create']({'name':a108k(0x1b2),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const l=a108k,c=this['fsi']['getProjectConfig']();this[l(0x1ac)][l(0x1ab)](c,async()=>{const m=l,d={'name':b['resourceName'],'collection':paramCase(b[m(0x1b8)]),'noRename':!![]};let e='js';c[m(0x1b5)]['js']==='tsx'&&(e='ts');const f=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':['server/publish.'+c[m(0x1b5)]['js']]}),g=this[m(0x1ac)][m(0x1c0)]({'srcPath':m(0x1ba)+e,'context':d,'config':c});this[m(0x1ac)]['injectAtEndOfFile']({'filePath':f,'content':'\x0a'+g});});});
1
+ const a109j=a109d;(function(a,b){const h=a109d,c=a();while(!![]){try{const d=-parseInt(h(0x124))/0x1*(parseInt(h(0x12f))/0x2)+parseInt(h(0x125))/0x3+-parseInt(h(0x11d))/0x4*(-parseInt(h(0x130))/0x5)+parseInt(h(0x123))/0x6*(-parseInt(h(0x121))/0x7)+-parseInt(h(0x126))/0x8+-parseInt(h(0x12a))/0x9+-parseInt(h(0x12e))/0xa*(-parseInt(h(0x11c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xd5960));const a109b=(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;};}()),a109a=a109b(this,function(){const i=a109d;return a109a[i(0x127)]()[i(0x11a)](i(0x11b))[i(0x127)]()[i(0x128)](a109a)[i(0x11a)](i(0x11b));});function a109c(){const m=['maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','4626414XgWKyc','28kKDxcG','461370GsMlbw','4404224oblOzx','toString','constructor','publish','9615510NvVmPF','resourceName','fsi','templateContent','30sPPFCV','102260UJDKBU','3804965hOoUfu','injectAtEndOfFile','engines','create','search','(((.+)+)+)+$','16693457XyfKul','4MqJVJz','getProjectConfig','publish/publish.','tsx','14ClRUwz'];a109c=function(){return m;};return a109c();}function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x117;let f=c[d];return f;},a109d(a,b);}a109a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a109j(0x119)]({'name':a109j(0x129),'aliases':['p'],'usage':a109j(0x122),'shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const k=a109j,c=this[k(0x12c)][k(0x11e)]();this[k(0x12c)]['withValue'](c,async()=>{const l=k,d={'name':b[l(0x12b)],'collection':paramCase(b[l(0x12b)]),'noRename':!![]};let e='js';c[l(0x118)]['js']===l(0x120)&&(e='ts');const f=this[l(0x12c)]['rewriteDestinationPathForEngine']({'pathParts':['server/publish.'+c[l(0x118)]['js']]}),g=this['fsi'][l(0x12d)]({'srcPath':l(0x11f)+e,'context':d,'config':c});this[l(0x12c)][l(0x117)]({'filePath':f,'content':'\x0a'+g});});});