@maka/maka-cli 4.5.47 → 4.5.49

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 (134) 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/jsdoc.js +1 -1
  73. package/bundle/obf/src/commands/lint.js +1 -1
  74. package/bundle/obf/src/commands/login.js +1 -1
  75. package/bundle/obf/src/commands/logout.js +1 -1
  76. package/bundle/obf/src/commands/logs.js +1 -1
  77. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  78. package/bundle/obf/src/commands/murder.js +1 -1
  79. package/bundle/obf/src/commands/proxy.js +1 -1
  80. package/bundle/obf/src/commands/reconfig.js +1 -1
  81. package/bundle/obf/src/commands/run/_index.js +1 -1
  82. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  83. package/bundle/obf/src/commands/run/run.command.js +1 -1
  84. package/bundle/obf/src/commands/set/_index.js +1 -1
  85. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  86. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/set/set.command.js +1 -1
  88. package/bundle/obf/src/commands/ssh.js +1 -1
  89. package/bundle/obf/src/commands/ssl.js +1 -1
  90. package/bundle/obf/src/commands/test.js +1 -1
  91. package/bundle/obf/src/commands/version.js +1 -1
  92. package/bundle/obf/src/error.js +1 -1
  93. package/bundle/obf/src/exec.js +1 -1
  94. package/bundle/obf/src/generator.js +1 -1
  95. package/bundle/obf/src/generators/_index.js +1 -1
  96. package/bundle/obf/src/generators/api.js +1 -1
  97. package/bundle/obf/src/generators/collection.js +1 -1
  98. package/bundle/obf/src/generators/component.js +1 -1
  99. package/bundle/obf/src/generators/config.js +1 -1
  100. package/bundle/obf/src/generators/dbc.js +1 -1
  101. package/bundle/obf/src/generators/dockerfile.js +1 -1
  102. package/bundle/obf/src/generators/hook.js +1 -1
  103. package/bundle/obf/src/generators/kit.js +1 -1
  104. package/bundle/obf/src/generators/layout.js +1 -1
  105. package/bundle/obf/src/generators/maka.gen.js +1 -1
  106. package/bundle/obf/src/generators/methods.js +1 -1
  107. package/bundle/obf/src/generators/package.js +1 -1
  108. package/bundle/obf/src/generators/page.js +1 -1
  109. package/bundle/obf/src/generators/publish.js +1 -1
  110. package/bundle/obf/src/generators/route.js +1 -1
  111. package/bundle/obf/src/generators/service.js +1 -1
  112. package/bundle/obf/src/generators/services/_index.js +1 -1
  113. package/bundle/obf/src/generators/services/openssl.js +1 -1
  114. package/bundle/obf/src/generators/services/translation.js +1 -1
  115. package/bundle/obf/src/maka.js +1 -1
  116. package/bundle/obf/src/tool.js +1 -1
  117. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  118. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  119. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  120. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  121. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  122. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  123. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  124. package/bundle/obf/src/tools/https/https.class.js +1 -1
  125. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  126. package/bundle/obf/src/tools/log/log.class.js +1 -1
  127. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  128. package/bundle/obf/src/tools/options/options.class.js +1 -1
  129. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  130. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  131. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  132. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  133. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  134. package/package.json +1 -1
