@maka/maka-cli 4.5.28 → 4.5.30

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 (132) 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/aws/_index.js +1 -1
  5. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  6. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  7. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/build/_index.js +1 -1
  19. package/bundle/obf/src/commands/build/build.js +1 -1
  20. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/create.js +1 -1
  22. package/bundle/obf/src/commands/debug.js +1 -1
  23. package/bundle/obf/src/commands/deploy.js +1 -1
  24. package/bundle/obf/src/commands/game/_index.js +1 -1
  25. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  26. package/bundle/obf/src/commands/game/play.command.js +1 -1
  27. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  29. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  30. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  31. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  62. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  63. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  64. package/bundle/obf/src/commands/generate.js +1 -1
  65. package/bundle/obf/src/commands/get/_index.js +1 -1
  66. package/bundle/obf/src/commands/get/get.command.js +1 -1
  67. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  68. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/help.js +1 -1
  71. package/bundle/obf/src/commands/jsdoc.js +1 -1
  72. package/bundle/obf/src/commands/lint.js +1 -1
  73. package/bundle/obf/src/commands/login.js +1 -1
  74. package/bundle/obf/src/commands/logout.js +1 -1
  75. package/bundle/obf/src/commands/logs.js +1 -1
  76. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  77. package/bundle/obf/src/commands/murder.js +1 -1
  78. package/bundle/obf/src/commands/proxy.js +1 -1
  79. package/bundle/obf/src/commands/reconfig.js +1 -1
  80. package/bundle/obf/src/commands/run/_index.js +1 -1
  81. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  82. package/bundle/obf/src/commands/run/run.command.js +1 -1
  83. package/bundle/obf/src/commands/set/_index.js +1 -1
  84. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  85. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  86. package/bundle/obf/src/commands/set/set.command.js +1 -1
  87. package/bundle/obf/src/commands/ssh.js +1 -1
  88. package/bundle/obf/src/commands/ssl.js +1 -1
  89. package/bundle/obf/src/commands/test.js +1 -1
  90. package/bundle/obf/src/commands/version.js +1 -1
  91. package/bundle/obf/src/error.js +1 -1
  92. package/bundle/obf/src/exec.js +1 -1
  93. package/bundle/obf/src/generator.js +1 -1
  94. package/bundle/obf/src/generators/_index.js +1 -1
  95. package/bundle/obf/src/generators/api.js +1 -1
  96. package/bundle/obf/src/generators/collection.js +1 -1
  97. package/bundle/obf/src/generators/component.js +1 -1
  98. package/bundle/obf/src/generators/config.js +1 -1
  99. package/bundle/obf/src/generators/dbc.js +1 -1
  100. package/bundle/obf/src/generators/dockerfile.js +1 -1
  101. package/bundle/obf/src/generators/hook.js +1 -1
  102. package/bundle/obf/src/generators/kit.js +1 -1
  103. package/bundle/obf/src/generators/layout.js +1 -1
  104. package/bundle/obf/src/generators/maka.gen.js +1 -1
  105. package/bundle/obf/src/generators/methods.js +1 -1
  106. package/bundle/obf/src/generators/package.js +1 -1
  107. package/bundle/obf/src/generators/page.js +1 -1
  108. package/bundle/obf/src/generators/publish.js +1 -1
  109. package/bundle/obf/src/generators/route.js +1 -1
  110. package/bundle/obf/src/generators/service.js +1 -1
  111. package/bundle/obf/src/generators/services/_index.js +1 -1
  112. package/bundle/obf/src/generators/services/openssl.js +1 -1
  113. package/bundle/obf/src/generators/services/translation.js +1 -1
  114. package/bundle/obf/src/maka.js +1 -1
  115. package/bundle/obf/src/tool.js +1 -1
  116. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  117. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  118. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  119. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  120. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  121. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  122. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  123. package/bundle/obf/src/tools/https/https.class.js +1 -1
  124. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  125. package/bundle/obf/src/tools/log/log.class.js +1 -1
  126. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  127. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  128. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  129. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  130. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  131. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  132. package/package.json +1 -1
@@ -1 +1 @@
1
- const a94z=a94d;(function(a,b){const w=a94d,c=a();while(!![]){try{const d=parseInt(w(0x1fb))/0x1+-parseInt(w(0x206))/0x2*(-parseInt(w(0x1de))/0x3)+parseInt(w(0x20d))/0x4+parseInt(w(0x213))/0x5*(parseInt(w(0x211))/0x6)+-parseInt(w(0x1f1))/0x7+-parseInt(w(0x1d0))/0x8*(parseInt(w(0x215))/0x9)+parseInt(w(0x20f))/0xa*(parseInt(w(0x1ca))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0xb87ab));function a94d(a,b){const c=a94c();return a94d=function(d,e){d=d-0x1c7;let f=c[d];return f;},a94d(a,b);}const a94b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a94d;if(c){const e=c[x(0x20b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a94a=a94b(this,function(){const y=a94d;return a94a['toString']()[y(0x212)](y(0x1d4))[y(0x1fc)]()[y(0x1e9)](a94a)[y(0x212)](y(0x1d4));});a94a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a94e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';function a94c(){const C=['10776fZMoNm','/imports/api','pathFromApp','Resolvers);\x0a\x0a','(((.+)+)+)+$','push','findGenerator','GraphQL','api','Publications','RPC\x20(Methods)','API\x20boundaries\x20to\x20create','const','installMeteorPackage','3HkVRBF','typeList.push(','.app-tests.','injectAtEndOfFile','test','/graphql/resolvers','graphql','rest','injectIntoFile','maka:rest','none','constructor','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','rewriteDestinationPathForEngine','create','maka:check','engines','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','withFixtures','7131152lqzmPR','withMethods','api/publications.js','injectAtBeginningOfFile','apollo','fsi','api/api.js','checkbox','startup','maka\x20{generate,\x20g}:{api}\x20<resource-name>','581178sKNdLa','toString','ddp-rate-limiter','maka\x20g:api\x20todos','\x0aimport\x20{\x20resolvers\x20as\x20','No\x20API\x20boundaries\x20selected','api/tests.js','server','withGql','publications.','index.','1120382nynTqb','includes','dir','api/typeDefs.js','Resolvers\x20}\x20from\x20\x27','apply','api/methods.js','394532DXbjAQ','api/fixtures.js','10BjcxmL','if\x20\x5c(typeList','6wsRGRs','search','6759785TpUMZi','register-','8649mBphDO','error','collection','import\x20\x27./register-','withRest','apiAnswers','-api.','template','imports','5245581rmWLab','withPubs','resolverList.push(','withValue','checkMeteorPackage','fixtures.'];a94c=function(){return C;};return a94c();}Generator[a94z(0x1ec)]({'name':a94z(0x1d8),'aliases':['a'],'usage':a94z(0x1fa),'shortDesc':a94z(0x1ef),'validOpts':[a94z(0x208)],'examples':[a94z(0x1fe)]},async function(a,b){const A=a94z;try{const c=this[A(0x1f6)]['getProjectConfig'](),d=[{'name':A(0x1da),'value':A(0x1f2)},{'name':'Fixtures','value':A(0x1f0)},{'name':A(0x1d9),'value':A(0x1cb)}];c['engines']['api']===A(0x1e5)&&d['push']({'name':'REST\x20API','value':A(0x219)});c[A(0x1ee)][A(0x1e4)]===A(0x1f5)&&d[A(0x1d5)]({'name':A(0x1d7),'value':A(0x203)});const f={'type':A(0x1f8),'name':A(0x21a),'message':A(0x1db),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions['options'](f);g['length']===0x0&&(Log[A(0x216)](A(0x200)),process['exit'](0x1)),this[A(0x1f6)][A(0x1cd)](c,async()=>{const B=A,h=this[B(0x1f6)][B(0x1d2)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[B(0x208)]?'/'+b[B(0x208)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c['engines'][B(0x1d8)],'graphql':c['engines'][B(0x1e4)],'test':c[B(0x1ee)][B(0x1e2)],'noRename':!![],'withPubs':g[B(0x207)]('withPubs'),'withFixtures':g[B(0x207)](B(0x1f0)),'withMethods':g[B(0x207)](B(0x1f2)),'withRest':g[B(0x207)](B(0x219))};let n='js';c['engines']['js']==='tsx'&&(n='ts');(!this['fsi'][B(0x1ce)](B(0x1e7))||!this['fsi']['checkMeteorPackage'](B(0x1ed))||!this[B(0x1f6)][B(0x1ce)](B(0x1fd))||!this[B(0x1f6)][B(0x1ce)]('mdg:validated-method')||!this['fsi'][B(0x1ce)]('mongo'))&&(Log['notice']('Verifying\x20meteor\x20package\x20requirements\x20...'),await this['fsi'][B(0x1dd)](B(0x1ea),{'cwd':h}));const o=a94e[B(0x1d6)](B(0x217));o&&await o['invoke']([j],{'config':c,'where':B(0x202)});c[B(0x1ee)][B(0x1d8)]===B(0x1e5)&&(m['withRest']&&this['fsi'][B(0x1c8)]({'srcPath':B(0x1f7),'destPath':this[B(0x1f6)]['pathFromApp']({'pathParts':[B(0x1c9),B(0x1d8),b[B(0x208)],j,'rest-api.'+n]}),'context':m,'config':c}));m['withMethods']&&this['fsi'][B(0x1c8)]({'srcPath':B(0x20c),'destPath':this[B(0x1f6)][B(0x1d2)]({'pathParts':[B(0x1c9),B(0x1d8),b['dir'],j,'rpc-methods.'+n]}),'context':m,'config':c});m[B(0x1f0)]&&this['fsi'][B(0x1c8)]({'srcPath':B(0x20e),'destPath':this['fsi'][B(0x1d2)]({'pathParts':[B(0x1c9),B(0x1d8),b[B(0x208)],j,B(0x1cf)+n]}),'context':m,'config':c});c[B(0x1ee)][B(0x1e2)]!==B(0x1e8)&&this[B(0x1f6)][B(0x1c8)]({'srcPath':B(0x201),'destPath':this[B(0x1f6)][B(0x1d2)]({'pathParts':[B(0x1c9),B(0x1d8),b['dir'],j,j+B(0x1e0)+n]}),'context':m,'config':c});m['withPubs']&&this[B(0x1f6)][B(0x1c8)]({'srcPath':B(0x1f3),'destPath':this[B(0x1f6)]['pathFromApp']({'pathParts':[B(0x1c9),'api',b[B(0x208)],j,B(0x204)+n]}),'context':m,'config':c});if(c[B(0x1ee)][B(0x1e4)]===B(0x1f5)){if(g[B(0x207)]('withGql')){const q=this['fsi']['pathFromApp']({'pathParts':['imports',B(0x1f9),'server',B(0x205)+c[B(0x1ee)]['js']]}),r=this[B(0x1f6)][B(0x1eb)]({'pathParts':[q],'config':c}),s=this[B(0x1f6)]['pathFromApp']({'pathParts':[B(0x1c9),B(0x1d8),b[B(0x208)],j,B(0x1e4),'typeDefs.'+n]}),t=B(0x1d1)+l+j+'/graphql/typeDefs';this[B(0x1f6)][B(0x1c8)]({'srcPath':B(0x209),'destPath':s,'context':m,'config':c}),this['fsi'][B(0x1f4)]({'filePath':r,'content':'import\x20{\x20typeDefs\x20as\x20'+k+'TypeDefs\x20}\x20from\x20\x27'+t+'\x27;\x0a'}),this[B(0x1f6)][B(0x1e6)]({'filePath':r,'content':B(0x1df)+k+'TypeDefs);\x0a','begin':B(0x1dc),'end':'if\x20\x5c(typeList'});const u=this[B(0x1f6)][B(0x1d2)]({'pathParts':[B(0x1c9),B(0x1d8),b[B(0x208)],j,B(0x1e4),'resolvers.'+n]}),v=B(0x1d1)+l+j+B(0x1e3);this['fsi'][B(0x1c8)]({'srcPath':'api/resolvers.js','destPath':u,'context':m,'config':c}),this[B(0x1f6)][B(0x1f4)]({'filePath':r,'content':B(0x1ff)+k+B(0x20a)+v+'\x27;'}),this[B(0x1f6)][B(0x1e6)]({'filePath':r,'content':B(0x1cc)+k+B(0x1d3),'begin':'const','end':B(0x210)});}}this[B(0x1f6)][B(0x1c8)]({'srcPath':'api/register-api.js','destPath':this[B(0x1f6)][B(0x1d2)]({'pathParts':[B(0x1c9),B(0x1f9),B(0x202),B(0x214)+j+B(0x1c7)+n]}),'context':m,'config':c,'force':!![]});const p=this['fsi'][B(0x1d2)]({'pathParts':[B(0x1c9),B(0x1f9),'server',B(0x205)+c[B(0x1ee)]['js']]});this[B(0x1f6)][B(0x1e1)]({'filePath':p,'content':B(0x218)+j+'-api\x27;'});});}catch(h){console['log'](h),process['exit'](0x0);}});
1
+ const a94y=a94d;(function(a,b){const w=a94d,c=a();while(!![]){try{const d=parseInt(w(0xc2))/0x1*(parseInt(w(0xf8))/0x2)+parseInt(w(0xe3))/0x3+-parseInt(w(0x10b))/0x4+-parseInt(w(0xc1))/0x5*(-parseInt(w(0xdc))/0x6)+-parseInt(w(0xca))/0x7*(parseInt(w(0xcb))/0x8)+parseInt(w(0xff))/0x9+parseInt(w(0x104))/0xa*(-parseInt(w(0xfa))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0xd16fa));const a94b=(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;};}()),a94a=a94b(this,function(){const x=a94d;return a94a[x(0xd8)]()['search'](x(0x10a))[x(0xd8)]()['constructor'](a94a)[x(0xe2)]('(((.+)+)+)+$');});a94a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a94c(){const B=['collection','api/publications.js','10hBtCjD','apiAnswers','api/tests.js','REST\x20API','maka\x20g:api\x20todos','includes','(((.+)+)+)+$','632800MCawTQ','apollo','TypeDefs);\x0a','import\x20{\x20typeDefs\x20as\x20','withPubs','Verifying\x20meteor\x20package\x20requirements\x20...','TypeDefs\x20}\x20from\x20\x27','mongo','log','template','installMeteorPackage','rewriteDestinationPathForEngine','RPC\x20(Methods)','findGenerator','\x27;\x0a','injectIntoFile','652220WVsntI','8ytzHLe','tsx','rest-api.','push','maka:rest','api/fixtures.js','notice','register-','4838561cIakZP','8HgHcjY','/graphql/resolvers','api/register-api.js','error','withGql','withFixtures','pathFromApp','engines','fsi','rest','api/typeDefs.js','api','api/resolvers.js','toString','Publications','maka\x20{generate,\x20g}:{api}\x20<resource-name>','Resolvers\x20}\x20from\x20\x27','42aSHiTv','none','import\x20\x27./register-','withValue','dir','if\x20\x5c(typeList','search','1905876rKuEhf','ddp-rate-limiter','index.','graphql','options','mdg:validated-method','/graphql/typeDefs','injectAtBeginningOfFile','/imports/api','API\x20boundaries\x20to\x20create','withRest','server','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','const','checkMeteorPackage','rpc-methods.','api/api.js','test','fixtures.','exit','startup','7604yeCwTn','withMethods','7695127lCvlwB','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','typeList.push(','No\x20API\x20boundaries\x20selected','checkbox','7452126YZTJuS','invoke','imports'];a94c=function(){return B;};return a94c();}import{Actions}from'../tools/actions/actions.class.js';import a94e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';function a94d(a,b){const c=a94c();return a94d=function(d,e){d=d-0xb4;let f=c[d];return f;},a94d(a,b);}Generator['create']({'name':a94y(0xd6),'aliases':['a'],'usage':a94y(0xda),'shortDesc':a94y(0xfb),'validOpts':[a94y(0xe0)],'examples':[a94y(0x108)]},async function(a,b){const z=a94y;try{const c=this[z(0xd3)]['getProjectConfig'](),d=[{'name':z(0xbd),'value':z(0xf9)},{'name':'Fixtures','value':z(0xd0)},{'name':z(0xd9),'value':z(0xb5)}];c[z(0xd2)][z(0xd6)]===z(0xd4)&&d[z(0xc5)]({'name':z(0x107),'value':'withRest'});c[z(0xd2)][z(0xe6)]===z(0x10c)&&d[z(0xc5)]({'name':'GraphQL','value':'withGql'});const f={'type':z(0xfe),'name':z(0x105),'message':z(0xec),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[z(0xe7)](f);g['length']===0x0&&(Log[z(0xce)](z(0xfd)),process[z(0xf6)](0x1)),this[z(0xd3)][z(0xdf)](c,async()=>{const A=z,h=this[A(0xd3)][A(0xd1)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[A(0xe0)]?'/'+b[A(0xe0)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[A(0xd2)][A(0xd6)],'graphql':c[A(0xd2)][A(0xe6)],'test':c['engines']['test'],'noRename':!![],'withPubs':g[A(0x109)](A(0xb5)),'withFixtures':g[A(0x109)](A(0xd0)),'withMethods':g[A(0x109)]('withMethods'),'withRest':g[A(0x109)](A(0xed))};let n='js';c[A(0xd2)]['js']===A(0xc3)&&(n='ts');(!this[A(0xd3)]['checkMeteorPackage'](A(0xc6))||!this[A(0xd3)]['checkMeteorPackage']('maka:check')||!this['fsi'][A(0xf1)](A(0xe4))||!this[A(0xd3)]['checkMeteorPackage'](A(0xe8))||!this[A(0xd3)][A(0xf1)](A(0xb8)))&&(Log[A(0xc8)](A(0xb6)),await this[A(0xd3)][A(0xbb)](A(0xef),{'cwd':h}));const o=a94e[A(0xbe)](A(0x102));o&&await o[A(0x100)]([j],{'config':c,'where':A(0xee)});c['engines']['api']==='rest'&&(m[A(0xed)]&&this[A(0xd3)][A(0xba)]({'srcPath':A(0xf3),'destPath':this['fsi']['pathFromApp']({'pathParts':[A(0x101),A(0xd6),b[A(0xe0)],j,A(0xc4)+n]}),'context':m,'config':c}));m[A(0xf9)]&&this[A(0xd3)][A(0xba)]({'srcPath':'api/methods.js','destPath':this[A(0xd3)][A(0xd1)]({'pathParts':[A(0x101),A(0xd6),b[A(0xe0)],j,A(0xf2)+n]}),'context':m,'config':c});m[A(0xd0)]&&this[A(0xd3)][A(0xba)]({'srcPath':A(0xc7),'destPath':this['fsi'][A(0xd1)]({'pathParts':['imports',A(0xd6),b['dir'],j,A(0xf5)+n]}),'context':m,'config':c});c['engines'][A(0xf4)]!==A(0xdd)&&this[A(0xd3)][A(0xba)]({'srcPath':A(0x106),'destPath':this[A(0xd3)]['pathFromApp']({'pathParts':[A(0x101),A(0xd6),b[A(0xe0)],j,j+'.app-tests.'+n]}),'context':m,'config':c});m['withPubs']&&this[A(0xd3)][A(0xba)]({'srcPath':A(0x103),'destPath':this[A(0xd3)][A(0xd1)]({'pathParts':[A(0x101),A(0xd6),b['dir'],j,'publications.'+n]}),'context':m,'config':c});if(c[A(0xd2)][A(0xe6)]===A(0x10c)){if(g[A(0x109)](A(0xcf))){const q=this[A(0xd3)][A(0xd1)]({'pathParts':[A(0x101),A(0xf7),A(0xee),'index.'+c[A(0xd2)]['js']]}),r=this[A(0xd3)][A(0xbc)]({'pathParts':[q],'config':c}),s=this[A(0xd3)][A(0xd1)]({'pathParts':[A(0x101),A(0xd6),b[A(0xe0)],j,'graphql','typeDefs.'+n]}),t=A(0xeb)+l+j+A(0xe9);this[A(0xd3)][A(0xba)]({'srcPath':A(0xd5),'destPath':s,'context':m,'config':c}),this[A(0xd3)][A(0xea)]({'filePath':r,'content':A(0xb4)+k+A(0xb7)+t+A(0xbf)}),this['fsi'][A(0xc0)]({'filePath':r,'content':A(0xfc)+k+A(0x10d),'begin':'const','end':A(0xe1)});const u=this['fsi']['pathFromApp']({'pathParts':[A(0x101),A(0xd6),b[A(0xe0)],j,A(0xe6),'resolvers.'+n]}),v='/imports/api'+l+j+A(0xcc);this[A(0xd3)][A(0xba)]({'srcPath':A(0xd7),'destPath':u,'context':m,'config':c}),this[A(0xd3)][A(0xea)]({'filePath':r,'content':'\x0aimport\x20{\x20resolvers\x20as\x20'+k+A(0xdb)+v+'\x27;'}),this['fsi'][A(0xc0)]({'filePath':r,'content':'resolverList.push('+k+'Resolvers);\x0a\x0a','begin':A(0xf0),'end':A(0xe1)});}}this[A(0xd3)][A(0xba)]({'srcPath':A(0xcd),'destPath':this[A(0xd3)][A(0xd1)]({'pathParts':['imports',A(0xf7),A(0xee),A(0xc9)+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const p=this[A(0xd3)][A(0xd1)]({'pathParts':[A(0x101),'startup',A(0xee),A(0xe5)+c[A(0xd2)]['js']]});this[A(0xd3)]['injectAtEndOfFile']({'filePath':p,'content':A(0xde)+j+'-api\x27;'});});}catch(h){console[z(0xb9)](h),process[z(0xf6)](0x0);}});
@@ -1 +1 @@
1
- const a95n=a95d;(function(a,b){const k=a95d,c=a();while(!![]){try{const d=-parseInt(k(0x1f3))/0x1*(-parseInt(k(0x1ce))/0x2)+-parseInt(k(0x1da))/0x3+parseInt(k(0x1e8))/0x4+parseInt(k(0x1d8))/0x5+-parseInt(k(0x1f4))/0x6+parseInt(k(0x1e2))/0x7*(-parseInt(k(0x1c9))/0x8)+parseInt(k(0x1e1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x616c1));function a95c(){const q=['create','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','template','test','2SddXtb','.app-tests.','collection','where','dir','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','none','appPathPrefix','collections','injectAtEndOfFile','2561375zODFsL','(((.+)+)+)+$','1033827TlKFUK','resourceName','withValue','tsx','imports','startup','fsi','6531714JqJVvV','33299DWxXnc','error','getProjectConfig','\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','collection/collection.js','collection/tests.js','858636zJaXAL','checkMeteorPackage','maka:check','mongo','engines','col','installMeteorPackage','apply','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','notice','toString','373181CCNynG','4409700yirCGZ','maka\x20g:collection\x20todos','import\x20\x27./collections','pathFromApp','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','584UkYKLS'];a95c=function(){return q;};return a95c();}const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a95d;if(c){const e=c[l(0x1ef)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const m=a95d;return a95a[m(0x1f2)]()['search'](m(0x1d9))[m(0x1f2)]()['constructor'](a95a)['search']('(((.+)+)+)+$');});a95a();import{paramCase,pascalCase}from'change-case';function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0x1c6;let f=c[d];return f;},a95d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a95n(0x1ca)]({'name':a95n(0x1d0),'aliases':[a95n(0x1ed)],'usage':a95n(0x1c8),'checkWhere':!![],'shortDesc':a95n(0x1cb),'validOpts':[a95n(0x1d2),a95n(0x1d1)],'description':a95n(0x1e5),'examples':[a95n(0x1f5)]},async function(a,b){const o=a95n;try{const c=this['fsi'][o(0x1c7)]({}),d=this[o(0x1e0)][o(0x1e4)]();this[o(0x1e0)][o(0x1dc)](d,async()=>{const p=o,f=paramCase(b[p(0x1db)]),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b['resourceName']),'fileName':f,'where':b[p(0x1d1)],'test':d[p(0x1ec)]['test'],'noRename':!![]};let h='js';d['engines']['js']===p(0x1dd)&&(h='ts');!this[p(0x1e0)][p(0x1e9)](p(0x1eb))&&(Log[p(0x1f1)](p(0x1d3)),await this[p(0x1e0)][p(0x1ee)](p(0x1eb),{'cwd':c}));!this[p(0x1e0)][p(0x1e9)](p(0x1ea))&&(Log[p(0x1f1)](p(0x1f0)),await this[p(0x1e0)][p(0x1ee)]('maka:check',{'cwd':c}));this[p(0x1e0)]['template']({'srcPath':p(0x1e6),'destPath':this[p(0x1e0)]['pathFromApp']({'pathParts':[p(0x1de),p(0x1df),b[p(0x1d5)],p(0x1d6),b[p(0x1d2)],f+'.'+h]}),'context':g,'config':d});d[p(0x1ec)][p(0x1cd)]!==p(0x1d4)&&this['fsi'][p(0x1cc)]({'srcPath':p(0x1e7),'destPath':this['fsi'][p(0x1c7)]({'pathParts':[p(0x1de),p(0x1df),b[p(0x1d5)],p(0x1d6),b[p(0x1d2)],f+p(0x1cf)+h]}),'context':g,'config':d});const i=b['dir']?'/'+b['dir']+'/':'/',j=this[p(0x1e0)][p(0x1c7)]({'pathParts':[p(0x1de),p(0x1df),b[p(0x1d5)],'index.'+d['engines']['js']]});this[p(0x1e0)][p(0x1d7)]({'filePath':j,'content':p(0x1c6)+i+f+'\x27;'});});}catch(f){Log[o(0x1e3)](f);}});
1
+ function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0x14a;let f=c[d];return f;},a95d(a,b);}const a95m=a95d;(function(a,b){const k=a95d,c=a();while(!![]){try{const d=parseInt(k(0x155))/0x1*(parseInt(k(0x157))/0x2)+parseInt(k(0x14b))/0x3*(parseInt(k(0x165))/0x4)+-parseInt(k(0x151))/0x5+-parseInt(k(0x15c))/0x6+-parseInt(k(0x167))/0x7+parseInt(k(0x153))/0x8*(parseInt(k(0x16d))/0x9)+-parseInt(k(0x14f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x815f8));const a95b=(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;};}()),a95a=a95b(this,function(){const l=a95d;return a95a['toString']()['search']('(((.+)+)+)+$')[l(0x16f)]()[l(0x15f)](a95a)['search'](l(0x15a));});a95a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a95c(){const p=['index.','2805152UocIoi','resourceName','error','where','.app-tests.','dir','8050149mSGiBw','mongo','toString','collection/collection.js','imports','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','withValue','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','fsi','none','notice','15XdMeIK','pathFromApp','maka\x20g:collection\x20todos','maka:check','3470620zkEiGk','injectAtEndOfFile','2734360LFQIaV','collection','8UqoTJi','template','661473VPUuEY','tsx','2VLUfxm','appPathPrefix','getProjectConfig','(((.+)+)+)+$','create','1888092mxOnmK','startup','checkMeteorPackage','constructor','engines','collections','\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','466664ADxdSf'];a95c=function(){return p;};return a95c();}import{Log}from'../tools/log/log.class.js';Generator[a95m(0x15b)]({'name':a95m(0x152),'aliases':['col'],'usage':a95m(0x172),'checkWhere':!![],'shortDesc':a95m(0x163),'validOpts':[a95m(0x16c),a95m(0x16a)],'description':a95m(0x162),'examples':[a95m(0x14d)]},async function(a,b){const n=a95m;try{const c=this[n(0x175)][n(0x14c)]({}),d=this[n(0x175)][n(0x159)]();this['fsi'][n(0x173)](d,async()=>{const o=n,f=paramCase(b[o(0x168)]),g={'name':pascalCase(b[o(0x168)]),'collectionName':pascalCase(b[o(0x168)]),'fileName':f,'where':b[o(0x16a)],'test':d[o(0x160)]['test'],'noRename':!![]};let h='js';d[o(0x160)]['js']===o(0x156)&&(h='ts');!this['fsi'][o(0x15e)](o(0x16e))&&(Log[o(0x14a)](o(0x164)),await this['fsi']['installMeteorPackage'](o(0x16e),{'cwd':c}));!this[o(0x175)][o(0x15e)](o(0x14e))&&(Log[o(0x14a)](o(0x174)),await this[o(0x175)]['installMeteorPackage'](o(0x14e),{'cwd':c}));this['fsi'][o(0x154)]({'srcPath':o(0x170),'destPath':this[o(0x175)]['pathFromApp']({'pathParts':['imports',o(0x15d),b[o(0x158)],o(0x161),b[o(0x16c)],f+'.'+h]}),'context':g,'config':d});d['engines']['test']!==o(0x176)&&this['fsi']['template']({'srcPath':'collection/tests.js','destPath':this['fsi'][o(0x14c)]({'pathParts':['imports','startup',b[o(0x158)],o(0x161),b[o(0x16c)],f+o(0x16b)+h]}),'context':g,'config':d});const i=b[o(0x16c)]?'/'+b['dir']+'/':'/',j=this[o(0x175)][o(0x14c)]({'pathParts':[o(0x171),'startup',b[o(0x158)],o(0x166)+d[o(0x160)]['js']]});this['fsi'][o(0x150)]({'filePath':j,'content':'import\x20\x27./collections'+i+f+'\x27;'});});}catch(f){Log[n(0x169)](f);}});
@@ -1 +1 @@
1
- const a96r=a96d;(function(a,b){const o=a96d,c=a();while(!![]){try{const d=parseInt(o(0x10c))/0x1+-parseInt(o(0x100))/0x2+parseInt(o(0x137))/0x3+-parseInt(o(0x119))/0x4*(-parseInt(o(0xfe))/0x5)+parseInt(o(0x128))/0x6*(parseInt(o(0x10b))/0x7)+parseInt(o(0xfd))/0x8*(parseInt(o(0x142))/0x9)+-parseInt(o(0xf7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x39549));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a96d;if(c){const e=c[p(0x11d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const q=a96d;return a96a['toString']()[q(0x116)](q(0x122))[q(0x110)]()[q(0x138)](a96a)['search'](q(0x122));});function a96c(){const u=['\x20}\x20from\x20\x27','521320bMABcH','getProjectConfig','installNpmPackage','resourceName','create','assign','.css','reflux','component/component.js','test','root','147shWBXA','329043jTlhKT','tsx','string','fsi','toString','pages','baseDir','withValue','component','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','search','import\x20{\x20','features','68024FTEvph','graphql','hooks','setTemplate','apply','import\x20\x27','ramda','engines','injectAtBeginningOfFile','(((.+)+)+)+$','withTranslations','\x27;\x0a','relative','injectAtEndOfFile','error','95076PZzTmn','warn','components','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','.js','cssCaseName','maka\x20g:comp\x20todos/todos-item','findAppDirectory','\x20};\x0a','true','import\x20\x27./','pathFromProject','fileName','templates.js','className','635196aYMDqa','constructor','theme','template','css','Invalid\x20directory\x20option\x20\x22','dir','startup','/imports/ui/','template/template.css','react','9GSMMtX','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','imports','/imports/ui/components','8530330wCJzGD','pathFromApp','checkNpmPackage','api','client','rewriteDestinationPathForEngine','1895144wknYhT','70dHKEcC'];a96c=function(){return u;};return a96c();}function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0xf4;let f=c[d];return f;},a96d(a,b);}a96a();import a96e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';const aliases=['comp'];Generator[a96r(0x104)]({'name':a96r(0x114),'aliases':aliases,'usage':a96r(0x12b),'shortDesc':a96r(0xf4),'validOpts':[a96r(0x112)],'examples':[a96r(0x12e)]},async function(a,b){const s=a96r;try{const c=[s(0x11b),s(0x12a),s(0x111),'layouts'];if(b[s(0x112)]&&!c['includes'](b['baseDir'])){Log[s(0x127)](s(0x13c)+b[s(0x112)]+'\x22'),Log[s(0x127)]('Valid\x20options\x20are:\x20'+c['join'](',\x20'));throw new UsageError();}const d=this[s(0x10f)][s(0x12f)](),f=b[s(0x112)]?s(0x13f)+b['baseDir']:s(0xf6),g=this['fsi']['pathFromApp']({'pathParts':[f,b['dir'],b['resourceName'],paramCase(b[s(0x103)])]}),h=await this[s(0x10f)][s(0x101)]();this['fsi'][s(0x113)](h,async()=>{const t=s;typeof h['template'][t(0x109)]==='string'&&(h[t(0x13a)]['test']=h[t(0x13a)]['test']==='true'?!![]:![],this['fsi']['setTemplate'](t(0x109),h['template']['test']));typeof h[t(0x13a)]['css']==='string'&&(h[t(0x13a)]['css']=h[t(0x13a)][t(0x13b)]===t(0x131)?!![]:![],this['fsi'][t(0x11c)](t(0x13b),h[t(0x13a)][t(0x13b)]));typeof h['template']['js']===t(0x10e)&&(h[t(0x13a)]['js']=h[t(0x13a)]['js']===t(0x131)?!![]:![],this[t(0x10f)][t(0x11c)]('js',h['template']['js']));!h[t(0x118)]&&(h[t(0x118)]={});!b[t(0x10a)]&&!this[t(0x10f)][t(0xf9)]('ramda')&&(Log[t(0x129)](t(0x143)),await this[t(0x10f)][t(0x102)](t(0x11f),{'cwd':d}));if(!b[t(0x10a)]&&!this['fsi']['checkNpmPackage']('react')){Log['error'](t(0x115));return;}const i={'name':pascalCase(b[t(0x103)]),'myPath':a96e[t(0x125)](this[t(0x10f)][t(0x133)]({}),g),'cssCaseName':paramCase(b[t(0x103)]),'className':pascalCase(b[t(0x103)]),'camelCaseName':camelCase(b[t(0x103)]),'fileName':paramCase(b['resourceName']),'graphql':h[t(0x120)][t(0x11a)],'features':h[t(0x118)],'client':h[t(0x120)][t(0xfb)],'api':h['engines'][t(0xfa)],'ssr':h[t(0x120)]['ssr'],'test':h[t(0x120)][t(0x109)],'theme':h['engines'][t(0x139)],'isLayout':![],'isComponent':!![],'withTranslations':h[t(0x118)][t(0x123)]};this[t(0x10f)][t(0x13a)]({'srcPath':t(0x108),'destPath':g+t(0x12c),'context':i,'framework':t(0x141),'config':h});h[t(0x120)]['test']!=='none'&&this[t(0x10f)][t(0x13a)]({'srcPath':'test/test.js','destPath':g+'.tests.js','context':i,'framework':'react','config':h});h['template'][t(0x13b)]&&(this[t(0x10f)]['template']({'srcPath':t(0x140),'destPath':g+t(0x106),'context':Object[t(0x105)]({},i,{'className':paramCase(b[t(0x103)])}),'config':h}),this[t(0x10f)]['injectAtBeginningOfFile']({'filePath':g+'.'+h[t(0x120)]['js'],'content':t(0x132)+i[t(0x12d)]+'.'+h[t(0x120)][t(0x13b)]+'\x27;'}));const j=b['dir']?'/'+b[t(0x13d)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[t(0x134)];let l;if(h[t(0x120)]['ssr']==='true'){const m=this[t(0x10f)][t(0xf8)]({'pathParts':[t(0xf5),t(0x13e),'lib',t(0x135)]});l=this[t(0x10f)][t(0xfc)]({'pathParts':[m],'config':h});}else{const n=this[t(0x10f)][t(0xf8)]({'pathParts':['imports',t(0x13e),'client',t(0x135)]});l=this[t(0x10f)][t(0xfc)]({'pathParts':[n],'config':h});}h['engines'][t(0xfb)]===t(0x141)||h[t(0x120)][t(0xfb)]===t(0x107)?(h[t(0x120)]['js']===t(0x10d)?this[t(0x10f)][t(0x121)]({'filePath':l,'content':t(0x117)+i['className']+t(0xff)+k+t(0x124)}):this[t(0x10f)][t(0x121)]({'filePath':l,'content':'import\x20{\x20'+i[t(0x136)]+t(0xff)+k+'.'+h[t(0x120)]['js']+t(0x124)}),this[t(0x10f)]['injectAtEndOfFile']({'filePath':l,'content':'export\x20{\x20'+i[t(0x136)]+t(0x130)})):this['fsi'][t(0x126)]({'filePath':l,'content':t(0x11e)+k+'.'+h[t(0x120)]['js']+t(0x124)});});}catch(i){Log[s(0x127)](i);}});
1
+ const a96r=a96d;(function(a,b){const o=a96d,c=a();while(!![]){try{const d=parseInt(o(0x11d))/0x1*(-parseInt(o(0x11b))/0x2)+parseInt(o(0x12d))/0x3+parseInt(o(0x10d))/0x4*(-parseInt(o(0x114))/0x5)+-parseInt(o(0xfd))/0x6*(parseInt(o(0x12e))/0x7)+parseInt(o(0x119))/0x8+parseInt(o(0x100))/0x9+parseInt(o(0x120))/0xa*(parseInt(o(0x118))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x8ef3a));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a96d;if(c){const e=c[p(0x10e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const q=a96d;return a96a[q(0x112)]()[q(0xea)](q(0x10b))[q(0x112)]()['constructor'](a96a)['search'](q(0x10b));});a96a();function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0xe3;let f=c[d];return f;},a96d(a,b);}function a96c(){const u=['includes','468348FTaNkv','true','cssCaseName','5093505LhywFb','import\x20\x27','/imports/ui/components','className','test','warn','component/component.js','findAppDirectory','imports','\x20};\x0a','graphql','(((.+)+)+)+$','root','1360UkzbKS','apply','pathFromApp','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','Valid\x20options\x20are:\x20','toString','css','815sohreu','react','string','pages','11cJNTha','966600DXAHXC','Invalid\x20directory\x20option\x20\x22','26fOcVlX','assign','41186enpStb','baseDir','injectAtEndOfFile','11525680VSWovv','fileName','dir','engines','template','templates.js','.js','rewriteDestinationPathForEngine','resourceName','ramda','\x27;\x0a','lib','injectAtBeginningOfFile','118656FLclzn','63TiuHKq','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','template/template.css','hooks','withTranslations','\x20}\x20from\x20\x27','import\x20{\x20','features','setTemplate','installNpmPackage','search','test/test.js','export\x20{\x20','join','maka\x20g:comp\x20todos/todos-item','comp','pathFromProject','import\x20\x27./','client','api','fsi','error','/imports/ui/','none','.css','relative','layouts','ssr'];a96c=function(){return u;};return a96c();}import a96e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';const aliases=[a96r(0xef)];Generator['create']({'name':'component','aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','validOpts':['baseDir'],'examples':[a96r(0xee)]},async function(a,b){const s=a96r;try{const c=[s(0xe3),'components',s(0x117),s(0xfa)];if(b[s(0x11e)]&&!c[s(0xfc)](b[s(0x11e)])){Log[s(0xf5)](s(0x11a)+b[s(0x11e)]+'\x22'),Log[s(0xf5)](s(0x111)+c[s(0xed)](',\x20'));throw new UsageError();}const d=this['fsi'][s(0x107)](),f=b[s(0x11e)]?s(0xf6)+b[s(0x11e)]:s(0x102),g=this[s(0xf4)]['pathFromApp']({'pathParts':[f,b[s(0x122)],b[s(0x128)],paramCase(b['resourceName'])]}),h=await this[s(0xf4)]['getProjectConfig']();this[s(0xf4)]['withValue'](h,async()=>{const t=s;typeof h[t(0x124)]['test']===t(0x116)&&(h[t(0x124)][t(0x104)]=h[t(0x124)]['test']==='true'?!![]:![],this['fsi']['setTemplate']('test',h[t(0x124)][t(0x104)]));typeof h['template'][t(0x113)]==='string'&&(h[t(0x124)][t(0x113)]=h[t(0x124)][t(0x113)]===t(0xfe)?!![]:![],this['fsi'][t(0xe8)](t(0x113),h[t(0x124)]['css']));typeof h[t(0x124)]['js']===t(0x116)&&(h[t(0x124)]['js']=h[t(0x124)]['js']===t(0xfe)?!![]:![],this['fsi']['setTemplate']('js',h[t(0x124)]['js']));!h[t(0xe7)]&&(h[t(0xe7)]={});!b[t(0x10c)]&&!this['fsi']['checkNpmPackage'](t(0x129))&&(Log[t(0x105)](t(0x12f)),await this[t(0xf4)][t(0xe9)](t(0x129),{'cwd':d}));if(!b[t(0x10c)]&&!this['fsi']['checkNpmPackage'](t(0x115))){Log[t(0xf5)](t(0x110));return;}const i={'name':pascalCase(b[t(0x128)]),'myPath':a96e[t(0xf9)](this[t(0xf4)][t(0xf0)]({}),g),'cssCaseName':paramCase(b[t(0x128)]),'className':pascalCase(b[t(0x128)]),'camelCaseName':camelCase(b[t(0x128)]),'fileName':paramCase(b['resourceName']),'graphql':h[t(0x123)][t(0x10a)],'features':h['features'],'client':h['engines']['client'],'api':h[t(0x123)][t(0xf3)],'ssr':h[t(0x123)][t(0xfb)],'test':h[t(0x123)][t(0x104)],'theme':h[t(0x123)]['theme'],'isLayout':![],'isComponent':!![],'withTranslations':h[t(0xe7)][t(0xe4)]};this[t(0xf4)][t(0x124)]({'srcPath':t(0x106),'destPath':g+t(0x126),'context':i,'framework':t(0x115),'config':h});h[t(0x123)]['test']!==t(0xf7)&&this[t(0xf4)][t(0x124)]({'srcPath':t(0xeb),'destPath':g+'.tests.js','context':i,'framework':'react','config':h});h[t(0x124)][t(0x113)]&&(this['fsi'][t(0x124)]({'srcPath':t(0x130),'destPath':g+t(0xf8),'context':Object[t(0x11c)]({},i,{'className':paramCase(b[t(0x128)])}),'config':h}),this[t(0xf4)][t(0x12c)]({'filePath':g+'.'+h[t(0x123)]['js'],'content':t(0xf1)+i[t(0xff)]+'.'+h[t(0x123)][t(0x113)]+'\x27;'}));const j=b[t(0x122)]?'/'+b[t(0x122)]+'/':'/',k=''+f+j+i[t(0x121)]+'/'+i[t(0x121)];let l;if(h[t(0x123)][t(0xfb)]==='true'){const m=this[t(0xf4)]['pathFromApp']({'pathParts':['imports','startup',t(0x12b),'templates.js']});l=this[t(0xf4)][t(0x127)]({'pathParts':[m],'config':h});}else{const n=this[t(0xf4)][t(0x10f)]({'pathParts':[t(0x108),'startup',t(0xf2),t(0x125)]});l=this[t(0xf4)]['rewriteDestinationPathForEngine']({'pathParts':[n],'config':h});}h[t(0x123)][t(0xf2)]===t(0x115)||h[t(0x123)][t(0xf2)]==='reflux'?(h[t(0x123)]['js']==='tsx'?this[t(0xf4)][t(0x12c)]({'filePath':l,'content':t(0xe6)+i[t(0x103)]+'\x20}\x20from\x20\x27'+k+t(0x12a)}):this[t(0xf4)][t(0x12c)]({'filePath':l,'content':t(0xe6)+i[t(0x103)]+t(0xe5)+k+'.'+h[t(0x123)]['js']+'\x27;\x0a'}),this[t(0xf4)][t(0x11f)]({'filePath':l,'content':t(0xec)+i[t(0x103)]+t(0x109)})):this[t(0xf4)][t(0x11f)]({'filePath':l,'content':t(0x101)+k+'.'+h['engines']['js']+t(0x12a)});});}catch(i){Log[s(0xf5)](i);}});
@@ -1 +1 @@
1
- const a97k=a97d;(function(a,b){const h=a97d,c=a();while(!![]){try{const d=parseInt(h(0x1e6))/0x1+parseInt(h(0x1d8))/0x2+-parseInt(h(0x1db))/0x3+-parseInt(h(0x1cb))/0x4+parseInt(h(0x1e7))/0x5*(-parseInt(h(0x1e0))/0x6)+parseInt(h(0x1e2))/0x7*(-parseInt(h(0x1d7))/0x8)+parseInt(h(0x1d2))/0x9*(parseInt(h(0x1c8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xbd21e));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a97d;if(c){const e=c[i(0x1e5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const j=a97d;return a97a['toString']()['search'](j(0x1cd))[j(0x1d3)]()[j(0x1ce)](a97a)['search'](j(0x1cd));});a97a();function a97c(){const n=['isDocker','3567221uBqFoN','pathFromProject','withValue','apply','1282107fEVgox','16495CKYmfi','production','20wNskmz','ubuntu','dev','5574584wZCHQG','Generate\x20configuration\x20settings.','(((.+)+)+)+$','constructor','create','maka\x20g:config\x20production','fsi','5303079tXxbiJ','toString','resourceName','config/settings.json','config','8FOkjzP','1160920SpLzUk','appName','template','406389fBKemJ','settings.json','maka\x20{generate,\x20g}:{config}\x20<name>','getProjectConfig','development','414hkMJZI'];a97c=function(){return n;};return a97c();}import{Generator}from'../generator.js';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1c7;let f=c[d];return f;},a97d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a97k(0x1cf)]({'name':a97k(0x1d6),'usage':a97k(0x1dd),'shortDesc':a97k(0x1cc),'validOpts':[a97k(0x1e1)],'examples':[a97k(0x1d0)]},function(a,b){const l=a97k,c=this['fsi'][l(0x1de)]();this[l(0x1d1)][l(0x1e4)](c,async()=>{const m=l,d={'app':c['appName'],'appFileCase':paramCase(c[m(0x1d9)]),'name':pascalCase(b[m(0x1d4)]),'fileName':paramCase(b[m(0x1d4)]),'camelCase':camelCase(b[m(0x1d4)]),'userName':m(0x1c9),'isDocker':b['isDocker']};let e=a[0x0];if(e===m(0x1ca))e=m(0x1df);else e==='prod'&&(e=m(0x1c7));const f=this[m(0x1d1)][m(0x1e3)]({'pathParts':[m(0x1d6),e,m(0x1dc)]});this['fsi'][m(0x1da)]({'srcPath':m(0x1d5),'destPath':f,'context':d,'config':c});if(!b['isDocker']){const g=this[m(0x1d1)][m(0x1e3)]({'pathParts':['config',e,'process.env']});this[m(0x1d1)]['template']({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});
1
+ const a97k=a97d;function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0xc3;let f=c[d];return f;},a97d(a,b);}(function(a,b){const h=a97d,c=a();while(!![]){try{const d=parseInt(h(0xd0))/0x1+-parseInt(h(0xc7))/0x2+parseInt(h(0xd3))/0x3*(parseInt(h(0xdd))/0x4)+parseInt(h(0xd7))/0x5*(-parseInt(h(0xdb))/0x6)+parseInt(h(0xca))/0x7*(-parseInt(h(0xc8))/0x8)+-parseInt(h(0xe1))/0x9*(-parseInt(h(0xd5))/0xa)+parseInt(h(0xcd))/0xb*(parseInt(h(0xd9))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x47213));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a97d;if(c){const e=c[i(0xd8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const j=a97d;return a97a[j(0xc6)]()[j(0xcc)]('(((.+)+)+)+$')[j(0xc6)]()['constructor'](a97a)[j(0xcc)](j(0xda));});function a97c(){const n=['prod','397903NNLwtO','isDocker','config','475167LrEPjq','template','6800sDzBXj','maka\x20g:config\x20production','13155ZDIYoc','apply','388632ssELbD','(((.+)+)+)+$','1104XSanNh','Generate\x20configuration\x20settings.','8cMTlvN','appName','fsi','resourceName','7416atHPff','getProjectConfig','config/process.env','process.env','maka\x20{generate,\x20g}:{config}\x20<name>','toString','951816JPBErI','8VePjRW','production','1299004giWNtp','pathFromProject','search','55sDyLzw','dev'];a97c=function(){return n;};return a97c();}a97a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a97k(0xd2),'usage':a97k(0xc5),'shortDesc':a97k(0xdc),'validOpts':[a97k(0xd1)],'examples':[a97k(0xd6)]},function(a,b){const l=a97k,c=this[l(0xdf)][l(0xe2)]();this[l(0xdf)]['withValue'](c,async()=>{const m=l,d={'app':c[m(0xde)],'appFileCase':paramCase(c[m(0xde)]),'name':pascalCase(b['resourceName']),'fileName':paramCase(b[m(0xe0)]),'camelCase':camelCase(b[m(0xe0)]),'userName':'ubuntu','isDocker':b[m(0xd1)]};let e=a[0x0];if(e===m(0xce))e='development';else e===m(0xcf)&&(e=m(0xc9));const f=this[m(0xdf)][m(0xcb)]({'pathParts':[m(0xd2),e,'settings.json']});this['fsi'][m(0xd4)]({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b['isDocker']){const g=this['fsi'][m(0xcb)]({'pathParts':[m(0xd2),e,m(0xc4)]});this['fsi'][m(0xd4)]({'srcPath':m(0xc3),'destPath':g,'context':d,'config':c});}});});
@@ -1 +1 @@
1
- function a98c(){const t=['1930190Yabbrh','startup','9535064gmSabq','getProjectConfig','warn','1zDtHFj','tsx','33Mlttym','Invalid\x20type\x20','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','imports','fsi','pgsql','error','better-sqlite3','list','search','dbc/register-dbc.js','server','create','withValue','471wreWKy','maka\x20g:dbc\x20azure\x20--type=mssql','installNpmPackage','PostgreSQL','1964475quvsTN','dbc/config.js','31224tlevAB','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','6635845wRRzer','DB\x20Driver','template','register-','mssql','toString','engines',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','type','dbAnswer','checkNpmPackage','dbc/conn.js','options','config.','apply','pathFromApp','constructor','dir','35smIJpr','import\x20\x27./register-','dbc','-dbc\x27;','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','775538OkAiFI','sqlite','(((.+)+)+)+$','MS\x20SQL','injectAtEndOfFile','index.','maka\x20g:dbc\x20geoserver\x20--type=pgsql','indexOf','resourceName','(blank)','88842zBanDA'];a98c=function(){return t;};return a98c();}const a98q=a98d;(function(a,b){const n=a98d,c=a();while(!![]){try{const d=-parseInt(n(0x123))/0x1*(parseInt(n(0x113))/0x2)+parseInt(n(0x133))/0x3*(parseInt(n(0xfa))/0x4)+parseInt(n(0xfc))/0x5+parseInt(n(0x11d))/0x6*(parseInt(n(0x10e))/0x7)+-parseInt(n(0x120))/0x8+parseInt(n(0xf8))/0x9+-parseInt(n(0x11e))/0xa*(parseInt(n(0x125))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xa78e8));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a98d;if(c){const e=c[o(0x10a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const p=a98d;return a98a[p(0x101)]()[p(0x12e)](p(0x115))[p(0x101)]()[p(0x10c)](a98a)['search']('(((.+)+)+)+$');});a98a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0xf5;let f=c[d];return f;},a98d(a,b);}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a98q(0x131)]({'name':'dbc','usage':a98q(0xfb),'shortDesc':a98q(0x112),'validOpts':[a98q(0x104),'dir'],'examples':[a98q(0x119),a98q(0xf5),'maka\x20g:dbc\x20todos\x20--type=sqlite']},async function(a,b){const r=a98q;try{const c=await this[r(0x129)][r(0x121)](),d=this[r(0x129)][r(0x10b)]({}),f=paramCase(b[r(0x11b)]);if(!b['type']){const h={'type':r(0x12d),'name':r(0x105),'message':r(0xfd),'choices':[{'name':r(0xf7),'value':'pgsql'},{'name':r(0x116),'value':'mssql'}]},{dbAnswer:i}=await Actions[r(0x108)](h);i&&(b[r(0x104)]=i);}const g={'name':pascalCase(b[r(0x11b)]),'fileName':paramCase(b[r(0x11b)]),'camelCase':camelCase(b['resourceName']),'type':b[r(0x104)],'engine':c[r(0x102)]['js'],'noRename':!![]};this['fsi'][r(0x132)](c,async()=>{const s=r;let j='js';c[s(0x102)]['js']===s(0x124)&&(j='ts');const k=['mssql',s(0x12a)];if(k[s(0x11a)](g[s(0x104)])<0x0){const m=g[s(0x104)]?g[s(0x104)]:s(0x11c);Log[s(0x12b)](s(0x126)+m+s(0x103));return;}b['type']===s(0x12a)&&!this['fsi'][s(0x106)]('pg')&&(Log[s(0x122)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this['fsi'][s(0xf6)]('pg',{'cwd':d}));b[s(0x104)]===s(0x100)&&!this[s(0x129)]['checkNpmPackage'](s(0x100))&&(Log[s(0x122)]('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[s(0x129)][s(0xf6)]('mssql',{'cwd':d}));b[s(0x104)]===s(0x114)&&!this['fsi'][s(0x106)](s(0x12c))&&(Log[s(0x122)](s(0x127)),await this[s(0x129)][s(0xf6)](s(0x12c),{'cwd':d}));this[s(0x129)][s(0xfe)]({'srcPath':s(0xf9),'destPath':this[s(0x129)][s(0x10b)]({'pathParts':[s(0x128),s(0x11f),'server','dbc',b[s(0x10d)],f,s(0x109)+j]}),'context':g,'config':c}),this[s(0x129)][s(0xfe)]({'srcPath':s(0x107),'destPath':this[s(0x129)][s(0x10b)]({'pathParts':[s(0x128),s(0x11f),s(0x130),s(0x110),b[s(0x10d)],f,'conn.'+j]}),'context':g,'config':c}),this[s(0x129)][s(0xfe)]({'srcPath':s(0x12f),'destPath':this[s(0x129)][s(0x10b)]({'pathParts':[s(0x128),s(0x11f),s(0x130),s(0xff)+f+'-dbc.'+j]}),'context':g,'config':c});const l=this[s(0x129)][s(0x10b)]({'pathParts':[s(0x128),s(0x11f),s(0x130),s(0x118)+c[s(0x102)]['js']]});this['fsi'][s(0x117)]({'filePath':l,'content':s(0x10f)+f+s(0x111)});});}catch(j){Log[r(0x12b)](j);}});
1
+ const a98q=a98d;function a98c(){const t=['277410vnPXTn','312074HVKsBI','dbc','mssql','9WYeyyW','-dbc.','search','dir','import\x20\x27./register-','pathFromApp','better-sqlite3','10HtvFzG','injectAtEndOfFile','MS\x20SQL','7130RowSxn','type','apply','DB\x20Driver','dbc/config.js','withValue','config.','server','8404840JNPJDu','(((.+)+)+)+$','resourceName','conn.','(blank)','toString','imports','11698659bxHzON','-dbc\x27;','dbAnswer','fsi','warn','engines','index.','pgsql','create','PostgreSQL','sqlite','3480UMHWAh','constructor','maka\x20g:dbc\x20geoserver\x20--type=pgsql','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','checkNpmPackage','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','installNpmPackage','options','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','indexOf','error','32wJIcqI','register-','4149845WRcvrx','startup','22672320CzGXxU','template'];a98c=function(){return t;};return a98c();}(function(a,b){const n=a98d,c=a();while(!![]){try{const d=-parseInt(n(0x13f))/0x1*(parseInt(n(0x13c))/0x2)+parseInt(n(0x13b))/0x3*(parseInt(n(0x135))/0x4)+-parseInt(n(0x149))/0x5*(parseInt(n(0x12a))/0x6)+parseInt(n(0x137))/0x7+parseInt(n(0x151))/0x8+-parseInt(n(0x158))/0x9*(parseInt(n(0x146))/0xa)+parseInt(n(0x139))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xdeea0));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a98d;if(c){const e=c[o(0x14b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const p=a98d;return a98a[p(0x156)]()[p(0x141)](p(0x152))[p(0x156)]()[p(0x12b)](a98a)[p(0x141)](p(0x152));});a98a();function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x124;let f=c[d];return f;},a98d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a98q(0x127)]({'name':a98q(0x13d),'usage':'maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','shortDesc':a98q(0x12f),'validOpts':[a98q(0x14a),a98q(0x142)],'examples':[a98q(0x12c),'maka\x20g:dbc\x20azure\x20--type=mssql','maka\x20g:dbc\x20todos\x20--type=sqlite']},async function(a,b){const r=a98q;try{const c=await this['fsi']['getProjectConfig'](),d=this[r(0x15b)][r(0x144)]({}),f=paramCase(b[r(0x153)]);if(!b[r(0x14a)]){const h={'type':'list','name':r(0x15a),'message':r(0x14c),'choices':[{'name':r(0x128),'value':r(0x126)},{'name':r(0x148),'value':r(0x13e)}]},{dbAnswer:i}=await Actions[r(0x131)](h);i&&(b[r(0x14a)]=i);}const g={'name':pascalCase(b[r(0x153)]),'fileName':paramCase(b[r(0x153)]),'camelCase':camelCase(b['resourceName']),'type':b[r(0x14a)],'engine':c[r(0x124)]['js'],'noRename':!![]};this['fsi'][r(0x14e)](c,async()=>{const s=r;let j='js';c[s(0x124)]['js']==='tsx'&&(j='ts');const k=['mssql',s(0x126)];if(k[s(0x133)](g[s(0x14a)])<0x0){const m=g['type']?g[s(0x14a)]:s(0x155);Log[s(0x134)]('Invalid\x20type\x20'+m+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[s(0x14a)]===s(0x126)&&!this[s(0x15b)][s(0x12e)]('pg')&&(Log[s(0x15c)](s(0x132)),await this[s(0x15b)][s(0x130)]('pg',{'cwd':d}));b['type']===s(0x13e)&&!this[s(0x15b)][s(0x12e)](s(0x13e))&&(Log['warn']('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this['fsi'][s(0x130)]('mssql',{'cwd':d}));b[s(0x14a)]===s(0x129)&&!this[s(0x15b)][s(0x12e)](s(0x145))&&(Log[s(0x15c)](s(0x12d)),await this[s(0x15b)][s(0x130)](s(0x145),{'cwd':d}));this[s(0x15b)][s(0x13a)]({'srcPath':s(0x14d),'destPath':this[s(0x15b)]['pathFromApp']({'pathParts':[s(0x157),'startup','server',s(0x13d),b[s(0x142)],f,s(0x14f)+j]}),'context':g,'config':c}),this[s(0x15b)][s(0x13a)]({'srcPath':'dbc/conn.js','destPath':this[s(0x15b)][s(0x144)]({'pathParts':['imports',s(0x138),s(0x150),s(0x13d),b[s(0x142)],f,s(0x154)+j]}),'context':g,'config':c}),this['fsi']['template']({'srcPath':'dbc/register-dbc.js','destPath':this[s(0x15b)][s(0x144)]({'pathParts':[s(0x157),s(0x138),s(0x150),s(0x136)+f+s(0x140)+j]}),'context':g,'config':c});const l=this[s(0x15b)][s(0x144)]({'pathParts':['imports',s(0x138),s(0x150),s(0x125)+c['engines']['js']]});this[s(0x15b)][s(0x147)]({'filePath':l,'content':s(0x143)+f+s(0x159)});});}catch(j){Log[r(0x134)](j);}});
@@ -1 +1 @@
1
- const a99i=a99d;(function(a,b){const f=a99d,c=a();while(!![]){try{const d=-parseInt(f(0x76))/0x1+parseInt(f(0x7b))/0x2*(parseInt(f(0x80))/0x3)+parseInt(f(0x7c))/0x4+-parseInt(f(0x88))/0x5+-parseInt(f(0x8b))/0x6*(-parseInt(f(0x73))/0x7)+-parseInt(f(0x84))/0x8+parseInt(f(0x7a))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xbbb4f));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a99d;if(c){const e=c[g(0x6f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const h=a99d;return a99a[h(0x78)]()[h(0x89)](h(0x74))['toString']()[h(0x81)](a99a)[h(0x89)](h(0x74));});a99a();import{Generator}from'../generator.js';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x6b;let f=c[d];return f;},a99d(a,b);}import{Log}from'../tools/log/log.class.js';import a99e from'path';Generator[a99i(0x82)]({'name':'dockerfile','usage':a99i(0x6d),'shortDesc':a99i(0x70),'validOpts':[],'noResource':!![],'examples':[a99i(0x7f)]},async function(){const j=a99i;try{const a=await this['fsi'][j(0x72)](),b=await this['fsi'][j(0x7d)](),c=this[j(0x87)]['findProjectDirectory']();this[j(0x87)][j(0x6b)](a,async()=>{const k=j,d={'app':b[k(0x83)],'config':a,'appPath':a99e[k(0x79)](c,'app'),'bundlePath':a99e[k(0x79)](c,k(0x6c),k(0x85)),'useCert':this[k(0x87)][k(0x7e)](b[k(0x6e)])};this['fsi'][k(0x75)]({'srcPath':k(0x8a),'destPath':a99e[k(0x79)](c,k(0x77)),'framework':k(0x71),'context':d,'config':a});});}catch(d){Log[j(0x86)](d);}});function a99c(){const l=['docker/Dockerfile','6HRFYNO','withValue','build','maka\x20{generate,\x20g}:dockerfile','cert','apply','Generate\x20an\x20updated\x20dockerfile','service','getProjectConfig','3843637AMFbse','(((.+)+)+)+$','template','447875sMMRoH','Dockerfile','toString','join','3770523PIMqsk','6418jOZHgt','2370516TUUQVJ','getGlobalConfig','isFile','maka\x20g:dockerfile','930IpISPY','constructor','create','appName','552080pGRDky','app.tar.gz','error','fsi','6348625LaGLCW','search'];a99c=function(){return l;};return a99c();}
1
+ const a99i=a99d;(function(a,b){const f=a99d,c=a();while(!![]){try{const d=-parseInt(f(0x162))/0x1+parseInt(f(0x164))/0x2*(-parseInt(f(0x15b))/0x3)+parseInt(f(0x172))/0x4*(-parseInt(f(0x16a))/0x5)+parseInt(f(0x159))/0x6+-parseInt(f(0x166))/0x7+parseInt(f(0x161))/0x8+parseInt(f(0x15f))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xccdfe));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a99d;if(c){const e=c[g(0x168)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const h=a99d;return a99a[h(0x15c)]()['search'](h(0x163))[h(0x15c)]()[h(0x170)](a99a)['search'](h(0x163));});a99a();import{Generator}from'../generator.js';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x156;let f=c[d];return f;},a99d(a,b);}import{Log}from'../tools/log/log.class.js';function a99c(){const l=['Dockerfile','9872208anFmLN','getGlobalConfig','3KEXSHl','toString','withValue','cert','16905690xtYsWp','app.tar.gz','8821432NEZybT','1016314oMdKfD','(((.+)+)+)+$','2452918LFkAsn','getProjectConfig','3823197usQNwC','dockerfile','apply','create','4991735PGvemM','fsi','findProjectDirectory','maka\x20g:dockerfile','appName','service','constructor','join','4ylJFBu','isFile','maka\x20{generate,\x20g}:dockerfile'];a99c=function(){return l;};return a99c();}import a99e from'path';Generator[a99i(0x169)]({'name':a99i(0x167),'usage':a99i(0x157),'shortDesc':'Generate\x20an\x20updated\x20dockerfile','validOpts':[],'noResource':!![],'examples':[a99i(0x16d)]},async function(){const j=a99i;try{const a=await this['fsi'][j(0x165)](),b=await this['fsi'][j(0x15a)](),c=this[j(0x16b)][j(0x16c)]();this[j(0x16b)][j(0x15d)](a,async()=>{const k=j,d={'app':b[k(0x16e)],'config':a,'appPath':a99e[k(0x171)](c,'app'),'bundlePath':a99e[k(0x171)](c,'build',k(0x160)),'useCert':this['fsi'][k(0x156)](b[k(0x15e)])};this['fsi']['template']({'srcPath':'docker/Dockerfile','destPath':a99e[k(0x171)](c,k(0x158)),'framework':k(0x16f),'context':d,'config':a});});}catch(d){Log['error'](d);}});
@@ -1 +1 @@
1
- const a100s=a100d;(function(a,b){const p=a100d,c=a();while(!![]){try{const d=-parseInt(p(0x18f))/0x1+parseInt(p(0x174))/0x2+-parseInt(p(0x165))/0x3+parseInt(p(0x183))/0x4*(parseInt(p(0x15a))/0x5)+parseInt(p(0x180))/0x6+-parseInt(p(0x15c))/0x7+parseInt(p(0x164))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x7d2fd));function a100c(){const v=['This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','baseDir','includes','Creating\x20','ssr','templates.js','checkNpmPackage','pages','theme','template/template.css','/imports/ui/','export\x20{\x20','273236qxbOba','lib','assign','test/test.js','test','resourceName','\x20}\x20from\x20\x27','fsi','startup','.css','\x27;\x0a','injectAtEndOfFile','3353508YBYUHf','graphql','Valid\x20options\x20are:\x20','10732xocoVB','\x20hook...','/imports/ui/hooks','client','layouts','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','@apollo/client','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','Invalid\x20directory\x20option\x20\x22','template','apply','apollo','16533WsHRGy','components','setTemplate','(((.+)+)+)+$','rewriteDestinationPathForEngine','hook/hook.js','css','withValue','true','search','getProjectConfig','import\x20\x27','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','constructor','fileName','imports','hooks','relative','toString','@apollo/client\x20isomorphic-fetch','error','features','engines','pathFromProject','.js','185YMYVhx','.app-tests.js','6695829cShaSC','className','pathFromApp','import\x20{\x20','dir','injectAtBeginningOfFile','string','react','11141992WdrmxK','2105133TIkEfq','withTranslations','none'];a100c=function(){return v;};return a100c();}function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x157;let f=c[d];return f;},a100d(a,b);}const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a100d;if(c){const e=c[q(0x18d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const r=a100d;return a100a[r(0x1a1)]()[r(0x198)](r(0x192))[r(0x1a1)]()[r(0x19c)](a100a)['search'](r(0x192));});a100a();import a100e from'path';import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator['create']({'name':'hook','aliases':['h'],'checkWhere':![],'usage':a100s(0x188),'shortDesc':a100s(0x18a),'validOpts':[a100s(0x169)],'examples':['maka\x20g:hook\x20cool-hook']},async function(a,b){const t=a100s;Log['notice'](t(0x16b)+a[0x0]+t(0x184));try{const c=[t(0x19f),t(0x190),t(0x16f),t(0x187)];if(b[t(0x169)]&&!c[t(0x16a)](b[t(0x169)])){Log[t(0x1a3)](t(0x18b)+b[t(0x169)]+'\x22'),Log[t(0x1a3)](t(0x182)+c['join'](',\x20'));throw new UsageError();}const d=this['fsi'][t(0x16e)](t(0x163));if(!d){Log[t(0x1a3)](t(0x168));throw new UsageError();}const f=this['fsi'][t(0x15e)](b),g=b['baseDir']?t(0x172)+b[t(0x169)]:t(0x185),h=this[t(0x17b)][t(0x15e)]({'pathParts':[g,b[t(0x160)],b[t(0x179)],paramCase(b['resourceName'])]}),i=await this[t(0x17b)][t(0x199)]();this[t(0x17b)][t(0x196)](i,async()=>{const u=t;typeof i[u(0x18c)][u(0x195)]===u(0x162)&&(i[u(0x18c)][u(0x195)]=i[u(0x18c)][u(0x195)]===u(0x197)?!![]:![],this[u(0x17b)][u(0x191)](u(0x195),i[u(0x18c)]['css']));i['engines'][u(0x181)]===u(0x18e)&&!this[u(0x17b)][u(0x16e)](u(0x189))&&(Log['warn'](u(0x19b)),await this[u(0x17b)]['installNpmPackage'](u(0x1a2),{'cwd':f}));const j={'cssCaseName':paramCase(b[u(0x179)]),'className':pascalCase(b[u(0x179)]),'name':pascalCase(b['resourceName']),'graphql':i[u(0x157)][u(0x181)],'theme':i[u(0x157)][u(0x170)],'features':i[u(0x1a4)],'myPath':a100e[u(0x1a0)](this['fsi'][u(0x158)]({}),h),'fileName':paramCase(b['resourceName']),'isComponent':![],'isLayout':![],'withTranslations':i[u(0x1a4)][u(0x166)]};this[u(0x17b)][u(0x18c)]({'srcPath':u(0x194),'destPath':h+u(0x159),'context':j,'config':i,'framework':u(0x163)});i[u(0x18c)][u(0x195)]&&(this[u(0x17b)][u(0x18c)]({'srcPath':u(0x171),'destPath':h+u(0x17d),'context':Object[u(0x176)]({},j,{'className':j['cssCaseName']}),'config':i}),this[u(0x17b)][u(0x161)]({'filePath':h+'.'+i['engines']['js'],'content':'import\x20\x27./'+j[u(0x19d)]+'.'+i[u(0x157)]['css']+'\x27;'}));i['engines'][u(0x178)]!==u(0x167)&&this[u(0x17b)][u(0x18c)]({'srcPath':u(0x177),'destPath':h+u(0x15b),'framework':u(0x163),'context':j,'config':i});const k=b[u(0x160)]?'/'+b[u(0x160)]+'/':'/',l=''+g+k+j['fileName']+'/'+j[u(0x19d)];let m;if(i['engines'][u(0x16c)]===u(0x197)){const n=this[u(0x17b)]['pathFromApp']({'pathParts':[u(0x19e),'startup',u(0x175),u(0x16d)]});m=this[u(0x17b)][u(0x193)]({'pathParts':[n],'config':i});}else{const o=this[u(0x17b)][u(0x15e)]({'pathParts':['imports',u(0x17c),u(0x186),u(0x16d)]});m=this[u(0x17b)][u(0x193)]({'pathParts':[o],'config':i});}i[u(0x157)][u(0x186)]===u(0x163)?(i[u(0x157)]['js']==='tsx'?this[u(0x17b)][u(0x161)]({'filePath':m,'content':u(0x15f)+j['className']+u(0x17a)+l+u(0x17e)}):this[u(0x17b)][u(0x161)]({'filePath':m,'content':u(0x15f)+j[u(0x15d)]+u(0x17a)+l+'.'+i[u(0x157)]['js']+'\x27;\x0a'}),this[u(0x17b)][u(0x17f)]({'filePath':m,'content':u(0x173)+j['className']+'\x20};\x0a'})):this[u(0x17b)][u(0x17f)]({'filePath':m,'content':u(0x19a)+l+'.'+i[u(0x157)]['js']+u(0x17e)});});}catch(j){Log['error'](j);}});
1
+ const a100s=a100d;function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0xaf;let f=c[d];return f;},a100d(a,b);}(function(a,b){const p=a100d,c=a();while(!![]){try{const d=parseInt(p(0xe2))/0x1*(-parseInt(p(0xf1))/0x2)+-parseInt(p(0xc9))/0x3+-parseInt(p(0xd1))/0x4+parseInt(p(0xf9))/0x5+parseInt(p(0xbc))/0x6*(parseInt(p(0xef))/0x7)+-parseInt(p(0xcf))/0x8+-parseInt(p(0xd7))/0x9*(-parseInt(p(0xe7))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x194c9));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a100d;if(c){const e=c[q(0xf4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const r=a100d;return a100a['toString']()[r(0xe3)](r(0xcb))[r(0xbe)]()[r(0xe0)](a100a)[r(0xe3)](r(0xcb));});a100a();import a100e from'path';import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a100c(){const v=['Valid\x20options\x20are:\x20','apply','fsi','warn','startup','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','143485Wchenk','dir','css','.app-tests.js','string','className','import\x20{\x20','maka\x20g:hook\x20cool-hook','setTemplate','withValue','Invalid\x20directory\x20option\x20\x22','\x20hook...','\x20}\x20from\x20\x27','lib','installNpmPackage','1062822iLQWVs','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','toString','injectAtEndOfFile','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','cssCaseName','error','template','none','templates.js','engines','includes','.js','573855XgnmzD','resourceName','(((.+)+)+)+$','client','rewriteDestinationPathForEngine','assign','285240YIHZli','hook','788468HlJsDI','withTranslations','\x27;\x0a','layouts','features','theme','312138hqByXn','export\x20{\x20','fileName','apollo','graphql','notice','baseDir','ssr','checkNpmPackage','constructor','import\x20\x27','81850LiurGT','search','tsx','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','template/template.css','140tJhhZR','injectAtBeginningOfFile','join','relative','getProjectConfig','create','react','imports','7egtBMM','.css','4xklmOs','pathFromApp'];a100c=function(){return v;};return a100c();}import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a100s(0xec)]({'name':a100s(0xd0),'aliases':['h'],'checkWhere':![],'usage':a100s(0xbd),'shortDesc':a100s(0xe5),'validOpts':['baseDir'],'examples':[a100s(0xb4)]},async function(a,b){const t=a100s;Log[t(0xdc)]('Creating\x20'+a[0x0]+t(0xb8));try{const c=['hooks','components','pages',t(0xd4)];if(b[t(0xdd)]&&!c[t(0xc7)](b[t(0xdd)])){Log['error'](t(0xb7)+b[t(0xdd)]+'\x22'),Log['error'](t(0xf3)+c[t(0xe9)](',\x20'));throw new UsageError();}const d=this[t(0xf5)]['checkNpmPackage'](t(0xed));if(!d){Log[t(0xc2)](t(0xc0));throw new UsageError();}const f=this['fsi'][t(0xf2)](b),g=b[t(0xdd)]?'/imports/ui/'+b[t(0xdd)]:'/imports/ui/hooks',h=this[t(0xf5)][t(0xf2)]({'pathParts':[g,b[t(0xfa)],b[t(0xca)],paramCase(b[t(0xca)])]}),i=await this[t(0xf5)][t(0xeb)]();this[t(0xf5)][t(0xb6)](i,async()=>{const u=t;typeof i['template']['css']===u(0xb1)&&(i[u(0xc3)]['css']=i[u(0xc3)][u(0xaf)]==='true'?!![]:![],this[u(0xf5)][u(0xb5)](u(0xaf),i[u(0xc3)]['css']));i[u(0xc6)][u(0xdb)]===u(0xda)&&!this[u(0xf5)][u(0xdf)]('@apollo/client')&&(Log[u(0xf6)](u(0xf8)),await this[u(0xf5)][u(0xbb)]('@apollo/client\x20isomorphic-fetch',{'cwd':f}));const j={'cssCaseName':paramCase(b[u(0xca)]),'className':pascalCase(b[u(0xca)]),'name':pascalCase(b['resourceName']),'graphql':i['engines'][u(0xdb)],'theme':i['engines'][u(0xd6)],'features':i[u(0xd5)],'myPath':a100e[u(0xea)](this[u(0xf5)]['pathFromProject']({}),h),'fileName':paramCase(b[u(0xca)]),'isComponent':![],'isLayout':![],'withTranslations':i[u(0xd5)][u(0xd2)]};this[u(0xf5)][u(0xc3)]({'srcPath':'hook/hook.js','destPath':h+u(0xc8),'context':j,'config':i,'framework':u(0xed)});i['template'][u(0xaf)]&&(this[u(0xf5)][u(0xc3)]({'srcPath':u(0xe6),'destPath':h+u(0xf0),'context':Object[u(0xce)]({},j,{'className':j[u(0xc1)]}),'config':i}),this[u(0xf5)][u(0xe8)]({'filePath':h+'.'+i['engines']['js'],'content':'import\x20\x27./'+j[u(0xd9)]+'.'+i[u(0xc6)][u(0xaf)]+'\x27;'}));i[u(0xc6)]['test']!==u(0xc4)&&this[u(0xf5)][u(0xc3)]({'srcPath':'test/test.js','destPath':h+u(0xb0),'framework':u(0xed),'context':j,'config':i});const k=b[u(0xfa)]?'/'+b[u(0xfa)]+'/':'/',l=''+g+k+j[u(0xd9)]+'/'+j['fileName'];let m;if(i[u(0xc6)][u(0xde)]==='true'){const n=this['fsi'][u(0xf2)]({'pathParts':['imports',u(0xf7),u(0xba),u(0xc5)]});m=this['fsi'][u(0xcd)]({'pathParts':[n],'config':i});}else{const o=this[u(0xf5)][u(0xf2)]({'pathParts':[u(0xee),u(0xf7),u(0xcc),u(0xc5)]});m=this[u(0xf5)][u(0xcd)]({'pathParts':[o],'config':i});}i['engines'][u(0xcc)]==='react'?(i[u(0xc6)]['js']===u(0xe4)?this['fsi'][u(0xe8)]({'filePath':m,'content':u(0xb3)+j['className']+'\x20}\x20from\x20\x27'+l+u(0xd3)}):this[u(0xf5)][u(0xe8)]({'filePath':m,'content':u(0xb3)+j[u(0xb2)]+u(0xb9)+l+'.'+i[u(0xc6)]['js']+u(0xd3)}),this['fsi']['injectAtEndOfFile']({'filePath':m,'content':u(0xd8)+j[u(0xb2)]+'\x20};\x0a'})):this['fsi'][u(0xbf)]({'filePath':m,'content':u(0xe1)+l+'.'+i[u(0xc6)]['js']+u(0xd3)});});}catch(j){Log[t(0xc2)](j);}});
@@ -1 +1 @@
1
- const a101k=a101d;function a101c(){const n=['2AQLwnI','engines','map','resourceName','maka\x20g:kit\x20--type=map','4ZCsAvR','login','maka\x20g:k\x20city-map\x20--type=leaflet-map','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','getProjectConfig','create','143ZjqEhk','withValue','2526cedftI','type','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','fsi','indexOf',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','NIE','search','error','notice','1278PdOaXV','3035zbcPsk','159622QQfUxU','1135248aOpnuR','leaflet-map','26056xHlJmV','apply','5303583JwMvVW','kit','8996267Myfnzk','(((.+)+)+)+$','toString','1473370qYoQTm'];a101c=function(){return n;};return a101c();}(function(a,b){const h=a101d,c=a();while(!![]){try{const d=-parseInt(h(0x7d))/0x1*(-parseInt(h(0x88))/0x2)+parseInt(h(0x82))/0x3*(parseInt(h(0x69))/0x4)+parseInt(h(0x7c))/0x5*(parseInt(h(0x71))/0x6)+parseInt(h(0x84))/0x7+parseInt(h(0x80))/0x8*(-parseInt(h(0x7b))/0x9)+-parseInt(h(0x87))/0xa*(parseInt(h(0x6f))/0xb)+-parseInt(h(0x7e))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xf3194));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a101d;if(c){const e=c[i(0x81)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const j=a101d;return a101a[j(0x86)]()[j(0x78)](j(0x85))[j(0x86)]()['constructor'](a101a)[j(0x78)](j(0x85));});a101a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x68;let f=c[d];return f;},a101d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a101k(0x6e)]({'name':a101k(0x83),'aliases':['k'],'usage':a101k(0x73),'shortDesc':a101k(0x6c),'validOpts':[a101k(0x72)],'examples':[a101k(0x68),a101k(0x6b)]},async function(a,b){const l=a101k;try{const c=this[l(0x74)][l(0x6d)]();this[l(0x74)][l(0x70)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x8b)]),'fileName':paramCase(b[m(0x8b)]),'camelCase':camelCase(b[m(0x8b)]),'type':b[m(0x72)],'engine':c[m(0x89)]['js'],'noRename':!![]},f=[m(0x7f),m(0x6a)];if(f[m(0x75)](d[m(0x72)])<0x0){const g=d['type']?d[m(0x72)]:'(blank)';Log[m(0x79)]('Invalid\x20type\x20'+g+m(0x76));return;}b['type']===m(0x8a)&&Log[m(0x7a)](m(0x77)),b[m(0x72)]===m(0x6a)&&Log['notice'](m(0x77));});}catch(d){Log[l(0x79)](d);}});
1
+ function a101c(){const n=['error','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','leaflet-map','maka\x20g:k\x20city-map\x20--type=leaflet-map','18gPICrM','resourceName',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','fsi','48ecRoQY','login','apply','NIE','create','type','217305eZWgOb','668396uBkGYC','(((.+)+)+)+$','(blank)','constructor','map','2592260sCafvg','438648lPodOS','Invalid\x20type\x20','5370024yTafeT','engines','notice','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','22321413hssVKv','774504imIRNB','search','withValue','maka\x20g:kit\x20--type=map'];a101c=function(){return n;};return a101c();}const a101k=a101d;(function(a,b){const h=a101d,c=a();while(!![]){try{const d=parseInt(h(0x129))/0x1+parseInt(h(0x11e))/0x2*(parseInt(h(0x128))/0x3)+-parseInt(h(0x136))/0x4+parseInt(h(0x12e))/0x5+parseInt(h(0x122))/0x6*(parseInt(h(0x12f))/0x7)+parseInt(h(0x131))/0x8+-parseInt(h(0x135))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x52689));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a101d;if(c){const e=c[i(0x124)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const j=a101d;return a101a['toString']()[j(0x117)](j(0x12a))['toString']()[j(0x12c)](a101a)['search'](j(0x12a));});a101a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x117;let f=c[d];return f;},a101d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a101k(0x126)]({'name':'kit','aliases':['k'],'usage':a101k(0x134),'shortDesc':a101k(0x11b),'validOpts':[a101k(0x127)],'examples':[a101k(0x119),a101k(0x11d)]},async function(a,b){const l=a101k;try{const c=this[l(0x121)]['getProjectConfig']();this[l(0x121)][l(0x118)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x11f)]),'fileName':paramCase(b[m(0x11f)]),'camelCase':camelCase(b[m(0x11f)]),'type':b[m(0x127)],'engine':c[m(0x132)]['js'],'noRename':!![]},f=[m(0x11c),m(0x123)];if(f['indexOf'](d[m(0x127)])<0x0){const g=d['type']?d[m(0x127)]:m(0x12b);Log[m(0x11a)](m(0x130)+g+m(0x120));return;}b[m(0x127)]===m(0x12d)&&Log['notice'](m(0x125)),b[m(0x127)]===m(0x123)&&Log[m(0x133)](m(0x125));});}catch(d){Log['error'](d);}});
@@ -1 +1 @@
1
- const a102r=a102d;(function(a,b){const o=a102d,c=a();while(!![]){try{const d=-parseInt(o(0x1d2))/0x1+-parseInt(o(0x1e7))/0x2+parseInt(o(0x1c8))/0x3*(-parseInt(o(0x1d6))/0x4)+-parseInt(o(0x1de))/0x5+parseInt(o(0x1c3))/0x6*(parseInt(o(0x1d8))/0x7)+parseInt(o(0x1e8))/0x8*(parseInt(o(0x1eb))/0x9)+parseInt(o(0x1bb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x49264));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a102d;if(c){const e=c[p(0x1ed)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const q=a102d;return a102a['toString']()['search'](q(0x1cf))[q(0x1e1)]()['constructor'](a102a)['search'](q(0x1cf));});a102a();function a102c(){const u=['ssr','6918090tyPTxj','layout','create','template/template.css','import\x20{\x20','maka\x20g:layout\x20mobile/iPhone8','\x20};\x0a','warn','348546lxXnkG','test','relative','.js','tsx','72537LQZcdm','.app-tests.js','import\x20\x27','fsi','injectAtBeginningOfFile','true','setTemplate','(((.+)+)+)+$','startup','import\x20\x27./','101941mZdYxs','templates.js','injectAtEndOfFile','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','56SKHjut','className','49EIvOCh','theme','pathFromApp','withHook','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','resourceName','2059695XQISyt','template','\x20}\x20from\x20\x27','toString','css','\x27;\x0a','features','none','hook/hook.js','955132vZXxfr','456BrOvUV','string','findAppDirectory','83862CjvVXQ','dir','apply','fileName','assign','client','getProjectConfig','withValue','imports','rewriteDestinationPathForEngine','withTranslations','ramda','checkNpmPackage','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','maka\x20g:l\x20web/safari','engines','includes','lib','api','react','Scaffolding\x20for\x20a\x20React\x20Layout.','withHooks','split'];a102c=function(){return u;};return a102c();}import a102e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x1af;let f=c[d];return f;},a102d(a,b);}const aliases=['l'];Generator[a102r(0x1bd)]({'name':a102r(0x1bc),'aliases':aliases,'usage':a102r(0x1b0),'shortDesc':a102r(0x1b7),'validOpts':[],'examples':[a102r(0x1c0),a102r(0x1b1)]},function(a,b){const s=a102r,c='/imports/ui/layouts',d=this[s(0x1cb)][s(0x1ea)](),e=this[s(0x1cb)][s(0x1da)]({'pathParts':[c,b[s(0x1ec)],paramCase(b[s(0x1dd)]),paramCase(b[s(0x1dd)])]}),f=this[s(0x1cb)][s(0x1f1)]();this['fsi'][s(0x1f2)](f,()=>{const t=s;typeof f['template'][t(0x1c4)]===t(0x1e9)&&(f[t(0x1df)][t(0x1c4)]=f[t(0x1df)][t(0x1c4)]===t(0x1cd)?!![]:![],this[t(0x1cb)][t(0x1ce)](t(0x1c4),f[t(0x1df)][t(0x1c4)]));typeof f[t(0x1df)][t(0x1e2)]===t(0x1e9)&&(f[t(0x1df)][t(0x1e2)]=f[t(0x1df)][t(0x1e2)]===t(0x1cd)?!![]:![],this[t(0x1cb)]['setTemplate'](t(0x1e2),f['template'][t(0x1e2)]));typeof f[t(0x1df)]['js']===t(0x1e9)&&(f[t(0x1df)]['js']=f[t(0x1df)]['js']===t(0x1cd)?!![]:![],this[t(0x1cb)][t(0x1ce)]('js',f[t(0x1df)]['js']));!f[t(0x1e4)]&&(f['features']={});const g=b['_']?b['_'][0x0][t(0x1b9)](':')[0x1]:![],h=b['_']&&aliases[t(0x1b3)](g);h&&!this[t(0x1af)](t(0x1f6))&&(Log['warn'](t(0x1d5)),this['fsi']['installNpmPackage'](t(0x1f6),{'cwd':d}));if(h&&!this[t(0x1af)](t(0x1b6))){Log[t(0x1c2)](t(0x1dc));return;}const i={'name':pascalCase(b[t(0x1dd)]),'myPath':a102e[t(0x1c5)](this[t(0x1cb)]['pathFromProject']({}),e),'cssCaseName':paramCase(b[t(0x1dd)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[t(0x1dd)]),'fileName':paramCase(b[t(0x1dd)]),'graphql':f['engines']['graphql'],'features':f[t(0x1e4)],'client':f['engines']['client'],'api':f[t(0x1b2)][t(0x1b5)],'ssr':f[t(0x1b2)]['ssr'],'test':f['engines']['test'],'theme':f['engines'][t(0x1d9)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x1e4)][t(0x1f5)]};f['features']?.[t(0x1b8)]||b[t(0x1db)]?this['fsi'][t(0x1df)]({'srcPath':t(0x1e6),'destPath':e+t(0x1c6),'framework':t(0x1b6),'context':i,'config':f}):this['fsi'][t(0x1df)]({'srcPath':'component/component.js','destPath':e+t(0x1c6),'framework':t(0x1b6),'context':i,'config':f});f[t(0x1b2)][t(0x1c4)]!==t(0x1e5)&&this[t(0x1cb)][t(0x1df)]({'srcPath':'test/test.js','destPath':e+t(0x1c9),'framework':t(0x1b6),'context':i,'config':f});f[t(0x1df)][t(0x1e2)]&&(this[t(0x1cb)][t(0x1df)]({'srcPath':t(0x1be),'destPath':e+'.css','context':Object[t(0x1ef)]({},i,{'className':paramCase(b[t(0x1dd)])}),'config':f}),this['fsi'][t(0x1cc)]({'filePath':e+'.'+f[t(0x1b2)]['js'],'content':t(0x1d1)+i['fileName']+'.'+f[t(0x1b2)][t(0x1e2)]+'\x27;'}));const j=b['dir']?'/'+b['dir']+'/':'/',k=''+c+j+i[t(0x1ee)]+'/'+i['fileName'];let l;if(f[t(0x1b2)][t(0x1ba)]===t(0x1cd)){const m=this[t(0x1cb)][t(0x1da)]({'pathParts':[t(0x1f3),'startup',t(0x1b4),t(0x1d3)]});l=this[t(0x1cb)][t(0x1f4)]({'pathParts':[m],'config':f});}else{const n=this['fsi']['pathFromApp']({'pathParts':['imports',t(0x1d0),t(0x1f0),'templates.js']});l=this[t(0x1cb)][t(0x1f4)]({'pathParts':[n],'config':f});}f[t(0x1b2)][t(0x1f0)]===t(0x1b6)?(f['engines']['js']===t(0x1c7)?this[t(0x1cb)][t(0x1cc)]({'filePath':l,'content':t(0x1bf)+i[t(0x1d7)]+'\x20}\x20from\x20\x27'+k+t(0x1e3)}):this[t(0x1cb)][t(0x1cc)]({'filePath':l,'content':t(0x1bf)+i['className']+t(0x1e0)+k+'.'+f[t(0x1b2)]['js']+t(0x1e3)}),this[t(0x1cb)][t(0x1d4)]({'filePath':l,'content':'export\x20{\x20'+i['className']+t(0x1c1)})):this['fsi'][t(0x1d4)]({'filePath':l,'content':t(0x1ca)+k+'.'+f['engines']['js']+t(0x1e3)});});});
1
+ function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x1d9;let f=c[d];return f;},a102d(a,b);}const a102r=a102d;(function(a,b){const o=a102d,c=a();while(!![]){try{const d=parseInt(o(0x1fc))/0x1+parseInt(o(0x215))/0x2*(parseInt(o(0x1dc))/0x3)+-parseInt(o(0x1f2))/0x4+-parseInt(o(0x1fb))/0x5*(-parseInt(o(0x210))/0x6)+-parseInt(o(0x21c))/0x7+-parseInt(o(0x1fe))/0x8+-parseInt(o(0x1f0))/0x9*(-parseInt(o(0x1ea))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x8a025));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a102d;if(c){const e=c[p(0x1ed)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const q=a102d;return a102a[q(0x1f3)]()[q(0x1fa)](q(0x1dd))[q(0x1f3)]()[q(0x1fd)](a102a)[q(0x1fa)](q(0x1dd));});a102a();import a102e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator['create']({'name':'layout','aliases':aliases,'usage':a102r(0x219),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[],'examples':[a102r(0x20e),a102r(0x205)]},function(a,b){const s=a102r,c='/imports/ui/layouts',d=this[s(0x20c)][s(0x1e2)](),e=this[s(0x20c)][s(0x1e5)]({'pathParts':[c,b[s(0x1ee)],paramCase(b[s(0x202)]),paramCase(b[s(0x202)])]}),f=this[s(0x20c)][s(0x212)]();this['fsi'][s(0x211)](f,()=>{const t=s;typeof f[t(0x20d)][t(0x1e0)]===t(0x1e4)&&(f[t(0x20d)][t(0x1e0)]=f[t(0x20d)]['test']==='true'?!![]:![],this[t(0x20c)]['setTemplate'](t(0x1e0),f[t(0x20d)][t(0x1e0)]));typeof f['template']['css']===t(0x1e4)&&(f['template']['css']=f[t(0x20d)]['css']===t(0x21d)?!![]:![],this[t(0x20c)][t(0x208)](t(0x21a),f[t(0x20d)][t(0x21a)]));typeof f[t(0x20d)]['js']==='string'&&(f['template']['js']=f[t(0x20d)]['js']===t(0x21d)?!![]:![],this[t(0x20c)][t(0x208)]('js',f['template']['js']));!f[t(0x216)]&&(f[t(0x216)]={});const g=b['_']?b['_'][0x0][t(0x1ff)](':')[0x1]:![],h=b['_']&&aliases[t(0x20a)](g);h&&!this[t(0x1da)]('ramda')&&(Log[t(0x1f4)](t(0x1e1)),this[t(0x20c)][t(0x1e3)](t(0x209),{'cwd':d}));if(h&&!this[t(0x1da)](t(0x21f))){Log[t(0x1f4)](t(0x1ef));return;}const i={'name':pascalCase(b[t(0x202)]),'myPath':a102e['relative'](this[t(0x20c)][t(0x21e)]({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[t(0x202)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[t(0x202)]),'graphql':f[t(0x213)][t(0x1e8)],'features':f[t(0x216)],'client':f[t(0x213)][t(0x20b)],'api':f[t(0x213)][t(0x1ec)],'ssr':f[t(0x213)][t(0x1f9)],'test':f[t(0x213)][t(0x1e0)],'theme':f['engines'][t(0x20f)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x216)][t(0x204)]};f['features']?.['withHooks']||b['withHook']?this['fsi'][t(0x20d)]({'srcPath':t(0x206),'destPath':e+t(0x220),'framework':t(0x21f),'context':i,'config':f}):this[t(0x20c)][t(0x20d)]({'srcPath':t(0x1e9),'destPath':e+'.js','framework':'react','context':i,'config':f});f[t(0x213)][t(0x1e0)]!==t(0x1e6)&&this[t(0x20c)][t(0x20d)]({'srcPath':t(0x1f7),'destPath':e+t(0x217),'framework':'react','context':i,'config':f});f[t(0x20d)][t(0x21a)]&&(this[t(0x20c)][t(0x20d)]({'srcPath':t(0x214),'destPath':e+t(0x218),'context':Object[t(0x203)]({},i,{'className':paramCase(b[t(0x202)])}),'config':f}),this[t(0x20c)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[t(0x213)]['js'],'content':t(0x1f8)+i['fileName']+'.'+f[t(0x213)][t(0x21a)]+'\x27;'}));const j=b['dir']?'/'+b[t(0x1ee)]+'/':'/',k=''+c+j+i['fileName']+'/'+i['fileName'];let l;if(f['engines'][t(0x1f9)]===t(0x21d)){const m=this[t(0x20c)][t(0x1e5)]({'pathParts':['imports',t(0x1d9),t(0x1de),'templates.js']});l=this[t(0x20c)][t(0x207)]({'pathParts':[m],'config':f});}else{const n=this[t(0x20c)]['pathFromApp']({'pathParts':[t(0x201),'startup',t(0x20b),'templates.js']});l=this[t(0x20c)][t(0x207)]({'pathParts':[n],'config':f});}f[t(0x213)][t(0x20b)]===t(0x21f)?(f[t(0x213)]['js']===t(0x21b)?this[t(0x20c)][t(0x1f6)]({'filePath':l,'content':t(0x1f5)+i[t(0x1e7)]+t(0x1f1)+k+t(0x1db)}):this[t(0x20c)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0x1f5)+i['className']+t(0x1f1)+k+'.'+f[t(0x213)]['js']+t(0x1db)}),this[t(0x20c)][t(0x200)]({'filePath':l,'content':'export\x20{\x20'+i[t(0x1e7)]+t(0x1df)})):this[t(0x20c)][t(0x200)]({'filePath':l,'content':t(0x1eb)+k+'.'+f[t(0x213)]['js']+'\x27;\x0a'});});});function a102c(){const u=['split','injectAtEndOfFile','imports','resourceName','assign','withTranslations','maka\x20g:l\x20web/safari','hook/hook.js','rewriteDestinationPathForEngine','setTemplate','ramda','includes','client','fsi','template','maka\x20g:layout\x20mobile/iPhone8','theme','4254XmCURM','withValue','getProjectConfig','engines','template/template.css','86csNKMk','features','.app-tests.js','.css','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','css','tsx','1654513BqSBpH','true','pathFromProject','react','.js','startup','checkNpmPackage','\x27;\x0a','29022fUqJjs','(((.+)+)+)+$','lib','\x20};\x0a','test','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','findAppDirectory','installNpmPackage','string','pathFromApp','none','className','graphql','component/component.js','60WTeeaq','import\x20\x27','api','apply','dir','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','2674548KGFnad','\x20}\x20from\x20\x27','4405168vMCJzu','toString','warn','import\x20{\x20','injectAtBeginningOfFile','test/test.js','import\x20\x27./','ssr','search','790aNwIwV','174614ZjHbDr','constructor','4661712qsHhel'];a102c=function(){return u;};return a102c();}
@@ -1 +1 @@
1
- const a103i=a103d;(function(a,b){const f=a103d,c=a();while(!![]){try{const d=-parseInt(f(0x15f))/0x1+parseInt(f(0x159))/0x2+-parseInt(f(0x15e))/0x3*(-parseInt(f(0x162))/0x4)+parseInt(f(0x164))/0x5*(parseInt(f(0x157))/0x6)+parseInt(f(0x167))/0x7*(parseInt(f(0x169))/0x8)+-parseInt(f(0x16b))/0x9*(parseInt(f(0x160))/0xa)+-parseInt(f(0x16a))/0xb*(-parseInt(f(0x16c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x779e8));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a103d;if(c){const e=c[g(0x15d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const h=a103d;return a103a[h(0x163)]()[h(0x15c)](h(0x168))[h(0x163)]()[h(0x166)](a103a)[h(0x15c)](h(0x168));});a103a();import{Generator}from'../generator.js';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x157;let f=c[d];return f;},a103d(a,b);}function a103c(){const j=['maka\x20g:hook\x20cool-hook','constructor','2488437gAwKSK','(((.+)+)+)+$','8JEqSDN','649CuJnRa','126hdgYdc','32388VXEiHo','6bepcwD','Maka!','646234iZoYHU','maka\x20generate:api\x20Trucks','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','search','apply','642981qjAmsD','553528CKLYUj','503340kGMWyw','\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','16PtQrUp','toString','265035cOKObJ'];a103c=function(){return j;};return a103c();}const MakaGen=new Generator({'name':'maka','shortDesc':a103i(0x158),'validOpts':[],'description':a103i(0x161),'usage':a103i(0x15b),'examples':[a103i(0x15a),a103i(0x165)]},function(){return null;});export default MakaGen;
1
+ const a103i=a103d;function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x145;let f=c[d];return f;},a103d(a,b);}(function(a,b){const f=a103d,c=a();while(!![]){try{const d=parseInt(f(0x154))/0x1+parseInt(f(0x152))/0x2*(-parseInt(f(0x155))/0x3)+parseInt(f(0x145))/0x4+parseInt(f(0x14d))/0x5*(-parseInt(f(0x14b))/0x6)+parseInt(f(0x153))/0x7*(-parseInt(f(0x14a))/0x8)+-parseInt(f(0x151))/0x9+parseInt(f(0x146))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xdf508));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a103d;if(c){const e=c[g(0x14e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const h=a103d;return a103a['toString']()['search'](h(0x147))['toString']()[h(0x14f)](a103a)['search'](h(0x147));});function a103c(){const j=['60qGYwLp','apply','constructor','maka','10741815pTaHIu','270278QCNkKY','63gMSnOO','451437PwctYm','21kTUZfn','1562916AFAPbL','33736290MDZBFF','(((.+)+)+)+$','\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','maka\x20g:hook\x20cool-hook','1027928FzHEir','2586YgZPNw','Maka!'];a103c=function(){return j;};return a103c();}a103a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a103i(0x150),'shortDesc':a103i(0x14c),'validOpts':[],'description':a103i(0x148),'usage':'maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','examples':['maka\x20generate:api\x20Trucks',a103i(0x149)]},function(){return null;});export default MakaGen;
@@ -1 +1 @@
1
- const a104n=a104d;function a104c(){const q=['-rpc-method\x27;','getProjectConfig','1322364uYxcIR','method/method.js','toString','(((.+)+)+)+$','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','maka\x20g:method\x20todos','148977Hebmoh','91882hTzoxQ','962290BmTMUL','pathFromApp','import\x20\x27./methods','2088HMvKMB','check','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','methods','search','25701610oZgitC','fsi','resourceName','dir','408gZrFJl','apply','mdg:validated-method','constructor','1334wuhixV','8GFzoYB','550OYVbMO','appPathPrefix','index.','maka\x20{generate,\x20g}:{method,\x20m}\x20name','check\x20ddp-rate-limiter\x20mdg:validated-method','startup','template','create','ddp-rate-limiter','3822972yrSBNf','checkMeteorPackage','engines','warn','error'];a104c=function(){return q;};return a104c();}function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1bf;let f=c[d];return f;},a104d(a,b);}(function(a,b){const k=a104d,c=a();while(!![]){try{const d=-parseInt(k(0x1dd))/0x1+parseInt(k(0x1cb))/0x2*(parseInt(k(0x1e8))/0x3)+-parseInt(k(0x1cc))/0x4*(parseInt(k(0x1e5))/0x5)+-parseInt(k(0x1d6))/0x6+-parseInt(k(0x1e4))/0x7*(parseInt(k(0x1c7))/0x8)+-parseInt(k(0x1e3))/0x9*(-parseInt(k(0x1cd))/0xa)+parseInt(k(0x1c3))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xaa3c9));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a104d;if(c){const e=c[l(0x1c8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const m=a104d;return a104a[m(0x1df)]()[m(0x1c2)](m(0x1e0))[m(0x1df)]()[m(0x1ca)](a104a)[m(0x1c2)](m(0x1e0));});a104a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a104n(0x1d4)]({'name':'method','aliases':['m'],'usage':a104n(0x1d0),'checkWhere':!![],'shortDesc':a104n(0x1e1),'validOpts':[a104n(0x1c6)],'examples':[a104n(0x1e2)]},function(a,b){const o=a104n;try{const c=this[o(0x1c4)][o(0x1dc)]();this[o(0x1c4)]['withValue'](c,async()=>{const p=o,d=paramCase(b[p(0x1c5)]),f={'name':b[p(0x1c5)],'fileName':d,'className':pascalCase(b[p(0x1c5)]),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c[p(0x1d8)]['js']==='tsx'&&(g='ts');const h=this['fsi'][p(0x1e6)]({});(!this[p(0x1c4)][p(0x1d7)](p(0x1bf))||!this['fsi'][p(0x1d7)](p(0x1d5))||!this['fsi'][p(0x1d7)](p(0x1c9)))&&(Log[p(0x1d9)](p(0x1c0)),this[p(0x1c4)]['installMeteorPackage'](p(0x1d1),{'cwd':h}));this[p(0x1c4)][p(0x1d3)]({'srcPath':p(0x1de),'destPath':this[p(0x1c4)][p(0x1e6)]({'pathParts':['imports',p(0x1d2),b[p(0x1ce)],p(0x1c1),b[p(0x1c6)],d+'-rpc-method.'+g]}),'context':f,'config':c});const i=b[p(0x1c6)]?'/'+b[p(0x1c6)]+'/':'/',j=this[p(0x1c4)][p(0x1e6)]({'pathParts':['imports',p(0x1d2),b[p(0x1ce)],p(0x1cf)+c[p(0x1d8)]['js']]});this[p(0x1c4)]['injectAtEndOfFile']({'filePath':j,'content':p(0x1e7)+i+d+p(0x1db)});});}catch(d){Log[o(0x1da)](d);}});
1
+ const a104m=a104d;function a104c(){const p=['fsi','2369632ldSsdr','1209873IaJcNk','(((.+)+)+)+$','tsx','appPathPrefix','startup','check\x20ddp-rate-limiter\x20mdg:validated-method','pathFromApp','resourceName','375eqKAeu','check','3313158BeJdYg','23320yLSflF','template','207dEVfKv','engines','index.','dir','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','method/method.js','create','warn','4137873afEEDs','23840AVxCur','search','toString','methods','imports','ddp-rate-limiter','error','checkMeteorPackage','248748tAUhvh','maka\x20{generate,\x20g}:{method,\x20m}\x20name','method','withValue'];a104c=function(){return p;};return a104c();}(function(a,b){const k=a104d,c=a();while(!![]){try{const d=-parseInt(k(0xb4))/0x1+-parseInt(k(0xb9))/0x2+parseInt(k(0xab))/0x3+parseInt(k(0xc5))/0x4*(parseInt(k(0xc2))/0x5)+parseInt(k(0xc4))/0x6+-parseInt(k(0xba))/0x7+parseInt(k(0xac))/0x8*(-parseInt(k(0xa3))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xa961f));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const l=a104d;return a104a[l(0xae)]()[l(0xad)](l(0xbb))[l(0xae)]()['constructor'](a104a)[l(0xad)](l(0xbb));});function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0xa3;let f=c[d];return f;},a104d(a,b);}a104a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a104m(0xa9)]({'name':a104m(0xb6),'aliases':['m'],'usage':a104m(0xb5),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':[a104m(0xa6)],'examples':['maka\x20g:method\x20todos']},function(a,b){const n=a104m;try{const c=this[n(0xb8)]['getProjectConfig']();this[n(0xb8)][n(0xb7)](c,async()=>{const o=n,d=paramCase(b[o(0xc1)]),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b[o(0xc1)]),'noRename':!![]};let g='js';c[o(0xa4)]['js']===o(0xbc)&&(g='ts');const h=this[o(0xb8)][o(0xc0)]({});(!this[o(0xb8)][o(0xb3)](o(0xc3))||!this['fsi']['checkMeteorPackage'](o(0xb1))||!this[o(0xb8)][o(0xb3)]('mdg:validated-method'))&&(Log[o(0xaa)](o(0xa7)),this[o(0xb8)]['installMeteorPackage'](o(0xbf),{'cwd':h}));this['fsi'][o(0xc6)]({'srcPath':o(0xa8),'destPath':this['fsi'][o(0xc0)]({'pathParts':[o(0xb0),'startup',b[o(0xbd)],o(0xaf),b[o(0xa6)],d+'-rpc-method.'+g]}),'context':f,'config':c});const i=b[o(0xa6)]?'/'+b[o(0xa6)]+'/':'/',j=this['fsi']['pathFromApp']({'pathParts':[o(0xb0),o(0xbe),b[o(0xbd)],o(0xa5)+c[o(0xa4)]['js']]});this[o(0xb8)]['injectAtEndOfFile']({'filePath':j,'content':'import\x20\x27./methods'+i+d+'-rpc-method\x27;'});});}catch(d){Log[n(0xb2)](d);}});
@@ -1 +1 @@
1
- const a105o=a105d;(function(a,b){const l=a105d,c=a();while(!![]){try{const d=-parseInt(l(0x16b))/0x1*(-parseInt(l(0x180))/0x2)+-parseInt(l(0x171))/0x3+parseInt(l(0x166))/0x4+parseInt(l(0x18a))/0x5+-parseInt(l(0x17a))/0x6*(-parseInt(l(0x16d))/0x7)+parseInt(l(0x182))/0x8*(parseInt(l(0x18e))/0x9)+-parseInt(l(0x189))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x88068));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a105d;if(c){const e=c[m(0x16f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const n=a105d;return a105a[n(0x183)]()[n(0x167)]('(((.+)+)+)+$')[n(0x183)]()[n(0x174)](a105a)['search'](n(0x179));});a105a();import a105e from'path';import{Generator}from'../generator.js';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x161;let f=c[d];return f;},a105d(a,b);}function a105c(){const s=['1358100oPlfGp','client','tests/server','constructor','theme','relative','.js','noRename','(((.+)+)+)+$','209478BgUFuF','pathFromApp','fsi','tests/client','create','ssr','14ftqinv','/client/','230264KIFIql','toString','/package.js','getProjectConfig','maka\x20g:package\x20todos:package','pathFromAppWithNoReWrite','dir','6793280XPvKGO','163360ODJLOA','engines','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','server','207IkfDWi','layout','features','forEach','lib','template/template.js','package.js','template','1451632HxWsrX','search','packages','store','package/','25390ckfgad','hasOwnProperty','91jPtAqh','resourceName','apply','withValue'];a105c=function(){return s;};return a105c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a105o(0x17e)]({'name':'package','aliases':['p'],'usage':a105o(0x18c),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':[a105o(0x188)],'examples':[a105o(0x186)]},async function(a,b){const p=a105o,c=paramCase(b[p(0x16e)]),d=this[p(0x17c)][p(0x17b)]({'pathParts':['packages',b['dir'],c]}),e=this[p(0x17c)][p(0x187)]({'pathParts':[p(0x168),b[p(0x188)],c,p(0x164)]}),f=this[p(0x17c)][p(0x185)]();this[p(0x17c)][p(0x170)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x16e)]),'myPath':a105e[q(0x176)](this['fsi']['pathFromProject']({}),d),'cssCaseName':paramCase(b[q(0x16e)]),'className':pascalCase(b[q(0x16e)]),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f[q(0x18b)][q(0x172)],'graphql':f[q(0x18b)]['graphql'],'ssr':f[q(0x18b)][q(0x17f)],'isComponent':b['hasOwnProperty']('component'),'isLayout':b['hasOwnProperty'](q(0x18f)),'isStore':b[q(0x16c)](q(0x169)),'features':f[q(0x190)],'noRename':!![],'theme':f[q(0x18b)][q(0x175)]};this[q(0x17c)][q(0x165)]({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g[q(0x178)]=![];const h=d+q(0x181)+c+q(0x177);this[q(0x17c)][q(0x165)]({'srcPath':q(0x163),'destPath':h,'context':g,'config':f});const i=[q(0x162),q(0x18d),q(0x17d),q(0x173)];i[q(0x161)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0x177);this[r(0x17c)]['template']({'srcPath':r(0x16a)+j+r(0x184),'destPath':k,'context':g,'config':f});});});});
1
+ const a105n=a105d;function a105c(){const r=['layout','34107RjJrZx','search','1217064KwMXjk','package.js','244208tzkWQl','template','/package.js','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','306rQmgfB','220PbMCEs','maka\x20g:package\x20todos:package','features','relative','template/template.js','engines','resourceName','fsi','packages','369tgkggo','forEach','5726140rwgzGy','server','132412ucucvk','pathFromApp','package/package.js','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','tests/client','noRename','dir','ssr','create','constructor','pathFromProject','(((.+)+)+)+$','.js','14965600AuEKtG','withValue','/client/','toString','lib','hasOwnProperty','448400hwYbnd','tests/server','client','graphql','package/','theme'];a105c=function(){return r;};return a105c();}function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x1ca;let f=c[d];return f;},a105d(a,b);}(function(a,b){const l=a105d,c=a();while(!![]){try{const d=-parseInt(l(0x1d7))/0x1+parseInt(l(0x1e7))/0x2*(parseInt(l(0x1de))/0x3)+parseInt(l(0x1e0))/0x4+-parseInt(l(0x1f2))/0x5+-parseInt(l(0x1e6))/0x6*(-parseInt(l(0x1f4))/0x7)+-parseInt(l(0x1e2))/0x8*(-parseInt(l(0x1f0))/0x9)+-parseInt(l(0x1d1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xa63f6));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const m=a105d;return a105a['toString']()[m(0x1df)](m(0x1cf))[m(0x1d4)]()[m(0x1cd)](a105a)[m(0x1df)]('(((.+)+)+)+$');});a105a();import a105e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a105n(0x1cc)]({'name':'package','aliases':['p'],'usage':a105n(0x1e5),'shortDesc':a105n(0x1f7),'validOpts':[a105n(0x1ca)],'examples':[a105n(0x1e8)]},async function(a,b){const o=a105n,c=paramCase(b['resourceName']),d=this['fsi'][o(0x1f5)]({'pathParts':[o(0x1ef),b[o(0x1ca)],c]}),e=this[o(0x1ee)]['pathFromAppWithNoReWrite']({'pathParts':[o(0x1ef),b[o(0x1ca)],c,o(0x1e1)]}),f=this[o(0x1ee)]['getProjectConfig']();this[o(0x1ee)][o(0x1d2)](f,async()=>{const p=o,g={'name':paramCase(b['resourceName']),'myPath':a105e[p(0x1ea)](this['fsi'][p(0x1ce)]({}),d),'cssCaseName':paramCase(b[p(0x1ed)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[p(0x1ed)]),'fileName':c,'client':f[p(0x1ec)][p(0x1d9)],'graphql':f[p(0x1ec)][p(0x1da)],'ssr':f[p(0x1ec)][p(0x1cb)],'isComponent':b[p(0x1d6)]('component'),'isLayout':b['hasOwnProperty'](p(0x1dd)),'isStore':b[p(0x1d6)]('store'),'features':f[p(0x1e9)],'noRename':!![],'theme':f[p(0x1ec)][p(0x1dc)]};this[p(0x1ee)]['template']({'srcPath':p(0x1f6),'destPath':e,'context':g,'config':f}),g[p(0x1f9)]=![];const h=d+p(0x1d3)+c+'.js';this['fsi']['template']({'srcPath':p(0x1eb),'destPath':h,'context':g,'config':f});const i=[p(0x1d5),p(0x1f3),p(0x1f8),p(0x1d8)];i[p(0x1f1)](j=>{const q=p,k=d+'/'+j+'/'+c+q(0x1d0);this[q(0x1ee)][q(0x1e3)]({'srcPath':q(0x1db)+j+q(0x1e4),'destPath':k,'context':g,'config':f});});});});
@@ -1 +1 @@
1
- const a106q=a106d;(function(a,b){const n=a106d,c=a();while(!![]){try{const d=parseInt(n(0xde))/0x1*(-parseInt(n(0x8f))/0x2)+-parseInt(n(0xb1))/0x3+parseInt(n(0xd4))/0x4+parseInt(n(0xd7))/0x5+-parseInt(n(0xbe))/0x6+parseInt(n(0xaa))/0x7*(-parseInt(n(0xc7))/0x8)+parseInt(n(0x90))/0x9*(parseInt(n(0xbd))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x61e58));function a106c(){const t=['.js','ssr','715646qeeWSl','9swFUbq','hook/hook.js','withValue','installNpmPackage','template/template.html','className','templates.js','error','none','template','rewriteDestinationPathForEngine','/imports/ui/pages','relative','layout','resourceName','components','true','root','Generate\x20a\x20page.','pathFromApp','injectAtBeginningOfFile','imports','import\x20\x27./','component/component.js','pathFromProject','baseDir','749solvSH','html','startup','graphql','fileName','hooks','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','307335pmKTfJ','component','includes','hasOwnProperty','dir','.css','engines','page','test','withHook','warn','import\x20\x27','14610250UYPZGM','1286478wNdAPU','maka\x20g:page\x20todos/todos-item','vanilla','fsi','create','checkNpmPackage','toString','Valid\x20options\x20are:\x20','lib','40856zxdIoM','Updating\x20npm\x20packages\x20...','import\x20{\x20','store','(((.+)+)+)+$','injectAtEndOfFile','withHooks','apply','setTemplate','search','layouts','\x20}\x20from\x20\x27','react','652172RjawGD','features','client','1779345wxTEeY','theme','\x27;\x0a','ramda','template/template.css','assign','css','2efTGcn','getProjectConfig','api','pages','export\x20{\x20','string','join','\x20};\x0a'];a106c=function(){return t;};return a106c();}const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a106d;if(c){const e=c[o(0xce)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const p=a106d;return a106a[p(0xc4)]()[p(0xd0)]('(((.+)+)+)+$')[p(0xc4)]()['constructor'](a106a)[p(0xd0)](p(0xcb));});a106a();function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x8b;let f=c[d];return f;},a106d(a,b);}import a106e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a106q(0xc2)]({'name':a106q(0xb8),'aliases':aliases,'usage':a106q(0xb0),'shortDesc':a106q(0xa2),'validOpts':[a106q(0xa9),'withHook'],'examples':[a106q(0xbf)]},function(a,b){const r=a106q,c=[r(0xaf),r(0x9f),r(0xe1),r(0xd1)];if(b[r(0xa9)]&&!c[r(0xb3)](b[r(0xa9)])){Log[r(0x97)]('Invalid\x20directory\x20option\x20\x22'+b[r(0xa9)]+'\x22'),Log[r(0x97)](r(0xc5)+c[r(0x8b)](',\x20'));throw new UsageError();}const d=b[r(0xa9)]?'/imports/ui/'+b[r(0xa9)]:r(0x9b),e=this['fsi'][r(0xa3)](b),f=this[r(0xc1)][r(0xa3)]({'pathParts':[d,b[r(0xb5)],b[r(0x9e)],paramCase(b[r(0x9e)])]}),g=this[r(0xc1)][r(0xdf)]();this[r(0xc1)][r(0x92)](g,()=>{const s=r;typeof g['template'][s(0xab)]===s(0xe3)&&(g[s(0x99)][s(0xab)]=g[s(0x99)]['html']==='true'?!![]:![],this['fsi']['setTemplate'](s(0xab),g['template'][s(0xab)]));typeof g[s(0x99)][s(0xb9)]==='string'&&(g[s(0x99)][s(0xb9)]=g[s(0x99)][s(0xb9)]===s(0xa0)?!![]:![],this[s(0xc1)][s(0xcf)]('test',g[s(0x99)][s(0xb9)]));typeof g[s(0x99)]['css']===s(0xe3)&&(g[s(0x99)][s(0xdd)]=g[s(0x99)]['css']===s(0xa0)?!![]:![],this[s(0xc1)][s(0xcf)](s(0xdd),g[s(0x99)][s(0xdd)]));typeof g[s(0x99)]['js']===s(0xe3)&&(g[s(0x99)]['js']=g[s(0x99)]['js']==='true'?!![]:![],this[s(0xc1)][s(0xcf)]('js',g[s(0x99)]['js']));!g[s(0xd5)]&&(g[s(0xd5)]={});!b[s(0xa1)]&&!this[s(0xc1)][s(0xc3)](s(0xda))&&(Log[s(0xbb)](s(0xc8)),this[s(0xc1)][s(0x93)](s(0xda),{'cwd':e}));const h={'name':pascalCase(b[s(0x9e)]),'myPath':a106e[s(0x9c)](this[s(0xc1)][s(0xa8)]({}),f),'cssCaseName':paramCase(b[s(0x9e)]),'className':pascalCase(b[s(0x9e)]),'camelCaseName':camelCase(b[s(0x9e)]),'fileName':paramCase(b[s(0x9e)]),'graphql':g[s(0xb7)][s(0xad)],'features':g['features'],'client':g[s(0xb7)][s(0xd6)],'api':g[s(0xb7)][s(0xe0)],'ssr':g[s(0xb7)][s(0x8e)],'isStore':b['hasOwnProperty'](s(0xca)),'isComponent':b[s(0xb4)](s(0xb2)),'isLayout':b[s(0xb4)](s(0x9d)),'withTranslations':g[s(0xd5)]['withTranslations'],'test':g['engines'][s(0xb9)],'theme':g[s(0xb7)][s(0xd8)]};g['template'][s(0xab)]&&this[s(0xc1)][s(0x99)]({'srcPath':s(0x94),'destPath':f+'.html','context':h,'config':g});g['features']?.[s(0xcd)]||b[s(0xba)]?this[s(0xc1)]['template']({'srcPath':s(0x91),'destPath':f+s(0x8d),'framework':s(0xd3),'context':h,'config':g}):this[s(0xc1)][s(0x99)]({'srcPath':s(0xa7),'destPath':f+s(0x8d),'framework':'react','context':h,'config':g});g[s(0xb7)][s(0xb9)]!==s(0x98)&&this[s(0xc1)][s(0x99)]({'srcPath':'test/test.js','destPath':f+'.app-tests.js','framework':'react','context':h,'config':g});g[s(0x99)][s(0xdd)]&&this[s(0xc1)][s(0x99)]({'srcPath':s(0xdb),'destPath':f+s(0xb6),'context':Object[s(0xdc)]({},h,{'className':paramCase(b[s(0x9e)])}),'config':g});g[s(0xb7)]['client']!==s(0xd3)&&g[s(0xb7)]['client']!==s(0xc0)?(g[s(0x99)]['css']&&this[s(0xc1)][s(0xa4)]({'filePath':f+'.'+g[s(0xb7)]['js'],'content':'import\x20\x27./'+h[s(0xae)]+'.'+g['engines'][s(0xab)]+'\x27;\x0a'+s(0xa6)+h['fileName']+'.'+g[s(0xb7)][s(0xdd)]+'\x27;'}),!g[s(0x99)][s(0xdd)]&&this['fsi']['injectAtBeginningOfFile']({'filePath':f+'.'+g[s(0xb7)]['js'],'content':s(0xa6)+h[s(0xae)]+'.'+g[s(0xb7)][s(0xab)]+'\x27;'})):g[s(0x99)]['css']&&this[s(0xc1)]['injectAtBeginningOfFile']({'filePath':f+'.'+g[s(0xb7)]['js'],'content':s(0xa6)+h['fileName']+'.'+g[s(0xb7)][s(0xdd)]+'\x27;'});const i=b[s(0xb5)]?'/'+b['dir']+'/':'/',j=''+d+i+h[s(0xae)]+'/'+h['fileName'];let k;if(g[s(0xb7)]['ssr']===s(0xa0)){const l=this[s(0xc1)][s(0xa3)]({'pathParts':['imports','startup',s(0xc6),s(0x96)]});k=this[s(0xc1)][s(0x9a)]({'pathParts':[l],'config':g});}else{const m=this[s(0xc1)]['pathFromApp']({'pathParts':[s(0xa5),s(0xac),'client',s(0x96)]});k=this[s(0xc1)][s(0x9a)]({'pathParts':[m],'config':g});}g[s(0xb7)][s(0xd6)]===s(0xd3)?(g[s(0xb7)]['js']==='tsx'?this[s(0xc1)][s(0xa4)]({'filePath':k,'content':s(0xc9)+h[s(0x95)]+s(0xd2)+j+s(0xd9)}):this[s(0xc1)]['injectAtBeginningOfFile']({'filePath':k,'content':'import\x20{\x20'+h['className']+'\x20}\x20from\x20\x27'+j+'.'+g['engines']['js']+s(0xd9)}),this[s(0xc1)][s(0xcc)]({'filePath':k,'content':s(0xe2)+h[s(0x95)]+s(0x8c)})):this[s(0xc1)][s(0xcc)]({'filePath':k,'content':s(0xbc)+j+'.'+g[s(0xb7)]['js']+'\x27;\x0a'});});});
1
+ function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x12e;let f=c[d];return f;},a106d(a,b);}const a106q=a106d;(function(a,b){const n=a106d,c=a();while(!![]){try{const d=-parseInt(n(0x149))/0x1*(-parseInt(n(0x15d))/0x2)+-parseInt(n(0x161))/0x3+parseInt(n(0x16c))/0x4+parseInt(n(0x153))/0x5*(-parseInt(n(0x177))/0x6)+-parseInt(n(0x140))/0x7*(-parseInt(n(0x16d))/0x8)+parseInt(n(0x15a))/0x9+parseInt(n(0x134))/0xa*(-parseInt(n(0x148))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x4b4bc));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a106d;if(c){const e=c[o(0x162)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const p=a106d;return a106a['toString']()[p(0x130)](p(0x13f))[p(0x14a)]()[p(0x16a)](a106a)[p(0x130)]('(((.+)+)+)+$');});a106a();function a106c(){const t=['fsi','.js','root','test','client','engines','getProjectConfig','.html','6dnCJdc','true','installNpmPackage','vanilla','search','rewriteDestinationPathForEngine','includes','maka\x20g:page\x20todos/todos-item','67710iExEXb','ramda','import\x20\x27./','baseDir','Invalid\x20directory\x20option\x20\x22','create','pages','css','template/template.css','ssr','withHooks','(((.+)+)+)+$','35tXtIWK','dir','export\x20{\x20','withTranslations','fileName','Updating\x20npm\x20packages\x20...','resourceName','pathFromApp','858twYLuH','579629rtEcye','toString','warn','withHook','className','startup','theme','\x20}\x20from\x20\x27','injectAtBeginningOfFile','string','2644735UKlLCT','templates.js','imports','Generate\x20a\x20page.','error','\x27;\x0a','template','707751EkxFAU','lib','features','2Boumai','layout','setTemplate','react','529509HZHZEq','apply','injectAtEndOfFile','tsx','/imports/ui/pages','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','import\x20{\x20','html','\x20};\x0a','constructor','assign','1338308HbHcco','878648bjcIem','import\x20\x27'];a106c=function(){return t;};return a106c();}import a106e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a106q(0x139)]({'name':'page','aliases':aliases,'usage':a106q(0x166),'shortDesc':a106q(0x156),'validOpts':['baseDir',a106q(0x14c)],'examples':[a106q(0x133)]},function(a,b){const r=a106q,c=['hooks','components',r(0x13a),'layouts'];if(b[r(0x137)]&&!c[r(0x132)](b[r(0x137)])){Log[r(0x157)](r(0x138)+b['baseDir']+'\x22'),Log[r(0x157)]('Valid\x20options\x20are:\x20'+c['join'](',\x20'));throw new UsageError();}const d=b[r(0x137)]?'/imports/ui/'+b['baseDir']:r(0x165),e=this[r(0x16f)][r(0x147)](b),f=this[r(0x16f)]['pathFromApp']({'pathParts':[d,b['dir'],b[r(0x146)],paramCase(b[r(0x146)])]}),g=this[r(0x16f)][r(0x175)]();this[r(0x16f)]['withValue'](g,()=>{const s=r;typeof g[s(0x159)][s(0x168)]===s(0x152)&&(g[s(0x159)][s(0x168)]=g[s(0x159)]['html']===s(0x178)?!![]:![],this[s(0x16f)][s(0x15f)](s(0x168),g[s(0x159)][s(0x168)]));typeof g['template']['test']===s(0x152)&&(g[s(0x159)][s(0x172)]=g[s(0x159)][s(0x172)]===s(0x178)?!![]:![],this[s(0x16f)][s(0x15f)](s(0x172),g['template'][s(0x172)]));typeof g[s(0x159)][s(0x13b)]===s(0x152)&&(g[s(0x159)][s(0x13b)]=g['template']['css']===s(0x178)?!![]:![],this[s(0x16f)][s(0x15f)](s(0x13b),g[s(0x159)]['css']));typeof g['template']['js']==='string'&&(g[s(0x159)]['js']=g[s(0x159)]['js']===s(0x178)?!![]:![],this[s(0x16f)][s(0x15f)]('js',g[s(0x159)]['js']));!g[s(0x15c)]&&(g['features']={});!b[s(0x171)]&&!this[s(0x16f)]['checkNpmPackage'](s(0x135))&&(Log[s(0x14b)](s(0x145)),this['fsi'][s(0x12e)](s(0x135),{'cwd':e}));const h={'name':pascalCase(b[s(0x146)]),'myPath':a106e['relative'](this[s(0x16f)]['pathFromProject']({}),f),'cssCaseName':paramCase(b[s(0x146)]),'className':pascalCase(b[s(0x146)]),'camelCaseName':camelCase(b[s(0x146)]),'fileName':paramCase(b[s(0x146)]),'graphql':g[s(0x174)]['graphql'],'features':g['features'],'client':g[s(0x174)][s(0x173)],'api':g[s(0x174)]['api'],'ssr':g[s(0x174)][s(0x13d)],'isStore':b['hasOwnProperty']('store'),'isComponent':b['hasOwnProperty']('component'),'isLayout':b['hasOwnProperty'](s(0x15e)),'withTranslations':g[s(0x15c)][s(0x143)],'test':g[s(0x174)][s(0x172)],'theme':g['engines'][s(0x14f)]};g[s(0x159)]['html']&&this['fsi']['template']({'srcPath':'template/template.html','destPath':f+s(0x176),'context':h,'config':g});g[s(0x15c)]?.[s(0x13e)]||b[s(0x14c)]?this['fsi'][s(0x159)]({'srcPath':'hook/hook.js','destPath':f+s(0x170),'framework':s(0x160),'context':h,'config':g}):this[s(0x16f)][s(0x159)]({'srcPath':'component/component.js','destPath':f+s(0x170),'framework':s(0x160),'context':h,'config':g});g[s(0x174)][s(0x172)]!=='none'&&this[s(0x16f)]['template']({'srcPath':'test/test.js','destPath':f+'.app-tests.js','framework':'react','context':h,'config':g});g[s(0x159)][s(0x13b)]&&this['fsi'][s(0x159)]({'srcPath':s(0x13c),'destPath':f+'.css','context':Object[s(0x16b)]({},h,{'className':paramCase(b[s(0x146)])}),'config':g});g[s(0x174)][s(0x173)]!==s(0x160)&&g[s(0x174)][s(0x173)]!==s(0x12f)?(g['template'][s(0x13b)]&&this[s(0x16f)][s(0x151)]({'filePath':f+'.'+g[s(0x174)]['js'],'content':s(0x136)+h[s(0x144)]+'.'+g['engines'][s(0x168)]+'\x27;\x0a'+s(0x136)+h['fileName']+'.'+g[s(0x174)][s(0x13b)]+'\x27;'}),!g[s(0x159)][s(0x13b)]&&this['fsi'][s(0x151)]({'filePath':f+'.'+g[s(0x174)]['js'],'content':'import\x20\x27./'+h['fileName']+'.'+g[s(0x174)][s(0x168)]+'\x27;'})):g[s(0x159)][s(0x13b)]&&this[s(0x16f)]['injectAtBeginningOfFile']({'filePath':f+'.'+g[s(0x174)]['js'],'content':'import\x20\x27./'+h['fileName']+'.'+g[s(0x174)][s(0x13b)]+'\x27;'});const i=b[s(0x141)]?'/'+b[s(0x141)]+'/':'/',j=''+d+i+h[s(0x144)]+'/'+h[s(0x144)];let k;if(g['engines'][s(0x13d)]===s(0x178)){const l=this[s(0x16f)]['pathFromApp']({'pathParts':[s(0x155),s(0x14e),s(0x15b),s(0x154)]});k=this[s(0x16f)][s(0x131)]({'pathParts':[l],'config':g});}else{const m=this[s(0x16f)][s(0x147)]({'pathParts':[s(0x155),s(0x14e),'client',s(0x154)]});k=this['fsi'][s(0x131)]({'pathParts':[m],'config':g});}g[s(0x174)][s(0x173)]==='react'?(g[s(0x174)]['js']===s(0x164)?this['fsi'][s(0x151)]({'filePath':k,'content':'import\x20{\x20'+h[s(0x14d)]+'\x20}\x20from\x20\x27'+j+s(0x158)}):this[s(0x16f)]['injectAtBeginningOfFile']({'filePath':k,'content':s(0x167)+h[s(0x14d)]+s(0x150)+j+'.'+g[s(0x174)]['js']+s(0x158)}),this[s(0x16f)][s(0x163)]({'filePath':k,'content':s(0x142)+h[s(0x14d)]+s(0x169)})):this[s(0x16f)][s(0x163)]({'filePath':k,'content':s(0x16e)+j+'.'+g[s(0x174)]['js']+'\x27;\x0a'});});});
@@ -1 +1 @@
1
- const a107k=a107d;(function(a,b){const h=a107d,c=a();while(!![]){try{const d=parseInt(h(0x17a))/0x1*(parseInt(h(0x174))/0x2)+-parseInt(h(0x17f))/0x3*(-parseInt(h(0x183))/0x4)+parseInt(h(0x17e))/0x5+-parseInt(h(0x172))/0x6+-parseInt(h(0x179))/0x7+parseInt(h(0x17b))/0x8*(parseInt(h(0x16c))/0x9)+parseInt(h(0x177))/0xa*(-parseInt(h(0x168))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x2440d));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a107d;if(c){const e=c[i(0x166)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const j=a107d;return a107a[j(0x16d)]()[j(0x181)](j(0x175))[j(0x16d)]()[j(0x180)](a107a)['search']('(((.+)+)+)+$');});a107a();import{paramCase}from'change-case';import{Generator}from'../generator.js';function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x166;let f=c[d];return f;},a107d(a,b);}Generator[a107k(0x173)]({'name':a107k(0x17d),'aliases':['p'],'usage':a107k(0x16a),'shortDesc':a107k(0x16f),'validOpts':[],'examples':[a107k(0x170)]},async function(a,b){const l=a107k,c=this['fsi'][l(0x169)]();this[l(0x182)][l(0x176)](c,async()=>{const m=l,d={'name':b['resourceName'],'collection':paramCase(b[m(0x17c)]),'noRename':!![]};let e='js';c[m(0x16b)]['js']==='tsx'&&(e='ts');const f=this[m(0x182)][m(0x167)]({'pathParts':[m(0x178)+c[m(0x16b)]['js']]}),g=this[m(0x182)][m(0x16e)]({'srcPath':'publish/publish.'+e,'context':d,'config':c});this[m(0x182)][m(0x171)]({'filePath':f,'content':'\x0a'+g});});});function a107c(){const n=['server/publish.','1761277dZmjtQ','59fvRfiQ','104oeccBp','resourceName','publish','668200XUAwSx','3DEzpag','constructor','search','fsi','1119396gyJzal','apply','rewriteDestinationPathForEngine','22uQRkjM','getProjectConfig','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','engines','122373bkDOsI','toString','templateContent','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','maka\x20g:publish\x20todos','injectAtEndOfFile','508176ZJlkeq','create','9536IUwFCx','(((.+)+)+)+$','withValue','1933810XPpOHS'];a107c=function(){return n;};return a107c();}
1
+ function a107c(){const n=['rewriteDestinationPathForEngine','13ngaBzw','5762246jmDPNy','fsi','1922135NkDlTq','9888972TkObru','1962uzWCYv','26536xXhYPw','templateContent','2wErmyn','2344386FuEdZA','search','publish','tsx','8bjrVoX','(((.+)+)+)+$','withValue','22uWHhxu','6skVjtt','publish/publish.','555590ZMwiqo','constructor','136323eVvwMx','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','resourceName','getProjectConfig','toString','engines','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','apply'];a107c=function(){return n;};return a107c();}const a107k=a107d;(function(a,b){const h=a107d,c=a();while(!![]){try{const d=-parseInt(h(0xa3))/0x1+parseInt(h(0x96))/0x2*(parseInt(h(0x97))/0x3)+parseInt(h(0x9b))/0x4*(-parseInt(h(0x91))/0x5)+parseInt(h(0x9f))/0x6*(parseInt(h(0x8f))/0x7)+parseInt(h(0x94))/0x8*(parseInt(h(0x93))/0x9)+-parseInt(h(0xa1))/0xa*(parseInt(h(0x9e))/0xb)+-parseInt(h(0x92))/0xc*(parseInt(h(0x8e))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x76fca));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a107d;if(c){const e=c[i(0xaa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const j=a107d;return a107a[j(0xa7)]()[j(0x98)]('(((.+)+)+)+$')[j(0xa7)]()[j(0xa2)](a107a)[j(0x98)](j(0x9c));});function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x8d;let f=c[d];return f;},a107d(a,b);}a107a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator['create']({'name':a107k(0x99),'aliases':['p'],'usage':a107k(0xa4),'shortDesc':a107k(0xa9),'validOpts':[],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const l=a107k,c=this[l(0x90)][l(0xa6)]();this[l(0x90)][l(0x9d)](c,async()=>{const m=l,d={'name':b[m(0xa5)],'collection':paramCase(b[m(0xa5)]),'noRename':!![]};let e='js';c[m(0xa8)]['js']===m(0x9a)&&(e='ts');const f=this[m(0x90)][m(0x8d)]({'pathParts':['server/publish.'+c[m(0xa8)]['js']]}),g=this[m(0x90)][m(0x95)]({'srcPath':m(0xa0)+e,'context':d,'config':c});this[m(0x90)]['injectAtEndOfFile']({'filePath':f,'content':'\x0a'+g});});});
@@ -1 +1 @@
1
- function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0xa5;let f=c[d];return f;},a108d(a,b);}const a108A=a108d;function a108c(){const I=['warn','root','join','maka\x20g:route\x20todosEdit\x20todos/:id/edit','templateName','route','length','true','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','6644790rqPdza','11803203ToVBWB','injectIntoFile','apply','pathFromApp','11297MeUkFP','lib','includes','readFileLines','react','dir','engines','map','rewriteDestinationPathForEngine','withHook','error','toString','MasterLayout','const\x20privateRoutes\x20=\x20(<>','startup','const\x20publicRoutes\x20=\x20(<>','1432UXadbu','constructor','routes.js','\x22*\x22','/imports/ui/pages','<Route','client','ssr','withTranslations','page','</Router>','maka\x20g:route\x20todosIndex\x20todos','imports','106tiVuMC','5121pCUkBK','templateContent','baseDir','findGenerator','toLowerCase','layout','PrivateLayout','layouts','fsi','203586pRiptK','url','route/route.js','search','8589575ZXVhKd','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','newForm','\x0a\x09\x09','injectAfterLineNumber','injectAtEndOfFile','(((.+)+)+)+$','filter','pages','getProjectConfig','343pavgjf','hooks','<Router','Valid\x20options\x20are:\x20','maka\x20g:route\x20pages/about','2955072hxQgFY','withValue'];a108c=function(){return I;};return a108c();}(function(a,b){const x=a108d,c=a();while(!![]){try{const d=-parseInt(x(0xb6))/0x1*(-parseInt(x(0xd3))/0x2)+parseInt(x(0xd4))/0x3*(parseInt(x(0xc6))/0x4)+parseInt(x(0xe1))/0x5+-parseInt(x(0xdd))/0x6*(parseInt(x(0xeb))/0x7)+parseInt(x(0xa6))/0x8+-parseInt(x(0xb2))/0x9+parseInt(x(0xb1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xf1193));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a108d;if(c){const e=c[y(0xb4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const z=a108d;return a108a[z(0xc1)]()[z(0xe0)]('(((.+)+)+)+$')[z(0xc1)]()[z(0xc7)](a108a)[z(0xe0)](z(0xe7));});a108a();import a108e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a108f from'../generators/maka.gen.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator['create']({'name':a108A(0xad),'aliases':aliases,'validOpts':['private',a108A(0xd9),'only','cwd','config','root',a108A(0xbf),a108A(0xde),a108A(0xd6)],'usage':a108A(0xe2),'shortDesc':'Scaffolding\x20for\x20a\x20Route.','examples':[a108A(0xd1),a108A(0xab),'maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','maka\x20g:route\x20pages/lists/listIndex\x20lists',a108A(0xa5)]},function(a,b){const B=a108A;try{const c=[B(0xec),'components',B(0xe9),B(0xdb)];if(b[B(0xd6)]&&!c[B(0xb8)](b[B(0xd6)])){Log[B(0xc0)]('Invalid\x20directory\x20option\x20\x22'+b['baseDir']+'\x22'),Log[B(0xc0)](B(0xee)+c[B(0xaa)](',\x20'));throw new UsageError();}const d=this[B(0xdc)][B(0xea)]();this[B(0xdc)][B(0xa7)](d,async()=>{const C=B,f=b['private']??![];let g=paramCase(a[0x0]),h='/'+g;a[C(0xae)]>0x1&&(h='/'+a[C(0xe8)](function(n){return n!=='/';})['join']('/')[C(0xd8)]());g=camelCase(g);b[C(0xd9)]&&(b[C(0xd9)]=camelCase(b['layout']));const i=b['baseDir']?'/imports/ui/'+b[C(0xd6)]:C(0xca),j=a108e[C(0xaa)](i,b[C(0xbb)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[C(0xd9)]||C(0xc2),'templatePath':j,'templateName':pascalCase(g),'client':d[C(0xbc)][C(0xcc)],'newForm':![],'withTranslations':d['features'][C(0xce)]};f&&(k['layout']=C(0xda));if(!b[C(0xa9)]){const n=a108f[C(0xd7)](C(0xcf));n&&await n['invoke'](a,b);}let l,m;if(d[C(0xbc)][C(0xcc)]==='react'){if(d['engines'][C(0xcd)]===C(0xaf)){const r=this[C(0xdc)][C(0xb5)]({'pathParts':['imports',C(0xc4),C(0xb7),'routes.js']});l=this[C(0xdc)][C(0xbe)]({'pathParts':[r],'config':d});}else{const s=this[C(0xdc)]['pathFromApp']({'pathParts':[C(0xd2),C(0xc4),C(0xcc),C(0xc8)]});l=this[C(0xdc)][C(0xbe)]({'pathParts':[s],'config':d});}const o=this[C(0xdc)][C(0xb9)](l)['map']((t,u)=>{const D=C;return t[D(0xb8)](D(0xb0))?u+0x1:null;})[C(0xe8)](t=>t!==null);let p=this[C(0xdc)][C(0xb9)](l)[C(0xbd)]((t,u)=>{const E=C;return t[E(0xb8)](E(0xc5))?u+0x1:null;})['filter'](t=>t!==null),q=this[C(0xdc)][C(0xb9)](l)[C(0xbd)]((t,u)=>{return t['includes']('const\x20privateRoutes\x20=\x20(<>')?u+0x1:null;})['filter'](t=>t!==null);p[C(0xae)]>0x0&&q['length']>0x0&&(k[C(0xe3)]=!![]);m=this[C(0xdc)][C(0xd5)]({'srcPath':C(0xdf),'framework':C(0xba),'context':k,'config':d});if(p[C(0xae)]>0x0||q['length']>0x0){this['fsi'][C(0xe5)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[C(0xae)]>0x0)q=this[C(0xdc)][C(0xb9)](l)['map']((t,u)=>{const F=C;return t[F(0xb8)](F(0xc3))?u+0x1:null;})['filter'](t=>t!==null),this[C(0xdc)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k[C(0xac)]+'}','lineNumber':q[0x0]});else p[C(0xae)]>0x0?(p=this[C(0xdc)][C(0xb9)](l)[C(0xbd)]((t,u)=>{const G=C;return t[G(0xb8)](G(0xc5))?u+0x1:null;})[C(0xe8)](t=>t!==null),this[C(0xdc)][C(0xe5)]({'filePath':l,'content':'\x09{'+k[C(0xac)]+'}','lineNumber':p[0x0]})):Log[C(0xa8)]('Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20'+l);}else{const t=this[C(0xdc)][C(0xb9)](l)[C(0xbd)](w=>{const H=C;return w[H(0xb8)](H(0xc9));}),u=t['indexOf'](!![])>-0x1,v=u?C(0xcb):C(0xd0);this[C(0xdc)][C(0xb3)]({'filePath':l,'content':C(0xe4)+m+C(0xe4),'begin':C(0xed),'end':v});}}else{if(d[C(0xbc)][C(0xcc)]==='vanilla'){const w=this[C(0xdc)][C(0xb5)]({'pathParts':[C(0xd2),'startup',C(0xcc),C(0xc8)]});l=this['fsi'][C(0xbe)]({'pathParts':[w],'config':d}),m=this[C(0xdc)][C(0xd5)]({'srcPath':C(0xdf),'context':k}),this[C(0xdc)][C(0xe6)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log['error'](f);}});
1
+ const a108A=a108d;(function(a,b){const x=a108d,c=a();while(!![]){try{const d=-parseInt(x(0x9a))/0x1*(-parseInt(x(0x96))/0x2)+parseInt(x(0xb5))/0x3*(-parseInt(x(0xc4))/0x4)+parseInt(x(0x97))/0x5*(-parseInt(x(0xb9))/0x6)+-parseInt(x(0xe4))/0x7*(parseInt(x(0xc5))/0x8)+-parseInt(x(0xbc))/0x9*(parseInt(x(0x99))/0xa)+-parseInt(x(0xad))/0xb*(-parseInt(x(0xa5))/0xc)+parseInt(x(0xdb))/0xd*(parseInt(x(0xa4))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x9b0ef));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a108d;if(c){const e=c[y(0x95)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const z=a108d;return a108a[z(0xb8)]()[z(0xb6)](z(0xa8))['toString']()[z(0xb4)](a108a)[z(0xb6)](z(0xa8));});a108a();import a108e from'path';function a108c(){const J=['toString','6eFHixX','create','indexOf','4149nkYFmH','rewriteDestinationPathForEngine','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','withHook','filter','maka\x20g:route\x20pages/about','config','const\x20privateRoutes\x20=\x20(<>','1076YqqCFK','554776dzISwT','lib','error','findGenerator','components','cwd','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','fsi','page','map','route/route.js','Scaffolding\x20for\x20a\x20Route.','client','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','invoke','features','maka\x20g:route\x20todosIndex\x20todos','startup','</Router>','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','MasterLayout','join','1653340KTjckP','react','includes','injectAfterLineNumber','maka\x20g:route\x20todosEdit\x20todos/:id/edit','private','templateContent','root','<Route','49fZJykH','layout','PrivateLayout','apply','196CbcOKm','4562875AnSdfG','pathFromApp','2950QJMJyN','2698MFtpRj','withValue','Invalid\x20directory\x20option\x20\x22','withTranslations','imports','newForm','hooks','<Router','getProjectConfig','engines','210VXzFZU','12klmwSV','\x0a\x09\x09','layouts','(((.+)+)+)+$','templateName','length','readFileLines','route','9936025EjyCvg','true','routes.js','const\x20publicRoutes\x20=\x20(<>','warn','vanilla','/imports/ui/pages','constructor','10107VAOJSS','search','baseDir'];a108c=function(){return J;};return a108c();}import{Generator}from'../generator.js';function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x93;let f=c[d];return f;},a108d(a,b);}import{Log}from'../tools/log/log.class.js';import a108f from'../generators/maka.gen.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a108A(0xba)]({'name':a108A(0xac),'aliases':aliases,'validOpts':[a108A(0xe0),a108A(0x93),'only',a108A(0xca),a108A(0xc2),a108A(0xe2),a108A(0xbf),'url',a108A(0xb7)],'usage':a108A(0xcb),'shortDesc':a108A(0xd0),'examples':[a108A(0xd5),a108A(0xdf),a108A(0xbe),'maka\x20g:route\x20pages/lists/listIndex\x20lists',a108A(0xc1)]},function(a,b){const B=a108A;try{const c=[B(0xa0),B(0xc9),'pages',B(0xa7)];if(b['baseDir']&&!c['includes'](b['baseDir'])){Log[B(0xc7)](B(0x9c)+b[B(0xb7)]+'\x22'),Log[B(0xc7)]('Valid\x20options\x20are:\x20'+c[B(0xda)](',\x20'));throw new UsageError();}const d=this[B(0xcc)][B(0xa2)]();this['fsi'][B(0x9b)](d,async()=>{const C=B,f=b[C(0xe0)]??![];let g=paramCase(a[0x0]),h='/'+g;a['length']>0x1&&(h='/'+a[C(0xc0)](function(n){return n!=='/';})[C(0xda)]('/')['toLowerCase']());g=camelCase(g);b[C(0x93)]&&(b[C(0x93)]=camelCase(b[C(0x93)]));const i=b['baseDir']?'/imports/ui/'+b[C(0xb7)]:C(0xb3),j=a108e[C(0xda)](i,b['dir'],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[C(0x93)]||C(0xd9),'templatePath':j,'templateName':pascalCase(g),'client':d[C(0xa3)][C(0xd1)],'newForm':![],'withTranslations':d[C(0xd4)][C(0x9d)]};f&&(k[C(0x93)]=C(0x94));if(!b[C(0xe2)]){const n=a108f[C(0xc8)](C(0xcd));n&&await n[C(0xd3)](a,b);}let l,m;if(d[C(0xa3)][C(0xd1)]===C(0xdc)){if(d[C(0xa3)]['ssr']===C(0xae)){const r=this[C(0xcc)][C(0x98)]({'pathParts':[C(0x9e),C(0xd6),C(0xc6),C(0xaf)]});l=this[C(0xcc)][C(0xbd)]({'pathParts':[r],'config':d});}else{const s=this[C(0xcc)]['pathFromApp']({'pathParts':[C(0x9e),'startup','client',C(0xaf)]});l=this[C(0xcc)][C(0xbd)]({'pathParts':[s],'config':d});}const o=this[C(0xcc)][C(0xab)](l)[C(0xce)]((t,u)=>{const D=C;return t[D(0xdd)](D(0xd8))?u+0x1:null;})[C(0xc0)](t=>t!==null);let p=this[C(0xcc)][C(0xab)](l)['map']((t,u)=>{const E=C;return t[E(0xdd)](E(0xb0))?u+0x1:null;})['filter'](t=>t!==null),q=this[C(0xcc)]['readFileLines'](l)[C(0xce)]((t,u)=>{const F=C;return t[F(0xdd)](F(0xc3))?u+0x1:null;})[C(0xc0)](t=>t!==null);p[C(0xaa)]>0x0&&q[C(0xaa)]>0x0&&(k[C(0x9f)]=!![]);m=this[C(0xcc)][C(0xe1)]({'srcPath':C(0xcf),'framework':C(0xdc),'context':k,'config':d});if(p[C(0xaa)]>0x0||q['length']>0x0){this[C(0xcc)][C(0xde)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[C(0xaa)]>0x0)q=this[C(0xcc)]['readFileLines'](l)[C(0xce)]((t,u)=>{const G=C;return t[G(0xdd)]('const\x20privateRoutes\x20=\x20(<>')?u+0x1:null;})['filter'](t=>t!==null),this[C(0xcc)][C(0xde)]({'filePath':l,'content':'\x09{'+k[C(0xa9)]+'}','lineNumber':q[0x0]});else p[C(0xaa)]>0x0?(p=this[C(0xcc)][C(0xab)](l)[C(0xce)]((t,u)=>{const H=C;return t[H(0xdd)]('const\x20publicRoutes\x20=\x20(<>')?u+0x1:null;})['filter'](t=>t!==null),this['fsi'][C(0xde)]({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':p[0x0]})):Log[C(0xb1)](C(0xd2)+l);}else{const t=this[C(0xcc)][C(0xab)](l)['map'](w=>{const I=C;return w[I(0xdd)]('\x22*\x22');}),u=t[C(0xbb)](!![])>-0x1,v=u?C(0xe3):C(0xd7);this['fsi']['injectIntoFile']({'filePath':l,'content':C(0xa6)+m+C(0xa6),'begin':C(0xa1),'end':v});}}else{if(d[C(0xa3)][C(0xd1)]===C(0xb2)){const w=this[C(0xcc)][C(0x98)]({'pathParts':[C(0x9e),C(0xd6),C(0xd1),C(0xaf)]});l=this[C(0xcc)][C(0xbd)]({'pathParts':[w],'config':d}),m=this[C(0xcc)]['templateContent']({'srcPath':C(0xcf),'context':k}),this[C(0xcc)]['injectAtEndOfFile']({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[B(0xc7)](f);}});