@@ -1 +1 @@
1
- const a95z=a95d;function a95c(){const C=['server','TypeDefs);\x0a','template','RPC\x20(Methods)','api/typeDefs.js','invoke','No\x20API\x20boundaries\x20selected','constructor','GraphQL','api/methods.js','866495dXfbgj','const','.app-tests.','injectIntoFile','maka\x20g:api\x20Todos','options','api','test','checkbox','index.','rpc-methods.','collection','Verifying\x20meteor\x20package\x20requirements\x20...','apollo','import\x20\x27./register-','withFixtures','-api.','fsi','withGql','imports','typeDefs.','search','5840488qkIHWc','apply','length','checkMeteorPackage','withValue','findGenerator','api/publications.js','792864fdhdnc','\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','error','resolverList.push(','rewriteDestinationPathForEngine','apiAnswers','exit','2rfIeDM','maka:check','api/tests.js','if\x20\x5c(typeList','notice','withRest','push','register-','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','rest','/graphql/typeDefs','startup','api/register-api.js','typeList.push(','dir','resourceName','/graphql/resolvers','graphql','create','withPubs','api/resolvers.js','resolvers.','includes','3513615feeNae','/imports/api','injectAtBeginningOfFile','34332237xRyvjG','Resolvers\x20}\x20from\x20\x27','withMethods','940863KNazeH','28Xrcabp','engines','toString','injectAtEndOfFile','1078798BZhnZo','pathFromApp','(((.+)+)+)+$','installMeteorPackage'];a95c=function(){return C;};return a95c();}(function(a,b){const w=a95d,c=a();while(!![]){try{const d=-parseInt(w(0x1a6))/0x1+-parseInt(w(0x1d8))/0x2*(-parseInt(w(0x1a1))/0x3)+-parseInt(w(0x1a2))/0x4*(parseInt(w(0x1b4))/0x5)+parseInt(w(0x1d1))/0x6+-parseInt(w(0x19b))/0x7+-parseInt(w(0x1ca))/0x8+parseInt(w(0x19e))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0xb3d31));const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a95d;if(c){const e=c[x(0x1cb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const y=a95d;return a95a[y(0x1a4)]()['search'](y(0x1a8))[y(0x1a4)]()[y(0x1b1)](a95a)[y(0x1c9)]('(((.+)+)+)+$');});a95a();import{Generator}from'../generator.js';function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0x196;let f=c[d];return f;},a95d(a,b);}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(0x196)]({'name':a95z(0x1ba),'aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a95z(0x1e0),'validOpts':[a95z(0x1e6)],'examples':[a95z(0x1b8)],'description':a95z(0x1d2)},async function(a,b){const A=a95z;try{const c=this['fsi']['getProjectConfig'](),d=[{'name':A(0x1ad),'value':'withMethods'},{'name':'Fixtures','value':A(0x1c3)},{'name':'Publications','value':A(0x197)}];c[A(0x1a3)][A(0x1ba)]===A(0x1e1)&&d[A(0x1de)]({'name':'REST\x20API','value':A(0x1dd)});c[A(0x1a3)]['graphql']===A(0x1c1)&&d[A(0x1de)]({'name':A(0x1b2),'value':A(0x1c6)});const f={'type':A(0x1bc),'name':A(0x1d6),'message':'API\x20boundaries\x20to\x20create','pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x1b9)](f);g[A(0x1cc)]===0x0&&(Log[A(0x1d3)](A(0x1b0)),process[A(0x1d7)](0x1)),this[A(0x1c5)][A(0x1ce)](c,async()=>{const B=A,h=this['fsi'][B(0x1a7)]({}),i=b[B(0x1e7)],j=paramCase(i),k=camelCase(i),l=b['dir']?'/'+b[B(0x1e6)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c['engines'][B(0x1ba)],'graphql':c['engines']['graphql'],'test':c['engines']['test'],'noRename':!![],'withPubs':g[B(0x19a)](B(0x197)),'withFixtures':g['includes'](B(0x1c3)),'withMethods':g[B(0x19a)](B(0x1a0)),'withRest':g[B(0x19a)]('withRest')};let n='js';c[B(0x1a3)]['js']==='tsx'&&(n='ts');(!this[B(0x1c5)][B(0x1cd)]('maka:rest')||!this[B(0x1c5)][B(0x1cd)](B(0x1d9))||!this[B(0x1c5)][B(0x1cd)]('ddp-rate-limiter')||!this[B(0x1c5)][B(0x1cd)]('mdg:validated-method')||!this['fsi'][B(0x1cd)]('mongo'))&&(Log[B(0x1dc)](B(0x1c0)),await this['fsi'][B(0x1a9)]('maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo',{'cwd':h}));const o=a95e[B(0x1cf)](B(0x1bf));o&&await o[B(0x1af)]([j],{'config':c,'where':B(0x1aa)});c['engines']['api']===B(0x1e1)&&(m['withRest']&&this[B(0x1c5)][B(0x1ac)]({'srcPath':'api/api.js','destPath':this[B(0x1c5)][B(0x1a7)]({'pathParts':[B(0x1c7),B(0x1ba),b['dir'],j,'rest-api.'+n]}),'context':m,'config':c}));m[B(0x1a0)]&&this[B(0x1c5)][B(0x1ac)]({'srcPath':B(0x1b3),'destPath':this[B(0x1c5)][B(0x1a7)]({'pathParts':[B(0x1c7),B(0x1ba),b[B(0x1e6)],j,B(0x1be)+n]}),'context':m,'config':c});m[B(0x1c3)]&&this[B(0x1c5)][B(0x1ac)]({'srcPath':'api/fixtures.js','destPath':this[B(0x1c5)][B(0x1a7)]({'pathParts':['imports',B(0x1ba),b[B(0x1e6)],j,'fixtures.'+n]}),'context':m,'config':c});c[B(0x1a3)][B(0x1bb)]!=='none'&&this[B(0x1c5)][B(0x1ac)]({'srcPath':B(0x1da),'destPath':this['fsi'][B(0x1a7)]({'pathParts':[B(0x1c7),B(0x1ba),b['dir'],j,j+B(0x1b6)+n]}),'context':m,'config':c});m[B(0x197)]&&this[B(0x1c5)]['template']({'srcPath':B(0x1d0),'destPath':this[B(0x1c5)][B(0x1a7)]({'pathParts':[B(0x1c7),'api',b['dir'],j,'publications.'+n]}),'context':m,'config':c});if(c['engines'][B(0x1e9)]===B(0x1c1)){if(g[B(0x19a)](B(0x1c6))){const q=this[B(0x1c5)]['pathFromApp']({'pathParts':['imports',B(0x1e3),B(0x1aa),B(0x1bd)+c[B(0x1a3)]['js']]}),r=this[B(0x1c5)][B(0x1d5)]({'pathParts':[q],'config':c}),s=this['fsi']['pathFromApp']({'pathParts':['imports',B(0x1ba),b['dir'],j,B(0x1e9),B(0x1c8)+n]}),t=B(0x19c)+l+j+B(0x1e2);this['fsi'][B(0x1ac)]({'srcPath':B(0x1ae),'destPath':s,'context':m,'config':c}),this[B(0x1c5)][B(0x19d)]({'filePath':r,'content':'import\x20{\x20typeDefs\x20as\x20'+k+'TypeDefs\x20}\x20from\x20\x27'+t+'\x27;\x0a'}),this[B(0x1c5)][B(0x1b7)]({'filePath':r,'content':B(0x1e5)+k+B(0x1ab),'begin':B(0x1b5),'end':B(0x1db)});const u=this[B(0x1c5)][B(0x1a7)]({'pathParts':['imports','api',b[B(0x1e6)],j,B(0x1e9),B(0x199)+n]}),v=B(0x19c)+l+j+B(0x1e8);this[B(0x1c5)][B(0x1ac)]({'srcPath':B(0x198),'destPath':u,'context':m,'config':c}),this['fsi'][B(0x19d)]({'filePath':r,'content':'\x0aimport\x20{\x20resolvers\x20as\x20'+k+B(0x19f)+v+'\x27;'}),this[B(0x1c5)]['injectIntoFile']({'filePath':r,'content':B(0x1d4)+k+'Resolvers);\x0a\x0a','begin':B(0x1b5),'end':B(0x1db)});}}this['fsi']['template']({'srcPath':B(0x1e4),'destPath':this[B(0x1c5)][B(0x1a7)]({'pathParts':[B(0x1c7),B(0x1e3),'server',B(0x1df)+j+B(0x1c4)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x1c5)][B(0x1a7)]({'pathParts':[B(0x1c7),B(0x1e3),'server',B(0x1bd)+c[B(0x1a3)]['js']]});this[B(0x1c5)][B(0x1a5)]({'filePath':p,'content':B(0x1c2)+j+'-api\x27;'});});}catch(h){console[A(0x1d3)](h),process['exit'](0x0);}});
1
+ const a95z=a95d;(function(a,b){const w=a95d,c=a();while(!![]){try{const d=-parseInt(w(0xf0))/0x1*(parseInt(w(0xfe))/0x2)+-parseInt(w(0xb9))/0x3*(parseInt(w(0xc9))/0x4)+-parseInt(w(0xef))/0x5+-parseInt(w(0xd2))/0x6+parseInt(w(0xaa))/0x7*(parseInt(w(0xe3))/0x8)+parseInt(w(0xfa))/0x9+-parseInt(w(0xfb))/0xa*(-parseInt(w(0xf5))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x4fd89));const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a95d;if(c){const e=c[x(0xcd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const y=a95d;return a95a[y(0xff)]()['search']('(((.+)+)+)+$')['toString']()['constructor'](a95a)[y(0xdd)](y(0xd6));});a95a();function a95c(){const C=['api','api/resolvers.js','withFixtures','create','Fixtures','2404148kBVTNq','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','withPubs','withGql','apply','dir','resourceName','maka\x20{generate,\x20g}:{api}\x20<resource-name>','template','1229886LuISJO','\x0aimport\x20{\x20resolvers\x20as\x20','checkMeteorPackage','includes','(((.+)+)+)+$','graphql','resolverList.push(','maka\x20g:api\x20Todos','withValue','rpc-methods.','-api.','search','pathFromApp','GraphQL','rewriteDestinationPathForEngine','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','api/typeDefs.js','915536kHqfoy','TypeDefs\x20}\x20from\x20\x27','mongo','startup','maka:check','withRest','API\x20boundaries\x20to\x20create','engines','exit','maka:rest','apiAnswers','-api\x27;','2487140ZgIeDn','60089uEAERL','register-','rest','imports','api/tests.js','8906777kYqHoz','TypeDefs);\x0a','api/publications.js','publications.','getProjectConfig','1773756efzOmS','20FTJUot','typeList.push(','options','10KiRWgt','toString','server','\x27;\x0a','test','api/register-api.js','api/api.js','7YDpvfY','No\x20API\x20boundaries\x20selected','invoke','Publications','api/fixtures.js','Resolvers\x20}\x20from\x20\x27','/graphql/typeDefs','const','installMeteorPackage','withMethods','fsi','/imports/api','import\x20{\x20typeDefs\x20as\x20','if\x20\x5c(typeList','index.','3VrXEjg','fixtures.','api/methods.js','injectIntoFile','/graphql/resolvers','push','rest-api.','apollo','error','import\x20\x27./register-','notice'];a95c=function(){return C;};return a95c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0xa9;let f=c[d];return f;},a95d(a,b);}import{Actions}from'../tools/actions/actions.class.js';import a95e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a95z(0xc7)]({'name':a95z(0xc4),'aliases':['a'],'usage':a95z(0xd0),'shortDesc':a95z(0xe1),'validOpts':[a95z(0xce)],'examples':[a95z(0xd9)],'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(0xb4)][A(0xf9)](),d=[{'name':'RPC\x20(Methods)','value':A(0xb3)},{'name':A(0xc8),'value':A(0xc6)},{'name':A(0xad),'value':A(0xcb)}];c[A(0xea)][A(0xc4)]===A(0xf2)&&d['push']({'name':'REST\x20API','value':A(0xe8)});c[A(0xea)][A(0xd7)]==='apollo'&&d[A(0xbe)]({'name':A(0xdf),'value':'withGql'});const f={'type':'checkbox','name':A(0xed),'message':A(0xe9),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0xfd)](f);g['length']===0x0&&(Log['error'](A(0xab)),process[A(0xeb)](0x1)),this[A(0xb4)][A(0xda)](c,async()=>{const B=A,h=this[B(0xb4)]['pathFromApp']({}),i=b[B(0xcf)],j=paramCase(i),k=camelCase(i),l=b[B(0xce)]?'/'+b[B(0xce)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0xea)][B(0xc4)],'graphql':c[B(0xea)][B(0xd7)],'test':c[B(0xea)][B(0x102)],'noRename':!![],'withPubs':g[B(0xd5)](B(0xcb)),'withFixtures':g[B(0xd5)](B(0xc6)),'withMethods':g[B(0xd5)](B(0xb3)),'withRest':g[B(0xd5)](B(0xe8))};let n='js';c[B(0xea)]['js']==='tsx'&&(n='ts');(!this[B(0xb4)][B(0xd4)](B(0xec))||!this['fsi'][B(0xd4)](B(0xe7))||!this[B(0xb4)][B(0xd4)]('ddp-rate-limiter')||!this['fsi'][B(0xd4)]('mdg:validated-method')||!this['fsi'][B(0xd4)](B(0xe5)))&&(Log[B(0xc3)]('Verifying\x20meteor\x20package\x20requirements\x20...'),await this[B(0xb4)][B(0xb2)](B(0xca),{'cwd':h}));const o=a95e['findGenerator']('collection');o&&await o[B(0xac)]([j],{'config':c,'where':'server'});c['engines'][B(0xc4)]==='rest'&&(m[B(0xe8)]&&this['fsi'][B(0xd1)]({'srcPath':B(0xa9),'destPath':this[B(0xb4)][B(0xde)]({'pathParts':['imports',B(0xc4),b[B(0xce)],j,B(0xbf)+n]}),'context':m,'config':c}));m['withMethods']&&this[B(0xb4)][B(0xd1)]({'srcPath':B(0xbb),'destPath':this[B(0xb4)][B(0xde)]({'pathParts':[B(0xf3),B(0xc4),b[B(0xce)],j,B(0xdb)+n]}),'context':m,'config':c});m['withFixtures']&&this['fsi']['template']({'srcPath':B(0xae),'destPath':this[B(0xb4)][B(0xde)]({'pathParts':['imports',B(0xc4),b['dir'],j,B(0xba)+n]}),'context':m,'config':c});c['engines'][B(0x102)]!=='none'&&this[B(0xb4)]['template']({'srcPath':B(0xf4),'destPath':this[B(0xb4)][B(0xde)]({'pathParts':[B(0xf3),'api',b[B(0xce)],j,j+'.app-tests.'+n]}),'context':m,'config':c});m[B(0xcb)]&&this[B(0xb4)][B(0xd1)]({'srcPath':B(0xf7),'destPath':this['fsi'][B(0xde)]({'pathParts':[B(0xf3),B(0xc4),b['dir'],j,B(0xf8)+n]}),'context':m,'config':c});if(c[B(0xea)][B(0xd7)]===B(0xc0)){if(g[B(0xd5)](B(0xcc))){const q=this[B(0xb4)]['pathFromApp']({'pathParts':[B(0xf3),B(0xe6),B(0x100),B(0xb8)+c[B(0xea)]['js']]}),r=this['fsi'][B(0xe0)]({'pathParts':[q],'config':c}),s=this['fsi'][B(0xde)]({'pathParts':[B(0xf3),'api',b[B(0xce)],j,B(0xd7),'typeDefs.'+n]}),t='/imports/api'+l+j+B(0xb0);this[B(0xb4)][B(0xd1)]({'srcPath':B(0xe2),'destPath':s,'context':m,'config':c}),this[B(0xb4)]['injectAtBeginningOfFile']({'filePath':r,'content':B(0xb6)+k+B(0xe4)+t+B(0x101)}),this[B(0xb4)][B(0xbc)]({'filePath':r,'content':B(0xfc)+k+B(0xf6),'begin':B(0xb1),'end':B(0xb7)});const u=this['fsi']['pathFromApp']({'pathParts':['imports',B(0xc4),b[B(0xce)],j,B(0xd7),'resolvers.'+n]}),v=B(0xb5)+l+j+B(0xbd);this[B(0xb4)]['template']({'srcPath':B(0xc5),'destPath':u,'context':m,'config':c}),this[B(0xb4)]['injectAtBeginningOfFile']({'filePath':r,'content':B(0xd3)+k+B(0xaf)+v+'\x27;'}),this[B(0xb4)]['injectIntoFile']({'filePath':r,'content':B(0xd8)+k+'Resolvers);\x0a\x0a','begin':B(0xb1),'end':B(0xb7)});}}this['fsi']['template']({'srcPath':B(0x103),'destPath':this['fsi'][B(0xde)]({'pathParts':[B(0xf3),B(0xe6),'server',B(0xf1)+j+B(0xdc)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0xb4)][B(0xde)]({'pathParts':[B(0xf3),B(0xe6),B(0x100),B(0xb8)+c[B(0xea)]['js']]});this[B(0xb4)]['injectAtEndOfFile']({'filePath':p,'content':B(0xc2)+j+B(0xee)});});}catch(h){console[A(0xc1)](h),process[A(0xeb)](0x0);}});
@@ -1 +1 @@
1
- const a96m=a96d;(function(a,b){const k=a96d,c=a();while(!![]){try{const d=parseInt(k(0x16b))/0x1*(-parseInt(k(0x157))/0x2)+parseInt(k(0x16d))/0x3+-parseInt(k(0x14e))/0x4*(-parseInt(k(0x166))/0x5)+-parseInt(k(0x168))/0x6*(-parseInt(k(0x14a))/0x7)+parseInt(k(0x142))/0x8*(-parseInt(k(0x155))/0x9)+parseInt(k(0x162))/0xa*(-parseInt(k(0x14b))/0xb)+-parseInt(k(0x14f))/0xc*(parseInt(k(0x14c))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0xcfe95));function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x142;let f=c[d];return f;},a96d(a,b);}function a96c(){const p=['5080850pGTifO','installMeteorPackage','where','template','411310jmUerE','toString','24ozdMQp','engines','collection/collection.js','1uuRLdL','dir','3344433cEuhEd','8LRIfOy','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','fsi','startup','(((.+)+)+)+$','test','checkMeteorPackage','imports','1583897qKFjPR','11dsGvKg','142831EEKXzq','col','8mZmSDL','348PwGOdF','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','import\x20\x27./collections','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','notice','maka\x20g:collection\x20todos','352071VOvFdS','collections','933974Nsajjo','mongo','maka:check','none','collection/tests.js','appPathPrefix','search','error','pathFromApp','resourceName','index.'];a96c=function(){return p;};return a96c();}const a96b=(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;};}()),a96a=a96b(this,function(){const l=a96d;return a96a['toString']()[l(0x15d)](l(0x146))[l(0x167)]()['constructor'](a96a)[l(0x15d)](l(0x146));});a96a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':'collection','aliases':[a96m(0x14d)],'usage':a96m(0x150),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':[a96m(0x16c),a96m(0x164)],'description':'\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','examples':[a96m(0x154)]},async function(a,b){const n=a96m;try{const c=this['fsi'][n(0x15f)]({}),d=this[n(0x144)]['getProjectConfig']();this[n(0x144)]['withValue'](d,async()=>{const o=n,f=paramCase(b[o(0x160)]),g={'name':pascalCase(b[o(0x160)]),'collectionName':pascalCase(b[o(0x160)]),'fileName':f,'where':b[o(0x164)],'test':d[o(0x169)]['test'],'noRename':!![]};let h='js';d[o(0x169)]['js']==='tsx'&&(h='ts');!this[o(0x144)][o(0x148)](o(0x158))&&(Log[o(0x153)](o(0x152)),await this[o(0x144)][o(0x163)]('mongo',{'cwd':c}));!this[o(0x144)]['checkMeteorPackage'](o(0x159))&&(Log[o(0x153)](o(0x143)),await this[o(0x144)][o(0x163)](o(0x159),{'cwd':c}));this['fsi'][o(0x165)]({'srcPath':o(0x16a),'destPath':this['fsi'][o(0x15f)]({'pathParts':[o(0x149),o(0x145),b[o(0x15c)],o(0x156),b[o(0x16c)],f+'.'+h]}),'context':g,'config':d});d[o(0x169)][o(0x147)]!==o(0x15a)&&this[o(0x144)][o(0x165)]({'srcPath':o(0x15b),'destPath':this[o(0x144)][o(0x15f)]({'pathParts':[o(0x149),o(0x145),b[o(0x15c)],o(0x156),b[o(0x16c)],f+'.app-tests.'+h]}),'context':g,'config':d});const i=b['dir']?'/'+b['dir']+'/':'/',j=this['fsi'][o(0x15f)]({'pathParts':['imports',o(0x145),b[o(0x15c)],o(0x161)+d[o(0x169)]['js']]});this[o(0x144)]['injectAtEndOfFile']({'filePath':j,'content':o(0x151)+i+f+'\x27;'});});}catch(f){Log[n(0x15e)](f);}});
1
+ const a96n=a96d;(function(a,b){const k=a96d,c=a();while(!![]){try{const d=-parseInt(k(0x1d1))/0x1*(-parseInt(k(0x1de))/0x2)+parseInt(k(0x1d9))/0x3*(parseInt(k(0x1c8))/0x4)+-parseInt(k(0x1c7))/0x5+parseInt(k(0x1e9))/0x6+parseInt(k(0x1e8))/0x7*(parseInt(k(0x1e2))/0x8)+-parseInt(k(0x1cd))/0x9+-parseInt(k(0x1eb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0xd4f65));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a96d;if(c){const e=c[l(0x1c5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const m=a96d;return a96a['toString']()['search'](m(0x1c4))['toString']()[m(0x1da)](a96a)[m(0x1d5)](m(0x1c4));});a96a();function a96c(){const q=['maka:check','appPathPrefix','withValue','collections','mongo','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','(((.+)+)+)+$','apply','imports','4932405frnAyx','8UiYJFR','collection/collection.js','installMeteorPackage','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','engines','5756094zgdxed','template','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','resourceName','29moVBot','test','.app-tests.','injectAtEndOfFile','search','maka\x20g:collection\x20todos','\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','startup','731820KOwXhi','constructor','checkMeteorPackage','import\x20\x27./collections','collection/tests.js','79486eMoFZh','pathFromApp','notice','tsx','9049648bUmZRp','where','collection','fsi','error','dir','7igbdUI','2648358fdSPFa','create','7146860fsBRON'];a96c=function(){return q;};return a96c();}import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x1c4;let f=c[d];return f;},a96d(a,b);}Generator[a96n(0x1ea)]({'name':a96n(0x1e4),'aliases':['col'],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkWhere':!![],'shortDesc':a96n(0x1cb),'validOpts':[a96n(0x1e7),a96n(0x1e3)],'description':a96n(0x1d7),'examples':[a96n(0x1d6)]},async function(a,b){const o=a96n;try{const c=this[o(0x1e5)][o(0x1df)]({}),d=this[o(0x1e5)]['getProjectConfig']();this[o(0x1e5)][o(0x1ee)](d,async()=>{const p=o,f=paramCase(b[p(0x1d0)]),g={'name':pascalCase(b[p(0x1d0)]),'collectionName':pascalCase(b['resourceName']),'fileName':f,'where':b['where'],'test':d[p(0x1cc)][p(0x1d2)],'noRename':!![]};let h='js';d['engines']['js']===p(0x1e1)&&(h='ts');!this['fsi'][p(0x1db)]('mongo')&&(Log[p(0x1e0)](p(0x1f1)),await this['fsi'][p(0x1ca)](p(0x1f0),{'cwd':c}));!this[p(0x1e5)]['checkMeteorPackage'](p(0x1ec))&&(Log[p(0x1e0)](p(0x1cf)),await this['fsi'][p(0x1ca)](p(0x1ec),{'cwd':c}));this[p(0x1e5)][p(0x1ce)]({'srcPath':p(0x1c9),'destPath':this[p(0x1e5)]['pathFromApp']({'pathParts':[p(0x1c6),p(0x1d8),b[p(0x1ed)],p(0x1ef),b[p(0x1e7)],f+'.'+h]}),'context':g,'config':d});d[p(0x1cc)][p(0x1d2)]!=='none'&&this[p(0x1e5)]['template']({'srcPath':p(0x1dd),'destPath':this['fsi'][p(0x1df)]({'pathParts':['imports','startup',b[p(0x1ed)],p(0x1ef),b[p(0x1e7)],f+p(0x1d3)+h]}),'context':g,'config':d});const i=b['dir']?'/'+b[p(0x1e7)]+'/':'/',j=this[p(0x1e5)][p(0x1df)]({'pathParts':[p(0x1c6),p(0x1d8),b['appPathPrefix'],'index.'+d[p(0x1cc)]['js']]});this[p(0x1e5)][p(0x1d4)]({'filePath':j,'content':p(0x1dc)+i+f+'\x27;'});});}catch(f){Log[o(0x1e6)](f);}});
@@ -1 +1 @@
1
- const a97q=a97d;(function(a,b){const n=a97d,c=a();while(!![]){try{const d=-parseInt(n(0x189))/0x1+-parseInt(n(0x158))/0x2*(-parseInt(n(0x162))/0x3)+parseInt(n(0x183))/0x4*(parseInt(n(0x18b))/0x5)+-parseInt(n(0x150))/0x6+-parseInt(n(0x170))/0x7*(parseInt(n(0x18e))/0x8)+-parseInt(n(0x18f))/0x9+-parseInt(n(0x17b))/0xa*(-parseInt(n(0x18c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x4ca19));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a97d;if(c){const e=c[o(0x14b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const p=a97d;return a97a[p(0x182)]()['search']('(((.+)+)+)+$')[p(0x182)]()[p(0x155)](a97a)[p(0x172)](p(0x193));});a97a();import a97e from'path';import{camelCase,paramCase,pascalCase}from'change-case';function a97c(){const t=['4352283MBIQRE','engines','injectAtBeginningOfFile','installNpmPackage','(((.+)+)+)+$','apply','test/test.js','component/component.js','create','fileName','1802970rygaGl','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','client','import\x20\x27','injectAtEndOfFile','constructor','/imports/ui/components','resourceName','1258PRFODb','pathFromProject','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','templates.js','comp','template','theme','css','export\x20{\x20','maka\x20g:comp\x20todos/todos-item','1527cpcAlL','className','true','.css','string','\x20};\x0a','graphql','relative','react','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','features','.js','baseDir','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','3380328AXTzLH','\x20}\x20from\x20\x27','search','checkNpmPackage','fsi','test','tsx','hooks','none','rewriteDestinationPathForEngine','dir','360BwwNFT','ramda','import\x20{\x20','cssCaseName','components','imports','startup','toString','317984oeYvBS','withValue','\x27;\x0a','withTranslations','setTemplate','pathFromApp','478782SHmLig','root','25JIOASG','410058VVjHwu','ssr','8tpTTrw'];a97c=function(){return t;};return a97c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a97q(0x15c)];function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x14b;let f=c[d];return f;},a97d(a,b);}Generator[a97q(0x14e)]({'name':'component','aliases':aliases,'usage':a97q(0x16b),'shortDesc':a97q(0x151),'validOpts':[{'name':'baseDir','values':[a97q(0x177),a97q(0x17f),'pages','layouts']}],'examples':[a97q(0x161)]},async function(a,b){const r=a97q;try{const c=this[r(0x174)]['findAppDirectory'](),d=b[r(0x16e)]?'/imports/ui/'+b[r(0x16e)]:r(0x156),f=this[r(0x174)][r(0x188)]({'pathParts':[d,b['dir'],paramCase(b[r(0x157)]),paramCase(b[r(0x157)])]}),g=await this[r(0x174)]['getProjectConfig']();this[r(0x174)][r(0x184)](g,async()=>{const s=r;typeof g[s(0x15d)]['test']==='string'&&(g['template']['test']=g[s(0x15d)]['test']===s(0x164)?!![]:![],this['fsi'][s(0x187)]('test',g['template'][s(0x175)]));typeof g[s(0x15d)][s(0x15f)]==='string'&&(g['template'][s(0x15f)]=g['template'][s(0x15f)]===s(0x164)?!![]:![],this[s(0x174)]['setTemplate'](s(0x15f),g['template'][s(0x15f)]));typeof g[s(0x15d)]['js']===s(0x166)&&(g[s(0x15d)]['js']=g['template']['js']===s(0x164)?!![]:![],this[s(0x174)][s(0x187)]('js',g[s(0x15d)]['js']));!g[s(0x16c)]&&(g[s(0x16c)]={});!b[s(0x18a)]&&!this[s(0x174)][s(0x173)](s(0x17c))&&(Log['warn'](s(0x16f)),await this['fsi'][s(0x192)]('ramda',{'cwd':c}));if(!b['root']&&!this[s(0x174)][s(0x173)](s(0x16a))){Log['error'](s(0x15a));return;}const h={'name':pascalCase(b[s(0x157)]),'myPath':a97e[s(0x169)](this['fsi'][s(0x159)]({}),f),'cssCaseName':paramCase(b[s(0x157)]),'className':pascalCase(b[s(0x157)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[s(0x157)]),'graphql':g['engines'][s(0x168)],'features':g[s(0x16c)],'client':g['engines'][s(0x152)],'api':g[s(0x190)]['api'],'ssr':g[s(0x190)][s(0x18d)],'test':g[s(0x190)][s(0x175)],'theme':g[s(0x190)][s(0x15e)],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0x16c)][s(0x186)]};this['fsi']['template']({'srcPath':s(0x14d),'destPath':f+s(0x16d),'context':h,'framework':s(0x16a),'config':g});g[s(0x190)][s(0x175)]!==s(0x178)&&this[s(0x174)][s(0x15d)]({'srcPath':s(0x14c),'destPath':f+'.tests.js','context':h,'framework':s(0x16a),'config':g});g[s(0x15d)]['css']&&(this[s(0x174)][s(0x15d)]({'srcPath':'template/template.css','destPath':f+s(0x165),'context':Object['assign']({},h,{'className':paramCase(b[s(0x157)])}),'config':g}),this[s(0x174)][s(0x191)]({'filePath':f+'.'+g[s(0x190)]['js'],'content':'import\x20\x27./'+h[s(0x17e)]+'.'+g[s(0x190)][s(0x15f)]+'\x27;'}));const i=b['dir']?'/'+b[s(0x17a)]+'/':'/',j=''+d+i+h[s(0x14f)]+'/'+h[s(0x14f)];let k;if(g[s(0x190)][s(0x18d)]==='true'){const l=this[s(0x174)][s(0x188)]({'pathParts':[s(0x180),s(0x181),'lib',s(0x15b)]});k=this[s(0x174)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this[s(0x174)][s(0x188)]({'pathParts':[s(0x180),s(0x181),s(0x152),s(0x15b)]});k=this[s(0x174)][s(0x179)]({'pathParts':[m],'config':g});}g[s(0x190)]['client']===s(0x16a)||g[s(0x190)][s(0x152)]==='reflux'?(g[s(0x190)]['js']===s(0x176)?this['fsi'][s(0x191)]({'filePath':k,'content':s(0x17d)+h[s(0x163)]+s(0x171)+j+s(0x185)}):this[s(0x174)]['injectAtBeginningOfFile']({'filePath':k,'content':s(0x17d)+h[s(0x163)]+s(0x171)+j+'.'+g[s(0x190)]['js']+s(0x185)}),this[s(0x174)][s(0x154)]({'filePath':k,'content':s(0x160)+h['className']+s(0x167)})):this[s(0x174)][s(0x154)]({'filePath':k,'content':s(0x153)+j+'.'+g[s(0x190)]['js']+s(0x185)});});}catch(h){Log['error'](h);}});
1
+ const a97q=a97d;(function(a,b){const n=a97d,c=a();while(!![]){try{const d=parseInt(n(0x167))/0x1*(parseInt(n(0x177))/0x2)+-parseInt(n(0x17d))/0x3*(parseInt(n(0x181))/0x4)+parseInt(n(0x15e))/0x5+parseInt(n(0x185))/0x6+-parseInt(n(0x190))/0x7*(-parseInt(n(0x161))/0x8)+parseInt(n(0x15a))/0x9+-parseInt(n(0x15d))/0xa*(parseInt(n(0x16e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x564da));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a97d;if(c){const e=c[o(0x189)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const p=a97d;return a97a[p(0x155)]()[p(0x173)]('(((.+)+)+)+$')['toString']()[p(0x164)](a97a)[p(0x173)](p(0x154));});a97a();import a97e from'path';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x142;let f=c[d];return f;},a97d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=['comp'];Generator['create']({'name':a97q(0x182),'aliases':aliases,'usage':a97q(0x17b),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','validOpts':[{'name':a97q(0x152),'values':[a97q(0x180),a97q(0x187),a97q(0x163),a97q(0x143)]}],'examples':[a97q(0x153)]},async function(a,b){const r=a97q;try{const c=this[r(0x16b)][r(0x16a)](),d=b[r(0x152)]?r(0x148)+b['baseDir']:r(0x176),f=this['fsi'][r(0x17c)]({'pathParts':[d,b[r(0x17f)],paramCase(b['resourceName']),paramCase(b[r(0x14d)])]}),g=await this['fsi'][r(0x170)]();this[r(0x16b)]['withValue'](g,async()=>{const s=r;typeof g[s(0x150)][s(0x149)]===s(0x166)&&(g[s(0x150)]['test']=g['template']['test']===s(0x184)?!![]:![],this[s(0x16b)][s(0x157)]('test',g[s(0x150)][s(0x149)]));typeof g['template']['css']===s(0x166)&&(g[s(0x150)][s(0x14f)]=g[s(0x150)][s(0x14f)]===s(0x184)?!![]:![],this[s(0x16b)][s(0x157)](s(0x14f),g[s(0x150)][s(0x14f)]));typeof g[s(0x150)]['js']===s(0x166)&&(g['template']['js']=g[s(0x150)]['js']===s(0x184)?!![]:![],this[s(0x16b)]['setTemplate']('js',g[s(0x150)]['js']));!g['features']&&(g[s(0x14e)]={});!b[s(0x192)]&&!this[s(0x16b)][s(0x17e)](s(0x14a))&&(Log[s(0x15c)](s(0x145)),await this['fsi'][s(0x16f)](s(0x14a),{'cwd':c}));if(!b[s(0x192)]&&!this['fsi'][s(0x17e)](s(0x142))){Log[s(0x169)](s(0x162));return;}const h={'name':pascalCase(b[s(0x14d)]),'myPath':a97e[s(0x14b)](this[s(0x16b)][s(0x18a)]({}),f),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[s(0x14d)]),'camelCaseName':camelCase(b[s(0x14d)]),'fileName':paramCase(b[s(0x14d)]),'graphql':g[s(0x14c)][s(0x144)],'features':g[s(0x14e)],'client':g[s(0x14c)][s(0x175)],'api':g[s(0x14c)][s(0x16c)],'ssr':g[s(0x14c)]['ssr'],'test':g[s(0x14c)][s(0x149)],'theme':g[s(0x14c)][s(0x18f)],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0x14e)][s(0x158)]};this['fsi'][s(0x150)]({'srcPath':s(0x160),'destPath':f+'.js','context':h,'framework':s(0x142),'config':g});g['engines'][s(0x149)]!==s(0x15f)&&this[s(0x16b)][s(0x150)]({'srcPath':s(0x168),'destPath':f+s(0x178),'context':h,'framework':s(0x142),'config':g});g['template'][s(0x14f)]&&(this[s(0x16b)][s(0x150)]({'srcPath':s(0x16d),'destPath':f+s(0x18c),'context':Object[s(0x179)]({},h,{'className':paramCase(b['resourceName'])}),'config':g}),this[s(0x16b)][s(0x18d)]({'filePath':f+'.'+g[s(0x14c)]['js'],'content':'import\x20\x27./'+h[s(0x156)]+'.'+g[s(0x14c)][s(0x14f)]+'\x27;'}));const i=b[s(0x17f)]?'/'+b[s(0x17f)]+'/':'/',j=''+d+i+h[s(0x159)]+'/'+h[s(0x159)];let k;if(g[s(0x14c)][s(0x172)]==='true'){const l=this['fsi']['pathFromApp']({'pathParts':['imports',s(0x17a),s(0x151),s(0x186)]});k=this[s(0x16b)][s(0x188)]({'pathParts':[l],'config':g});}else{const m=this[s(0x16b)]['pathFromApp']({'pathParts':[s(0x15b),'startup',s(0x175),s(0x186)]});k=this[s(0x16b)][s(0x188)]({'pathParts':[m],'config':g});}g['engines']['client']===s(0x142)||g['engines'][s(0x175)]===s(0x171)?(g['engines']['js']===s(0x174)?this['fsi'][s(0x18d)]({'filePath':k,'content':'import\x20{\x20'+h['className']+s(0x183)+j+s(0x18b)}):this['fsi'][s(0x18d)]({'filePath':k,'content':s(0x165)+h[s(0x146)]+'\x20}\x20from\x20\x27'+j+'.'+g[s(0x14c)]['js']+s(0x18b)}),this['fsi'][s(0x147)]({'filePath':k,'content':s(0x191)+h[s(0x146)]+s(0x18e)})):this[s(0x16b)][s(0x147)]({'filePath':k,'content':'import\x20\x27'+j+'.'+g[s(0x14c)]['js']+'\x27;\x0a'});});}catch(h){Log['error'](h);}});function a97c(){const t=['ssr','search','tsx','client','/imports/ui/components','101704wnclcv','.tests.js','assign','startup','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','pathFromApp','183INldNN','checkNpmPackage','dir','hooks','27116xHJcbs','component','\x20}\x20from\x20\x27','true','2982960PfmACi','templates.js','components','rewriteDestinationPathForEngine','apply','pathFromProject','\x27;\x0a','.css','injectAtBeginningOfFile','\x20};\x0a','theme','21fywynH','export\x20{\x20','root','react','layouts','graphql','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','className','injectAtEndOfFile','/imports/ui/','test','ramda','relative','engines','resourceName','features','css','template','lib','baseDir','maka\x20g:comp\x20todos/todos-item','(((.+)+)+)+$','toString','cssCaseName','setTemplate','withTranslations','fileName','4291848SbEkgd','imports','warn','10VnbIOI','3076355NhhzLH','none','component/component.js','1075496uzuGuO','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','pages','constructor','import\x20{\x20','string','9wVmLeN','test/test.js','error','findAppDirectory','fsi','api','template/template.css','18515915AxuDJW','installNpmPackage','getProjectConfig','reflux'];a97c=function(){return t;};return a97c();}
@@ -1 +1 @@
1
- const a98j=a98d;function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x97;let f=c[d];return f;},a98d(a,b);}(function(a,b){const h=a98d,c=a();while(!![]){try{const d=parseInt(h(0x9e))/0x1*(-parseInt(h(0xaf))/0x2)+parseInt(h(0xa5))/0x3*(parseInt(h(0x97))/0x4)+-parseInt(h(0xb2))/0x5+parseInt(h(0xa1))/0x6+-parseInt(h(0xac))/0x7*(parseInt(h(0x9f))/0x8)+parseInt(h(0xa7))/0x9*(-parseInt(h(0xae))/0xa)+parseInt(h(0xa6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xcbf04));const a98b=(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;};}()),a98a=a98b(this,function(){const i=a98d;return a98a[i(0x98)]()['search'](i(0x9c))[i(0x98)]()[i(0xab)](a98a)[i(0xa4)](i(0x9c));});a98a();import{Generator}from'../generator.js';function a98c(){const m=['resourceName','7032300ZPkiJg','pathFromProject','fsi','search','3220269NvSxyk','10052196KJgypt','6448419chGQLI','template','ubuntu','config','constructor','119cTrtxJ','create','10txoZSA','1160910eDRPbR','dev','isDocker','1366305YsIzSi','4GsRQtn','toString','production','Generate\x20configuration\x20settings.','appName','(((.+)+)+)+$','getProjectConfig','2evWUQI','81560yKRJso'];a98c=function(){return m;};return a98c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a98j(0xad)]({'name':a98j(0xaa),'usage':'maka\x20{generate,\x20g}:{config}\x20<name>','shortDesc':a98j(0x9a),'validOpts':[a98j(0xb1)],'examples':['maka\x20g:config\x20production']},function(a,b){const k=a98j,c=this['fsi'][k(0x9d)]();this[k(0xa3)]['withValue'](c,async()=>{const l=k,d={'app':c[l(0x9b)],'appFileCase':paramCase(c[l(0x9b)]),'name':pascalCase(b[l(0xa0)]),'fileName':paramCase(b[l(0xa0)]),'camelCase':camelCase(b[l(0xa0)]),'userName':l(0xa9),'isDocker':b['isDocker']};let e=b[l(0xa0)];if(e===l(0xb0))e='development';else e==='prod'&&(e=l(0x99));const f=this[l(0xa3)][l(0xa2)]({'pathParts':['config',e,'settings.json']});this[l(0xa3)][l(0xa8)]({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b[l(0xb1)]){const g=this['fsi'][l(0xa2)]({'pathParts':[l(0xaa),e,'process.env']});this[l(0xa3)][l(0xa8)]({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});
1
+ function a98c(){const n=['maka\x20g:config\x20production','apply','dev','4477780wCGkgc','toString','2977840BsLecO','search','production','pathFromProject','ubuntu','262ztHVqR','config/settings.json','prod','development','4900ogwElg','isDocker','796abFKvl','401388VyeNHT','115758jMfxmY','config/process.env','maka\x20{generate,\x20g}:{config}\x20<name>','resourceName','Generate\x20configuration\x20settings.','constructor','config','1314279LaqQir','fsi','98BiFFYY','appName','settings.json','withValue','(((.+)+)+)+$','template','2408AyiqVA'];a98c=function(){return n;};return a98c();}const a98k=a98d;(function(a,b){const h=a98d,c=a();while(!![]){try{const d=parseInt(h(0x175))/0x1*(parseInt(h(0x180))/0x2)+-parseInt(h(0x187))/0x3+-parseInt(h(0x186))/0x4*(parseInt(h(0x184))/0x5)+-parseInt(h(0x188))/0x6*(-parseInt(h(0x16f))/0x7)+-parseInt(h(0x17b))/0x8+-parseInt(h(0x16d))/0x9+parseInt(h(0x179))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x2d78b));function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x167;let f=c[d];return f;},a98d(a,b);}const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a98d;if(c){const e=c[i(0x177)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const j=a98d;return a98a['toString']()['search'](j(0x173))[j(0x17a)]()[j(0x16b)](a98a)[j(0x17c)](j(0x173));});a98a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':'config','usage':a98k(0x168),'shortDesc':a98k(0x16a),'validOpts':['isDocker'],'examples':[a98k(0x176)]},function(a,b){const l=a98k,c=this[l(0x16e)]['getProjectConfig']();this[l(0x16e)][l(0x172)](c,async()=>{const m=l,d={'app':c[m(0x170)],'appFileCase':paramCase(c['appName']),'name':pascalCase(b[m(0x169)]),'fileName':paramCase(b[m(0x169)]),'camelCase':camelCase(b[m(0x169)]),'userName':m(0x17f),'isDocker':b[m(0x185)]};let e=b['resourceName'];if(e===m(0x178))e=m(0x183);else e===m(0x182)&&(e=m(0x17d));const f=this[m(0x16e)][m(0x17e)]({'pathParts':['config',e,m(0x171)]});this['fsi'][m(0x174)]({'srcPath':m(0x181),'destPath':f,'context':d,'config':c});if(!b['isDocker']){const g=this[m(0x16e)][m(0x17e)]({'pathParts':[m(0x16c),e,'process.env']});this[m(0x16e)][m(0x174)]({'srcPath':m(0x167),'destPath':g,'context':d,'config':c});}});});
@@ -1 +1 @@
1
- function a99c(){const p=['apply','12484052ErcqxY','resourceName','1548ndKoVb','dbc','tsx','16718BWaCYx','dbc/register-dbc.js','mssql','10ymVdqg','search','conn.','1179ovaQxx','getProjectConfig','79161riRMCP','config.','imports','16180043syISrG','maka\x20g:dbc\x20todos\x20--type=sqlite','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','dbc/config.js','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','2564456JUElWF','pathFromApp','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','type','installNpmPackage','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','startup','fsi','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','error','(((.+)+)+)+$','19185DhoifP','sqlite','12JayHkB','102184iAxdnm','server','maka\x20g:dbc\x20azure\x20--type=mssql','index.','warn','dir','pgsql','template','better-sqlite3','dbc/conn.js','withValue','3IDbVSX','engines','43356qQdxCI','checkNpmPackage','toString'];a99c=function(){return p;};return a99c();}const a99m=a99d;(function(a,b){const j=a99d,c=a();while(!![]){try{const d=parseInt(j(0x1de))/0x1*(-parseInt(j(0x1f3))/0x2)+parseInt(j(0x1ff))/0x3*(-parseInt(j(0x1e6))/0x4)+parseInt(j(0x1f1))/0x5*(-parseInt(j(0x207))/0x6)+-parseInt(j(0x205))/0x7+parseInt(j(0x1f4))/0x8*(parseInt(j(0x1dc))/0x9)+parseInt(j(0x1d9))/0xa*(-parseInt(j(0x1e1))/0xb)+parseInt(j(0x201))/0xc*(parseInt(j(0x1d6))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xea2e6));function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x1d5;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(0x204)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const l=a99d;return a99a[l(0x203)]()[l(0x1da)](l(0x1f0))['toString']()['constructor'](a99a)[l(0x1da)]('(((.+)+)+)+$');});a99a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a99m(0x208),'usage':a99m(0x1e3),'shortDesc':a99m(0x1ee),'validOpts':[a99m(0x1e9),a99m(0x1f9)],'requiredOpts':[{'name':a99m(0x1e9),'values':[a99m(0x1fa),a99m(0x1d8),a99m(0x1f2)]}],'examples':['maka\x20g:dbc\x20geoserver\x20--type=pgsql',a99m(0x1f6),a99m(0x1e2)]},async function(a,b){const n=a99m;try{const c=await this[n(0x1ed)][n(0x1dd)](),d=this['fsi'][n(0x1e7)]({}),f=paramCase(b[n(0x206)]),g={'name':pascalCase(b[n(0x206)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[n(0x206)]),'type':b[n(0x1e9)],'engine':c[n(0x200)]['js'],'noRename':!![]};this['fsi'][n(0x1fe)](c,async()=>{const o=n;let h='js';c['engines']['js']===o(0x1d5)&&(h='ts');b['type']===o(0x1fa)&&!this[o(0x1ed)][o(0x202)]('pg')&&(Log['warn'](o(0x1e8)),await this[o(0x1ed)][o(0x1ea)]('pg',{'cwd':d}));b[o(0x1e9)]===o(0x1d8)&&!this['fsi'][o(0x202)](o(0x1d8))&&(Log[o(0x1f8)](o(0x1e5)),await this[o(0x1ed)]['installNpmPackage'](o(0x1d8),{'cwd':d}));b[o(0x1e9)]===o(0x1f2)&&!this[o(0x1ed)][o(0x202)](o(0x1fc))&&(Log[o(0x1f8)](o(0x1eb)),await this[o(0x1ed)][o(0x1ea)](o(0x1fc),{'cwd':d}));await this['fsi']['template']({'srcPath':o(0x1e4),'destPath':this[o(0x1ed)][o(0x1e7)]({'pathParts':[o(0x1e0),o(0x1ec),o(0x1f5),'dbc',b[o(0x1f9)],f,o(0x1df)+h]}),'context':g,'config':c}),await this[o(0x1ed)][o(0x1fb)]({'srcPath':o(0x1fd),'destPath':this[o(0x1ed)]['pathFromApp']({'pathParts':[o(0x1e0),o(0x1ec),o(0x1f5),o(0x208),b[o(0x1f9)],f,o(0x1db)+h]}),'context':g,'config':c}),await this[o(0x1ed)][o(0x1fb)]({'srcPath':o(0x1d7),'destPath':this[o(0x1ed)]['pathFromApp']({'pathParts':[o(0x1e0),o(0x1ec),o(0x1f5),'register-'+f+'-dbc.'+h]}),'context':g,'config':c});const i=this[o(0x1ed)][o(0x1e7)]({'pathParts':['imports',o(0x1ec),o(0x1f5),o(0x1f7)+c[o(0x200)]['js']]});this[o(0x1ed)]['injectAtEndOfFile']({'filePath':i,'content':'import\x20\x27./register-'+f+'-dbc\x27;'});});}catch(h){Log[n(0x1ef)](h);}});
1
+ const a99m=a99d;(function(a,b){const j=a99d,c=a();while(!![]){try{const d=parseInt(j(0x17f))/0x1*(parseInt(j(0x18c))/0x2)+-parseInt(j(0x188))/0x3+-parseInt(j(0x194))/0x4*(parseInt(j(0x1a5))/0x5)+-parseInt(j(0x183))/0x6*(parseInt(j(0x178))/0x7)+parseInt(j(0x1a4))/0x8*(parseInt(j(0x17b))/0x9)+-parseInt(j(0x18f))/0xa+parseInt(j(0x189))/0xb*(parseInt(j(0x18d))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xbf740));function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x171;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(0x174)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const l=a99d;return a99a[l(0x186)]()[l(0x1a2)]('(((.+)+)+)+$')['toString']()[l(0x1a1)](a99a)[l(0x1a2)](l(0x173));});function a99c(){const p=['2272kRfKXk','25HGxLBY','maka\x20g:dbc\x20todos\x20--type=sqlite','installNpmPackage','register-','(((.+)+)+)+$','apply','injectAtEndOfFile','sqlite','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','2446059WVcIDJ','dir','import\x20\x27./register-','29466wHndOo','error','maka\x20g:dbc\x20azure\x20--type=mssql','startup','460LfVeUA','create','engines','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','12UIzsMg','pathFromApp','-dbc\x27;','toString','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','214776BLnqlf','9575610zuEDol','resourceName','conn.','4616zIrqCH','12fikBoN','fsi','8713230gmpgVf','pgsql','getProjectConfig','imports','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','348820EuPpZM','-dbc.','type','mssql','tsx','maka\x20g:dbc\x20geoserver\x20--type=pgsql','warn','dbc','template','dbc/conn.js','server','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','checkNpmPackage','constructor','search','better-sqlite3'];a99c=function(){return p;};return a99c();}a99a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a99m(0x180)]({'name':a99m(0x19b),'usage':a99m(0x187),'shortDesc':a99m(0x19f),'validOpts':['dir'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'type','values':[a99m(0x190),a99m(0x197),'sqlite']}],'examples':[a99m(0x199),a99m(0x17d),a99m(0x1a6)]},async function(a,b){const n=a99m;try{const c=await this[n(0x18e)][n(0x191)](),d=this[n(0x18e)][n(0x184)]({}),f=paramCase(b['resourceName']),g={'name':pascalCase(b[n(0x18a)]),'fileName':paramCase(b[n(0x18a)]),'camelCase':camelCase(b['resourceName']),'type':b['type'],'engine':c['engines']['js'],'noRename':!![]};this['fsi']['withValue'](c,async()=>{const o=n;let h='js';c[o(0x181)]['js']===o(0x198)&&(h='ts');b[o(0x196)]===o(0x190)&&!this['fsi'][o(0x1a0)]('pg')&&(Log[o(0x19a)](o(0x182)),await this[o(0x18e)][o(0x171)]('pg',{'cwd':d}));b['type']==='mssql'&&!this['fsi'][o(0x1a0)](o(0x197))&&(Log[o(0x19a)](o(0x177)),await this[o(0x18e)][o(0x171)](o(0x197),{'cwd':d}));b['type']===o(0x176)&&!this['fsi'][o(0x1a0)](o(0x1a3))&&(Log['warn'](o(0x193)),await this[o(0x18e)]['installNpmPackage']('better-sqlite3',{'cwd':d}));await this[o(0x18e)][o(0x19c)]({'srcPath':'dbc/config.js','destPath':this['fsi'][o(0x184)]({'pathParts':['imports',o(0x17e),o(0x19e),o(0x19b),b['dir'],f,'config.'+h]}),'context':g,'config':c}),await this[o(0x18e)]['template']({'srcPath':o(0x19d),'destPath':this[o(0x18e)][o(0x184)]({'pathParts':[o(0x192),'startup','server','dbc',b[o(0x179)],f,o(0x18b)+h]}),'context':g,'config':c}),await this[o(0x18e)][o(0x19c)]({'srcPath':'dbc/register-dbc.js','destPath':this[o(0x18e)][o(0x184)]({'pathParts':['imports',o(0x17e),o(0x19e),o(0x172)+f+o(0x195)+h]}),'context':g,'config':c});const i=this['fsi'][o(0x184)]({'pathParts':[o(0x192),o(0x17e),o(0x19e),'index.'+c[o(0x181)]['js']]});this[o(0x18e)][o(0x175)]({'filePath':i,'content':o(0x17a)+f+o(0x185)});});}catch(h){Log[n(0x17c)](h);}});
@@ -1 +1 @@
1
- const a100i=a100d;function a100c(){const l=['3652334noqXIM','12hbuUqu','findProjectDirectory','fsi','toString','isFile','search','join','template','getProjectConfig','1858896sfSXxA','apply','docker/Dockerfile','1299201WbNFmH','getGlobalConfig','1098770igUfVW','service','appName','constructor','maka\x20g:dockerfile','app.tar.gz','(((.+)+)+)+$','error','dockerfile','3216992wTdzOC','3218944HyRWGF','withValue','533395MwwhUB','1iOrxZu'];a100c=function(){return l;};return a100c();}(function(a,b){const f=a100d,c=a();while(!![]){try{const d=-parseInt(f(0x152))/0x1*(parseInt(f(0x145))/0x2)+parseInt(f(0x143))/0x3+-parseInt(f(0x14f))/0x4+-parseInt(f(0x151))/0x5+parseInt(f(0x154))/0x6*(parseInt(f(0x153))/0x7)+parseInt(f(0x14e))/0x8+parseInt(f(0x140))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x9874b));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a100d;if(c){const e=c[g(0x141)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const h=a100d;return a100a[h(0x157)]()['search'](h(0x14b))['toString']()[h(0x148)](a100a)[h(0x159)](h(0x14b));});function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x13d;let f=c[d];return f;},a100d(a,b);}a100a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a100e from'path';Generator['create']({'name':a100i(0x14d),'usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':'Generate\x20an\x20updated\x20dockerfile','validOpts':[],'noResource':!![],'examples':[a100i(0x149)]},async function(){const j=a100i;try{const a=await this[j(0x156)][j(0x13f)](),b=await this[j(0x156)][j(0x144)](),c=this[j(0x156)][j(0x155)]();this[j(0x156)][j(0x150)](a,async()=>{const k=j,d={'app':b[k(0x147)],'config':a,'appPath':a100e[k(0x13d)](c,'app'),'bundlePath':a100e[k(0x13d)](c,'build',k(0x14a)),'useCert':this[k(0x156)][k(0x158)](b['cert'])};this['fsi'][k(0x13e)]({'srcPath':k(0x142),'destPath':a100e[k(0x13d)](c,'Dockerfile'),'framework':k(0x146),'context':d,'config':a});});}catch(d){Log[j(0x14c)](d);}});
1
+ const a100i=a100d;(function(a,b){const f=a100d,c=a();while(!![]){try{const d=parseInt(f(0x1a5))/0x1*(-parseInt(f(0x1b1))/0x2)+-parseInt(f(0x1ae))/0x3*(parseInt(f(0x1a8))/0x4)+parseInt(f(0x19f))/0x5+parseInt(f(0x195))/0x6*(-parseInt(f(0x193))/0x7)+-parseInt(f(0x1a0))/0x8*(parseInt(f(0x19c))/0x9)+parseInt(f(0x1a9))/0xa*(parseInt(f(0x1ab))/0xb)+parseInt(f(0x1b0))/0xc*(parseInt(f(0x199))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xba092));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a100d;if(c){const e=c[g(0x19d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const h=a100d;return a100a[h(0x1aa)]()['search'](h(0x1a7))[h(0x1aa)]()[h(0x192)](a100a)['search'](h(0x1a7));});a100a();function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x192;let f=c[d];return f;},a100d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a100e from'path';function a100c(){const l=['dockerfile','error','12CUQhsB','create','41529900YvsCaF','4438FIKOxU','service','constructor','28IqiGqc','Generate\x20an\x20updated\x20dockerfile','1367760nwzbvD','cert','template','isFile','13EYMTNV','join','app.tar.gz','27lHwzsI','apply','maka\x20{generate,\x20g}:dockerfile','1118370upDwlC','573416FmaKFE','app','fsi','getProjectConfig','Dockerfile','353nSaCCf','maka\x20g:dockerfile','(((.+)+)+)+$','1100808xGJvuL','8270nSLPKH','toString','1177IxWzjQ'];a100c=function(){return l;};return a100c();}Generator[a100i(0x1af)]({'name':a100i(0x1ac),'usage':a100i(0x19e),'shortDesc':a100i(0x194),'validOpts':[],'noResource':!![],'examples':[a100i(0x1a6)]},async function(){const j=a100i;try{const a=await this[j(0x1a2)][j(0x1a3)](),b=await this[j(0x1a2)]['getGlobalConfig'](),c=this[j(0x1a2)]['findProjectDirectory']();this[j(0x1a2)]['withValue'](a,async()=>{const k=j,d={'app':b['appName'],'config':a,'appPath':a100e['join'](c,k(0x1a1)),'bundlePath':a100e[k(0x19a)](c,'build',k(0x19b)),'useCert':this[k(0x1a2)][k(0x198)](b[k(0x196)])};this[k(0x1a2)][k(0x197)]({'srcPath':'docker/Dockerfile','destPath':a100e[k(0x19a)](c,k(0x1a4)),'framework':k(0x1b2),'context':d,'config':a});});}catch(d){Log[j(0x1ad)](d);}});
@@ -1 +1 @@
1
- const a101r=a101d;(function(a,b){const o=a101d,c=a();while(!![]){try{const d=parseInt(o(0x1cf))/0x1+parseInt(o(0x1b3))/0x2*(-parseInt(o(0x1e7))/0x3)+parseInt(o(0x1c6))/0x4*(parseInt(o(0x1e8))/0x5)+-parseInt(o(0x1c2))/0x6+-parseInt(o(0x1ee))/0x7+parseInt(o(0x1b5))/0x8+parseInt(o(0x1d1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x24012));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a101d;if(c){const e=c[p(0x1b6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const q=a101d;return a101a[q(0x1cb)]()[q(0x1c8)](q(0x1d0))['toString']()[q(0x1e0)](a101a)['search'](q(0x1d0));});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';function a101c(){const u=['fileName','2288952ZROQFY','apply','installNpmPackage','fsi','pathFromProject','pathFromApp','.js','/imports/ui/','warn','components','startup','/imports/ui/hooks','true','1304928itmmCp','resourceName','graphql','import\x20{\x20','4JTxCEK','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','search','\x27;\x0a','baseDir','toString','template','hooks','layouts','52427vKMNqY','(((.+)+)+)+$','531045jFCbmb','className','error','\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20Hooks\x20are\x20created\x20in\x20the\x20imports/ui/hooks\x20directory\x20by\x20default,\x20but\x20can\x20be\x20created\x20in\x0a\x20\x20the\x20imports/ui/components,\x20imports/ui/pages,\x20or\x20imports/ui/layouts\x20directories\x20by\x0a\x20\x20using\x20the\x20--baseDir\x20option\x20with\x20the\x20appropriate\x20directory\x20name.\x0a\x0a\x20\x20To\x20create\x20a\x20hook\x20in\x20a\x20subdirectory\x20of\x20the\x20hooks\x20directory,\x20add\x20the\x20path\x20to\x20the\x0a\x20\x20hook\x20name.\x20For\x20example,\x20maka\x20g:hook\x20myHooks/useCoolHook\x20will\x20create\x20a\x20hook\x20in\x0a\x20\x20imports/ui/hooks/my-hooks/use-cool-hook.jsx\x0a\x0a\x20\x20If\x20you\x27d\x20like\x20a\x20hook\x20created\x20as\x20part\x20of\x20an\x20existing\x20page,\x20component,\x20or\x20layout,\x0a\x20\x20use\x20the\x20maka\x20g:hook\x20command\x20with\x20the\x20--baseDir\x20option.\x20For\x20example,\x0a\x0a\x20\x20\x20\x20maka\x20g:hook\x20--baseDir=pages\x20myPage/useCoolHook\x0a\x0a\x20\x20will\x20create\x20a\x20hook\x20in\x20imports/ui/pages/my-page/use-cool-hook.jsx\x0a\x0a\x20\x20','\x20}\x20from\x20\x27','checkNpmPackage','apollo','tsx','withValue','notice','template/template.css','import\x20\x27','css','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','cssCaseName','constructor','\x20};\x0a','templates.js','test/test.js','string','.css','getProjectConfig','93597gIPCvN','526945XJjttC','rewriteDestinationPathForEngine','.app-tests.js','theme','none','engines','92274WfYkLz','\x20hook...','injectAtBeginningOfFile','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','setTemplate','relative','injectAtEndOfFile','dir','hook/hook.js','assign','react','client','imports','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','@apollo/client\x20isomorphic-fetch','ssr','features','withTranslations','Creating\x20','8dIiJAt'];a101c=function(){return u;};return a101c();}import{UsageError}from'../error.js';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x1a8;let f=c[d];return f;},a101d(a,b);}Generator['create']({'name':'hook','aliases':['h'],'checkWhere':![],'usage':a101r(0x1de),'shortDesc':a101r(0x1c7),'validOpts':[{'name':a101r(0x1ca),'values':[a101r(0x1cd),a101r(0x1be),'pages',a101r(0x1ce)]}],'examples':['maka\x20g:hook\x20cool-hook'],'description':a101r(0x1d4)},async function(a,b){const s=a101r;Log[s(0x1da)](s(0x1b2)+b['resourceName']+s(0x1ef));try{const c=this[s(0x1b8)][s(0x1d6)](s(0x1aa));if(!c){Log[s(0x1d3)](s(0x1ad));throw new UsageError();}const d=this[s(0x1b8)]['pathFromApp'](b),f=b[s(0x1ca)]?s(0x1bc)+b[s(0x1ca)]:s(0x1c0),g=this[s(0x1b8)][s(0x1ba)]({'pathParts':[f,b[s(0x1f5)],paramCase(b[s(0x1c3)]),paramCase(b[s(0x1c3)])]}),h=await this[s(0x1b8)][s(0x1e6)]();this[s(0x1b8)][s(0x1d9)](h,async()=>{const t=s;typeof h[t(0x1cc)][t(0x1dd)]===t(0x1e4)&&(h[t(0x1cc)][t(0x1dd)]=h[t(0x1cc)]['css']===t(0x1c1)?!![]:![],this[t(0x1b8)][t(0x1f2)]('css',h['template'][t(0x1dd)]));h['engines'][t(0x1c4)]===t(0x1d7)&&!this[t(0x1b8)][t(0x1d6)]('@apollo/client')&&(Log[t(0x1bd)](t(0x1f1)),await this[t(0x1b8)][t(0x1b7)](t(0x1ae),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x1c3)]),'camelCaseName':camelCase(b[t(0x1c3)]),'className':pascalCase(b[t(0x1c3)]),'name':pascalCase(b[t(0x1c3)]),'graphql':h[t(0x1ed)][t(0x1c4)],'theme':h['engines'][t(0x1eb)],'features':h[t(0x1b0)],'myPath':a101e[t(0x1f3)](this['fsi'][t(0x1b9)]({}),g),'fileName':paramCase(b['resourceName']),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x1b0)][t(0x1b1)]};this[t(0x1b8)][t(0x1cc)]({'srcPath':t(0x1a8),'destPath':g+t(0x1bb),'context':i,'config':h,'framework':t(0x1aa)});h['template'][t(0x1dd)]&&(this[t(0x1b8)][t(0x1cc)]({'srcPath':t(0x1db),'destPath':g+t(0x1e5),'context':Object[t(0x1a9)]({},i,{'className':i[t(0x1df)]}),'config':h}),this['fsi'][t(0x1f0)]({'filePath':g+'.'+h['engines']['js'],'content':'import\x20\x27./'+i[t(0x1b4)]+'.'+h['engines'][t(0x1dd)]+'\x27;'}));h[t(0x1ed)]['test']!==t(0x1ec)&&this[t(0x1b8)]['template']({'srcPath':t(0x1e3),'destPath':g+t(0x1ea),'framework':t(0x1aa),'context':i,'config':h});const j=b['dir']?'/'+b[t(0x1f5)]+'/':'/',k=''+f+j+i[t(0x1b4)]+'/'+i[t(0x1b4)];let l;if(h['engines'][t(0x1af)]===t(0x1c1)){const m=this[t(0x1b8)][t(0x1ba)]({'pathParts':[t(0x1ac),'startup','lib',t(0x1e2)]});l=this[t(0x1b8)][t(0x1e9)]({'pathParts':[m],'config':h});}else{const n=this['fsi'][t(0x1ba)]({'pathParts':[t(0x1ac),t(0x1bf),t(0x1ab),'templates.js']});l=this[t(0x1b8)][t(0x1e9)]({'pathParts':[n],'config':h});}h[t(0x1ed)]['client']==='react'?(h[t(0x1ed)]['js']===t(0x1d8)?this[t(0x1b8)][t(0x1f0)]({'filePath':l,'content':t(0x1c5)+i[t(0x1d2)]+t(0x1d5)+k+t(0x1c9)}):this[t(0x1b8)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0x1c5)+i[t(0x1d2)]+t(0x1d5)+k+'.'+h[t(0x1ed)]['js']+t(0x1c9)}),this['fsi'][t(0x1f4)]({'filePath':l,'content':'export\x20{\x20'+i['className']+t(0x1e1)})):this['fsi']['injectAtEndOfFile']({'filePath':l,'content':t(0x1dc)+k+'.'+h[t(0x1ed)]['js']+'\x27;\x0a'});});}catch(i){Log[s(0x1d3)](i);}});
1
+ const a101r=a101d;(function(a,b){const o=a101d,c=a();while(!![]){try{const d=-parseInt(o(0x171))/0x1+-parseInt(o(0x133))/0x2+-parseInt(o(0x163))/0x3+parseInt(o(0x14d))/0x4*(-parseInt(o(0x16f))/0x5)+parseInt(o(0x16d))/0x6+-parseInt(o(0x12c))/0x7*(parseInt(o(0x12d))/0x8)+parseInt(o(0x157))/0x9*(parseInt(o(0x16e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xd165a));function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x122;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(0x159)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const q=a101d;return a101a[q(0x122)]()[q(0x160)]('(((.+)+)+)+$')[q(0x122)]()['constructor'](a101a)['search'](q(0x12b));});a101a();import a101e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';function a101c(){const u=['templates.js','getProjectConfig','\x20};\x0a','.js','search','import\x20\x27','lib','4110075senNWy','graphql','hook','@apollo/client\x20isomorphic-fetch','string','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','className','pathFromApp','Creating\x20','assign','3694032skpozw','1899670NHuVIJ','7365wspikM','true','219096gDbmkS','/imports/ui/hooks','toString','import\x20{\x20','notice','none','injectAtBeginningOfFile','\x20hook...','hooks','engines','\x20}\x20from\x20\x27','(((.+)+)+)+$','7uaKPqQ','6148056XZYDuK','\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','dir','template/template.css','withValue','warn','1256640yxvlne','resourceName','@apollo/client','checkNpmPackage','client','withTranslations','hook/hook.js','installNpmPackage','pages','test','tsx','rewriteDestinationPathForEngine','components','.css','template','apollo','injectAtEndOfFile','baseDir','css','/imports/ui/','export\x20{\x20','fileName','cssCaseName','fsi','react','create','4xDHBch','startup','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','error','layouts','ssr','.app-tests.js','relative','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','153AxDBrL','\x27;\x0a','apply','features','import\x20\x27./'];a101c=function(){return u;};return a101c();}import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a101r(0x14c)]({'name':a101r(0x165),'aliases':['h'],'checkWhere':![],'usage':a101r(0x150),'shortDesc':a101r(0x168),'validOpts':[{'name':a101r(0x144),'values':[a101r(0x128),a101r(0x13f),a101r(0x13b),a101r(0x152)]}],'examples':['maka\x20g:hook\x20cool-hook'],'description':a101r(0x12e)},async function(a,b){const s=a101r;Log[s(0x124)](s(0x16b)+b[s(0x134)]+s(0x127));try{const c=this[s(0x14a)][s(0x136)](s(0x14b));if(!c){Log['error'](s(0x14f));throw new UsageError();}const d=this['fsi'][s(0x16a)](b),f=b[s(0x144)]?s(0x146)+b[s(0x144)]:s(0x172),g=this[s(0x14a)][s(0x16a)]({'pathParts':[f,b['dir'],paramCase(b[s(0x134)]),paramCase(b[s(0x134)])]}),h=await this[s(0x14a)][s(0x15d)]();this[s(0x14a)][s(0x131)](h,async()=>{const t=s;typeof h['template'][t(0x145)]===t(0x167)&&(h[t(0x141)][t(0x145)]=h[t(0x141)][t(0x145)]==='true'?!![]:![],this[t(0x14a)]['setTemplate']('css',h[t(0x141)][t(0x145)]));h['engines'][t(0x164)]===t(0x142)&&!this[t(0x14a)][t(0x136)](t(0x135))&&(Log[t(0x132)](t(0x156)),await this[t(0x14a)][t(0x13a)](t(0x166),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x134)]),'camelCaseName':camelCase(b['resourceName']),'className':pascalCase(b[t(0x134)]),'name':pascalCase(b[t(0x134)]),'graphql':h['engines'][t(0x164)],'theme':h[t(0x129)]['theme'],'features':h[t(0x15a)],'myPath':a101e[t(0x155)](this[t(0x14a)]['pathFromProject']({}),g),'fileName':paramCase(b[t(0x134)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x15a)][t(0x138)]};this[t(0x14a)][t(0x141)]({'srcPath':t(0x139),'destPath':g+t(0x15f),'context':i,'config':h,'framework':'react'});h[t(0x141)][t(0x145)]&&(this[t(0x14a)][t(0x141)]({'srcPath':t(0x130),'destPath':g+t(0x140),'context':Object[t(0x16c)]({},i,{'className':i[t(0x149)]}),'config':h}),this[t(0x14a)]['injectAtBeginningOfFile']({'filePath':g+'.'+h[t(0x129)]['js'],'content':t(0x15b)+i['fileName']+'.'+h[t(0x129)][t(0x145)]+'\x27;'}));h[t(0x129)][t(0x13c)]!==t(0x125)&&this[t(0x14a)][t(0x141)]({'srcPath':'test/test.js','destPath':g+t(0x154),'framework':t(0x14b),'context':i,'config':h});const j=b[t(0x12f)]?'/'+b[t(0x12f)]+'/':'/',k=''+f+j+i[t(0x148)]+'/'+i['fileName'];let l;if(h[t(0x129)][t(0x153)]===t(0x170)){const m=this['fsi'][t(0x16a)]({'pathParts':['imports',t(0x14e),t(0x162),t(0x15c)]});l=this[t(0x14a)][t(0x13e)]({'pathParts':[m],'config':h});}else{const n=this[t(0x14a)][t(0x16a)]({'pathParts':['imports',t(0x14e),t(0x137),t(0x15c)]});l=this[t(0x14a)][t(0x13e)]({'pathParts':[n],'config':h});}h['engines'][t(0x137)]===t(0x14b)?(h[t(0x129)]['js']===t(0x13d)?this['fsi'][t(0x126)]({'filePath':l,'content':t(0x123)+i[t(0x169)]+t(0x12a)+k+t(0x158)}):this[t(0x14a)][t(0x126)]({'filePath':l,'content':t(0x123)+i['className']+t(0x12a)+k+'.'+h[t(0x129)]['js']+t(0x158)}),this[t(0x14a)][t(0x143)]({'filePath':l,'content':t(0x147)+i[t(0x169)]+t(0x15e)})):this['fsi'][t(0x143)]({'filePath':l,'content':t(0x161)+k+'.'+h[t(0x129)]['js']+t(0x158)});});}catch(i){Log[s(0x151)](i);}});
@@ -1 +1 @@
1
- function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x13c;let f=c[d];return f;},a102d(a,b);}function a102c(){const n=['120TjigsD','error','110eNslAl',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','leaflet-map','indexOf','Invalid\x20type\x20','932571wUquWB','3298317mHRrSR','138324chwlAq','maka\x20g:kit\x20--type=map','search','create','54hlclWx','(((.+)+)+)+$','apply','map','engines','fsi','(blank)','2RQwhCR','2814550OrqXwR','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','login','743206gRTduJ','3971hkwQtl','notice','getProjectConfig','kit','toString','NIE','307536ItTKjj','resourceName','1260616Thwczz','type','maka\x20{generate,\x20g}:{kit}\x20<kit-name>'];a102c=function(){return n;};return a102c();}const a102k=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=parseInt(h(0x157))/0x1+parseInt(h(0x153))/0x2*(parseInt(h(0x147))/0x3)+parseInt(h(0x15e))/0x4*(-parseInt(h(0x141))/0x5)+parseInt(h(0x14c))/0x6*(-parseInt(h(0x13c))/0x7)+parseInt(h(0x13f))/0x8*(-parseInt(h(0x146))/0x9)+-parseInt(h(0x154))/0xa+parseInt(h(0x158))/0xb*(parseInt(h(0x148))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xd0f68));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a102d;if(c){const e=c[i(0x14e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const j=a102d;return a102a[j(0x15c)]()[j(0x14a)]('(((.+)+)+)+$')[j(0x15c)]()['constructor'](a102a)[j(0x14a)](j(0x14d));});a102a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a102k(0x14b)]({'name':a102k(0x15b),'aliases':['k'],'usage':a102k(0x13e),'shortDesc':a102k(0x155),'validOpts':[a102k(0x13d)],'examples':[a102k(0x149),'maka\x20g:k\x20city-map\x20--type=leaflet-map']},async function(a,b){const l=a102k;try{const c=this[l(0x151)][l(0x15a)]();this[l(0x151)]['withValue'](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x15f)]),'fileName':paramCase(b[m(0x15f)]),'camelCase':camelCase(b[m(0x15f)]),'type':b[m(0x13d)],'engine':c[m(0x150)]['js'],'noRename':!![]},f=[m(0x143),'login'];if(f[m(0x144)](d[m(0x13d)])<0x0){const g=d[m(0x13d)]?d[m(0x13d)]:m(0x152);Log[m(0x140)](m(0x145)+g+m(0x142));return;}b[m(0x13d)]===m(0x14f)&&Log[m(0x159)]('NIE'),b[m(0x13d)]===m(0x156)&&Log[m(0x159)](m(0x15d));});}catch(d){Log['error'](d);}});
1
+ const a102k=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=parseInt(h(0x1ce))/0x1*(parseInt(h(0x1c1))/0x2)+parseInt(h(0x1c9))/0x3*(parseInt(h(0x1c5))/0x4)+parseInt(h(0x1d1))/0x5+-parseInt(h(0x1b1))/0x6*(-parseInt(h(0x1c6))/0x7)+parseInt(h(0x1bd))/0x8*(-parseInt(h(0x1d0))/0x9)+-parseInt(h(0x1ca))/0xa*(parseInt(h(0x1c8))/0xb)+parseInt(h(0x1af))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xb24d5));function a102c(){const n=['notice','engines',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','withValue','kit','toString','apply','login','type','resourceName','9179336gnrjvw','(blank)','getProjectConfig','fsi','500768jHrQYa','leaflet-map','(((.+)+)+)+$','maka\x20g:kit\x20--type=map','4mLaToG','679ClVxDs','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','11jLrZPj','497337cZEOnk','5434990fLtWgx','error','map','Invalid\x20type\x20','1gzIcti','constructor','9LgHYzJ','3066930KVKYhS','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','2248080phSRtZ','search','74496KsPlni','NIE'];a102c=function(){return n;};return a102c();}function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x1ae;let f=c[d];return f;},a102d(a,b);}const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a102d;if(c){const e=c[i(0x1b9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const j=a102d;return a102a[j(0x1b8)]()[j(0x1b0)](j(0x1c3))['toString']()[j(0x1cf)](a102a)[j(0x1b0)](j(0x1c3));});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(0x1b7),'aliases':['k'],'usage':a102k(0x1c7),'shortDesc':a102k(0x1ae),'validOpts':[a102k(0x1bb)],'examples':[a102k(0x1c4),'maka\x20g:k\x20city-map\x20--type=leaflet-map']},async function(a,b){const l=a102k;try{const c=this[l(0x1c0)][l(0x1bf)]();this[l(0x1c0)][l(0x1b6)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x1bc)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[m(0x1bc)]),'type':b[m(0x1bb)],'engine':c[m(0x1b4)]['js'],'noRename':!![]},f=[m(0x1c2),m(0x1ba)];if(f['indexOf'](d[m(0x1bb)])<0x0){const g=d[m(0x1bb)]?d[m(0x1bb)]:m(0x1be);Log[m(0x1cb)](m(0x1cd)+g+m(0x1b5));return;}b['type']===m(0x1cc)&&Log[m(0x1b3)](m(0x1b2)),b['type']===m(0x1ba)&&Log[m(0x1b3)](m(0x1b2));});}catch(d){Log[l(0x1cb)](d);}});
@@ -1 +1 @@
1
- const a103q=a103d;(function(a,b){const o=a103d,c=a();while(!![]){try{const d=parseInt(o(0x1e4))/0x1+parseInt(o(0x216))/0x2*(-parseInt(o(0x207))/0x3)+parseInt(o(0x1e7))/0x4*(-parseInt(o(0x1e2))/0x5)+parseInt(o(0x1e3))/0x6*(parseInt(o(0x1ed))/0x7)+-parseInt(o(0x1d4))/0x8*(parseInt(o(0x1ea))/0x9)+parseInt(o(0x215))/0xa*(parseInt(o(0x1d3))/0xb)+parseInt(o(0x1f8))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xbf9aa));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['toString']()[p(0x20a)](p(0x1f9))[p(0x1d1)]()['constructor'](a103a)[p(0x20a)]('(((.+)+)+)+$');});function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x1d0;let f=c[d];return f;},a103d(a,b);}a103a();import a103e from'path';import{Generator}from'../generator.js';function a103c(){const t=['rewriteDestinationPathForEngine','12050adWHLt','2yJhSGx','features','toString','pathFromApp','8613XPHzuV','4424NDlrKQ','withTranslations','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','import\x20\x27','maka\x20g:layout\x20mobile/iPhone8','theme','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','.app-tests.js','dir','api','client','injectAtBeginningOfFile','import\x20\x27./','string','305JDhwBy','30306JUfkkj','242764rAjRQS','lib','layout','8504phmlzZ','ramda','.css','10917TSHDDf','export\x20{\x20','templates.js','1372CtxlGp','pathFromProject','Scaffolding\x20for\x20a\x20React\x20Layout.','warn','fsi','className','template/template.css','engines','\x27;\x0a','fileName','ssr','9700956QITPet','(((.+)+)+)+$','checkNpmPackage','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','resourceName','setTemplate','create','relative','true','\x20};\x0a','withHook','startup','findAppDirectory','.js','react','4198209epwqGB','tsx','/imports/ui/layouts','search','split','withValue','css','test','\x20}\x20from\x20\x27','imports','test/test.js','template','getProjectConfig'];a103c=function(){return t;};return a103c();}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a103q(0x1fe)]({'name':a103q(0x1e6),'aliases':aliases,'usage':a103q(0x1fb),'shortDesc':a103q(0x1ef),'validOpts':[],'examples':[a103q(0x1d8),'maka\x20g:l\x20web/safari']},function(a,b){const r=a103q,c=r(0x209),d=this[r(0x1f1)][r(0x204)](),e=this[r(0x1f1)][r(0x1d2)]({'pathParts':[c,b[r(0x1dc)],paramCase(b[r(0x1fc)]),paramCase(b[r(0x1fc)])]}),f=this[r(0x1f1)][r(0x213)]();this[r(0x1f1)][r(0x20c)](f,()=>{const s=r;typeof f[s(0x212)][s(0x20e)]==='string'&&(f[s(0x212)]['test']=f[s(0x212)][s(0x20e)]===s(0x200)?!![]:![],this[s(0x1f1)]['setTemplate'](s(0x20e),f[s(0x212)][s(0x20e)]));typeof f[s(0x212)][s(0x20d)]===s(0x1e1)&&(f['template'][s(0x20d)]=f[s(0x212)]['css']===s(0x200)?!![]:![],this[s(0x1f1)]['setTemplate'](s(0x20d),f[s(0x212)][s(0x20d)]));typeof f[s(0x212)]['js']===s(0x1e1)&&(f['template']['js']=f[s(0x212)]['js']===s(0x200)?!![]:![],this[s(0x1f1)][s(0x1fd)]('js',f[s(0x212)]['js']));!f['features']&&(f[s(0x1d0)]={});const g=b['_']?b['_'][0x0][s(0x20b)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this[s(0x1fa)]('ramda')&&(Log[s(0x1f0)](s(0x1d6)),this[s(0x1f1)]['installNpmPackage'](s(0x1e8),{'cwd':d}));if(h&&!this[s(0x1fa)]('react')){Log[s(0x1f0)](s(0x1da));return;}const i={'name':pascalCase(b[s(0x1fc)]),'myPath':a103e[s(0x1ff)](this[s(0x1f1)][s(0x1ee)]({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[s(0x1fc)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'graphql':f[s(0x1f4)]['graphql'],'features':f[s(0x1d0)],'client':f[s(0x1f4)][s(0x1de)],'api':f[s(0x1f4)][s(0x1dd)],'ssr':f[s(0x1f4)][s(0x1f7)],'test':f['engines'][s(0x20e)],'theme':f[s(0x1f4)][s(0x1d9)],'isComponent':![],'isLayout':!![],'withTranslations':f[s(0x1d0)][s(0x1d5)]};f['features']?.['withHooks']||b[s(0x202)]?this[s(0x1f1)][s(0x212)]({'srcPath':'hook/hook.js','destPath':e+s(0x205),'framework':s(0x206),'context':i,'config':f}):this[s(0x1f1)][s(0x212)]({'srcPath':'component/component.js','destPath':e+s(0x205),'framework':s(0x206),'context':i,'config':f});f['engines'][s(0x20e)]!=='none'&&this[s(0x1f1)][s(0x212)]({'srcPath':s(0x211),'destPath':e+s(0x1db),'framework':s(0x206),'context':i,'config':f});f[s(0x212)][s(0x20d)]&&(this[s(0x1f1)][s(0x212)]({'srcPath':s(0x1f3),'destPath':e+s(0x1e9),'context':Object['assign']({},i,{'className':paramCase(b['resourceName'])}),'config':f}),this[s(0x1f1)]['injectAtBeginningOfFile']({'filePath':e+'.'+f['engines']['js'],'content':s(0x1e0)+i['fileName']+'.'+f[s(0x1f4)][s(0x20d)]+'\x27;'}));const j=b['dir']?'/'+b[s(0x1dc)]+'/':'/',k=''+c+j+i[s(0x1f6)]+'/'+i[s(0x1f6)];let l;if(f[s(0x1f4)][s(0x1f7)]===s(0x200)){const m=this[s(0x1f1)][s(0x1d2)]({'pathParts':[s(0x210),s(0x203),s(0x1e5),s(0x1ec)]});l=this[s(0x1f1)][s(0x214)]({'pathParts':[m],'config':f});}else{const n=this[s(0x1f1)][s(0x1d2)]({'pathParts':[s(0x210),s(0x203),s(0x1de),s(0x1ec)]});l=this[s(0x1f1)]['rewriteDestinationPathForEngine']({'pathParts':[n],'config':f});}f['engines'][s(0x1de)]===s(0x206)?(f['engines']['js']===s(0x208)?this['fsi'][s(0x1df)]({'filePath':l,'content':'import\x20{\x20'+i[s(0x1f2)]+'\x20}\x20from\x20\x27'+k+s(0x1f5)}):this[s(0x1f1)][s(0x1df)]({'filePath':l,'content':'import\x20{\x20'+i[s(0x1f2)]+s(0x20f)+k+'.'+f['engines']['js']+s(0x1f5)}),this[s(0x1f1)]['injectAtEndOfFile']({'filePath':l,'content':s(0x1eb)+i[s(0x1f2)]+s(0x201)})):this[s(0x1f1)]['injectAtEndOfFile']({'filePath':l,'content':s(0x1d7)+k+'.'+f['engines']['js']+'\x27;\x0a'});});});
1
+ const a103q=a103d;(function(a,b){const o=a103d,c=a();while(!![]){try{const d=-parseInt(o(0x10c))/0x1*(-parseInt(o(0x124))/0x2)+-parseInt(o(0x139))/0x3*(parseInt(o(0x113))/0x4)+-parseInt(o(0x127))/0x5+parseInt(o(0xfb))/0x6+-parseInt(o(0x100))/0x7*(-parseInt(o(0x114))/0x8)+parseInt(o(0x141))/0x9*(-parseInt(o(0x121))/0xa)+parseInt(o(0x11b))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x86b83));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(0x122)]()['search'](p(0x10f))[p(0x122)]()[p(0xfe)](a103a)['search']('(((.+)+)+)+$');});a103a();import a103e 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 a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0xf8;let f=c[d];return f;},a103d(a,b);}Generator[a103q(0x13a)]({'name':a103q(0x12f),'aliases':aliases,'usage':a103q(0x11d),'shortDesc':a103q(0x11a),'validOpts':[],'examples':['maka\x20g:layout\x20mobile/iPhone8',a103q(0x13f)]},function(a,b){const r=a103q,c=r(0x103),d=this[r(0x138)][r(0x12b)](),e=this[r(0x138)][r(0x108)]({'pathParts':[c,b['dir'],paramCase(b[r(0x134)]),paramCase(b['resourceName'])]}),f=this[r(0x138)][r(0x116)]();this[r(0x138)]['withValue'](f,()=>{const s=r;typeof f[s(0xfa)][s(0x137)]===s(0x109)&&(f[s(0xfa)][s(0x137)]=f[s(0xfa)][s(0x137)]===s(0x10d)?!![]:![],this['fsi']['setTemplate'](s(0x137),f[s(0xfa)][s(0x137)]));typeof f[s(0xfa)]['css']===s(0x109)&&(f['template'][s(0x12e)]=f[s(0xfa)][s(0x12e)]===s(0x10d)?!![]:![],this[s(0x138)]['setTemplate'](s(0x12e),f['template'][s(0x12e)]));typeof f[s(0xfa)]['js']==='string'&&(f[s(0xfa)]['js']=f[s(0xfa)]['js']===s(0x10d)?!![]:![],this['fsi'][s(0x120)]('js',f[s(0xfa)]['js']));!f[s(0x119)]&&(f[s(0x119)]={});const g=b['_']?b['_'][0x0]['split'](':')[0x1]:![],h=b['_']&&aliases[s(0xfc)](g);h&&!this[s(0x12a)](s(0x130))&&(Log['warn']('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),this['fsi'][s(0x117)](s(0x130),{'cwd':d}));if(h&&!this[s(0x12a)](s(0x105))){Log[s(0x12d)](s(0x13b));return;}const i={'name':pascalCase(b['resourceName']),'myPath':a103e[s(0x112)](this['fsi'][s(0x132)]({}),e),'cssCaseName':paramCase(b[s(0x134)]),'className':pascalCase(b[s(0x134)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[s(0x134)]),'graphql':f[s(0xf8)][s(0x104)],'features':f['features'],'client':f[s(0xf8)][s(0x111)],'api':f[s(0xf8)][s(0xf9)],'ssr':f['engines'][s(0x10b)],'test':f[s(0xf8)][s(0x137)],'theme':f['engines'][s(0xff)],'isComponent':![],'isLayout':!![],'withTranslations':f[s(0x119)][s(0x13e)]};f[s(0x119)]?.['withHooks']||b[s(0x133)]?this['fsi'][s(0xfa)]({'srcPath':'hook/hook.js','destPath':e+s(0x12c),'framework':s(0x105),'context':i,'config':f}):this[s(0x138)][s(0xfa)]({'srcPath':s(0x110),'destPath':e+s(0x12c),'framework':'react','context':i,'config':f});f[s(0xf8)][s(0x137)]!==s(0x135)&&this[s(0x138)][s(0xfa)]({'srcPath':s(0x140),'destPath':e+s(0x106),'framework':s(0x105),'context':i,'config':f});f[s(0xfa)][s(0x12e)]&&(this['fsi'][s(0xfa)]({'srcPath':s(0x128),'destPath':e+s(0x10e),'context':Object[s(0x115)]({},i,{'className':paramCase(b[s(0x134)])}),'config':f}),this[s(0x138)][s(0x10a)]({'filePath':e+'.'+f[s(0xf8)]['js'],'content':s(0x13d)+i[s(0x11f)]+'.'+f[s(0xf8)][s(0x12e)]+'\x27;'}));const j=b[s(0x101)]?'/'+b[s(0x101)]+'/':'/',k=''+c+j+i[s(0x11f)]+'/'+i[s(0x11f)];let l;if(f[s(0xf8)][s(0x10b)]===s(0x10d)){const m=this[s(0x138)]['pathFromApp']({'pathParts':[s(0x11c),'startup',s(0x129),'templates.js']});l=this[s(0x138)][s(0x118)]({'pathParts':[m],'config':f});}else{const n=this['fsi']['pathFromApp']({'pathParts':[s(0x11c),s(0x102),s(0x111),s(0x123)]});l=this[s(0x138)][s(0x118)]({'pathParts':[n],'config':f});}f[s(0xf8)][s(0x111)]===s(0x105)?(f['engines']['js']===s(0xfd)?this[s(0x138)][s(0x10a)]({'filePath':l,'content':'import\x20{\x20'+i[s(0x131)]+s(0x125)+k+'\x27;\x0a'}):this[s(0x138)]['injectAtBeginningOfFile']({'filePath':l,'content':s(0x107)+i['className']+s(0x125)+k+'.'+f[s(0xf8)]['js']+'\x27;\x0a'}),this[s(0x138)][s(0x136)]({'filePath':l,'content':s(0x13c)+i['className']+s(0x11e)})):this[s(0x138)]['injectAtEndOfFile']({'filePath':l,'content':'import\x20\x27'+k+'.'+f[s(0xf8)]['js']+s(0x126)});});});function a103c(){const t=['true','.css','(((.+)+)+)+$','component/component.js','client','relative','4eazVMa','292192npNAcr','assign','getProjectConfig','installNpmPackage','rewriteDestinationPathForEngine','features','Scaffolding\x20for\x20a\x20React\x20Layout.','3705141SbQeBt','imports','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','\x20};\x0a','fileName','setTemplate','3670VDdoes','toString','templates.js','810640dBRSeY','\x20}\x20from\x20\x27','\x27;\x0a','1257405kEqbBN','template/template.css','lib','checkNpmPackage','findAppDirectory','.js','warn','css','layout','ramda','className','pathFromProject','withHook','resourceName','none','injectAtEndOfFile','test','fsi','1804347uvqdvD','create','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','export\x20{\x20','import\x20\x27./','withTranslations','maka\x20g:l\x20web/safari','test/test.js','22707mxKJbn','engines','api','template','2058954hBpuUH','includes','tsx','constructor','theme','161IspVmp','dir','startup','/imports/ui/layouts','graphql','react','.app-tests.js','import\x20{\x20','pathFromApp','string','injectAtBeginningOfFile','ssr','2MjTInf'];a103c=function(){return t;};return a103c();}
@@ -1 +1 @@
1
- const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=parseInt(f(0xb5))/0x1*(-parseInt(f(0xad))/0x2)+-parseInt(f(0xac))/0x3*(-parseInt(f(0xa6))/0x4)+-parseInt(f(0xa5))/0x5+parseInt(f(0xb0))/0x6+parseInt(f(0xaf))/0x7+parseInt(f(0xa2))/0x8*(parseInt(f(0xa8))/0x9)+-parseInt(f(0xa7))/0xa*(parseInt(f(0xb2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x7616a));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0xa1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a[h(0xaa)]()[h(0xa4)](h(0xb1))[h(0xaa)]()[h(0xa9)](a104a)[h(0xa4)](h(0xb1));});function a104c(){const j=['41961ZALGBt','9178iSRvlp','Maka!','6712202BtndRh','528438bXGIFs','(((.+)+)+)+$','16181bUyyKU','maka\x20generate:api\x20Trucks','maka','22uHOBDg','apply','655888JXvgwe','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','search','3693220kKGUpG','56brVJmy','10ZwAeXc','9EIVdRs','constructor','toString','\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'];a104c=function(){return j;};return a104c();}a104a();function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0xa1;let f=c[d];return f;},a104d(a,b);}import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a104i(0xb4),'shortDesc':a104i(0xae),'validOpts':[],'description':a104i(0xab),'usage':a104i(0xa3),'examples':[a104i(0xb3),'maka\x20g:hook\x20cool-hook']},function(){return null;});export default MakaGen;
1
+ const a104i=a104d;function a104c(){const j=['41868hAPVmB','maka\x20generate:api\x20Trucks','9KfVsjk','maka','search','apply','7835360uhrphB','173318vlDOOP','6vWLpMV','847MoRIWn','3SvrBcv','1584810iCdPjY','7536872JlaOTZ','(((.+)+)+)+$','366543ghcFnA','Maka!','constructor','3146420acUdYq','36nWxQAh'];a104c=function(){return j;};return a104c();}(function(a,b){const f=a104d,c=a();while(!![]){try{const d=-parseInt(f(0x164))/0x1*(parseInt(f(0x161))/0x2)+parseInt(f(0x155))/0x3*(parseInt(f(0x159))/0x4)+-parseInt(f(0x165))/0x5+-parseInt(f(0x162))/0x6*(-parseInt(f(0x166))/0x7)+-parseInt(f(0x160))/0x8+parseInt(f(0x15c))/0x9*(-parseInt(f(0x158))/0xa)+-parseInt(f(0x163))/0xb*(-parseInt(f(0x15a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x8c219));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x15f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a['toString']()[h(0x15e)](h(0x167))['toString']()[h(0x157)](a104a)[h(0x15e)](h(0x167));});a104a();function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x155;let f=c[d];return f;},a104d(a,b);}import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a104i(0x15d),'shortDesc':a104i(0x156),'validOpts':[],'description':'\x0a\x20\x20For\x20more\x20information\x20visit:\x0a\x20\x20\x20\x20https://www.maka-cli.com\x0a\x20\x20\x20\x20https://medium.com/@maka-io\x0a\x20\x20\x20\x20https://gitter.im/meteor/meteor\x20(@maka-io)\x0a\x20\x20','usage':'maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','examples':[a104i(0x15b),'maka\x20g:hook\x20cool-hook']},function(){return null;});export default MakaGen;
@@ -1 +1 @@
1
- const a105n=a105d;(function(a,b){const k=a105d,c=a();while(!![]){try{const d=-parseInt(k(0xfe))/0x1+-parseInt(k(0xe6))/0x2*(-parseInt(k(0xee))/0x3)+parseInt(k(0x10a))/0x4+-parseInt(k(0xf0))/0x5+parseInt(k(0xeb))/0x6+-parseInt(k(0xfb))/0x7+parseInt(k(0xf6))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xd3be9));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a105d;if(c){const e=c[l(0x110)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const m=a105d;return a105a[m(0x10e)]()['search'](m(0xef))['toString']()['constructor'](a105a)[m(0xfa)](m(0xef));});a105a();function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0xe6;let f=c[d];return f;},a105d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a105c(){const q=['Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','template','toString','dir','apply','appPathPrefix','2uwgOTl','method/method.js','injectAtEndOfFile','create','fsi','6981798PuLAke','check','tsx','2494194ShNAdL','(((.+)+)+)+$','2293580DQEFPD','warn','check\x20ddp-rate-limiter\x20mdg:validated-method','maka\x20g:method\x20todos','import\x20\x27./methods','-rpc-method.','10285672NPmZiD','imports','mdg:validated-method','resourceName','search','9896467ZXVBkR','maka\x20{generate,\x20g}:{method,\x20m}\x20name','methods','1522533Huggnl','installMeteorPackage','checkMeteorPackage','startup','error','engines','withValue','pathFromApp','ddp-rate-limiter','getProjectConfig','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','method','3926380abYKNK','index.'];a105c=function(){return q;};return a105c();}Generator[a105n(0xe9)]({'name':a105n(0x109),'aliases':['m'],'usage':a105n(0xfc),'checkWhere':!![],'shortDesc':a105n(0x10c),'validOpts':[a105n(0x10f)],'examples':[a105n(0xf3)]},function(a,b){const o=a105n;try{const c=this[o(0xea)][o(0x107)]();this[o(0xea)][o(0x104)](c,async()=>{const p=o,d=paramCase(b['resourceName']),f={'name':b[p(0xf9)],'fileName':d,'className':pascalCase(b[p(0xf9)]),'camelCase':camelCase(b[p(0xf9)]),'noRename':!![]};let g='js';c[p(0x103)]['js']===p(0xed)&&(g='ts');const h=this[p(0xea)]['pathFromApp']({});(!this[p(0xea)][p(0x100)](p(0xec))||!this[p(0xea)][p(0x100)](p(0x106))||!this[p(0xea)][p(0x100)](p(0xf8)))&&(Log[p(0xf1)](p(0x108)),this['fsi'][p(0xff)](p(0xf2),{'cwd':h}));this['fsi'][p(0x10d)]({'srcPath':p(0xe7),'destPath':this[p(0xea)][p(0x105)]({'pathParts':['imports',p(0x101),b['appPathPrefix'],p(0xfd),b[p(0x10f)],d+p(0xf5)+g]}),'context':f,'config':c});const i=b[p(0x10f)]?'/'+b[p(0x10f)]+'/':'/',j=this['fsi'][p(0x105)]({'pathParts':[p(0xf7),'startup',b[p(0x111)],p(0x10b)+c[p(0x103)]['js']]});this[p(0xea)][p(0xe8)]({'filePath':j,'content':p(0xf4)+i+d+'-rpc-method\x27;'});});}catch(d){Log[o(0x102)](d);}});
1
+ const a105n=a105d;function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0xe3;let f=c[d];return f;},a105d(a,b);}(function(a,b){const k=a105d,c=a();while(!![]){try{const d=parseInt(k(0x104))/0x1+parseInt(k(0xe6))/0x2+parseInt(k(0xef))/0x3*(parseInt(k(0xeb))/0x4)+parseInt(k(0xe3))/0x5*(parseInt(k(0xf4))/0x6)+-parseInt(k(0xf5))/0x7*(parseInt(k(0x105))/0x8)+-parseInt(k(0xed))/0x9+parseInt(k(0x103))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x34fbc));function a105c(){const q=['247348oZjXHX','24ePwyuN','maka\x20g:method\x20todos','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','checkMeteorPackage','index.','2105WeUUij','resourceName','error','106798BAeFFL','withValue','pathFromApp','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','appPathPrefix','100308pVxetr','startup','2863125oNemrH','dir','3cFIdgQ','import\x20\x27./methods','apply','tsx','ddp-rate-limiter','1074kmqtIy','709198WBVQIh','(((.+)+)+)+$','create','injectAtEndOfFile','imports','fsi','-rpc-method\x27;','toString','engines','search','methods','method/method.js','check','check\x20ddp-rate-limiter\x20mdg:validated-method','4379040wvrMdV'];a105c=function(){return q;};return a105c();}const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a105d;if(c){const e=c[l(0xf1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const m=a105d;return a105a['toString']()['search'](m(0xf6))[m(0xfc)]()['constructor'](a105a)[m(0xfe)](m(0xf6));});a105a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a105n(0xf7)]({'name':'method','aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':a105n(0xe9),'validOpts':[a105n(0xee)],'examples':[a105n(0x106)]},function(a,b){const o=a105n;try{const c=this[o(0xfa)]['getProjectConfig']();this['fsi'][o(0xe7)](c,async()=>{const p=o,d=paramCase(b[p(0xe4)]),f={'name':b[p(0xe4)],'fileName':d,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b[p(0xe4)]),'noRename':!![]};let g='js';c[p(0xfd)]['js']===p(0xf2)&&(g='ts');const h=this[p(0xfa)][p(0xe8)]({});(!this['fsi'][p(0x108)](p(0x101))||!this[p(0xfa)][p(0x108)](p(0xf3))||!this[p(0xfa)][p(0x108)]('mdg:validated-method'))&&(Log['warn'](p(0x107)),this[p(0xfa)]['installMeteorPackage'](p(0x102),{'cwd':h}));this[p(0xfa)]['template']({'srcPath':p(0x100),'destPath':this['fsi'][p(0xe8)]({'pathParts':[p(0xf9),p(0xec),b[p(0xea)],p(0xff),b[p(0xee)],d+'-rpc-method.'+g]}),'context':f,'config':c});const i=b[p(0xee)]?'/'+b[p(0xee)]+'/':'/',j=this[p(0xfa)][p(0xe8)]({'pathParts':[p(0xf9),'startup',b[p(0xea)],p(0x109)+c[p(0xfd)]['js']]});this['fsi'][p(0xf8)]({'filePath':j,'content':p(0xf0)+i+d+p(0xfb)});});}catch(d){Log[o(0xe5)](d);}});
@@ -1 +1 @@
1
- function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x15f;let f=c[d];return f;},a106d(a,b);}const a106o=a106d;function a106c(){const s=['graphql','theme','lib','engines','forEach','438152hHUGKb','client','1090BojRCG','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','create','component','pathFromProject','(((.+)+)+)+$','relative','getProjectConfig','tests/server','774720Iicvze','hasOwnProperty','fsi','packages','390778nSyptE','/client/','maka\x20g:package\x20todos:package','noRename','55022GbuncM','pathFromAppWithNoReWrite','233919Ehhvrm','package/package.js','layout','toString','apply','package','.js','605358rMUmnE','withValue','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','package/','434277QJeZOv','search','template/template.js','8NovgYr','template','12pCrIsd','21bbKJZj','resourceName','dir','constructor'];a106c=function(){return s;};return a106c();}(function(a,b){const l=a106d,c=a();while(!![]){try{const d=-parseInt(l(0x165))/0x1+parseInt(l(0x183))/0x2+-parseInt(l(0x16a))/0x3*(-parseInt(l(0x174))/0x4)+-parseInt(l(0x17f))/0x5+-parseInt(l(0x161))/0x6*(parseInt(l(0x16b))/0x7)+-parseInt(l(0x168))/0x8*(-parseInt(l(0x189))/0x9)+parseInt(l(0x176))/0xa*(parseInt(l(0x187))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x4c612));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a106d;if(c){const e=c[m(0x18d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const n=a106d;return a106a[n(0x18c)]()[n(0x166)](n(0x17b))['toString']()[n(0x16e)](a106a)['search'](n(0x17b));});a106a();import a106e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a106o(0x178)]({'name':a106o(0x15f),'aliases':['p'],'usage':a106o(0x177),'shortDesc':a106o(0x163),'validOpts':[a106o(0x16d)],'examples':[a106o(0x185)]},async function(a,b){const p=a106o,c=paramCase(b[p(0x16c)]),d=this[p(0x181)]['pathFromApp']({'pathParts':['packages',b['dir'],c]}),e=this[p(0x181)][p(0x188)]({'pathParts':[p(0x182),b[p(0x16d)],c,'package.js']}),f=this[p(0x181)][p(0x17d)]();this[p(0x181)][p(0x162)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x16c)]),'myPath':a106e[q(0x17c)](this['fsi'][q(0x17a)]({}),d),'cssCaseName':paramCase(b[q(0x16c)]),'className':pascalCase(b[q(0x16c)]),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f[q(0x172)][q(0x175)],'graphql':f['engines'][q(0x16f)],'ssr':f[q(0x172)]['ssr'],'isComponent':b[q(0x180)](q(0x179)),'isLayout':b[q(0x180)](q(0x18b)),'isStore':b[q(0x180)]('store'),'features':f['features'],'noRename':!![],'theme':f['engines'][q(0x170)]};this['fsi'][q(0x169)]({'srcPath':q(0x18a),'destPath':e,'context':g,'config':f}),g[q(0x186)]=![];const h=d+q(0x184)+c+q(0x160);this[q(0x181)][q(0x169)]({'srcPath':q(0x167),'destPath':h,'context':g,'config':f});const i=[q(0x171),'server','tests/client',q(0x17e)];i[q(0x173)](j=>{const r=q,k=d+'/'+j+'/'+c+'.js';this[r(0x181)]['template']({'srcPath':r(0x164)+j+'/package.js','destPath':k,'context':g,'config':f});});});});
1
+ function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0xae;let f=c[d];return f;},a106d(a,b);}const a106n=a106d;(function(a,b){const l=a106d,c=a();while(!![]){try{const d=parseInt(l(0xb3))/0x1*(parseInt(l(0xc5))/0x2)+parseInt(l(0xbd))/0x3*(-parseInt(l(0xce))/0x4)+parseInt(l(0xc6))/0x5*(-parseInt(l(0xbc))/0x6)+parseInt(l(0xbb))/0x7+-parseInt(l(0xc2))/0x8*(-parseInt(l(0xb2))/0x9)+-parseInt(l(0xbf))/0xa+parseInt(l(0xc8))/0xb*(parseInt(l(0xd3))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x4b1ff));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const m=a106d;return a106a['toString']()[m(0xcf)](m(0xb6))[m(0xdd)]()['constructor'](a106a)['search'](m(0xb6));});a106a();import a106e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a106n(0xd6)]({'name':a106n(0xd2),'aliases':['p'],'usage':a106n(0xcc),'shortDesc':a106n(0xb7),'validOpts':['dir'],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const o=a106n,c=paramCase(b[o(0xb4)]),d=this[o(0xaf)][o(0xba)]({'pathParts':[o(0xb9),b['dir'],c]}),e=this[o(0xaf)][o(0xc9)]({'pathParts':[o(0xb9),b['dir'],c,'package.js']}),f=this[o(0xaf)][o(0xc1)]();this[o(0xaf)][o(0xd7)](f,async()=>{const p=o,g={'name':paramCase(b['resourceName']),'myPath':a106e['relative'](this['fsi'][p(0xb8)]({}),d),'cssCaseName':paramCase(b[p(0xb4)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[p(0xb4)]),'fileName':c,'client':f[p(0xd8)][p(0xdc)],'graphql':f[p(0xd8)][p(0xd5)],'ssr':f[p(0xd8)][p(0xb5)],'isComponent':b[p(0xcb)](p(0xdb)),'isLayout':b['hasOwnProperty'](p(0xb1)),'isStore':b[p(0xcb)](p(0xde)),'features':f[p(0xd1)],'noRename':!![],'theme':f[p(0xd8)][p(0xc0)]};this['fsi']['template']({'srcPath':p(0xbe),'destPath':e,'context':g,'config':f}),g[p(0xb0)]=![];const h=d+p(0xd0)+c+p(0xd4);this[p(0xaf)][p(0xda)]({'srcPath':p(0xc3),'destPath':h,'context':g,'config':f});const i=[p(0xd9),p(0xae),p(0xcd),p(0xca)];i[p(0xc7)](j=>{const q=p,k=d+'/'+j+'/'+c+q(0xd4);this[q(0xaf)][q(0xda)]({'srcPath':q(0xc4)+j+'/package.js','destPath':k,'context':g,'config':f});});});});function a106c(){const r=['4737020ZsGXnB','theme','getProjectConfig','8qkoiPo','template/template.js','package/','2DbFENJ','15EykaAY','forEach','11ekHNRH','pathFromAppWithNoReWrite','tests/server','hasOwnProperty','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','tests/client','4oKzUwQ','search','/client/','features','package','8368116KDWCPF','.js','graphql','create','withValue','engines','lib','template','component','client','toString','store','server','fsi','noRename','layout','81243cnIuCw','232051YPFtXz','resourceName','ssr','(((.+)+)+)+$','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','pathFromProject','packages','pathFromApp','2432234SBLmeQ','525126cjidJf','725721KXgFPE','package/package.js'];a106c=function(){return r;};return a106c();}
@@ -1 +1 @@
1
- const a107o=a107d;(function(a,b){const m=a107d,c=a();while(!![]){try{const d=parseInt(m(0x14a))/0x1+parseInt(m(0x153))/0x2*(parseInt(m(0x156))/0x3)+-parseInt(m(0x13e))/0x4+-parseInt(m(0x15b))/0x5+-parseInt(m(0x12f))/0x6*(parseInt(m(0x139))/0x7)+parseInt(m(0x121))/0x8+parseInt(m(0x120))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xde9f7));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(0x14d)]()[n(0x13a)]('(((.+)+)+)+$')[n(0x14d)]()[n(0x132)](a107a)[n(0x13a)](n(0x151));});a107a();function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x11b;let f=c[d];return f;},a107d(a,b);}import a107e from'path';import{Generator}from'../generator.js';function a107c(){const r=['fileName','vanilla','features','css','export\x20{\x20','className','138uLqtiw','true','components','constructor','/imports/ui/pages','html','injectAtBeginningOfFile','template','rewriteDestinationPathForEngine','imports','490546LTQdgZ','search','layouts','engines','hooks','6783424ayQGAb','graphql','react','string','import\x20{\x20','\x20}\x20from\x20\x27','.app-tests.js','getProjectConfig','import\x20\x27','root','Generate\x20a\x20page.','pathFromApp','827347fpiqay','relative','installNpmPackage','toString','create','template/template.html','setTemplate','(((.+)+)+)+$','\x20};\x0a','454UMBAZv','withHook','pages','21699mkYnmk','checkNpmPackage','hook/hook.js','test','\x27;\x0a','3455900WtEGIP','.html','import\x20\x27./','hasOwnProperty','resourceName','baseDir','client','layout','warn','withHooks','template/template.css','.js','dir','14040846SZcuuj','7050888HDHAsE','ramda','page','pathFromProject','component/component.js','fsi','injectAtEndOfFile','startup'];a107c=function(){return r;};return a107c();}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a107o(0x14e)]({'name':a107o(0x123),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':a107o(0x148),'validOpts':[{'name':'baseDir','values':[a107o(0x13d),a107o(0x131),a107o(0x155),a107o(0x13b)]},{'name':a107o(0x154),'boolFlag':!![]}],'examples':['maka\x20g:page\x20todos/todos-item']},function(a,b){const p=a107o,c=b['baseDir']?'/imports/ui/'+b[p(0x160)]:p(0x133),d=this[p(0x126)][p(0x149)](b),e=this[p(0x126)][p(0x149)]({'pathParts':[c,b['dir'],paramCase(b['resourceName']),paramCase(b[p(0x15f)])]}),f=this['fsi'][p(0x145)]();this[p(0x126)]['withValue'](f,()=>{const q=p;typeof f['template'][q(0x134)]===q(0x141)&&(f[q(0x136)][q(0x134)]=f[q(0x136)]['html']==='true'?!![]:![],this['fsi']['setTemplate'](q(0x134),f[q(0x136)][q(0x134)]));typeof f[q(0x136)][q(0x159)]===q(0x141)&&(f[q(0x136)][q(0x159)]=f[q(0x136)][q(0x159)]===q(0x130)?!![]:![],this['fsi'][q(0x150)](q(0x159),f[q(0x136)][q(0x159)]));typeof f[q(0x136)][q(0x12c)]===q(0x141)&&(f[q(0x136)][q(0x12c)]=f['template'][q(0x12c)]==='true'?!![]:![],this['fsi'][q(0x150)](q(0x12c),f[q(0x136)][q(0x12c)]));typeof f[q(0x136)]['js']==='string'&&(f[q(0x136)]['js']=f[q(0x136)]['js']===q(0x130)?!![]:![],this[q(0x126)][q(0x150)]('js',f[q(0x136)]['js']));!f[q(0x12b)]&&(f[q(0x12b)]={});!b[q(0x147)]&&!this[q(0x126)][q(0x157)]('ramda')&&(Log[q(0x11b)]('Updating\x20npm\x20packages\x20...'),this[q(0x126)][q(0x14c)](q(0x122),{'cwd':d}));const g={'name':pascalCase(b[q(0x15f)]),'myPath':a107e[q(0x14b)](this[q(0x126)][q(0x124)]({}),e),'cssCaseName':paramCase(b[q(0x15f)]),'className':pascalCase(b[q(0x15f)]),'camelCaseName':camelCase(b[q(0x15f)]),'fileName':paramCase(b['resourceName']),'graphql':f[q(0x13c)][q(0x13f)],'features':f[q(0x12b)],'client':f['engines'][q(0x161)],'api':f[q(0x13c)]['api'],'ssr':f['engines']['ssr'],'isStore':b[q(0x15e)]('store'),'isComponent':b['hasOwnProperty']('component'),'isLayout':b[q(0x15e)](q(0x162)),'withTranslations':f[q(0x12b)]['withTranslations'],'test':f['engines']['test'],'theme':f['engines']['theme']};f['template'][q(0x134)]&&this[q(0x126)][q(0x136)]({'srcPath':q(0x14f),'destPath':e+q(0x15c),'context':g,'config':f});f[q(0x12b)]?.[q(0x11c)]||b['withHook']?this['fsi'][q(0x136)]({'srcPath':q(0x158),'destPath':e+q(0x11e),'framework':q(0x140),'context':g,'config':f}):this['fsi'][q(0x136)]({'srcPath':q(0x125),'destPath':e+q(0x11e),'framework':q(0x140),'context':g,'config':f});f['engines']['test']!=='none'&&this[q(0x126)]['template']({'srcPath':'test/test.js','destPath':e+q(0x144),'framework':'react','context':g,'config':f});f['template'][q(0x12c)]&&this['fsi'][q(0x136)]({'srcPath':q(0x11d),'destPath':e+'.css','context':Object['assign']({},g,{'className':paramCase(b[q(0x15f)])}),'config':f});f['engines'][q(0x161)]!=='react'&&f['engines'][q(0x161)]!==q(0x12a)?(f[q(0x136)][q(0x12c)]&&this[q(0x126)][q(0x135)]({'filePath':e+'.'+f['engines']['js'],'content':'import\x20\x27./'+g['fileName']+'.'+f[q(0x13c)][q(0x134)]+'\x27;\x0a'+q(0x15d)+g['fileName']+'.'+f['engines'][q(0x12c)]+'\x27;'}),!f[q(0x136)]['css']&&this[q(0x126)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[q(0x13c)]['js'],'content':q(0x15d)+g[q(0x129)]+'.'+f[q(0x13c)]['html']+'\x27;'})):f[q(0x136)][q(0x12c)]&&this['fsi'][q(0x135)]({'filePath':e+'.'+f[q(0x13c)]['js'],'content':q(0x15d)+g['fileName']+'.'+f[q(0x13c)][q(0x12c)]+'\x27;'});const h=b['dir']?'/'+b[q(0x11f)]+'/':'/',i=''+c+h+g[q(0x129)]+'/'+g[q(0x129)];let j;if(f[q(0x13c)]['ssr']===q(0x130)){const k=this[q(0x126)]['pathFromApp']({'pathParts':[q(0x138),q(0x128),'lib','templates.js']});j=this[q(0x126)][q(0x137)]({'pathParts':[k],'config':f});}else{const l=this[q(0x126)][q(0x149)]({'pathParts':[q(0x138),'startup',q(0x161),'templates.js']});j=this[q(0x126)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':f});}f[q(0x13c)][q(0x161)]==='react'?(f['engines']['js']==='tsx'?this[q(0x126)][q(0x135)]({'filePath':j,'content':q(0x142)+g['className']+'\x20}\x20from\x20\x27'+i+q(0x15a)}):this[q(0x126)][q(0x135)]({'filePath':j,'content':q(0x142)+g[q(0x12e)]+q(0x143)+i+'.'+f['engines']['js']+'\x27;\x0a'}),this[q(0x126)][q(0x127)]({'filePath':j,'content':q(0x12d)+g['className']+q(0x152)})):this['fsi'][q(0x127)]({'filePath':j,'content':q(0x146)+i+'.'+f['engines']['js']+q(0x15a)});});});
1
+ const a107p=a107d;(function(a,b){const m=a107d,c=a();while(!![]){try{const d=-parseInt(m(0xbd))/0x1*(parseInt(m(0x93))/0x2)+-parseInt(m(0x8c))/0x3*(-parseInt(m(0xca))/0x4)+parseInt(m(0xaa))/0x5*(-parseInt(m(0x8a))/0x6)+-parseInt(m(0xad))/0x7+parseInt(m(0xa0))/0x8+-parseInt(m(0xa4))/0x9*(parseInt(m(0xa6))/0xa)+-parseInt(m(0xb5))/0xb*(-parseInt(m(0xa5))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xef463));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a107d;if(c){const e=c[n(0xbc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const o=a107d;return a107a['toString']()[o(0xc7)](o(0xb8))['toString']()[o(0xcc)](a107a)[o(0xc7)](o(0xb8));});a107a();import a107e from'path';function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x86;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[a107p(0xb1)]({'name':a107p(0xc2),'aliases':aliases,'usage':a107p(0xb4),'shortDesc':a107p(0xa1),'validOpts':[{'name':a107p(0xc6),'values':[a107p(0xac),a107p(0xcb),a107p(0x9c),a107p(0x91)]},{'name':a107p(0xb7),'boolFlag':!![]}],'examples':[a107p(0x9d)]},function(a,b){const q=a107p,c=b[q(0xc6)]?q(0xcd)+b[q(0xc6)]:q(0x90),d=this['fsi'][q(0x9a)](b),e=this[q(0xb6)][q(0x9a)]({'pathParts':[c,b[q(0x8f)],paramCase(b[q(0x96)]),paramCase(b[q(0x96)])]}),f=this['fsi'][q(0x9f)]();this[q(0xb6)]['withValue'](f,()=>{const r=q;typeof f[r(0x97)]['html']===r(0xa2)&&(f['template'][r(0xd2)]=f[r(0x97)][r(0xd2)]===r(0xc3)?!![]:![],this[r(0xb6)][r(0xc5)](r(0xd2),f[r(0x97)][r(0xd2)]));typeof f[r(0x97)][r(0xc1)]===r(0xa2)&&(f['template'][r(0xc1)]=f[r(0x97)]['test']===r(0xc3)?!![]:![],this[r(0xb6)][r(0xc5)](r(0xc1),f[r(0x97)][r(0xc1)]));typeof f[r(0x97)][r(0xd4)]===r(0xa2)&&(f[r(0x97)][r(0xd4)]=f['template']['css']===r(0xc3)?!![]:![],this['fsi'][r(0xc5)](r(0xd4),f[r(0x97)][r(0xd4)]));typeof f[r(0x97)]['js']===r(0xa2)&&(f[r(0x97)]['js']=f['template']['js']==='true'?!![]:![],this[r(0xb6)]['setTemplate']('js',f[r(0x97)]['js']));!f[r(0xa7)]&&(f[r(0xa7)]={});!b['root']&&!this[r(0xb6)]['checkNpmPackage'](r(0x87))&&(Log['warn'](r(0x88)),this[r(0xb6)]['installNpmPackage'](r(0x87),{'cwd':d}));const g={'name':pascalCase(b['resourceName']),'myPath':a107e[r(0xcf)](this[r(0xb6)][r(0xd1)]({}),e),'cssCaseName':paramCase(b[r(0x96)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[r(0x96)]),'fileName':paramCase(b[r(0x96)]),'graphql':f[r(0xd6)][r(0xba)],'features':f['features'],'client':f['engines']['client'],'api':f[r(0xd6)][r(0xb2)],'ssr':f[r(0xd6)]['ssr'],'isStore':b['hasOwnProperty'](r(0xc9)),'isComponent':b[r(0xc0)](r(0x8e)),'isLayout':b[r(0xc0)](r(0x98)),'withTranslations':f[r(0xa7)][r(0xbf)],'test':f[r(0xd6)]['test'],'theme':f['engines'][r(0xce)]};f[r(0x97)][r(0xd2)]&&this[r(0xb6)][r(0x97)]({'srcPath':r(0x89),'destPath':e+'.html','context':g,'config':f});f[r(0xa7)]?.[r(0xc4)]||b[r(0xb7)]?this[r(0xb6)]['template']({'srcPath':r(0xab),'destPath':e+'.js','framework':r(0xd5),'context':g,'config':f}):this[r(0xb6)][r(0x97)]({'srcPath':'component/component.js','destPath':e+r(0xa3),'framework':r(0xd5),'context':g,'config':f});f['engines']['test']!=='none'&&this['fsi']['template']({'srcPath':r(0xbe),'destPath':e+r(0xaf),'framework':r(0xd5),'context':g,'config':f});f[r(0x97)][r(0xd4)]&&this[r(0xb6)][r(0x97)]({'srcPath':r(0xae),'destPath':e+r(0x95),'context':Object[r(0x94)]({},g,{'className':paramCase(b[r(0x96)])}),'config':f});f['engines']['client']!==r(0xd5)&&f[r(0xd6)]['client']!=='vanilla'?(f['template'][r(0xd4)]&&this['fsi'][r(0xb0)]({'filePath':e+'.'+f['engines']['js'],'content':r(0xa8)+g[r(0x92)]+'.'+f[r(0xd6)][r(0xd2)]+r(0x9b)+r(0xa8)+g['fileName']+'.'+f[r(0xd6)][r(0xd4)]+'\x27;'}),!f['template'][r(0xd4)]&&this['fsi'][r(0xb0)]({'filePath':e+'.'+f[r(0xd6)]['js'],'content':r(0xa8)+g[r(0x92)]+'.'+f['engines'][r(0xd2)]+'\x27;'})):f[r(0x97)][r(0xd4)]&&this[r(0xb6)][r(0xb0)]({'filePath':e+'.'+f['engines']['js'],'content':'import\x20\x27./'+g[r(0x92)]+'.'+f[r(0xd6)][r(0xd4)]+'\x27;'});const h=b[r(0x8f)]?'/'+b[r(0x8f)]+'/':'/',i=''+c+h+g[r(0x92)]+'/'+g[r(0x92)];let j;if(f[r(0xd6)]['ssr']===r(0xc3)){const k=this[r(0xb6)][r(0x9a)]({'pathParts':['imports',r(0xd3),r(0x99),r(0xb9)]});j=this[r(0xb6)][r(0x8d)]({'pathParts':[k],'config':f});}else{const l=this[r(0xb6)]['pathFromApp']({'pathParts':[r(0x8b),'startup','client',r(0xb9)]});j=this['fsi'][r(0x8d)]({'pathParts':[l],'config':f});}f[r(0xd6)]['client']===r(0xd5)?(f[r(0xd6)]['js']===r(0x9e)?this[r(0xb6)][r(0xb0)]({'filePath':j,'content':r(0xbb)+g[r(0xd0)]+'\x20}\x20from\x20\x27'+i+r(0x9b)}):this[r(0xb6)][r(0xb0)]({'filePath':j,'content':r(0xbb)+g[r(0xd0)]+r(0xb3)+i+'.'+f[r(0xd6)]['js']+'\x27;\x0a'}),this[r(0xb6)][r(0xc8)]({'filePath':j,'content':'export\x20{\x20'+g[r(0xd0)]+r(0xa9)})):this[r(0xb6)][r(0xc8)]({'filePath':j,'content':r(0x86)+i+'.'+f[r(0xd6)]['js']+r(0x9b)});});});function a107c(){const s=['injectAtBeginningOfFile','create','api','\x20}\x20from\x20\x27','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','11TRwwYA','fsi','withHook','(((.+)+)+)+$','templates.js','graphql','import\x20{\x20','apply','91362rRpBOJ','test/test.js','withTranslations','hasOwnProperty','test','page','true','withHooks','setTemplate','baseDir','search','injectAtEndOfFile','store','7827284iPAJlK','components','constructor','/imports/ui/','theme','relative','className','pathFromProject','html','startup','css','react','engines','import\x20\x27','ramda','Updating\x20npm\x20packages\x20...','template/template.html','14250MBbTaa','imports','3peEjzP','rewriteDestinationPathForEngine','component','dir','/imports/ui/pages','layouts','fileName','38OUkEii','assign','.css','resourceName','template','layout','lib','pathFromApp','\x27;\x0a','pages','maka\x20g:page\x20todos/todos-item','tsx','getProjectConfig','7576424TNvETW','Generate\x20a\x20page.','string','.js','2572929zaESjv','39543540KDxgdC','60GHbshH','features','import\x20\x27./','\x20};\x0a','95xfYcLD','hook/hook.js','hooks','12059691PQqHRe','template/template.css','.app-tests.js'];a107c=function(){return s;};return a107c();}
@@ -1 +1 @@
1
- const a108k=a108d;(function(a,b){const h=a108d,c=a();while(!![]){try{const d=-parseInt(h(0x95))/0x1*(-parseInt(h(0x9c))/0x2)+parseInt(h(0xaf))/0x3*(parseInt(h(0xa3))/0x4)+-parseInt(h(0xaa))/0x5+parseInt(h(0xa7))/0x6*(parseInt(h(0x96))/0x7)+parseInt(h(0x98))/0x8+parseInt(h(0xa4))/0x9*(-parseInt(h(0x99))/0xa)+-parseInt(h(0xae))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x73fe4));function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x94;let f=c[d];return f;},a108d(a,b);}const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a108d;if(c){const e=c[i(0xa8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const j=a108d;return a108a[j(0xa6)]()[j(0x97)](j(0x9f))['toString']()['constructor'](a108a)[j(0x97)](j(0x9f));});a108a();function a108c(){const n=['toString','108soxSdt','apply','create','4033840KAtJyC','fsi','tsx','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','10094337JJbZIo','468sORNaJ','server/publish.','688JlVEHu','298347DIIpDC','search','6429768vopgcb','379120zAYxCa','getProjectConfig','engines','1492ePurAM','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','templateContent','(((.+)+)+)+$','publish/publish.','resourceName','maka\x20g:publish\x20todos','13652zyaQHx','99xWhbOe','injectAtEndOfFile'];a108c=function(){return n;};return a108c();}import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a108k(0xa9)]({'name':'publish','aliases':['p'],'usage':a108k(0xad),'shortDesc':a108k(0x9d),'validOpts':[],'examples':[a108k(0xa2)]},async function(a,b){const l=a108k,c=this['fsi'][l(0x9a)]();this[l(0xab)]['withValue'](c,async()=>{const m=l,d={'name':b[m(0xa1)],'collection':paramCase(b['resourceName']),'noRename':!![]};let e='js';c['engines']['js']===m(0xac)&&(e='ts');const f=this[m(0xab)]['rewriteDestinationPathForEngine']({'pathParts':[m(0x94)+c[m(0x9b)]['js']]}),g=this['fsi'][m(0x9e)]({'srcPath':m(0xa0)+e,'context':d,'config':c});this['fsi'][m(0xa5)]({'filePath':f,'content':'\x0a'+g});});});
1
+ const a108k=a108d;(function(a,b){const h=a108d,c=a();while(!![]){try{const d=-parseInt(h(0x95))/0x1*(parseInt(h(0x87))/0x2)+parseInt(h(0x9b))/0x3*(parseInt(h(0x84))/0x4)+parseInt(h(0x93))/0x5*(parseInt(h(0x85))/0x6)+-parseInt(h(0x9a))/0x7+parseInt(h(0x99))/0x8*(-parseInt(h(0x8c))/0x9)+-parseInt(h(0x8a))/0xa*(-parseInt(h(0x94))/0xb)+-parseInt(h(0x86))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xa672d));function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x82;let f=c[d];return f;},a108d(a,b);}const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a108d;if(c){const e=c[i(0x91)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const j=a108d;return a108a[j(0x8e)]()[j(0x98)](j(0x8b))[j(0x8e)]()['constructor'](a108a)[j(0x98)]('(((.+)+)+)+$');});a108a();function a108c(){const n=['187eCZEUX','withValue','resourceName','search','5807288fOesOJ','3278282RMUmYh','750234pJeXDA','tsx','maka\x20g:publish\x20todos','publish/publish.','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','16giDyFu','204cWYmZF','7969992GLwyou','5492otdgZV','getProjectConfig','publish','160HRKVWo','(((.+)+)+)+$','9KeRneV','create','toString','fsi','engines','apply','templateContent','121255JDzIAd','844822BbDgjK'];a108c=function(){return n;};return a108c();}import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a108k(0x8d)]({'name':a108k(0x89),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':a108k(0x83),'validOpts':[],'examples':[a108k(0x9d)]},async function(a,b){const l=a108k,c=this[l(0x8f)][l(0x88)]();this['fsi'][l(0x96)](c,async()=>{const m=l,d={'name':b['resourceName'],'collection':paramCase(b[m(0x97)]),'noRename':!![]};let e='js';c[m(0x90)]['js']===m(0x9c)&&(e='ts');const f=this[m(0x8f)]['rewriteDestinationPathForEngine']({'pathParts':['server/publish.'+c['engines']['js']]}),g=this[m(0x8f)][m(0x92)]({'srcPath':m(0x82)+e,'context':d,'config':c});this[m(0x8f)]['injectAtEndOfFile']({'filePath':f,'content':'\x0a'+g});});});
@@ -1 +1 @@
1
- function a109c(){const I=['warn','injectIntoFile','react','engines','Valid\x20options\x20are:\x20','rewriteDestinationPathForEngine','ssr','511484QIOFRA','route','<Router','withValue','true','/imports/ui/','125730CTWCbj','withTranslations','components','getProjectConfig','(((.+)+)+)+$','apply','</Router>','Invalid\x20directory\x20option\x20\x22','filter','readFileLines','3SMyBwc','create','const\x20publicRoutes\x20=\x20(<>','templateName','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','search','2568096NzJAOe','invoke','injectAfterLineNumber','constructor','client','imports','routes.js','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','hooks','fsi','9GiTiEd','resourceName','root','pages','templateContent','577601KpYRPg','length','PrivateLayout','includes','injectAtEndOfFile','map','\x22*\x22','pathFromApp','maka\x20g:route\x20pages/about','MasterLayout','error','url','10375ofkfgL','Scaffolding\x20for\x20a\x20Route.','layouts','4603991eMiIEh','private','\x0a\x09\x09','page','startup','const\x20privateRoutes\x20=\x20(<>','maka\x20g:route\x20pages/lists/listIndex\x20lists','only','baseDir','90PDDMIB','10728040WDWUuA','layout','route/route.js','cwd','config','toString','toLowerCase','join','maka\x20g:route\x20todosIndex\x20todos','indexOf'];a109c=function(){return I;};return a109c();}const a109A=a109d;(function(a,b){const x=a109d,c=a();while(!![]){try{const d=parseInt(x(0x149))/0x1+-parseInt(x(0x12a))/0x2*(parseInt(x(0x134))/0x3)+parseInt(x(0x124))/0x4+parseInt(x(0x106))/0x5*(-parseInt(x(0x112))/0x6)+parseInt(x(0x109))/0x7+-parseInt(x(0x13a))/0x8*(-parseInt(x(0x144))/0x9)+-parseInt(x(0x113))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x7e51b));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a109d;if(c){const e=c[y(0x12f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const z=a109d;return a109a[z(0x118)]()['search'](z(0x12e))['toString']()[z(0x13d)](a109a)[z(0x139)](z(0x12e));});function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0xfb;let f=c[d];return f;},a109d(a,b);}a109a();import a109e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a109f from'../generators/maka.gen.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a109A(0x135)]({'name':a109A(0x125),'aliases':aliases,'validOpts':[a109A(0x10a),a109A(0x114),a109A(0x110),a109A(0x116),a109A(0x117),'root','withHook',a109A(0x105),'baseDir'],'usage':a109A(0x141),'shortDesc':a109A(0x107),'examples':[a109A(0x11b),'maka\x20g:route\x20todosEdit\x20todos/:id/edit',a109A(0x138),a109A(0x10f),a109A(0x102)]},function(a,b){const B=a109A;try{const c=[B(0x142),B(0x12c),B(0x147),B(0x108)];if(b[B(0x111)]&&!c[B(0xfd)](b[B(0x111)])){Log[B(0x104)](B(0x131)+b[B(0x111)]+'\x22'),Log['error'](B(0x121)+c[B(0x11a)](',\x20'));throw new UsageError();}const d=this[B(0x143)][B(0x12d)]();this[B(0x143)][B(0x127)](d,async()=>{const C=B,f=b['private']??![];let g=paramCase(b[C(0x145)]),h='/'+g;a[C(0xfb)]>0x1&&(h='/'+a['filter'](function(n){return n!=='/';})[C(0x11a)]('/')[C(0x119)]());g=camelCase(g);b[C(0x114)]&&(b[C(0x114)]=camelCase(b[C(0x114)]));const i=b[C(0x111)]?C(0x129)+b[C(0x111)]:'/imports/ui/pages',j=a109e['join'](i,b['dir'],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[C(0x114)]||C(0x103),'templatePath':j,'templateName':pascalCase(g),'client':d[C(0x120)][C(0x13e)],'newForm':![],'withTranslations':d['features'][C(0x12b)]};f&&(k[C(0x114)]=C(0xfc));if(!b[C(0x146)]){const n=a109f['findGenerator'](C(0x10c));n&&await n[C(0x13b)](a,b);}let l,m;if(d[C(0x120)][C(0x13e)]===C(0x11f)){if(d[C(0x120)][C(0x123)]===C(0x128)){const r=this['fsi'][C(0x101)]({'pathParts':[C(0x13f),'startup','lib','routes.js']});l=this['fsi'][C(0x122)]({'pathParts':[r],'config':d});}else{const s=this[C(0x143)][C(0x101)]({'pathParts':['imports',C(0x10d),'client',C(0x140)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[s],'config':d});}const o=this[C(0x143)][C(0x133)](l)[C(0xff)]((t,u)=>{return t['includes']('import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;')?u+0x1:null;})['filter'](t=>t!==null);let p=this[C(0x143)][C(0x133)](l)['map']((t,u)=>{const D=C;return t[D(0xfd)](D(0x136))?u+0x1:null;})[C(0x132)](t=>t!==null),q=this[C(0x143)][C(0x133)](l)[C(0xff)]((t,u)=>{const E=C;return t['includes'](E(0x10e))?u+0x1:null;})['filter'](t=>t!==null);p[C(0xfb)]>0x0&&q[C(0xfb)]>0x0&&(k['newForm']=!![]);m=this[C(0x143)][C(0x148)]({'srcPath':C(0x115),'framework':'react','context':k,'config':d});if(p[C(0xfb)]>0x0||q[C(0xfb)]>0x0){this[C(0x143)]['injectAfterLineNumber']({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[C(0xfb)]>0x0)q=this[C(0x143)]['readFileLines'](l)[C(0xff)]((t,u)=>{const F=C;return t['includes'](F(0x10e))?u+0x1:null;})['filter'](t=>t!==null),this['fsi'][C(0x13c)]({'filePath':l,'content':'\x09{'+k[C(0x137)]+'}','lineNumber':q[0x0]});else p['length']>0x0?(p=this[C(0x143)][C(0x133)](l)[C(0xff)]((t,u)=>{const G=C;return t[G(0xfd)](G(0x136))?u+0x1:null;})[C(0x132)](t=>t!==null),this[C(0x143)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k[C(0x137)]+'}','lineNumber':p[0x0]})):Log[C(0x11d)]('Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20'+l);}else{const t=this[C(0x143)][C(0x133)](l)[C(0xff)](w=>{const H=C;return w[H(0xfd)](H(0x100));}),u=t[C(0x11c)](!![])>-0x1,v=u?'<Route':C(0x130);this[C(0x143)][C(0x11e)]({'filePath':l,'content':'\x0a\x09\x09'+m+C(0x10b),'begin':C(0x126),'end':v});}}else{if(d[C(0x120)][C(0x13e)]==='vanilla'){const w=this['fsi']['pathFromApp']({'pathParts':[C(0x13f),C(0x10d),'client','routes.js']});l=this[C(0x143)][C(0x122)]({'pathParts':[w],'config':d}),m=this['fsi'][C(0x148)]({'srcPath':C(0x115),'context':k}),this[C(0x143)][C(0xfe)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[B(0x104)](f);}});
1
+ const a109A=a109d;function a109c(){const J=['engines','config','pages','Valid\x20options\x20are:\x20','/imports/ui/pages','toString','findGenerator','private','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','invoke','183447oarTav','707049HiyaCg','lib','indexOf','rewriteDestinationPathForEngine','imports','withTranslations','fsi','route','1679262bpynpA','routes.js','\x0a\x09\x09','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','newForm','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','only','root','includes','6QljBDq','constructor','error','5AlHJWx','length','const\x20privateRoutes\x20=\x20(<>','maka\x20g:route\x20pages/lists/listIndex\x20lists','templateName','maka\x20g:route\x20todosEdit\x20todos/:id/edit','const\x20publicRoutes\x20=\x20(<>','cwd','resourceName','3087JELLMG','apply','pathFromApp','route/route.js','3359040PFmGvx','3150587fAKFXc','templateContent','baseDir','layouts','startup','injectIntoFile','10HRVhru','maka\x20g:route\x20pages/about','maka\x20g:route\x20todosIndex\x20todos','create','withHook','Scaffolding\x20for\x20a\x20Route.','</Router>','dir','map','132pQNQPj','hooks','join','vanilla','search','16wGYLDE','375304VSYDjA','layout','url','readFileLines','<Route','PrivateLayout','react','warn','(((.+)+)+)+$','Invalid\x20directory\x20option\x20\x22','client','filter','<Router'];a109c=function(){return J;};return a109c();}(function(a,b){const x=a109d,c=a();while(!![]){try{const d=parseInt(x(0xe9))/0x1*(parseInt(x(0xae))/0x2)+-parseInt(x(0xdd))/0x3*(parseInt(x(0xb4))/0x4)+parseInt(x(0xe0))/0x5*(parseInt(x(0xd4))/0x6)+-parseInt(x(0xcc))/0x7+parseInt(x(0xb3))/0x8*(-parseInt(x(0xcb))/0x9)+parseInt(x(0xa5))/0xa*(parseInt(x(0xee))/0xb)+-parseInt(x(0xed))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x273b3));function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0xa2;let f=c[d];return f;},a109d(a,b);}const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a109d;if(c){const e=c[y(0xea)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const z=a109d;return a109a[z(0xc6)]()[z(0xb2)](z(0xbc))['toString']()[z(0xde)](a109a)[z(0xb2)](z(0xbc));});a109a();import a109e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a109f from'../generators/maka.gen.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a109A(0xa8)]({'name':a109A(0xd3),'aliases':aliases,'validOpts':['private',a109A(0xb5),a109A(0xda),a109A(0xe7),a109A(0xc2),a109A(0xdb),a109A(0xa9),a109A(0xb6),a109A(0xf0)],'usage':'maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','shortDesc':a109A(0xaa),'examples':[a109A(0xa7),a109A(0xe5),a109A(0xc9),a109A(0xe3),a109A(0xa6)]},function(a,b){const B=a109A;try{const c=[B(0xaf),'components',B(0xc3),B(0xa2)];if(b[B(0xf0)]&&!c[B(0xdc)](b[B(0xf0)])){Log[B(0xdf)](B(0xbd)+b[B(0xf0)]+'\x22'),Log[B(0xdf)](B(0xc4)+c['join'](',\x20'));throw new UsageError();}const d=this[B(0xd2)]['getProjectConfig']();this[B(0xd2)]['withValue'](d,async()=>{const C=B,f=b[C(0xc8)]??![];let g=paramCase(b[C(0xe8)]),h='/'+g;a['length']>0x1&&(h='/'+a['filter'](function(n){return n!=='/';})[C(0xb0)]('/')['toLowerCase']());g=camelCase(g);b[C(0xb5)]&&(b[C(0xb5)]=camelCase(b[C(0xb5)]));const i=b[C(0xf0)]?'/imports/ui/'+b[C(0xf0)]:C(0xc5),j=a109e[C(0xb0)](i,b[C(0xac)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[C(0xb5)]||'MasterLayout','templatePath':j,'templateName':pascalCase(g),'client':d[C(0xc1)][C(0xbe)],'newForm':![],'withTranslations':d['features'][C(0xd1)]};f&&(k[C(0xb5)]=C(0xb9));if(!b['root']){const n=a109f[C(0xc7)]('page');n&&await n[C(0xca)](a,b);}let l,m;if(d[C(0xc1)]['client']===C(0xba)){if(d['engines']['ssr']==='true'){const r=this[C(0xd2)][C(0xeb)]({'pathParts':[C(0xd0),C(0xa3),C(0xcd),'routes.js']});l=this['fsi'][C(0xcf)]({'pathParts':[r],'config':d});}else{const s=this[C(0xd2)][C(0xeb)]({'pathParts':[C(0xd0),C(0xa3),C(0xbe),C(0xd5)]});l=this[C(0xd2)][C(0xcf)]({'pathParts':[s],'config':d});}const o=this['fsi'][C(0xb7)](l)[C(0xad)]((t,u)=>{const D=C;return t['includes'](D(0xd9))?u+0x1:null;})[C(0xbf)](t=>t!==null);let p=this[C(0xd2)][C(0xb7)](l)[C(0xad)]((t,u)=>{const E=C;return t[E(0xdc)](E(0xe6))?u+0x1:null;})[C(0xbf)](t=>t!==null),q=this[C(0xd2)][C(0xb7)](l)['map']((t,u)=>{const F=C;return t[F(0xdc)](F(0xe2))?u+0x1:null;})[C(0xbf)](t=>t!==null);p[C(0xe1)]>0x0&&q['length']>0x0&&(k[C(0xd8)]=!![]);m=this[C(0xd2)][C(0xef)]({'srcPath':'route/route.js','framework':C(0xba),'context':k,'config':d});if(p['length']>0x0||q['length']>0x0){this[C(0xd2)]['injectAfterLineNumber']({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[C(0xe1)]>0x0)q=this['fsi'][C(0xb7)](l)[C(0xad)]((t,u)=>{const G=C;return t['includes'](G(0xe2))?u+0x1:null;})[C(0xbf)](t=>t!==null),this[C(0xd2)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':q[0x0]});else p[C(0xe1)]>0x0?(p=this[C(0xd2)][C(0xb7)](l)[C(0xad)]((t,u)=>{const H=C;return t[H(0xdc)](H(0xe6))?u+0x1:null;})[C(0xbf)](t=>t!==null),this['fsi']['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k[C(0xe4)]+'}','lineNumber':p[0x0]})):Log[C(0xbb)](C(0xd7)+l);}else{const t=this[C(0xd2)][C(0xb7)](l)[C(0xad)](w=>{const I=C;return w[I(0xdc)]('\x22*\x22');}),u=t[C(0xce)](!![])>-0x1,v=u?C(0xb8):C(0xab);this[C(0xd2)][C(0xa4)]({'filePath':l,'content':C(0xd6)+m+'\x0a\x09\x09','begin':C(0xc0),'end':v});}}else{if(d['engines'][C(0xbe)]===C(0xb1)){const w=this[C(0xd2)]['pathFromApp']({'pathParts':['imports',C(0xa3),'client',C(0xd5)]});l=this['fsi'][C(0xcf)]({'pathParts':[w],'config':d}),m=this[C(0xd2)][C(0xef)]({'srcPath':C(0xec),'context':k}),this[C(0xd2)]['injectAtEndOfFile']({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[B(0xdf)](f);}});